xxxxxxxxxx
/*
Katie Frank
Art 3001
Georg Nees code attempt
*/
int rows = 23; // number of rows
int columns = 12; // number of columns
int size = 20; //size of squares
float t; //translation
float r = 2; // rotatation
void setup() {
size(450, 700);
background(255);
smooth();
noFill();
noLoop();
stroke(0);
rectMode(CENTER);
}
void draw () {
for (int y = 1; y <=rows; y++) { //setting y up to
r = r + (y*2); //rotating the y each time
for (int x = 1; x<= columns; x++) {
pushMatrix(); //start your push matrix
t = random(r); //translating your x randomly
translate((x*size)+(t*.35),(y*size)+(t*.35));
rotate(radians(random(r)));
rect(x, y, size, size); //position xy and size was determined
popMatrix(); //pop to start over each time
}
}
}