PlaneGamutBoundaryQuery
Query for getPlaneGamutBoundary.
import type { PlaneGamutBoundaryQuery } from '@pbroom/color-kit/plane';types.ts:260interface 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.
- steps?
numberdefault100 - Number of equal lightness segments in
'uniform'mode; the result hassteps + 1points. Must be an integer of at least 2. - simplifyTolerance?
number - Ramer-Douglas-Peucker tolerance in normalized
(l, c)space (for example0.001). Omit or0to keep every sample. - samplingMode?
'uniform' | 'adaptive'default'uniform' 'uniform'samples fixed lightness steps;'adaptive'subdivides where the edge curves.- adaptiveTolerance?
numberdefault0.001 - Maximum perpendicular error in
(l, c)before an adaptive segment is split. - adaptiveMaxDepth?
numberdefault12 - Maximum recursion depth in
'adaptive'mode.
Also exported from
@pbroom/color-kitthe same declaration, re-exported