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

Processing Art

Leave a comment

screen-shot-2016-09-20-at-4-08-58-pm

And here is my code:

int n=1;
float w=115;
float y=115;

//grass
color a=color (8,121,72);
//sun
color b=color(255,213,0);
//sky
color c=color(186,255,255);
//cloud
color d=color(255,255,255);
//dino
color e=color(27,255,50);
//asteroid
color f=color(112,56,0);

void setup(){
size(500,400);
background(c);
stroke(d);
}
void draw(){
//astroid

background(c);

//grass
fill(a);
rect(0,300,500,400);

//sun
fill(b);
ellipse(450,50,50,50);

//clouds
fill(d);
ellipse(200,70,100,50);
ellipse(400,150,100,50);
ellipse(70,160,100,50);

//dinosaur
noStroke();
fill(e);
rect(255,175,30,100);
ellipse(250,170,70,40);
rect(260,265,25,70);
rect(350,265,25,70);
triangle(380,250,380,270,480,300);
ellipse(320,265,150,60);
rect(270,270,25,70);
rect(360,270,25,70);

//asteroid
fill(f);
ellipse(mouseX,mouseY,50,50);
}

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