Yotsuba Games

Dither

Quantizes an image to a palette with ordered or error-diffusion dithering

intermediate
Since P00

Input Ports

Image

Image input for Dither.

Image
Palette

Extracts a palette from the image when no palette is connected

Palette

Output Ports

Image

Image output from Dither.

Image
Palette

Palette actually used

Palette
Count

Number of colors in the palette used

Int

Parameters

NameTypeDefaultDescription
ModeEnum`Ordered4x4`Controls the mode setting for Dither.
Extract ModeEnum`Representative`Controls how to extract a palette when no palette is connected
Max ColorsInt`16`Maximum number of colors to keep when extracting
Include TransparentBool`false`Includes fully transparent pixels when extracting the palette
Preserve AlphaBool`true`Preserves the original image alpha when changing colors
StrengthFloat`1.0`Controls the strength setting for Dither.

Overview

Quantizes an image to a palette with ordered or error-diffusion dithering

Inputs and Outputs

Input Ports

  • Image Image: Image input for Dither.
  • Palette Palette: Extracts a palette from the image when no palette is connected

Output Ports

  • Image Image: Image output from Dither.
  • Palette Palette: Palette actually used
  • Count Int: Number of colors in the palette used

Key Parameters

NameTypeDefaultDescription
ModeEnum`Ordered4x4`Controls the mode setting for Dither.
Extract ModeEnum`Representative`Controls how to extract a palette when no palette is connected
Max ColorsInt`16`Maximum number of colors to keep when extracting
Include TransparentBool`false`Includes fully transparent pixels when extracting the palette
Preserve AlphaBool`true`Preserves the original image alpha when changing colors
StrengthFloat`1.0`Controls the strength setting for Dither.

When to Use

Use Dither when you need this operation to remain explicit, reusable, and easy to tune inside a PixPipeline node graph.

Notes

Connect compatible data types and preview the result while tuning this node. Parameter names and port names follow the PixPipeline UI.