Description: a line is rising from the bottom behind a ball. When it reaches the two upper balls, the small ball knocks out the large ball and the frame disappears. (background color turns > page color -black-.)

Source code: 
void setup()
{
  size(200, 200);
  stroke(255);

  framerate(40);
}

float y;

void loop() {
  background(199);
  ellipse (100, 50, 50,50);
  ellipse (0,0,100,100);
  y = y-1 ;
if (y < 40) { y = height; }
  line(25, y, width-25, y);
  if (y < 100)
  background(270);
  ellipse (100, 100, 100,100);
  ellipse (25,0,50,50);

}
Built with Processing