rect
Draw an outlined or filled rectangle on a pixel art canvas, specifying position, size, and color.
Instructions
Draw a rectangle on a canvas (outline or filled).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | Yes | Height | |
| w | Yes | Width | |
| x | Yes | Top-left X | |
| y | Yes | Top-left Y | |
| color | Yes | Hex char 0-F or "." for transparent | |
| filled | No | Fill the rectangle (default: false = outline only) | |
| canvas_id | Yes | Canvas ID |