Back to Node List

Palette Adjust OKLCH

palette_adjust_oklch

Adjust selected palette slots in OKLCH space while keeping other slots unchanged.

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
補正したい元パレットです。
番号
index
Int
動的に1色だけ選ぶための番号入力です。
番号リスト
index_list
List<Int>
動的に複数色を選ぶための番号リスト入力です。

Output Ports

NameTypeDescription
パレット
palette
Palette
補正後のパレットです。

Parameters

NameTypeDefaultRangeDescription / Options
番号指定モード
selection_mode
Enum
Auto

補正する色番号をどこから決めるかです。

  • 自動Auto
    番号リスト入力があればそれを使い、次に番号入力、どちらもなければテキストの番号指定を使います。接続した入力に有効な番号がなければ、テキストへ戻らず何も補正しません。
  • テキストText
    テキストの番号指定だけを使います。記入例: `all`、`0`、`2,4,6`、`3-7`。
  • 番号入力Index
    番号入力だけを使います。記入/接続例: Intで `0`、または `0 -> 1 -> 2` と変化させて1色ずつ補正対象を動かします。
  • 番号リスト入力List
    番号リスト入力だけを使います。記入/接続例: List<Int>で `[0,2,4]`、または `[3,4,5,6]` を接続して複数色を補正します。
番号指定
indices
Text
all

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

明るさ +/-
lightness_delta
Float
0-100–100 / step 0.1

OKLCHの明るさを足し引きします。+5なら少し明るく、-5なら少し暗くします。

鮮やかさ +/-
chroma_delta
Float
0-0.4–0.4 / step 0.001

OKLCHの鮮やかさを足し引きします。プラスで強い色、マイナスでグレー寄りになります。

色相 +/-
hue_delta
Float
0-360–360 / step 1

色相を角度でずらします。

不透明度 +/-
alpha_delta
Float
0-100–100 / step 1

不透明度を足し引きします。

Adjusts only selected palette indices together in OKLCH space.

Use it to darken all shadow colors slightly, increase chroma only in one gradient ramp, or gradually change specific colors through an animation input.

Overview

Adjusts selected palette slots together in OKLCH space. It applies natural, perceptual tone changes by slot, such as slightly darkening only the shadow ramp or muting the whole palette.

Usage tips

  • This is the main tool for fine-tuning a color scheme. Select all and adjust overall lightness and chroma to refine the tone without touching the artwork.
  • For a quick day/night variant, apply a darker, bluer adjusted palette to the same indexed image.
  • The HSV version is more intuitive for dramatic hue rotations such as character color variants.

Related nodes

  • palette_adjust_hsv — counterpart for hue rotation
  • indexed_image_apply_palette — applies the adjusted result
  • color_adjust_oklch — single-color version
  • oklch_adjust — adjusts an entire image

Index syntax

Syntax Meaning
all Adjust every color
0 Adjust only index 0
2,4,6 Adjust indices 2, 4, and 6
3-7 Adjust indices 3 through 7

Out-of-range entries in the text selector or Index List are ignored. In Auto or Index Input mode, an out-of-range connected Index does not silently fall back to text such as all: it leaves the palette unchanged and shows a warning near the selection setting.

Index selection modes

Mode Description
Auto Uses the Index List input when connected, otherwise the Index input, and finally the Index Spec text. If a connected input contains no valid index, nothing is adjusted.
Text Uses only the Index Spec text; best for entering all or 3-7 manually
Index Input Uses only the Int Index input; best for moving the target through one color at a time with time or an expression
Index List Input Uses only the List Index List input; best for selecting multiple colors dynamically

How to use

Connect a palette and enter the target color indices in Index Spec. For example, enter 1,2,3 and set Lightness +/- to -8 to make only indices 1, 2, and 3 slightly darker.

Each adjustment can be promoted to an input pin. Drive it with Time Source or a waveform node to change palette colors over time.

To switch the target color during an animation, leave Index Selection Mode on Auto and connect an Int to the Index input. As the Int changes through 0,1,2,3..., the adjusted palette index changes in sequence. To control multiple colors at once, connect a List to Index List.

Back to Node List
Palette Adjust OKLCH — PixPipeline Node Reference