fill_polygon
Fill any polygon in Aseprite by scanning line-filling a list of ordered [x, y] points with a solid color in one undoable step, optionally returning a before/after preview.
Instructions
Scanline-fill an arbitrary polygon given points (a list of [x, y]
pairs, in order). color is #rrggbb or #rrggbbaa. One undo step.
Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
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": {
"points": "<points>",
"color": "<color>"
},
"name": "fill_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| color | Yes | ||
| points | Yes | ||
| preview | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |