Hold down your mouse to draw. Press X to clear canvas. Press Z to switch colors. Also you can press the numbers to change draw size. That's about it.
All code my me.