6 ms·
Haha, nice — I'm the developer if anyone has any questions (it's using a canvas element to convert images/data URIs to ASCII art). Also, here's a link to the G
by zachwill 15y ago
Haha, nice — I'm the developer if anyone has any questions (it's using a canvas element to convert images/data URIs to ASCII art).
Also, here's a link to the Github repo: https://github.com/zachwill/asciifi https://github.com/zachwill/asciifi
- a3_nm 15y agoI wonder which algorithm you're using? From very quick testing, it looks like you're picking characters to represent various grayscale values, but I'm not sure that you're taking the shape of the characters into account like other converters do.
- zachwill 15y agoI 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?
- pace 15y agoGreat project -- I'd like to have the time for such side-projects
- stephth 15y agoFun site. But why haven't you written credits to the music?