So I'm pretty stressed today. To try and alleviate some of that I thought I'd put out there some of my code for the auto-drawing app that I have done. You can consider this code to be under this creative commons license. Have a look and be inspired. Or laugh at my older cocos2d skills. It's a little dated, but still works pretty ok. Maybe someday I'll update and take this project to the place that it really ought to go.
You can get the code here.