xxxxxxxxxx
size(500, 1000);
background(255);
float t=0;
float y;
float x;
float r = 0.01;
//straight row of squares
for (x = 0; x<500; x=x+50)
{
rect(x, 0, 50, 50);
}
//rows of squares descending, with each rowthe rotation increases
for (y=50; y<1000; y=y+50)
{
r=r + 0.01;
for (x = 0; x<500; x=x+50) {
rotate(random(-r, r));
rect(x, y, 50, 50);
resetMatrix();
}
}