//very simple program of animating stairs

int i;

//a function to set up the general drawing parameters
void setup() {
  size(400, 400);
  background(255);
  smooth();
  i = 0;
  frameRate(8);
}

//the draw function - which will loop
void draw() {
  fill(random(0, 255), random(0, 255), random(0, 255));
  rect(i, i, 20, 10);
  i = i+10;
}