Skip to main content
Version: 1.x

@microsoft/fast-colors > ColorXYZ > toObject

ColorXYZ.toObject() method

Returns the ColorXYZ formatted as an object.

Signature:
toObject(): {
x: number;
y: number;
z: number;
};
Returns:

{ x: number; y: number; z: number; }