Skip to content

ppuPalette

ppuPalette(inputColor, saturation): Node<"vec4">

Defined in: packages/nodes/src/retro/consolePalettes.ts:100

Convert color to NES/Famicom PPU palette (2C02). Maps to the closest of 54 available colors.

Parameters

inputColor

Node<"vec4">

Input color

saturation

FloatInput = 1

Color saturation (default: 1)

Returns

Node<"vec4">

Color approximating NES PPU output