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

Flashing Lights & Moving Objects

Leave a comment

float w = 800;
float h = 800;
float circlesize =50;

float rectX=0;
float rectY=height/2;
float rectW = 50;
float rectH =50;
float rectSpeed = 1;

float Growth = 2;

float ellipseX=width/2;
float ellipseY=0;
float eSize = 50;
float eSpeed = 6;

color r = color(100,0,0);
color green = color(0,255,0);
color redish = color(200,0,0);
color yellow = color(200,200,0);
color b = color(0,0,255);
color black = color(0,0,0);
color white = color(255,255,255);
color pizza = color(100,100,0);

//PImage img;

float x= 400;
float y= 400;
float cw = 150;

String s = “I have to do some”;

void setup(){
size(400,400);
noStroke();
background(white);
frameRate(6);
//img = loadImage(“frog.png”);
}
void draw(){
float r = random(1,255);
float green = random(1,255);
float b = random(1,255);
fill(r,green,b);
ellipse(mouseX,mouseY, cw,cw);
//background(white);
strokeWeight(4);
stroke(pizza);
fill(r);
ellipse(mouseX,mouseY, 50, 50);
line(mouseX,mouseY, pmouseX,pmouseY);
//image(img,mouseX,mouseY, 10,10);
rect(0,height/2, 50, 50);
ellipse(width/2, 0, 6, 50);

textSize(24);
text(“Homework!”,50,100);
text(s,100,50);
rectX = rectX + rectSpeed;
ellipseY = ellipseY + eSpeed;

rectW = rectW + Growth;
eSize = eSize + Growth;

}
void mousePressed(){
fill(yellow);
ellipse(mouseX,mouseY, 50, 50);

}

void keyPressed(){
//background(green);
println(key);
}

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