i made a drawing program once, it was similar to your code. I actually had some cool features like a circle-pad controlled cursor that could draw, and a size feature. I need to update it sometime tho... MOAR GUI