3 ms·
I used a combination of Tab Atkins' and the MooTools ASCII art (https://github.com/khrome/MooAsciiArt.js https://github.com/khrome/MooAsciiArt.js) algorithms. T
by zachwill 15y ago
I used a combination of Tab Atkins' and the MooTools ASCII art (https://github.com/khrome/MooAsciiArt.js https://github.com/khrome/MooAsciiArt.js) algorithms. The four ASCII options came from those two libraries, as well (I played around with the values on various pictures until I found ones that I thought worked the best).
You can also take a look at the Asciify and AsciiCharacter classes in the CoffeeScript file (https://github.com/zachwill/asciifi/blob/master/static/js/application.coffee https://github.com/zachwill/asciifi/blob/master/static/js/ap...).
- a3_nm 15y agoOK, and it seems that those algorithms only take the grayscale into account. Compare http://paste.fulltxt.net/:gh http://paste.fulltxt.net/:gh (your output) with http://paste.fulltxt.net/h-,:wiS http://paste.fulltxt.net/h-,:wiS (aalib's output). This probably isn't the best choice of image, but you can still see how aalib approximates the edges of the drawing with all sort of characters.
- starwed 15y ago>you can still see how aalib approximates the edges of the drawing with all sort of characters. Wonder if that makes any sense for video, though?