kjwu_DES-INV-23-Creative-Programming-and-Electronics/Summer 2019/Exercise03_BallsDemo/Exercise03_BallsDemo.pde


Ball[] balls = new Ball[20];

void setup(){
  size(500,500);
  for(int i= 0 ; i < balls.length ; i++){
    balls[i] = new Ball();
  }
}

void draw(){
  background(100);
  
  for(int i= 0 ; i < balls.length ; i++){

    balls[i].update();
    balls[i].display();
  }

}
