xxxxxxxxxx
49
function setup() {
createCanvas(400, 400);
angleMode(DEGREES);
strokeWeight(8);
}
function draw() {
background(220);
flush(80);
drawCheek();
drawHeadbehind();
drawMouth();
drawEyes();
drawCheek(80);
drawCheek(320);
}
function drawHeadbehind() {
fill(255);
circle(200, 200, 300);
}
function drawEyes() {
ellipse(150, 150, 40, 100);
ellipse(250, 150, 40, 100);
}
function drawMouth() {
arc(200, 225, 200, 160, 0, 180, CHORD);
}
function flush(y) {
//noStroke();
fill(180,0,0);
circle(110, y, 80);
circle(290, y, 80);
}
function drawCheek(x){
let i = 0;
while(i<4){
fill(255,0,0,50);
circle(x,210,10+30*i);
i++;
}
}