Back to Node List

Palette Set

palette_set

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

Reviewed
Guide available
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
パレット
palette
Palette
Required
差し替えたい元パレットです。
差し替え色
color
Color
差し替える色です。未接続ならパラメータの色を使います。

Output Ports

NameTypeDescription
パレット
palette
Palette
差し替え後のパレットです。

Parameters

NameTypeDefaultRangeDescription / Options
番号指定
indices
Text
0

差し替える色番号です。例: `0`、`2,4,6`、`3-7`、`all`。番号は0始まりです。

差し替え色
color
Color
[1,1,1,1]

Color入力が未接続のときに使う差し替え色です。

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
Palette Set — PixPipeline Node Reference