planeModelChannels
Returns the channels a plane model accepts on its axes and in fixed.
import { planeModelChannels } from '@pbroom/color-kit/plane';model-specs.ts:435function planeModelChannels( model: PlaneModel,): readonly PlaneChannel[];Same data as PLANE_MODEL_CHANNELS, for models chosen at runtime.
Parameters
- model
PlaneModel - Plane model to inspect.
Returns
readonly PlaneChannel[]The model's channel list, in model order (shared, do not mutate).
Throws
- When
modelis not a supported plane model.
Example
import { planeModelChannels } from '@pbroom/color-kit/plane';
planeModelChannels('oklab'); // → ['L', 'a', 'b']
planeModelChannels('hct'); // → ['h', 'c', 't']Also exported from
@pbroom/color-kitthe same declaration, re-exported