Schotter: Processing

by cdoomany @ 1:53 am 12 January 2011

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();
}
}

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2022 Interactive Art & Computational Design / Spring 2011 | powered by WordPress with Barecity