Skip to main content
Version: 1.x

@microsoft/fast-colors > ColorXYZ > fromObject

ColorXYZ.fromObject() method

Construct a ColorXYZ from a config object.

Signature:
static fromObject(data: {
x: number;
y: number;
z: number;
}): ColorXYZ | null;

Parameters

ParameterTypeDescription
data{ x: number; y: number; z: number; }
Returns:

ColorXYZ | null