@pbroom/color-kit/planeTypes

PlaneGradientQuery

Query for samplePlaneGradient.

interfaceimport type { PlaneGradientQuery } from '@pbroom/color-kit/plane';types.ts:424
interface PlaneGradientQuery {
  kind: 'gradient';
  from: Color;
  to: Color;
  steps?: number;
}

Properties

kind'gradient'
fromColor
Gradient start color.
toColor
Gradient end color.
steps?numberdefault 16
Finite integer sample count, endpoints included; integers below 2 are raised to 2. Non-finite or fractional values throw a RangeError.

Also exported from