Wednesday, August 10, 2011
Doucé
// just type here
// and click "save" when your done
void setup() {
size(500,500);
}
void draw() {
background(20,mouseX,mouseX);
fill(20,40,150);
// (length left,angle, length right, angle
// line(1000,50,200,8);
//day
fill (255, 204, 77, map(mouseX, 0,width, 0,255));
noStroke();
ellipse(56, 46, 200, 200);
fill(255,255,255,map(mouseX, 0,width, 0,255));
// cloud 1
ellipse(300, 300, 80, 80);
ellipse(250, 300, 80, 80);
ellipse(200, 300, 80, 80);
//cloud 2
ellipse(230, 180, 60, 60);
ellipse(190, 180, 60, 60);
ellipse(150, 180, 60, 60);
//cloud 3
ellipse(370, 60, 60, 60);
ellipse(330, 60, 60, 60);
ellipse(290, 60, 60, 60);
//cloud 4
ellipse(450, 180, 60, 60);
ellipse(410, 180, 60, 60);
// night
pushMatrix();
fill (153, 153, 255, map(mouseX, 0,width, 255,0));
ellipse(475, 46, 100, 100);
// night
fill (245, 245, 245, map(mouseX, 0,width, 255,0));
translate(width/2, height/2);
rotate(PI/3.9);
rect(-45, -45, 15, 15);
rect(50, 60, 15, 15);
rect(-120,-120, 15, 15);
rect(-180, -53, 15, 15);
rect(160, -45, 15, 15);
rect(80, -70, 15, 15);
rect(-10, 93, 15, 15);
rect(-130, 100, 15, 15);
popMatrix();
// sea
pushMatrix();
fill (0, 77, 153, map(mouseX, 0,width, 255,0));
noStroke();
rect(-50,map(mouseX, 0,width, 378,400),700,400);
fill (0, 0, 255, map(mouseX, 0,width, 0,255));
noStroke();
rect(-50,map(mouseX, 0,width, 378,400),700,400);
popMatrix();
//waves
noStroke();
triangle(0,401, 71,map(mouseX, 0,width, 339,361), 159,401);
triangle(154,401, 231,map(mouseX, 0,width, 339,361), 292,399);
triangle(293,400, 331,map(mouseX, 0,width, 339,361), 378,399);
triangle(378,400, 442,map(mouseX, 0,width, 339,361), 498,399);
//wave night
fill (0, 77, 153, map(mouseX, 0,width, 255,0));
noStroke();
triangle(0,401, 71,map(mouseX, 0,width, 339,361), 159,401);
triangle(154,401, 231,map(mouseX, 0,width, 339,361), 292,399);
triangle(293,400, 331,map(mouseX, 0,width, 339,361), 378,399);
triangle(378,400, 442,map(mouseX, 0,width, 339,361), 498,399);
// idk
println("x=" + mouseX + "y=" + mouseY);
}
// and click "save" when your done
void setup() {
size(500,500);
}
void draw() {
background(20,mouseX,mouseX);
fill(20,40,150);
// (length left,angle, length right, angle
// line(1000,50,200,8);
//day
fill (255, 204, 77, map(mouseX, 0,width, 0,255));
noStroke();
ellipse(56, 46, 200, 200);
fill(255,255,255,map(mouseX, 0,width, 0,255));
// cloud 1
ellipse(300, 300, 80, 80);
ellipse(250, 300, 80, 80);
ellipse(200, 300, 80, 80);
//cloud 2
ellipse(230, 180, 60, 60);
ellipse(190, 180, 60, 60);
ellipse(150, 180, 60, 60);
//cloud 3
ellipse(370, 60, 60, 60);
ellipse(330, 60, 60, 60);
ellipse(290, 60, 60, 60);
//cloud 4
ellipse(450, 180, 60, 60);
ellipse(410, 180, 60, 60);
// night
pushMatrix();
fill (153, 153, 255, map(mouseX, 0,width, 255,0));
ellipse(475, 46, 100, 100);
// night
fill (245, 245, 245, map(mouseX, 0,width, 255,0));
translate(width/2, height/2);
rotate(PI/3.9);
rect(-45, -45, 15, 15);
rect(50, 60, 15, 15);
rect(-120,-120, 15, 15);
rect(-180, -53, 15, 15);
rect(160, -45, 15, 15);
rect(80, -70, 15, 15);
rect(-10, 93, 15, 15);
rect(-130, 100, 15, 15);
popMatrix();
// sea
pushMatrix();
fill (0, 77, 153, map(mouseX, 0,width, 255,0));
noStroke();
rect(-50,map(mouseX, 0,width, 378,400),700,400);
fill (0, 0, 255, map(mouseX, 0,width, 0,255));
noStroke();
rect(-50,map(mouseX, 0,width, 378,400),700,400);
popMatrix();
//waves
noStroke();
triangle(0,401, 71,map(mouseX, 0,width, 339,361), 159,401);
triangle(154,401, 231,map(mouseX, 0,width, 339,361), 292,399);
triangle(293,400, 331,map(mouseX, 0,width, 339,361), 378,399);
triangle(378,400, 442,map(mouseX, 0,width, 339,361), 498,399);
//wave night
fill (0, 77, 153, map(mouseX, 0,width, 255,0));
noStroke();
triangle(0,401, 71,map(mouseX, 0,width, 339,361), 159,401);
triangle(154,401, 231,map(mouseX, 0,width, 339,361), 292,399);
triangle(293,400, 331,map(mouseX, 0,width, 339,361), 378,399);
triangle(378,400, 442,map(mouseX, 0,width, 339,361), 498,399);
// idk
println("x=" + mouseX + "y=" + mouseY);
}
comments

Add a comment: