ColorFromHsl Method (Single, Single, Single, Single)

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

Parameters

hueSystemSingle
Hue in the range [0, 1]
saturationSystemSingle
Saturation in the range [0, 1]
lightnessSystemSingle
Lightness in the range [0, 1]
alphaSystemSingle
Alpha 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