Week 2 code examples
Examples used in class today:
What are variables?
Basic types of data (int, float, boolean).
Putting background() in setup() vs. draw()
Manipulating variables.
Linear movement.
Rotational movement.
Looping and bouncing movement.
Random movement.
Conditional if/else statements.
Basic mouse input.
Creating frame-based timers.