@pbroom/color-kit/reactPlane geometry

ColorPlaneLineGeometry

Geometry returned by useGamutBoundary and useChromaBand.

interfaceimport type { ColorPlaneLineGeometry } from '@pbroom/color-kit/react';use-gamut-boundary.ts:27
interface ColorPlaneLineGeometry {
  points: ColorAreaGamutBoundaryPoint[];
  path: string;
  quality: ColorPlaneQualityLevel;
}

Properties

pointsColorAreaGamutBoundaryPoint[]
Line vertices from l = 0 to l = 1; empty off an l/c plane.
pathstring
SVG path data for points in a 0 0 100 100 viewBox ('' for fewer than two points). Draw it in an <svg viewBox="0 0 100 100" preserveAspectRatio="none"> laid over the plane.
qualityColorPlaneQualityLevel
Quality level the line was sampled at.