This weekend, I worked on a new code experiment - a multi-touch enabled semi-random polygon drawing tool. It creates polygon shapes that look sort of like endlessly unfolding paper. You can draw with your mouse or fingers, or you can have it draw randomly.
The original concept was to create a toy for my 6 month old daughter Zelda that would make cool looking shapes based on her spastic slapping of the iPad screen. Goal achieved!
Every time you add a new point to the drawing - by clicking, dragging, or tapping with a finger - the algorithm creates a new polygon by connecting your new point to 2 or more existing nearby points. This is how I achieved the folding paper effect.
When put into auto-draw mode, I add a tiny bit of wiggle to each point as the polygons are drawing, which lends a sort of frantic liveliness to the image as it is created.
Try it in your browser, or put it on your iPhone or iPad: It will create colorful, full screen images! You can save cool results as transparent PNG files, as seen above.
Update: Here are a few more examples of what it can do.