fill_rect
Draw a solid-color rectangle on a pixel art canvas by specifying position, dimensions, and color. Use it to add shapes or backgrounds programmatically.
Instructions
Fill a rectangle with a solid color.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Top-left X | |
| y | Yes | Top-left Y | |
| color | Yes | Fill color | |
| width | Yes | Rectangle width | |
| canvas | No | Canvas name | default |
| height | Yes | Rectangle height |