draw_line
Draws a pixel art line between two coordinates in Aseprite using Bresenham's algorithm as a single undo transaction.
Instructions
Draws a pixel art line from (x1, y1) to (x2, y2) using Bresenham's algorithm in a single undo transaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start X coordinate | |
| x2 | Yes | End X coordinate | |
| y1 | Yes | Start Y coordinate | |
| y2 | Yes | End Y coordinate | |
| color | Yes | Hex color string e.g. #FF0000FF | |
| layerName | No | ||
| thickness | No | Line thickness in pixels | |
| layerIndex | No | ||
| frameNumber | No | ||
| returnPreview | No |