PROCESSING__ MY FIRST MOVIE WITH PROCESSING

THE IMAGE

first0001 first0014 first0025 first0118

THE VIDEO

THE CODE



void setup(){
size(800,400);
frameRate(5);
colorMode(HSB,100);
noStroke();
background(30,40,60);

}

int s=5;
int y=0;
int h=10;
void draw(){

stroke(255);
fill(50, 97, 89, 30);
triangle(width/2, 0, 0, height, width, height);

fill(100,69,255,30);
triangle(width/2, height, 0,0, width, 0);

for(int x=0; x<width; x=x+s){
fill(random(100),50,100);
rect(x,y,s,s);
}

for(int x=0; x<width; x=x+s){
fill(random(100),50,100);
rect(x,height/2,s,s);
}

for(int x=0; x<width; x=x+s){
fill(random(100),50,100);
rect(x,height-5,s,s);
}

for(int x=40; x<width; x=x+s){
fill(random(255));
rect(height-30, x,s,s);
}

for(int x=100; x<width; x=x+s){
fill(random(255));
rect(height-60, x,h,h);
}

for(int x=30; x<width; x=x+s){
fill(random(255));
rect(height-90, x,s,s);
}
for(int x=0; x<100; x=x+s){
fill(random(255));
rect(height+30, x,s,s);
}

for(int x=0; x<250; x=x+s){
fill(random(255));
rect(height+60, x,s,s);
}

for(int x=0; x<width; x=x+s){
fill(random(255));
rect(height+90, x,h,s);
}

stroke(random(255));
rect(mouseX-10,mouseY-10,mouseX+10, mouseY+10);

};

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

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