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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>",
"color": "<color>"
},
"name": "draw_line"
}
}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 |