Catcher catcher; Timer timer; Drop[] drops; int totalDrops = 0; void setup(){ size(400,400); smooth(); catcher = new Catcher(32); drops = new Drop[1000]; timer = new Timer(300); timer.start(); } void draw(){ background(255); catcher.setLocation(mouseX,mouseY); catcher.display(); if (timer.isFinished()){ drops[totalDrops] = new Drop(); totalDrops++; if (totalDrops >= drops.length){ totalDrops = 0; } timer.start(); } for (int i = 0; iheight+r*4){ return true; }else{ return false; } } void display(){ fill(c); noStroke(); for (int i = 2; itotalTime){ return true; }else{ return false; } } }