5 ms·
What did you use for the terminal (shibe) art?
by SnakeSupply 13y ago
What did you use for the terminal (shibe) art?
- thiderman 13y agohttps://github.com/rossy2401/img2xterm https://github.com/rossy2401/img2xterm It's pretty easy to use. The problem is usually to create good input for it. I spent roughly an hour in GIMP just tweaking the original doge.png and trying to get good dithering for the colors.
- antonios 13y agoWhat's that font in the terminal? Inconsolata?
- thiderman 13y agoIt is indeed!
- SnakeSupply 13y agoThis is worth a few good giggles from my friends so good job! Just a few questions after peeking through the source: how long did it take you? Why is it so much more complicated than it seems on first impression? What was the hardest part?
- thiderman 13y agoThe initial code work was probably not even an hour from initial idea to actually having random colored strings and a test shibe. Then I spent some time tweaking the image to be better, as already mentioned. I never felt it looked complicated. The code is not even 300 lines, and at least I feel that the abstraction is all right. I wrote the code to be flexible, and because of that, adding piping to stdout was really simple. What parts of the code do you find complicated? The hardest part was getting the Python packaging right, haha. It was difficult to get the doge.txt file distributed in the package in a path that would work both when installed to site-packages and that would work whilst developing. I have since started doing more Python packaging for my other projects (I'm on a contribution streak, so I do a lot right now) and it's gotten a lot easier.