@pbroom/color-kitGamut

GamutMapMethod

Gamut mapping algorithm for toSrgbGamut / toP3Gamut:

typeimport type { GamutMapMethod } from '@pbroom/color-kit';types.ts:20
type GamutMapMethod = 'chroma-reduction' | 'css';
  • 'chroma-reduction': reduce OKLCH chroma at fixed lightness and hue.
  • 'css': CSS Color 4 gamut mapping (chroma bisection with a 0.02 deltaE OK just-noticeable-difference clip).