Sunday, 18 September 2011

Spinning squares (Simple experiment 3)

Speed of rotation responds to distance between mouse and square. Click and hold to reverse the square shrinking or growing.




Used a custom function (with help from http://processing.org/learning/basics/variablescope.html) to create the second square, which works as a sort of target to keep the white square within.

No comments:

Post a Comment