void setup() {
size(400,400);
}
void draw() {
background(2, 68, 113+(mouseX/2)); //turn from day to night
//moon
stroke(0);
fill(255);
arc(50, 50+pmouseX, 30, 30, 0, PI+QUARTER_PI);
//sun
noStroke();
fill(#F8FC0F);
ellipse(300, 400-pmouseX, 30, 30);
//drawing the hill the grave sits on
ellipseMode(RADIUS);
stroke(0);
fill(18, 142, 0);
noStroke();
arc(380,260,400,60,PI, TWO_PI);
//grave and gravestone
fill(#5A2C00);
rect (160, 230, 200, 50);
fill(#949595);
rect (330, 280, 50, -150);
//zombie
ellipse(270, pmouseX+200, 25, 25);
quad(260, pmouseX+210, 240, pmouseX+260, 300, pmouseX+260, 280, pmouseX+210); //make the zombie move into and out of the grave as the mouse moves
stroke(0);
line(200, pmouseX+255, 260, 255);
line(220, pmouseX+245, 245, 245);
fill(0);
ellipse(260, pmouseX+195, 2, 3);
fill(198, 11, 4);
rect(250, 210+pmouseX, 10, 15);
//otherside of the hill, hiding the grave
noStroke();
fill(18, 142, 0);
rect (0, 260, 410, 140);
//cloud
fill(255);
ellipse(450-pmouseX, 30, 35, 20);
ellipse(460-pmouseX, 50, 50, 25);
}