Hi! I have a question about drawing a rounded rectangle in Codea.
I currently draw a semi-transparent black rectangle like this:
rectMode(CENTER)
noStroke()
fill(0, 0, 0, 191)
rect(
panelX,
panelY,
panelW,
panelH
)
The rectangle is approximately 1856 × 1138 px. It’s Works but cant add corners.
I would like to give it strongly rounded corners, with a radius of around 200–220 px, but the radius does not work.
What is the correct way to draw a filled rounded rectangle with a custom corner radius in the current version of Codea?
Ideally, I’m looking for a clean solution without manually constructing the shape from rectangles and circles.
