xxxxxxxxxx
53
function setup() {
createCanvas(400, 400);
}
function draw() {
strokeWeight(2);
background(200,255,225);
stroke(0);
fill (255,165,0)
ellipse(200,120,120,1700);
//Head
fill(100, 176, 250);
ellipse(200,120,140,170);
//Hands
fill(255,0,0);
ellipse(110,180,70,70);
ellipse(300,180,70,70);
//Legs
fill(255,0,0);
ellipse(160,265,50,50);
ellipse(240,265,50,50);
//Body
fill(138, 43, 226);
ellipse(200,180,190,170);
//Mouth
stroke(0);
line(180,85,220,85);
//Eyes
fill(255);
ellipse(180,60,20,25);
ellipse(220,60,20,25);
strokeWeight(5);
point(180,60);
point(220,60);
let col = color(90,234,0); //use color instead of fill
button = createButton("Click to Begin!");
button.style('font-size', '30px');
button.style('background-color', col);
button.position(100,320);
}