art.canvas.draw_rect
Draw a filled or outlined rectangle on a canvas using top-left coordinates, width, height, and hex color. Use it to add pixel-art shapes and boundaries to RPG game assets.
Instructions
Draw a rectangle on the canvas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Top-left X coordinate | |
| y | Yes | Top-left Y coordinate | |
| color | Yes | Fill/stroke color as hex string | |
| width | Yes | Rectangle width | |
| filled | No | Whether to fill the rectangle (default true) | |
| height | Yes | Rectangle height | |
| session_id | Yes | Canvas session ID |