Yotsuba Games
Back to Node List

Palette Edit

palette_edit

Edits a connected palette. Unedited colors follow the input palette, edited colors override by index.

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
็ทจ้›†ใ—ใŸใ„ๅ…ƒใƒ‘ใƒฌใƒƒใƒˆใงใ™ใ€‚

Output Ports

NameTypeDescription
ใƒ‘ใƒฌใƒƒใƒˆ
palette
Palette
็ทจ้›†ๅพŒใฎใƒ‘ใƒฌใƒƒใƒˆใงใ™ใ€‚

Parameters

NameTypeDefaultRangeDescription / Options
็ทจ้›†ใƒ‡ใƒผใ‚ฟ
edit_data
CustomData
{"version":1,"overrides":{}}โ€”

่‰ฒ็•ชๅทใ”ใจใฎไธŠๆ›ธใ็ทจ้›†ใƒ‡ใƒผใ‚ฟใงใ™ใ€‚

ใ‚จใƒ‡ใ‚ฃใ‚ฟๅน…
_editor_width
Int
620320โ€“1600

ใƒ‘ใƒฌใƒƒใƒˆ็ทจ้›†็”ป้ขใฎๅน…ใงใ™ใ€‚

ใ‚จใƒ‡ใ‚ฃใ‚ฟ้ซ˜ใ•
_editor_height
Int
520260โ€“1200

ใƒ‘ใƒฌใƒƒใƒˆ็ทจ้›†็”ป้ขใฎ้ซ˜ใ•ใงใ™ใ€‚

What is it for?

  • When you want to make small adjustments to a palette extracted by Image To IndexedImage while watching the preview
  • When you want to recolor all pixels sharing the same color index
  • When you want to fine-tune only selected colors while preserving the order of the source palette
  • When you want to register the adjusted palette as a project common palette or tool common palette

Overview

Visually edits a palette in a dedicated editor. Only edited indices are overridden; untouched colors continue to follow upstream changes. It is an interactive tool for fine-tuning a few colors in an extracted palette.

Usage tips

  • The go-to flow is: palette from image_to_indexed_image โ†’ Palette Edit (fix only the colors that need it) โ†’ indexed_image_apply_palette. You can recolor while watching the preview.
  • Its useful property is that unedited colors follow the input. Even when the upstream extraction changes, only colors you edited remain fixed.
  • Use palette_set for mechanical replacement by index, or palette_adjust_oklch for whole-palette color adjustment. Edit is for tuning individual colors by eye.

Related nodes

  • palette_set โ€” node-based replacement by index

  • palette_adjust_oklch / palette_adjust_hsv โ€” adjust the whole palette

  • image_to_indexed_image / indexed_image_apply_palette โ€” standard upstream and downstream nodes

  • common_palette_ref โ€” use the edited result as a common palette

  • Editor: PaletteEditEditor

How it works

  • The input palette is the base.
  • Colors that you have not edited follow the upstream input palette.
  • Only edited colors are stored in edit_data and override the colors at those indices.
  • If the upstream palette order changes, overrides are still applied to the same indices.

How to use

  1. Connect the palette output of Image To IndexedImage to Palette Edit.
  2. Press the edit button on Palette Edit.
  3. Select a color chip and adjust it with the color picker.
  4. Connect the palette output of Palette Edit to the replacement palette input of IndexedImage Apply Palette.
  5. Adjust only the necessary colors while watching the preview.

Writing back to common palettes

Use Write Back to Common Palette in the editor to register the current edited result as a common palette.

Action Description
Add New Adds the current edited palette as a new common palette
Overwrite Selected Overwrites the selected existing common palette with the current edited palette

Choose Project Common or Tool Common as the destination.

  • Project Common is saved in the current .ppl project file.
  • Tool Common is saved in user settings and is available in other projects.
  • Choose Swatches or Indexed Colors as the kind.

This write-back never runs automatically during node evaluation. It changes a common palette only when the user presses the button.

Notes

  • This node edits the palette colors themselves. It does not change pixel indices in the image.
  • Reset This Color removes only the override at that index.
  • Reset All returns the output to the input palette as-is.
  • Overwriting an existing common palette also changes the results of any Common Palette Ref or indexed-color references that use it after reevaluation.
Back to Node List
Palette Edit โ€” PixPipeline Node Reference