draw_rectangle
Draw a rectangle at specified coordinates on an Aseprite canvas. Define width, height, color, and whether to fill the shape.
Instructions
Draw a rectangle on the canvas.
Args: filename: Name of the Aseprite file to modify x: Top-left x coordinate y: Top-left y coordinate width: Width of the rectangle in pixels (must be > 0) height: Height of the rectangle in pixels (must be > 0) color: Hex color code (default: "#000000") fill: Whether to fill the rectangle (default: False)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| color | No | #000000 | |
| fill | No |