Skip to content

Graphics.drawRect method

Graphics › drawRect

Unofficial

Draws a rectangle.

Signature:

drawRect(x: number, y: number, width: number, height: number): this

Parameters:

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

Returns: thisThis graphics for chaining.