Hacker Newsnew | past | comments | ask | show | jobs | submit | SnakeSupply's commentslogin

What did you use for the terminal (shibe) art?


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.


This 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?


The 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.


What's that font in the terminal? Inconsolata?


It is indeed!


Drinking beer does not equal binge drinking. Few people I know are truly talented enough to binge drink on purely beer.


I find the single-authentication quite refreshing. Interesting idea.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: