rotsprite_rotate
Rotate an Aseprite layer by any angle while keeping pixel lines connected and avoiding jagged edges or added colors; use RotSprite sampling for clean pixel-art rotation.
Instructions
Rotate a layer by any angle without the broken, jagged lines of plain rotation.
RotSprite (the algorithm behind Aseprite's own rotation, done offline): upscale 8x with Scale2x, rotate there, sample back. Lines stay connected and no new colours appear. Good for swinging weapons, tilted props, leaning poses and spinning items. Positive angles turn clockwise.
Args: filename: Aseprite file angle: Degrees, clockwise (e.g. 22.5, -45) layer_name: Image layer ("" = topmost) frames: Frames to rotate (default "1"; "" = all) pivot: "x,y" to rotate around (default: centre of the drawn pixels) method: rotsprite (best) or nearest (fast, blockier) output_layer: Write to this layer instead of replacing
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>",
"angle": "<angle>"
},
"name": "rotsprite_rotate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | Yes | ||
| pivot | No | ||
| frames | No | 1 | |
| method | No | rotsprite | |
| filename | Yes | ||
| layer_name | No | ||
| output_layer | No |