@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
Parameter | Type | Description |
---|---|---|
data | { x: number; y: number; z: number; } |
ColorXYZ | null