xxxxxxxxxx
Ball b1 ;
Ball b2 ;
Ball b3 ;
void setup(){
size(500,500);
b1 = new Ball(15,20);
b2 = new Ball(15,20);
b3 = new Ball(9,25);
background(0);
}
void draw(){
b1.display(255,255,255);
b1.move(0.3,5);
b1.bounce();
b2.display(255,220,200);
b2.move(0.18,6);
b2.bounce();
b3.display(255,180,160);
b3.move(0.15,7);
b3.bounce();
}