draw_shape
Draws pixel-art geometric shapes (line, rectangle, circle) on a canvas using specified coordinates, color, and optional fill.
Instructions
Draws a pixel-art rasterized geometric primitive (line, rect, circle).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Starting X / Center X / Rect X | |
| x2 | No | Ending X / Rect Width / Circle Radius | |
| y1 | Yes | Starting Y / Center Y / Rect Y | |
| y2 | No | Ending Y / Rect Height | |
| color | Yes | Hex color or palette index | |
| shape | Yes | Shape type to draw | |
| filled | No | Whether the shape is filled (default: false) | |
| canvas_id | Yes | Target canvas ID |