//draws lines, ellipses, and rectangles with some random values //over time more shapes are added void setup(){ size(400,400); frameRate(30); } void draw(){ for(int x=50;x<400;x+=25){//x is from 50 to 400 by 25s float y=random(50,150);//y is a random from 50 to 100 float z=random(50,150); if(x>100){//when x is greater than 100 if(x<300){//when x is greater than 100 and less than 300 ellipse(z,y*1.5,36,36);//draw an ellipse delay(500); }else{//when x is greater than 100 and greater than 300 line(y+z,y,y+10,z+25);//draw a line with random coordinates } }else{//when x is less than 100 rect(z+30,z+50,y+10,y+10);//draw rectangle } } }