Studio Yotsuba
Back to Node List

Palette Set

palette_set

Replace selected palette slots with a color. Indices support comma lists and ranges.

Reviewed
Guide available

Input Ports

NameTypeDescription
Palette
palette
Palette
Required
Palette to modify.
Color
color
Color
Replacement color. If not connected, the Color parameter is used.

Output Ports

NameTypeDescription
Palette
palette
Palette
Modified palette.

Parameters

NameTypeDefaultRangeDescription / Options
Indices
indices
Text
0—

Palette indices to replace. Examples: `0`, `2,4,6`, `3-7`, `all`.

Color
color
Color
[1,1,1,1]—

Replacement color used when the Color input is not connected.

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 color input. With palette_get + color_adjust_oklch, you can build a chain such as "brighten color 3, then put it back at index 3."
  • Use palette_edit to adjust by eye, or palette_adjust_oklch for a batch adjustment of the entire palette.

Related nodes

  • palette_edit — visual editing in an editor
  • palette_get — source of a replacement color
  • color_adjust_oklch — process the replacement color
  • indexed_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.

Back to Node List