This page will contain the code examples from the Processing Lessons, also discussed in class.
Lesson 1
No code examples
Lesson 2
Simple drawing and mouse following example
Lesson 3
No code examples (PICNIC excursion)
Lesson 4
Animation with variables example
Lesson 5
Lesson 9
Multiple lines not looping
Multiple lines still not looping
Multiple lines with while loop
While loop with mouse interaction
Lesson 10
Lesson 11
Big white dot
A class called Spot
Spot can draw itself
Spot Constructor
Spot borrows bouncing ball behavior
Spot and Sketch gets Seperated
Object Oriented Programming with 3D tile
More Object Oriented Programming with more 3D tiles
Array with Objects
Lesson 12
Bar Graph Example from an Array
Read the article on multidimensional arrays at the processing website.
Extra:
Storing Mouse Data (example from the blue Processing book, p.306)
Drawing a Mouse Trace (optimized and extended example from above, p.308)