What is it for?
- Recoloring every pixel with the same index at once
- Changing only the color scheme while preserving pixel-art shading and regions
- Adjusting an extracted palette and applying it to the entire image
Overview
Replaces only the color table of an indexed image. Pixel indices—and therefore the artwork and shading structure—remain unchanged; only the colors referenced by those indices change. This makes the node a core building block for pixel-art color variants.
Usage tips
- The complete recoloring pattern combines the
indexed_imagefromimage_to_indexed_imagewith a processed palette frompalette_adjust_hsv,palette_edit, orpalette_set, then feeds both into this node. This lets you batch-produce multiple color schemes for the same artwork. - Connect
palette_cycleto create classic palette-cycling animation. - Remember that palette order defines the indices. Any index without a corresponding palette color becomes transparent.
Related nodes
image_to_indexed_image— upstream conversion to indicespalette_adjust_hsv/palette_adjust_oklch/palette_set— process the replacement palettepalette_cycle— animation useindexed_image_render— use when you want a temporary color-table override
How it works
- Every image pixel has an index such as 0, 1, or 2.
- This node preserves those indices and replaces only the colors they reference.
- For example, if index 0 is red and index 1 is black, supplying a palette where index 0 is blue and index 1 is white changes every red area to blue and every black area to white.
Notes
- Palette order defines the indices.
- An index missing from the input palette is rendered transparent.
- Transparent slots are normally handled separately from the palette array.
Examples
- Connect
indexed_imagefrom Image To IndexedImage. - Connect the adjusted Palette to
palette. - Review the recolored result from the
imageoutput. - If needed, pass
indexed_imagefarther downstream.