Homework 3

DUE: Thursday, 24 September, in class

Create an interactive program with dynamically-added, moving objects.

The basic behavior is: whenever the user clicks a mouse button, or moves the mouse with a button pressed, a new object appears at the mouse location. The object should have random color and/or movement.

The motion should have some discernable pattern to it - the direction could change over time; the objects could start following the mouse; they could orbit the center of the window; etc.

Other possible features: use different mouse buttons to add different shapes (or ones with different behavior); animate the objects colors; have objects disappear after a certain amount of time; ...