3 ms·
Most of the code here is for scraping images from a 3rd party and converting them into colored blank spaces to display in the terminal. The actual code used to
by Klathmon 7y ago
Most of the code here is for scraping images from a 3rd party and converting them into colored blank spaces to display in the terminal.
The actual code used to pick a random Pokemon and display it is only a few dozen lines.
- sswezey 7y agoWhere does the conversion from .png to tiles happen? Is it part of boxen? I can't seem to locate it within the source.
- Klathmon 7y agoIt's kinda hidden in the webpack config using a loader (written by the same guy!) that does the heavy lifting https://github.com/dfrankland/image-xterm-loader https://github.com/dfrankland/image-xterm-loader