@microsoft/fast-colors > ColorLAB > fromObject
ColorLAB.fromObject() method
Construct a ColorLAB from a config object.
Signature:static fromObject(data: {
l: number;
a: number;
b: number;
}): ColorLAB | null;
Parameters
Parameter | Type | Description |
---|---|---|
data | { l: number; a: number; b: number; } |
ColorLAB | null