Color.FromHsla

Color.FromHsla method

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

public static Color FromHsla(float hue, float saturation, float lightness, float alpha)
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.
alphaSingleA float that represents the alpha component of the color.

Return Value

A new instance of the Color class

See Also