Challenge Three

Write a program that allows you to draw using your mouse:

  • when you drag the mouse it leaves a trail
  • when you move it without having the left button pressed it doesn't
  • if you minimize then restore the window the drawing should be preserved