xxxxxxxxxx
107
function setup() {
createCanvas(500, 500);
//blendMode(): I couldn't find a proper use for blendMode() here because all the available filters would somewhat obscure the image but I played around and familiarized myself with it.
}
function draw() {
background(100,149,237)
stroke(0);
strokeWeight(8);
//ears
push()
fill(151)
arc(200,165,30,70,PI,TWO_PI)
arc(300,165,30,70,PI,TWO_PI)
pop()
//body
ellipse(250,250,200,220)
//feet
arc(200,360,40,30,PI,TWO_PI,CHORD)
arc(300,360,40,30,PI,TWO_PI,CHORD)
//toes
push()
stroke(219,112,147)
strokeWeight(6)
point(190,360)
point(210,360)
point(290,360)
point(310,360)
pop()
//fur dividing line
push()
fill(151)
beginShape()
vertex(150,240)
bezierVertex(220,280,230,200,270,240)
bezierVertex(310,270,320,240,350,240)
bezierVertex(330,100,170,100,150,240)
endShape()
pop()
//eyes
push()
fill(255)
circle(220, 210,10);
circle(280, 210,10);
pop()
//mouth
arc(235,250,30,20,0,HALF_PI+QUARTER_PI)
arc(265,250,30,20,HALF_PI-QUARTER_PI,PI)
//nose
push()
stroke(219,112,147)
strokeWeight(5)
line(240,240,250,250)
line(250,250,260,240)
pop()
//seed
push()
fill(210,105,30)
ellipse(250,300,30,50)
pop()
//hands
push()
translate(width/2,height/2)
///left
push()
rotate(PI/4)
arc(20,50,20,30,PI,TWO_PI)
pop()
///right
rotate(-PI/4)
arc(-20,50,20,30,PI,TWO_PI)
pop()
//background patterns
push()
noStroke()
fill(255,250,102)
circle(0,120,180)
circle(480,400,150)
circle(100,430,80)
circle(360,-50,220)
circle(450,140,40)
pop()
}