Skip to content
pixi-silk
GitHub repository
Function

channelColor

import { channelColor } from 'pixi-silk/ui/color';
function channelColor(
   model: ColorModel, 
   channel: ColorChannel, 
   t: number
): RGB;

The colour at position t (0..1) of a channel track, given the rest of the current colour.

Parameters#

ParameterType
modelColorModel
channelColorChannel
tnumber

Returns#

RGB