Part1:
int r = 255;
int g = 255;
int b = 255;
boolean sunny = false;
float x = 12.0;
float z;
z = x + 25;
float y;
y = z + x;
Part2:
int ellipfishX = 400;
int ellipfishY = 70;
int ellipfishZ = 40;
int triS = 600;
float w = random(60, 100);
float g = random(450, 520);
void setup(){
size(600, 600);
background(10, 192, 255);
noStroke();
fill(50, 30, 245);
rect(0, 300, 600, 150);
fill(8, 108, 18);
rect(0, 450, 600, 150);
}
void draw(){
fill(247, 240, 5);
ellipse(500, 100, 100, 100);
smooth();
stroke(247, 240, 5);
line(435, 40, 560, 160);
line(560, 40, 435, 160);
strokeWeight(2);
line(500, 20, 500, 175);
line(415, 100, 580, 100);
noStroke();
ellipse(500, 100, 100, 100);
fill(21, 64, 3);
}
void mousePressed(){
fill(247, 114, 5);
ellipse(ellipfishX, ellipfishX, ellipfishY, ellipfishZ);
triangle(350, 370, 380, 400, 350, 430);
fill(255);
ellipse(425, ellipfishX, 7, 7);
fill(0);
ellipse(425, ellipfishX, 3, 3);
}
void keyPressed(){
fill(255);
ellipse(80, 70, 100, 40);//first cloud
ellipse(120, 85, 100, 40);//first cloud
ellipse(290, 70, 100, 40);
ellipse(330, 85, 100, w);
fill(2, 70, 37);
triangle(530, g, 525, triS, 535, triS);
triangle(520, g, 515, triS, 525, triS);
triangle(510, g, 505, triS, 515, triS);
triangle(500, g, 495, triS, 505, triS);
triangle(490, g, 485, triS, 495, triS);
triangle(480, g, 475, triS, 485, triS);
triangle(470, g, 465, triS, 475, triS);
triangle(460, g, 455, triS, 465, triS);
triangle(450, g, 445, triS, 455, triS);
triangle(440, g, 435, triS, 445, triS);
triangle(430, g, 425, triS, 435, triS);
triangle(420, g, 415, triS, 425, triS);
triangle(410, g, 405, triS, 415, triS);
}
void mouseDragged(){
fill(192, 11, 216);
ellipse(mouseX, mouseY, 50, 50);
}