//Initializing and declaring our array of object Ball and object orbs Ball[] balls = new Ball[100]; Orb[] orbs = new Orb[1]; void setup() { size(600, 600); for (int i = 0; i < balls.length; i++){ balls[i] = new Ball(random(0, width), random(0, height), random(5, 50), random(5,50), random(0.5, 2), color(random(255),random(255),random(255))); } //} for (int i = 0; i < orbs.length; i++){ orbs[i] = new Orb(random(0, width), random(0, height), random(5, 50), random(5, 50), random(0.75, 1.5), color(random(255),random(255),random(255))); } } void draw() { background(255); fill(255,60); noStroke(); rectMode(CENTER); rect(width/2, height/2, width, height); for (int i = 0; i < balls.length; i++){ balls[i].display(); } for (int i=0;i