anti_alias_edges
Softens pixel-art stair-steps by placing in-between colors at the corners of long steps, so curves and diagonals read clean without blur. Targets sprite edges and optional silhouette smoothing.
Instructions
Hand-style anti-aliasing: soften stair-steps with in-between colours.
Pixel artists don't blur; they place single intermediate pixels at the
corners of long steps so a curve or diagonal looks smooth without
getting fuzzy. This does that: where two colour areas meet in a step
whose runs are at least min_run long, the corner pixel gets a colour
between the two (OKLab mix, strength 0.5 = halfway).
interior=True softens edges between colour areas inside the sprite. The
outside edge is only softened when background is given (the colour the
sprite will be shown on); anti-aliasing against transparency looks dirty
on any other background, so it is skipped by default.
Use on sprites of 32 px and up; small sprites look cleaner without AA.
Args: filename: Aseprite file layer_name: Image layer ("" = topmost) frames: "" = every frame background: Hex colour of the final background, to also smooth the silhouette min_run: Minimum step length to smooth (2 = moderate, 3 = only long steps) strength: Mix toward the other colour, 0.25-0.75 interior: Smooth edges between colours inside the sprite dry_run: Report only
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>"
},
"name": "anti_alias_edges"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frames | No | ||
| dry_run | No | ||
| min_run | No | ||
| filename | Yes | ||
| interior | No | ||
| strength | No | ||
| background | No | ||
| layer_name | No |