If you click the pencil (it is clicked/selected when you press the green flag) then use your mouse to draw, if you click the eraser then use you mouse to erase. If you click the trash can type y to delete everything or type n to continue drawing (no caps). use the variables to change the colour and brightness of the square to the left of them and use the other one to change the size of the pen. Press space to set the colour of the pen to colour that your mouse is touching.
Thanks to @griffpatch for the colour selector tutorial. All of the other code and artwork by me @Master597.