xxxxxxxxxx
82
function setup() {
createCanvas(400, 600);
}
let bclvec = 15;
function draw() {
//color log
let apricot = color(252,217,190);
let chartre = color(214,247,76);
let vistab = color(140,158,255);
let tomat = color(240,96,56);
background(vistab);
//background sliding line pattern;
if (bclvec <= 450) {
stroke(255);
strokeWeight(50);
line(bclvec, 0, bclvec, 600);
bclvec++;
stroke(255);
strokeWeight(20);
line(bclvec+100, 0, bclvec+100, 600);
bclvec++;
} else {
bclvec = 15;
}
//head contour
noStroke();
fill(50);
ellipse(200,200,310,310);
ellipse(200,350,260,210);
fill(tomat);
ellipse(200,200,300,300);
ellipse(200,350,250,200);
//body
fill(chartre);
strokeWeight(5);
stroke(50);
ellipse(200,570,350,400);
//face shape
fill(apricot);
noStroke();
rect(100,100,200,300,50);
//eyes
fill(0);
stroke(20);
ellipse(150,250,50,25);
ellipse(250,250,40,35);
//eyebrow
noFill();
strokeWeight(5);
arc(130, 200, 100, 50, 0, 90, OPEN);
arc(235, 220, 100, 50, 180,220, OPEN);
//mouth
fill(0);
noStroke();
triangle(150, 350, 208, 330, 240, 355);
//hair stroke
noFill();
strokeWeight(20);
stroke(tomat);
curve(180, 140, 170, 100, 200, 170, 120, 190);
curve(200, 100, 180, 100, 240, 170, 160, 180);
curve(220, 100, 200, 100, 260, 170, 180, 180);
curve(240, 100, 220, 100, 270, 170, 180, 180);
curve(300, 120, 240, 100, 300, 170, 200, 180);
curve(300, 190, 260, 100, 300, 150, 200, 180);
curve(100, 120, 150, 100, 120, 170, 100, 140);
curve(80, 120, 130, 100, 100, 170, 100, 150);
curve(180, 140, 120, 100, 100, 160, 140, 150);
}