Follow the bouncing mouse.
17.1 Add the following line between void draw() and ellipse(....). What changed?
background(100,100,200);
17.2 Try this :
void setup(){
size(480, 120);
strokeWeight(4);
smooth();
stroke(0,102);
}
void draw(){
line(mouseX, mouseY, pmouseX, pmouseY);
}
pmouse stores the position of the mouse in the LAST frame. Now your dots become lines.
17.3 Try changing 'line' to 'ellipse' in the code from 17.2 above. Why does the circle change size and shape?