draw_line_at
Draw a straight line on a specific layer and animation frame of an Aseprite file using Bresenham's algorithm, with configurable color and thickness.
Instructions
Draw a Bresenham line on a named layer and animation frame.
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": {
"filename": "<filename>",
"layer_name": "<layer_name>",
"frame_index": "<frame_index>",
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "draw_line_at"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| color | No | #000000 | |
| filename | Yes | ||
| thickness | No | ||
| layer_name | Yes | ||
| frame_index | Yes | ||
| create_if_missing | No |