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