Skip to main content

@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

ParameterTypeDescription
data{ l: number; a: number; b: number; }
Returns:

ColorLAB | null