draw_rectangle
Add rectangular shapes to pixel art projects by specifying coordinates and color, with options for outlines or filled areas to create sprites and animations.
Instructions
Draw a rectangle (outline or filled)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project identifier | |
| layerIndex | No | Layer index (default: 0) | |
| frameIndex | No | Frame index (default: 0) | |
| x0 | Yes | Top-left X coordinate | |
| y0 | Yes | Top-left Y coordinate | |
| x1 | Yes | Bottom-right X coordinate | |
| y1 | Yes | Bottom-right Y coordinate | |
| color | Yes | Color in hex format | |
| filled | No | Whether to fill the rectangle (default: false) | |
| penSize | No | Stroke width for outline (default: 1) |