@pbroom/color-kit/planeTypes

PlaneGamutBoundaryQuery

Query for getPlaneGamutBoundary.

interfaceimport type { PlaneGamutBoundaryQuery } from '@pbroom/color-kit/plane';types.ts:260
interface PlaneGamutBoundaryQuery {
  kind: 'gamutBoundary';
  gamut?: GamutTarget;
  hue?: number;
  steps?: number;
  simplifyTolerance?: number;
  samplingMode?: 'uniform' | 'adaptive';
  adaptiveTolerance?: number;
  adaptiveMaxDepth?: number;
}

Properties

kind'gamutBoundary'
gamut?GamutTargetdefault 'srgb'
Gamut whose edge is traced.
hue?number
OKLCH hue in degrees. Defaults to the plane's hue (see planeHue).
steps?numberdefault 100
Number of equal lightness segments in 'uniform' mode; the result has steps + 1 points. Must be an integer of at least 2.
simplifyTolerance?number
Ramer-Douglas-Peucker tolerance in normalized (l, c) space (for example 0.001). Omit or 0 to keep every sample.
samplingMode?'uniform' | 'adaptive'default 'uniform'
'uniform' samples fixed lightness steps; 'adaptive' subdivides where the edge curves.
adaptiveTolerance?numberdefault 0.001
Maximum perpendicular error in (l, c) before an adaptive segment is split.
adaptiveMaxDepth?numberdefault 12
Maximum recursion depth in 'adaptive' mode.

Also exported from