xxxxxxxxxx
50
function setup() {
createCanvas(400, 400);
}
function draw() {
background("#D7F5F1");
//background floor
fill("#10830A");
noStroke();
rect(0,300,400);
//background sky
fill("yellow");
noStroke();
circle(290,75,70);
fill(300);
var y = 100;
var w = 30;
circle(100,y,w);
circle(120,y,w);
circle(140,y,w);
circle(120,83,w);
circle(260,160,w);
circle(240,176,w);
circle(260,176,w);
circle(280,176,w);
//floor obstacle
fill("black");
ellipse(190,340,130,40);
//me
var x = mouseX
var y = mouseY
stroke("black");
fill("#FBDADA");
circle(x,y,40); //x32 y227
fill("#D36AF7");
triangle(x-20,y+6,x-20,y-18,x+20,y-22); //12,12,50
fill("#6D099C");
rect(x-25,y+23,50,70,40); //7
fill("black");
arc(x,y+113,30,30,PI,PI-PI); //32
}