readChannel
import { readChannel } from 'pixi-silk/ui/color';
function readChannel(model: ColorModel, channel: ColorChannel): number;
Reads one channel of the model, as 0..1. Hues map 0..360 degrees to 0..1, OKLCH chroma 0..0.37 to 0..1.
Parameters#
| Parameter | Type |
|---|---|
model | ColorModel |
channel | ColorChannel |
Returns#
number