Skip to content

Documentation / spryte / roundRect

Function: roundRect() ​

roundRect(draw, x, y, w, h, radius, color, lineWidth?): void

Defined in: shapes.ts:31

Rectangle with rounded corners: filled, or outlined when lineWidth is given (the outline is centred on the edge).

Parameters ​

draw ​

Draw

x ​

number

y ​

number

w ​

number

h ​

number

radius ​

number

color ​

Color

lineWidth? ​

number

Returns ​

void