Project: Pixelate Images in Terminal 😎
HTML-код
- Опубликовано: 13 сен 2024
- We've learnt a lot until now. We know how to write classes, how to implement proper move semantics for them as well as how to create full projects with CMake. Now it is time to put it all to a test by implementing a project that allows us to load an image from disk, pixelate it and show it to the user in the terminal.
📚 As always, the script to the project description lives here: github.com/cpp...
💬 Have any thoughts, start a discussion here: github.com/org...
Hey everyone! It took me quite a while to think of a project interesting enough for you guys, while being manageable in its complexity. I think I have a solid contender. That being said, there might be issues that I missed or stuff that is not clear. I am more than willing to adapt to your feedback, so please (please, please!) provide it to me in the discussions page: github.com/orgs/cpp-for-yourself/discussions
Thanks and happy coding!
Wow, great! Let's do it. Thank you!
Hi, already done
Did you like it? 😉
I use another library for bitmap, and code of vt100; i make already library implement more function using only VT100 escape codes.
Now i m en implementing library to manage console (windows first, after Linux and MAC not yet), i follow SFML graphic library implementation désigne .
That makes sense. What library do you use?
Now I'm trying to draw a 100x100 of the same cat image into the terminal but it gets too big in the terminal. How can I solve this? I cannot even draw original 360x400 in the terminal.
Well, terminal does have a limited number of digits for us to draw in. What is the biggest image that you actually can draw? Can you draw a very small image?
I can draw small images likes 40x40. I did not understand how to arrange the terminal like yours to show original image perfect size on terminal. @@CodeForYourself
I can draw 40x40 . But I did not understand how I can draw bigger sizes like yours in the video@@CodeForYourself
I don’t really remember which image size I print in the terminal at 0:21 but I know that I pick it by looking at how many characters fit in my terminal vertically. How many fit into yours? Reducing font size might help too if you want to see a higher “pixel” count. Does it make any sense? Or do I still misunderstand your question?
Okey, thanks for help. @@CodeForYourself