Skip to main content

@microsoft/fast-colors > ColorLCH > fromObject

ColorLCH.fromObject() method

Construct a ColorLCH from a config object.

Signature:
static fromObject(data: {
l: number;
c: number;
h: number;
}): ColorLCH | null;

Parameters

ParameterTypeDescription
data{ l: number; c: number; h: number; }the config object
Returns:

ColorLCH | null