Code
void setup() {
size(400,400);
smooth();
}
void draw() {
background(255);
stroke(0);
for (int n=0; n<10; n++) {
line(width-mouseX+(n*n),height-mouseY+(5*n),width-mouseY-(5*n),height-mouseX-(n*n));
}
}
011 -- 10 Lines: Iteration & Interaction (Due Monday 9/18)
Statement:Develop a composition in which ten (straight) lines respond to the position and/or movements of the cursor. Advanced students: can you create a reactive curve by connecting the 10 segments end-to-end?
Restrictions:
The composition should be 400x400 pixels.
The only allowable colors are black and white (no grays).
cuasi 3d line array