add_rim_light
Adds a rim light to a layer’s edge pixels facing a chosen light position, creating a new editable layer above the art. Set color, width, radius, and frames.
Instructions
Pick out the edge of layer that faces a light: a sunset behind a figure,
a fire beside a tree. light is where the light is, [x, y], and may be
off the canvas for a far-off sun. Edge pixels facing it turn color;
width 2 adds a dithered second row mixed with the art's own colour. With
radius the light fades out that far from its source, for a fire. The rim
goes on a new layer named like "Knight (rim)" just above layer, so the art
is untouched and the light can be hidden or recoloured. Runs on every frame,
or the active one with all_frames false. 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": {
"layer": "<layer>",
"light": "<light>"
},
"name": "add_rim_light"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| color | No | #ffb070 | |
| layer | Yes | ||
| light | Yes | ||
| width | No | ||
| radius | No | ||
| all_frames | No |