Skip to main content
Version: 1.x

@microsoft/fast-colors > darkenViaLAB

darkenViaLAB() function

Darken a color using LAB color space

Signature:
export declare function darkenViaLAB(input: ColorRGBA64, amount: number, darkenConstant?: number): ColorRGBA64;

Parameters

ParameterTypeDescription
inputColorRGBA64
amountnumber
darkenConstantnumber
Returns:

ColorRGBA64

Remarks

The alpha channel of the input is ignored