Replaces only the specified indices in a palette with another color.
Without opening a palette editor manually, you can build "set this index to this color" directly into the graph. The replacement can be a fixed color or a Color created by another node.
Overview
Mechanically replaces specified indices in a palette. Unlike palette_edit,
which opens an editor, this node expresses operations such as "set index 2 to this
color" through graph wiring. It is suited to batch-producing recolor variants and
dynamic color changes.
Usage tips
- The go-to setup for recolored equipment or enemy variants keeps one indexed base
image, creates multiple palettes by replacing a few colors with Palette Set, then
sends each palette through
indexed_image_apply_palette. - A key strength is the wireable
colorinput. Withpalette_get+color_adjust_oklch, you can build a chain such as "brighten color 3, then put it back at index 3." - Use
palette_editto adjust by eye, orpalette_adjust_oklchfor a batch adjustment of the entire palette.
Related nodes
palette_edit— visual editing in an editorpalette_get— source of a replacement colorcolor_adjust_oklch— process the replacement colorindexed_image_apply_palette— apply the replaced palette
Index syntax
| Syntax | Meaning |
|---|---|
0 |
Replace only index 0 |
2,4,6 |
Replace indices 2, 4, and 6 |
3-7 |
Replace indices 3 through 7 |
all |
Replace every color |
Out-of-range indices are ignored.
How to use
Retrieve a color with Palette Get, adjust it with Color Adjust OKLCH, and
connect the result to this node's replacement color input to update only selected
palette indices through node processing.