Skip to main content
Version: 1.x

@microsoft/fast-colors > ColorHSL > toObject

ColorHSL.toObject() method

Returns the ColorHSL formatted as an object.

Signature:
toObject(): {
h: number;
s: number;
l: number;
};
Returns:

{ h: number; s: number; l: number; }