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

Conditional Processing

Leave a comment

void setup (){
size(800,800);
}
void draw(){
background(0);

if (mouseX >300){
background(100,100,100);
}
if (mouseX >500){
background(0,100,0);
}

stroke(255);
line(300,0,300, height);

line(500,0,500, height);
}

Advertisements

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s