Skip to main content
Version: 1.x

@microsoft/fast-colors > ColorHSV > fromObject

ColorHSV.fromObject() method

Construct a ColorHSV from a config object.

Signature:
static fromObject(data: {
h: number;
s: number;
v: number;
}): ColorHSV | null;

Parameters

ParameterTypeDescription
data{ h: number; s: number; v: number; }
Returns:

ColorHSV | null