ColorFromHsl Method (Single, Single, Single)

Creates a Color instance from HSL (Hue-Saturation-Lightness) color parameters.
public static Color FromHsl(
	float hue,
	float saturation,
	float lightness
)

Parameters

hueSystemSingle
Hue in the range [0, 1]
saturationSystemSingle
Saturation in the range [0, 1]
lightnessSystemSingle
Lightness in the range [0, 1]

Return Value

Color

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionOne of the components was NaN, less than 0f or greater than 1f.

See Also

Reference