@pbroom/color-kit/driverColor area

ColorAreaAxis

One axis of a color area as authored: a channel and an optional range.

interfaceimport type { ColorAreaAxis } from '@pbroom/color-kit/driver';color-area.ts:52
interface ColorAreaAxis {
  channel: ColorAreaChannel;
  range?: [number, number];
}

Properties

channelColorAreaChannel
OKLCH channel the axis drives.
range?[number, number]default COLOR_AREA_DEFAULT_RANGES[channel]
[start, end] channel values. start maps to the left (x) or bottom (y) edge, end to the right or top edge.

Also exported from