xxxxxxxxxx
24
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
noFill();
strokeWeight(10);
stroke('black')
rectMode(CENTER);
let w = 100;
let h = 100;
push();
translate(width/2, height/2);
rect(-w/2,-h/4,1,h/2);
arc(0,0,w,h,0,PI )
rect(w/2,-h/4,1,h/2);
pop();
}