@pbroom/color-kit/planeTracing

PlaneGamutSolver

Strategy a gamut-region query used, picked from the plane's model, axes and gamut:

typeimport type { PlaneGamutSolver } from '@pbroom/color-kit/plane';types.ts:44
type PlaneGamutSolver =
  | 'domain-edge'
  | 'analytic-lc'
  | 'analytic-hc'
  | 'analytic-hct'
  | 'implicit-contour';
  • 'domain-edge': the gamut is the model's own channel box (rgb, hsl, hsv, or display-p3 against the P3 gamut), so the boundary is the domain edge.
  • 'analytic-lc': OKLCH lightness × chroma plane, traced from the max-chroma curve.
  • 'analytic-hc': OKLCH hue × chroma plane.
  • 'analytic-hct': HCT hue or tone × chroma plane against sRGB.
  • 'implicit-contour': any other plane; the gamut is sampled as a scalar field and contoured with adaptive marching squares.

Also exported from