void setup() {background(184,242,247);
size(900, 900);
strokeWeight(20);
stroke(159, 235, 153);
line(0, 0, 900, 900);
line(900, 0, 0, 900);
line(450, 0, 450, 900);
line(0, 450, 900, 450);
fill(159, 235, 153);
rect(100, 100, 700, 700);
noStroke();
fill(255,255,255);
pushMatrix();
translate(width*0.5, height*0.5);
rotate(frameCount / 50.0);
star(0, 0,380,420, 30);
popMatrix();
}
void draw() {
fill(255, 194,10);
stroke(255, 255, 255);
ellipse(450, 500, 540, 540);
ellipse(275, 230, 200, 200);
ellipse(625, 230, 200, 200);
strokeWeight(10);
fill(0, 0, 0);
ellipse(350, 500, 50, 100);
ellipse(550, 500, 50, 100);
arc(450, 600, 270, 180, 0, PI, CHORD);
fill(100,100,100);
textSize(20);
text("I'm a Lion.", 408, 580);
fill(255, 0, 0);
textSize(23);
text("color my hair 'brown'", 335, 630);
fill(0, 0, 0);
triangle(450, 500, 425, 550, 475, 550);
fill(94,66,13,150);
stroke(117,85,23,200);
rect(mouseX, mouseY, 55, 55, 7);
}
void star(float x, float y, float radius1, float radius2, int npoints) {
float angle = TWO_PI / npoints;
float halfAngle = angle/2.0;
beginShape();
for (float a = 0; a < TWO_PI; a += angle) {
float sx = x + cos(a) * radius2;
float sy = y + sin(a) * radius2;
vertex(sx, sy);
sx = x + cos(a+halfAngle) * radius1;
sy = y + sin(a+halfAngle) * radius1;
vertex(sx, sy);
}
endShape(CLOSE);
}