🧑🎨 Draws a capsule.
x-coordinate of the first point
y-coordinate of the first point
x-coordinate of the second point
y-coordinate of the second point
radius of the capsule semi-circle ends
await Canvas(200, 100);background(0.8);strokeWeight(5);capsule(-60, -10, 60, 10, 10); Copy
await Canvas(200, 100);background(0.8);strokeWeight(5);capsule(-60, -10, 60, 10, 10);
q5.draw = function () { background(0.8); fill('cyan'); strokeWeight(10); capsule(0, 0, mouseX, mouseY, 20);}; Copy
q5.draw = function () { background(0.8); fill('cyan'); strokeWeight(10); capsule(0, 0, mouseX, mouseY, 20);};
🧑🎨 Draws a capsule.