Homework 2

Create an interactive drawing program.

When a mouse button is pressed, or the mouse is moved with the button pressed, draw something at the location of the mouse. Preferably, a continuous stroke should be drawn as the mouse moves.

Allow the user to change the color being drawn. A minimal interface would be: hit "r" key to draw in red, "g" to draw in green, "b" to draw in blue.

Due: in class, Thursday, September 18.