3 ms·
True, but Piet [1] already does that without Hilbertizing code. Also, humble flex for calling this 7 months ago [2] [1] http://www.dangermouse.net/esoteric/pie
by tsumnia 7y ago
True, but Piet [1] already does that without Hilbertizing code. Also, humble flex for calling this 7 months ago [2]
[1] http://www.dangermouse.net/esoteric/piet.html http://www.dangermouse.net/esoteric/piet.html
[2] https://news.ycombinator.com/item?id=18496566 https://news.ycombinator.com/item?id=18496566
- klyrs 7y agoTo be fair, Piet doesn't really do ascii art. But all you really need (hold my beer I'm gonna attempt a [2]) is a text representation. File format: ascii, with lines of characters corresponding to lines of pixels. The longest line sets the image width, ragged lines should be padded according to implementation. Special characters: Line feed: ignored Carriage return: end of line Tab or space: #ffffff #: #000000 All other printing characters (0x21, 0x22, [0x24-0x7f]): ordinal is taken mod 18 and converted to pixel values, 0 -> #c00000 1 -> #ff0000 2 -> #ffc0c0 3 -> #c0c000 ... 17 -> #ffc0ff
- tsumnia 7y agoWhile it doesn't do ASCII art, [1] does show some of the programs people have built where they've included space for artwork [1] http://www.dangermouse.net/esoteric/piet/samples.html http://www.dangermouse.net/esoteric/piet/samples.html
- klyrs 7y agoI know. I've written some of the programs on that page