Animate Your Figure

Bringing Your Figure to Life

Using your figure from Draw a Figure, add the following functionality:

  1. Alter it to use the setup() and draw() routines.
  2. Make it responsive to mouse movement and button presses. Be creative! Perhaps pressing the mouse button causes your figure to blink or open its mouth.

You may use the strategies outlined in the Movement exercise.


Submit the .pde of your Processing sketchbook.

Reference Starting Points

Functions Variables
setup() mousePressed
draw() mouseX
background() mouseY