Skip to content

Graphics.drawRoundedRect method

Graphics › drawRoundedRect

Unofficial

Draws a rounded rectangle.

Signature:

drawRoundedRect(x: number, y: number, width: number, height: number, radius: number): this

Parameters:

ParameterTypeDescription
xnumberX position.
ynumberY position.
widthnumberWidth.
heightnumberHeight.
radiusnumberCorner radius.

Returns: thisThis graphics for chaining.