Re:Show HN: Ascii Art to Data URI
by yorwba on Sunday February 07, 2016 @11:15AM
(#11053324)
Just replace that /#/g with /[^\s]/g to replace all non-whitespace characters.
[ Parent
| on HN ]
be forewarned that the reason it's asking you to use only #'s and spaces is the effect only works if the ascii image is very contrast-y. if the ascii art makes use of gradients (....:::;;;iiii@@@@) the effect won't be as obvious or work at all.