infinity+1

000_screen-0005

/* Riley generator
* (c) Ed Parham 2015
*/void setup() {
size(1500, 1200);
smooth(4);
noLoop();
noStroke();
}

void draw() {
background(255);
int num_x = (int) (20);
int num_y = (int) (21);

float cellsize_x = (width / (float)num_x);
float cellsize_z = (height/ ((float)num_y)+3.5);

for (int i=0; i<num_x; i++){
for (int j=0; j<num_y; j++){

fill(random(255),random(255),random(255),(200));
quad(((i*cellsize_x)+cellsize_x),(-cellsize_z+(j*(cellsize_z))),
((i*cellsize_x)+cellsize_x),(-cellsize_z+((j*(cellsize_z))+(cellsize_z))),
(i*cellsize_x),(-cellsize_z+(j*(cellsize_z)+(cellsize_z)+(cellsize_z))),
(i*cellsize_x),(-cellsize_z+((j*(cellsize_z)+(cellsize_z)))));
}
}
}

000_screen-0004 000_screen-0003 000_screen-0002 000_screen-0001

Nataraja 1993 Bridget Riley born 1931 Purchased 1994 http://www.tate.org.uk/art/work/T06859

Nataraja, Bridget Riley, 1994

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: