Schotter: Processing
size(300,400);
smooth();
background(0);
noStroke();
fill(242,204,47,90);
rectMode(CENTER);
int x = 28;
int y = 44;
int rndm = 0;
int step = 90/y;
int w = width/x;
int h = height/y;
for (int j = 2;j < y;j++){
rndm += step;
fill(242,204,j * 20,j + 90);
for (int i = 2;i < x;i++) {
pushMatrix();
float z = random(-rndm/2, rndm/2);
translate(i*w – w/2 + z/3,j*h – h/2 + z/3);
rotate(radians(z));
rect(0,0,w,h);
popMatrix();
}
}
Comments Off on Schotter: Processing