xxxxxxxxxx
99
function setup() {
createCanvas(400, 400);
noStroke ()
}
function draw() {
background(0,0,215);
push ()
blendMode(SCREEN);
fill (51, 51, 204)
translate(width / 2, height / 2);
rotate(PI / 4.0);
rect(50, 60, 150, 150);
rect(10, 20, 150, 150);
rect(-30, -20, 150, 150);
rect(-70, -70, 150, 150);
rect(-100, -110, 150, 150);
rect(-140, -150, 150, 150);
rect(-180, -190, 150, 150);
rect(-220, -230, 150, 150);
pop()
blendMode(BLEND);
fill (255, 102, 255)
//leg1
rect(155,215,40,95,20)
//leg2
rect(205,215,40,95,20)
//arms
rect(110,155,30,35,20)
rect(260,155,30,35,20)
//Sweater
fill (0, 245, 0)
ellipse(200,200,115,135)
//sleeve1
rect(220,150,55,45,8)
//sleeve2
rect(125,150,55,45,8)
//bottom
rect(143,185,115,85,8)
//Ears
fill (255, 102, 255)
circle(160,75,40)
circle(240,75,40)
//Head
circle (200,105,90)
//eyes
fill (0,0,0)
circle (185,95,15)
circle (214,95,15)
//eyehighlights
fill (217, 217, 217)
circle (183,93,5)
circle (217,93,5)
//cheeks
fill (255, 153, 255)
circle (190,120,30)
circle (210,120,30)
// heart
fill (255,0,0)
quad(200, 180, 175, 205, 200, 230, 225, 205);
arc(188, 193, 35, 35, PI - QUARTER_PI, 0);
arc(213, 193, 35, 35, PI - QUARTER_PI, QUARTER_PI);
//heartpatch
fill (255,0,0)
circle(215,200,22)
//innerear
fill (255, 153, 255)
circle(160,75,15)
circle(240,75,15)
//bowknot
fill (255,0,0)
square(230,80,14);
square(220,70,14);
circle(232,82,12)
//nose
fill (0, 0, 0)
circle (200,105,10)
//nosehighlight
fill (217, 217, 217)
circle (203,104,2)
}