MaxChromaForHueOptions
Options for maxChromaForHue.
import type { MaxChromaForHueOptions } from '@pbroom/color-kit';types.ts:94interface MaxChromaForHueOptions {
gamut?: GamutTarget;
method?: MaxChromaForHueMethod;
lutSize?: number;
}Properties
- gamut?
GamutTargetdefault'srgb' - Target gamut.
- method?
MaxChromaForHueMethoddefault'lut' lutuses a cached hue lookup table with interpolation for maximum throughput across repeated calls.directcomputes the cusp exactly for the requested hue without a lightness sweep.- lutSize?
numberdefault4096 - 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.