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

Are You Following Me?

Leave a comment

PImage p1;
PImage p2;
PImage bg;

int ai_x=50;
int ai_y=50;

void setup(){
size(1043,572);
bg=loadImage(“map.png”);
p1=loadImage(“me.png”);
p2=loadImage(“followers.png”);
}
void moveAI(){

if(ai_x < mouseX){
ai_x += 2;
}
if(ai_x > mouseX){
ai_x -= 2;
}
if (ai_y < mouseY){
ai_y+=2;
}
if (ai_y > mouseY){
ai_y-=2;
}
}
void draw(){
moveAI();
background(bg);

image(p1, mouseX-10,mouseY-10,70,70);
image(p2, ai_x-10, ai_y-10, 70,41);

//red rectangle
//fill(255,0,0);
//rect(ai_x-10,ai_y-10,20,20);

//green rectange
//fill(0,255,0);
///rect(mouseX-10, mouseY-10,20,20);
}

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