// Dartmouth CS 2, Winter 2009, Chris Bailey-Kellogg // Notes 10 | Sketch 4 Ball ball; // the bouncing ball; created in setup() void setup() { size(400,300); smooth(); noStroke(); background(0); ball = new Ball(width/2,height/2, 5); } void draw() { fill(0,10); rect(0,0,width,height); ball.draw(); ball.update(); }