draw_line
Draws a line between two points on a specified layer and frame in an Aseprite sprite file.
Instructions
Draw a line between two points on a specific layer and frame
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Sprite file | |
| layerName | No | Target layer name | |
| frameNumber | No | Frame number (1-indexed, default: 1) | |
| x1 | Yes | Start X | |
| y1 | Yes | Start Y | |
| x2 | Yes | End X | |
| y2 | Yes | End Y | |
| color | Yes | Color as hex string (#RRGGBB), palette index, or {r,g,b,a} | |
| thickness | No | Line thickness in pixels (default: 1). Uses native Aseprite brush when > 1. | |
| savePath | No | Path to save |