3 ms·
To 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, wit
by klyrs 7y ago
To 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