Code

void setup (){
size(400, 400);}


void loop (){
background (0);  
stroke(255);
strokeWeight(1+ mouseX-mouseY);
line(mouseX, mouseY, 85, 75); 
}

006 -- Interaction and Iteration: One Line

Statement:For assignments 006-009, you may not use the mouse button. Restrict yourself to black and white.

Develop a composition which in which one (straight) line responds to the position of the cursor.

hide statement