Color.FromHsl

Color.FromHsl method

Returns a new Color with the requested hue, saturation, saturation values.

public static Color FromHsl(float hue, float saturation, float lightness)
ParameterTypeDescription
hueSingleA float that represents the hue component of the color.
saturationSingleA float that represents the saturation component of the color.
lightnessSingleA float that represents the lightness component of the color.

Return Value

A new instance of the Color class

See Also