@pbroom/color-kit/planeTracing
PlaneQueryTraceScalarGridStage
Stage describing a sampled gamut scalar field (positive inside the gamut, zero on its boundary). Recorded only when includeScalarGrid is on.
import type { PlaneQueryTraceScalarGridStage } from '@pbroom/color-kit/plane';types.ts:212interface PlaneQueryTraceScalarGridStage {
kind: 'scalarGrid';
label: string;
bounds: PlaneTraceBounds;
resolution: number;
sampleCount: number;
minValue: number;
maxValue: number;
values?: number[][];
durationMs?: number;
}Properties
- kind
'scalarGrid' - label
string - Which grid this is (e.g.
'viewport-grid'). - bounds
PlaneTraceBounds - Sampled area in plane-normalized coordinates.
- resolution
number - Cells per axis.
- sampleCount
number - Samples taken (
(resolution + 1)²for a full grid). - minValue
number - Smallest sampled value.
- maxValue
number - Largest sampled value.
- values?
number[][] - Sampled values as rows (
values[y][x]). - durationMs?
number - Stage duration in milliseconds. Reserved; not currently populated.
Also exported from
@pbroom/color-kitthe same declaration, re-exported