xxxxxxxxxx
function setup() {
createCanvas(500, 500);
rectMode(CENTER);
}
function draw() {
background(205, 230, 250);
//body
strokeWeight(3);
fill(99,189,164);
rect(295, 250, 200, 275, 20);
rect(250, 250, 200, 275, 20);
fill (217,255,234);
rect(250, 190, 175, 125, 20);
//eyes
fill(0,0,0)
circle(200, 180, 10);
circle(300, 180, 10);
//mouth
noFill();
angleMode(DEGREES);//use degrees for arc
arc(250, 200, 30, 20, 0, 180);
//buttons
fill(38, 74, 64);
rect(200,280, 70,10);
fill(255,236,71);
rect(180, 320, 10, 30);
rect(180, 320, 30, 10);
strokeWeight(6);
line(165, 350, 175, 350);
line(185, 350, 195, 350);
strokeWeight(3);
fill(34, 60, 140);
circle(300, 280, 10);
fill(98,175,183);
triangle(250, 315, 260, 295, 270, 315);
fill(89, 235, 113);
circle(290, 305, 20);
fill(242,5,83);
circle(280, 345, 30);
//name on side
fill(0,0,0);
textSize(40)
textStyle(BOLD);
text('B', 360, 210)
text('M', 360, 260)
textSize(40)
text('O', 360, 310)
//speaker
circle(373, 150, 1);
circle(385, 150, 1);
circle(360, 150, 1);
circle(379, 160, 1);
circle(369, 160, 1);
circle(369, 140, 1);
circle(379, 140, 1);
}