xxxxxxxxxx
/*-----
George Ness Schotter Lab
Using for(){} loops, rotate(), and translate()
to recreate Schotter's square drawing.
02 21 2017
Jayne Kennedy
-----*/
float r = 0;
size(500,1000);
background(255);
noFill();
rectMode(CENTER);
for(int x = 50; x < 500; x += 50){
r = 0;
for(int y = 50; y < 1000; y += 50){
float i = .1;
float j = y/45;
translate(x,y);
rotate(random(-r,r));
rect(random(-j,j),random(-j,j),50,50);
resetMatrix();
r += random(-i,i);
}
}