Schotter
The .JS version:
the Jar version:
the OpenFrameworks version:
code:
public final int width = 20;
public final int height = 20;
public void setup() {
size(400,500);
background(0xffffff);
noFill();
noLoop();
}
public void draw() {
for(int x = 0; x < 12; x++) {
for(int y = 0; y < 20; y++) {
translate(x*width,y*height);
float random = random((float)y/5);
rotate((random(2f)-1f)*random*random);
rect(0,0,width,height);
resetMatrix();
}
}
}
Comments Off on Schotter