xxxxxxxxxx
36
// self portrait with color
function setup() {
createCanvas(600, 400);
}
function draw() {
background(220);
stroke("black");
strokeWeight(2);
ellipse(300,200,100,200); //face
rect(300 - 25, 225,50, 20, 10); //mouth
arc(350,200, 50, 50, -PI / 2, PI /2); //left ear
arc(250, 200, 50, 50, PI / 2, -PI /2); //right ear
strokeWeight(8);
line(300,100,350,100); //hair 1
line(310, 110, 360, 110); //hair 2
strokeWeight(2);
triangle
(300, 300,
250, 250,
350, 250);
//mask
}