ContrastRegionSampling
Sampling options as the contrast-region solver runs them, with defaults filled in and limits applied; returned by clampContrastRegionSampling.
import type { ContrastRegionSampling } from '@pbroom/color-kit';region-shared.ts:81interface ContrastRegionSampling {
initialSamples: number;
errorTolerance: number;
maxDepth: number;
}Properties
- initialSamples
number - Initial samples per region side, at most 512.
- errorTolerance
number - Midpoint-to-chord split threshold in l/c units, at least 1e-6.
- maxDepth
number - Maximum halvings of an initial sample interval, at most 12.