Text2Canvas is an awesome, open source program written in Javascript to make it easier to use the Piet Programming Language by David Morgan-Mar.
Namely, to make it easier, it limits the amount of mouse precision required to properly and quickly code in Piet by enabling the user to do everything they can do in a normal image editing program by using text commands.
This is not intended to be the textual version of Piet. Rather, it is simply a way to draw images using text geared toward programming in Piet. Besides, it's easier just to interpret an image itself. Yeesh.
Feel free to copy the program and modify it as you please.
All text refers to T2C itself, not this page.
Page functionality:
All commands are entered into the text area on the left.
The program works by using a 2D pointer to place pixels on a canvas, initially starting at the top-left. One creates images using commands that draw text and manipulate the pointer. When using only drawing commands, the pointer is automatically moved to the right and reregistered back at the left edge when it reaches the right edge. This behavior can be modified through the use of certain commands.
Tip #1: Any number before any command but # and 3# repeats that command that many times minus one. # and 3# can be repeated using [ and ], see below. The math symbols -, +, * and / works as expected.
Tip #2: Commands that draw will naturally move the canvas pointer to the right, or to the left edge and down when it reaches the canvas edge.
Tip #4: Loops can be nested. To change the number of iterations, just put a number before any [.
Pixel Pointer CommandsTip #5: Numbers work with these commands, too. Putting a 0 before e, E, s or S sets it to default edge.
CommentsTip #6: These commands are used to comment out text.
Tip #7: XD (recommended use).
Piet webpage: http://www.dangermouse.net/esoteric/piet.html