$fillRect
Draws a new rect.
Usage
Parameters
Field | Description | Type | Required |
---|---|---|---|
canvas | The canvas name. | string | true |
style | The rect style. | color | gradient | pattern | true |
x | The rect X position. | number | false |
y | The rect Y position. | number | false |
width | The rect width. | number | false |
height | The rect height. | number | false |
radius | The rect corners radius. | number | number[] | false |