• Processing
  • Processing
  • Processing
  • Processing
  • Processing
  • Processing

Processing

int i = 0;
float r = random(0, 255);

void setup() {
background(180);
size(1200, 1200);
stroke(0);
frameRate(50);
}

void draw() {

stroke(map(i, 0, 1199, 0, 255));

line(0, 0, i, 1199);
line(0, 0, 1199, i);

line(1199, 0, 0, i);
line(0, 1199, i, 0);

line(1199, 1199, i, 0);
line(1199, 1199, 0, i);

i ++;

println(i);

if (frameCount >= width) noLoop();
if (frameCount %200 == 0) saveFrame(“HollowayW01_to_3d_with_plane_###.tif”);
//if (frameCount == 1200) saveFrame(“HollowayW01.1_###.tif”);

if (frameCount %50 ==0) {
fill(map(r, 0, 1200, 255, 0), 0,
map(r, 0, 1200, 0, 255), 5);
rect(0, 0, 1199, 1199);
}
}

// if (keyPressed);
// if (key == ‘s’) {
// saveFrame(“HollowayW_a01_trial_####.tif”);
//if (frameCount == 1200) saveFrame(“HollowayW01.1_###.tif”);
//}
//}

Date: 2012 Client: Texas Tech University Skills: Art