apply_shading
Adds palette-constrained shading to a selected sprite region by brightening toward a light direction and darkening away, snapping pixels to the nearest palette color.
Instructions
Palette-constrained shading: brighten toward the light and darken away
from it, snapping every pixel to the nearest palette color. intensity
~0..1. RGB sprite only; one undo step. Headless: pass file.
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": {
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>",
"light_direction": "<light_direction>"
},
"name": "apply_shading"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| file | No | ||
| width | Yes | ||
| height | Yes | ||
| intensity | No | ||
| light_direction | Yes |