Ball [] balls = new Ball[105]; void setup(){ size(800,200); smooth(); frameRate(24); for (int i = 0; i < balls.length; i++){ balls [i] = new Ball(color(random(255),random(255),random(255)),random(800),random(height/2)); } } void draw(){ background(100); for (int i = 0; i < balls.length; i++){ balls[i].move(); balls[i].display(); } }