Code as creative process - Atmosferas/LIS - October 2004
Day 2: Animation & interaction - slide 05
 


Processing essentials 3

- Processing file structure
- Exporting applets


Animation

- New program structure: setup() and loop()
- framerate()
- mouseX, mouseY, pmouseX, pmouseY

- Linear motion
- Bounce / wrap around
- Circular motion
- Moving with speed and direction

- Using states to control animation


Exercises

All exercises should be 400x400 pixels.

AN01: Create an animation with two objects, one moving in linear motion and the other in circular motion. Use the mouse position as an input, for example to control the speed.

AN02: Create one or more animated object(s) moving with speed and direction. Use states to randomly change speed and direction.
 
Lisbon, 2004.1011 - Marius Watz
Back to index - Next slide