Schotter_Foster
<pre lang=”java”>
void setup(){
size(310, 560);
noFill();
noLoop();
}
// rows/columns
void draw(){
rectMode(CENTER);
int n = 0;
for (int y=0; y<24; y++){
for (int x=0; x<12; x++) {
// square transformations (n gets progressively higher by row)
pushMatrix();
translate(20*x + random(n++)/70+30, 20*y + random(n)/70+30);
rotate(PI*random(-n, n)/1000);
rect(15, 15, 20, 20);
popMatrix();
}
}
}
</pre lang=”java”>
Comments Off on Schotter_Foster