INTERNET ART: networks, performative programming, and web as context

Find the Hidden Triangle

Leave a comment

sketch_160926ascreen
void setup(){
size(400,400);
background(0);
}

void draw(){
line(width/2,0,width/2,height);
line(0,height/2,width,height/2);

if (mouseX < width/2 && mouseY < height/4 && mousePressed){ background(0,0,255); color(0,255,255); line(width/2,0,width/2,height); line(0,height/2,width,height/2); triangle(30,90,35,70,40,80); } else if (mouseX > width/4 && mouseY > height/4){
background(0,255,0);
line(width/2,0,width/2,height);
line(0,height/2,width,height/2);
}
else {
background(0);
}
line(width/2,0,width/2,height);
line(0,height/2,width,height/2);
}

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s