xxxxxxxxxx
44
function setup() {
createCanvas(400, 400);
}
function draw() {
background('#2F9599');
fill('#ffffff')
circle(200, 230, 150); //body
arc(200, 160, 110, 120, PI, TWO_PI, CLOSE); //head
stroke('#E67E22')
strokeWeight(2)
line(160, 120, 240, 120); //forhead line
strokeWeight(1)
stroke('#000000')
line(173, 160.5, 228, 160.5); //neck line
stroke('#E67E22')
fill('#000000')
circle(200, 129, 20); //the eye
fill('#000000')
circle(185, 145, 5);
fill('#ffffff')
circle(215, 145, 11); //two little circles on the face
//antennas
rect(190,80,3,20); //smaller one
rect(200,70,1,30);
//circles on the body
//--------------------
fill('#E67E22')
circle(200, 230, 68);
fill('#C1B8B0')
circle(200, 230, 20); //middle circles
fill('#E67E22')
arc(200, 298, 60, 40, PI, TWO_PI, OPEN);
arc(132, 230, 40, 60, PI + HALF_PI, HALF_PI, OPEN);
arc(268, 230, 40, 60, HALF_PI, PI + HALF_PI, OPEN);
arc(200, 162.5, 60, 40, TWO_PI, PI, OPEN); //the 4 arcs
//-------------------
}