| Name | Type | Description |
|---|---|---|
| in rect | Rect | The rectangle to draw. |
| in color | Color | The fill color of the rectangle. |
| in cornerRadius = null | Vector4 | Corner radii as (bottom-right, top-right, bottom-left, top-left). Radii too big for the rect are scaled to fit, like CSS. |
| in borderWidth = null | Vector4 | The width of the border for each edge (optional). |
| in borderColor = null | Color | The color of the border (optional). |