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:

Parameter Type Description
x number X position.
y number Y position.
width number Width.
height number Height.
radius number Corner radius.

Returns: thisThis graphics for chaining.