Skip to main content
Version: 1.x

@microsoft/fast-colors > desaturateViaLCH

desaturateViaLCH() function

De-saturate a color using LCH color space

Signature:
export declare function desaturateViaLCH(input: ColorRGBA64, saturation: number, saturationConstant?: number): ColorRGBA64;

Parameters

ParameterTypeDescription
inputColorRGBA64
saturationnumber
saturationConstantnumber
Returns:

ColorRGBA64

Remarks

The alpha channel of the input is ignored