// Example: How to use the Ball class
Ball[] balls;
void setup() {
size(800, 600);
background(255);
balls = new Ball[10];
for (int i = 0; i < balls.length; i++) {
balls[i] = new Ball(random(5, 15));
}
} // setup()
void draw() {
background(255);
for (int i = 0; i < balls.length; i++) {
balls[i].move();
balls[i].display();
}
} // draw()