In you Ball class add in :
public class Ball {
color ballFill;
Ball (color bF) {
ballFill = bF;
}
void display() {
fill(ballFill);
}
}
// and when creating a Ball
balls[i] = new Ball(random(0.1, 5), 0, 0, color(random(255), random(255), random(255));