xxxxxxxxxx
23
const x = 75;
const y = 75;
const w = 250;
const h = 200;
const r = 40;
const cX = x + r;
const cY = y + r;
const dt = Math.PI / 8;
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
rect(x, y, w, h);
arc(cX, cY, 2 * r, 2 * r, PI, 3 * PI / 2);
push();
strokeWeight(4);
for (i = 0; i < 5; i++)
point(cX - r * cos(i * dt), cY - r * sin(i * dt));
pop();
}