@pbroom/color-kit/driverColor area

ColorAreaGamutBoundaryOptions

Options for getColorAreaGamutBoundaryPoints.

interfaceimport type { ColorAreaGamutBoundaryOptions } from '@pbroom/color-kit/driver';color-area.ts:132
interface ColorAreaGamutBoundaryOptions {
  gamut?: GamutTarget;
  steps?: number;
  simplifyTolerance?: number;
  samplingMode?: 'uniform' | 'adaptive';
  adaptiveTolerance?: number;
  adaptiveMaxDepth?: number;
}

Properties

gamut?GamutTargetdefault 'srgb'
Gamut whose boundary is traced.
steps?numberdefault 100
Equal lightness segments in uniform mode; the path has steps + 1 points. Must be an integer of at least 2. Ignored in adaptive mode.
simplifyTolerance?number
Ramer-Douglas-Peucker simplification tolerance in (l, c) space; omit to disable.
samplingMode?'uniform' | 'adaptive'default 'uniform'
'uniform' samples fixed lightness steps; 'adaptive' subdivides where the curve bends.
adaptiveTolerance?numberdefault 0.001
Adaptive mode: max perpendicular error in (l, c) before subdividing.
adaptiveMaxDepth?numberdefault 12
Adaptive mode: max recursion depth.