//This is Exercise 1 through 3 at the end of Structure 1 in Processing /*I think it would be great to write some software that allows a user to manipulate shapes with their body. In other words, a visual theramin. Processing would read video input and have some sort of function that would enable it to respond to the fluctuation in light as someone moves before the camera, and that would translate a shape. Depending on how quickly the person moves, or how close they are to the camera, the shape will change accordingly. The following code has nothing to do with this idea.*/ void setup() { size(640, 480); strokeWeight(5); smooth(); } void draw() { background(0); int x = mouseX; int y = mouseY; rect(x/2,y/2,x-3,y+3); print("mouseX = " + x + " and "); println("mouseY = " + y); println("this rectanle is " + (x * y) + " pixels in size"); println(); }