let x=75;
let y=25;
function setup(){
createCanvas(500,500);
background(255);
noStroke();
}
function draw(){
if(keyIsPressed){
if(keyCode==37){
x-=5;
}
else if(keyCode==39){
x+=5;
}
else if(keyCode==38){
y-=5;
}
else if(keyCode== 40){
y+=5;
}
}
background(255);
fill(255,127,80);
ellipse(x,y,40);
fill(0);
rect(0,0,50,250);
rect(0,250,150,50);
rect(100,0,50,200);
rect(150,150,200,50);
rect(200,250,50,250);
rect(0,350,200,50);
rect(300,0,50,300);
rect(300,350,250,50);
rect(300,450,250,50)
rect(400,0,50,350)
rect(300,0,150,50)
}
console