writeChannel
import { writeChannel } from 'pixi-silk/ui/color';
function writeChannel(
model: ColorModel,
channel: ColorChannel,
t: number,
origin?: unknown
): void;
Writes one channel of the model from t 0..1 (clamped), with the scales of readChannel. OKLCH writes reduce chroma to fit sRGB.
Parameters#
| Parameter | Type | Default value |
|---|---|---|
model | ColorModel | undefined |
channel | ColorChannel | undefined |
t | number | undefined |
origin | unknown | null |
Returns#
void