@pbroom/color-kit/driverColor area
ColorAreaAxis
One axis of a color area as authored: a channel and an optional range.
import type { ColorAreaAxis } from '@pbroom/color-kit/driver';color-area.ts:52interface ColorAreaAxis {
channel: ColorAreaChannel;
range?: [number, number];
}Properties
- channel
ColorAreaChannel - OKLCH channel the axis drives.
- range?
[number, number]defaultCOLOR_AREA_DEFAULT_RANGES[channel] [start, end]channel values.startmaps to the left (x) or bottom (y) edge,endto the right or top edge.
Also exported from
@pbroom/color-kit/reactthe same declaration, re-exported