Watch Fun Programming [video 26]
Here is Mr. Fun’s Program:
size(400,300);
background(#6AA21E);
noStroke();
smooth();
float c=0;
while(c<100)
{
fill(random(255));
rect(200, 10, 50, 5);
fill(255,0,0);
rect(260, 10, 10, 5);
rotate(0.02);
c = c+1;
}
Modify his program to make your own interesting “rotated rectangle” pattern. Here is mine:
Show a mentor, mark the board and claim a prize!.