@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
Parameter | Type | Description |
---|---|---|
data | { l: number; c: number; h: number; } | the config object |
ColorLCH | null