@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.

interfaceimport type { PlaneQueryTraceScalarGridStage } from '@pbroom/color-kit/plane';types.ts:212
interface PlaneQueryTraceScalarGridStage {
  kind: 'scalarGrid';
  label: string;
  bounds: PlaneTraceBounds;
  resolution: number;
  sampleCount: number;
  minValue: number;
  maxValue: number;
  values?: number[][];
  durationMs?: number;
}

Properties

kind'scalarGrid'
labelstring
Which grid this is (e.g. 'viewport-grid').
boundsPlaneTraceBounds
Sampled area in plane-normalized coordinates.
resolutionnumber
Cells per axis.
sampleCountnumber
Samples taken ((resolution + 1)² for a full grid).
minValuenumber
Smallest sampled value.
maxValuenumber
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