@pbroom/color-kit/driverColor area
ColorAreaGamutBoundaryOptions
Options for getColorAreaGamutBoundaryPoints.
import type { ColorAreaGamutBoundaryOptions } from '@pbroom/color-kit/driver';color-area.ts:132interface ColorAreaGamutBoundaryOptions {
gamut?: GamutTarget;
steps?: number;
simplifyTolerance?: number;
samplingMode?: 'uniform' | 'adaptive';
adaptiveTolerance?: number;
adaptiveMaxDepth?: number;
}Properties
- gamut?
GamutTargetdefault'srgb' - Gamut whose boundary is traced.
- steps?
numberdefault100 - Equal lightness segments in uniform mode; the path has
steps + 1points. 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?
numberdefault0.001 - Adaptive mode: max perpendicular error in (l, c) before subdividing.
- adaptiveMaxDepth?
numberdefault12 - Adaptive mode: max recursion depth.