@pbroom/color-kitGamut

MaxChromaForHueOptions

Options for maxChromaForHue.

interfaceimport type { MaxChromaForHueOptions } from '@pbroom/color-kit';types.ts:94
interface MaxChromaForHueOptions {
  gamut?: GamutTarget;
  method?: MaxChromaForHueMethod;
  lutSize?: number;
}

Properties

gamut?GamutTargetdefault 'srgb'
Target gamut.
method?MaxChromaForHueMethoddefault 'lut'
lut uses a cached hue lookup table with interpolation for maximum throughput across repeated calls. direct computes the cusp exactly for the requested hue without a lightness sweep.
lutSize?numberdefault 4096
Number of evenly spaced hue samples in the cached LUT. Higher values increase warm-up cost and reduce interpolation error. Values below 16 or non-finite use the default.