maxHctPeakToneForHue
Convenience helper for the tone component of maxHctChromaForHue(...).
import { maxHctPeakToneForHue } from '@pbroom/color-kit/hct';index.ts:268function maxHctPeakToneForHue(
hue: number,
options?: MaxHctChromaForHueOptions,
): number;Returns the fractional HCT tone (0-100) at which the maximum realized HCT chroma occurs for the provided hue.
Parameters
- hue
number - HCT hue in degrees (wrapped).
- options?
MaxHctChromaForHueOptionsdefault{} - Method and LUT size, as for
maxHctChromaForHue.
Returns
numberTone of the chroma peak, 0-100.
Throws
- When
options.methodis not'lut'or'direct'.
Example
import { maxHctPeakToneForHue } from '@pbroom/color-kit/hct';
maxHctPeakToneForHue(250); // → ≈ 64.22Also exported from
@pbroom/color-kitthe same declaration, re-exported