Reading for Wed. 8/26 discussion

for Wednesday read the following PDF:

What is Generative Art?

A link to the work of Joan Truckenbrod:

Joan Truckenbrod

Below is the Processing code for a basic drawing machine:

int i;

void setup() {
size(320, 240);
background(255);
fill(0);
noStroke();
i=10;
}

void draw() {
i=int(random(50));
if (keyPressed) {
if (key == ‘b’ || key == ‘B’) {
i++;
if (i>50) {
i–;
}
}

if (key == ‘v’ || key == ‘V’) {
i–;
if (i<0) {
i++;
}
}

if (key == ‘f’ || key == ‘F’) {
fill(255);
}

if (key == ‘d’ || key == ‘D’) {
fill(0);
}
}

if (mousePressed) {
ellipse(mouseX, mouseY, i, i);
}
}

Posted in intermediate