Skip to main content
Version: 1.x

@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

ParameterTypeDescription
data{ h: number; s: number; l: number; }
Returns:

ColorHSL | null