pressure sensor experiments [2/20]




Messed around with the code we got in class (it originally made a circle grow based on the pressure sensor) and ended up with an interesting, wing-like, sketch (and a bunch of other random neat stuff). Above are 4 screen shots of the thing in motion. Below is the last part of the code I modified from what we got in class.


void drawball(){
rectMode(RADIUS);
rectMode(RADIUS);
smooth();
stroke(0);
fill(0, 3);
rect(0, 0, width, height);
fill(100, 0, random(200), 20);
quad(width/2, height/2, width/2, val, width/2, width, val, 0);
}