On this page
Image & Canvas canvasDrawRoundedRect

$canvasDrawRoundedRect[]

Draws a rectangle with rounded corners — filled or outline

Syntax
$canvasDrawRoundedRect[x;y;width;height;radius;color;fill;blend?;container?]

The corner radius is automatically clamped to at most half the smaller dimension (min(width, height) / 2) to prevent overlap between adjacent corners. This makes it ideal for card backgrounds, button shapes, and UI containers. For outline-only mode, the outline follows the rounded path at 1-pixel width.