HslColorToRgb(Double, Double, Double, Double) Method

Converts the given HSLA color component values to their RGB color equivalent.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static Color ToRgb(
	double hue,
	double saturation,
	double lightness,
	double alpha = 1
)

Parameters

hue  Double
The Hue component in the HSL color model in the range from 0..360.
saturation  Double
The Saturation component in the HSL color model in the range from 0..1.
lightness  Double
The Lightness component in the HSL color model in the range from 0..1.
alpha  Double  (Optional)
The Alpha component in the range from 0..1.

Return Value

Color
A new RGB Color equivalent to the given HSLA values.

See Also