// Dartmouth CS 2, Winter 2009, Chris Bailey-Kellogg // Notes 10 | Sketch 6 Orbiter ball; void setup() { size(400,300); smooth(); noStroke(); background(0); ball = new Orbiter(width/2,height/2); } void draw() { fill(0,10); rect(0,0,width,height); ball.draw(); ball.update(); } void keyPressed() { if (key=='a') { // orbit angle step size if (ball.da > 5) ball.da-=5; } else if (key=='A') ball.da+=5; else if (key=='o') { // orbit size if (ball.o > 5) ball.o-=5; } else if (key=='O') ball.o+=5; }