//simple program to draw multiple rectangles //set up the drawing size(400, 400); background(0); //declare a loop variable int i; i=0; //loops to draw the stairs, and rows of the sketch while(i < 400) { fill(random(0, 255), random(0, 255), random(0, 255)); rect(i, i, 20, 10); i = i+10; } i = 0; while(i < 400) { fill(random(0, 255), random(0, 255), random(0, 255)); rect(400-i, i, 20, 10); i = i+10; } i = 0; while(i < 400) { fill(random(0, 255), random(0, 255), random(0, 255)); rect(200, i, 20, 10); i = i+10; } i = 0; while(i < 400) { fill(random(0, 255), random(0, 255), random(0, 255)); rect(i, 200, 20, 10); i = i+20; } saveFrame("stairs.jpg");