Skip to main content

Function: drawRoundedRectangle()

function drawRoundedRectangle(
width,
height,
r): Drawing;

Defined in: draw.ts:276

Creates the Drawing of a rectangle with (optional) rounded corners.

The rectangle is centered on [0, 0]

Parameters

width

number

height

number

r

number | { rx: number; ry: number; }

Returns

Drawing