ToHsl(Double, Double, Double, Double) Method
Converts the given HSVA color component values to their HSL color equivalent.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static HslColor ToHsl(
double hue,
double saturation,
double value,
double alpha = 1
)
Public Shared Function ToHsl (
hue As Double,
saturation As Double,
value As Double,
Optional alpha As Double = 1
) As HslColor
static member ToHsl :
hue : float *
saturation : float *
value : float *
?alpha : float
(* Defaults:
let _alpha = defaultArg alpha 1
*)
-> HslColor
Parameters
- Double
- The Hue component in the HSV color model in the range from 0..360.
- Double
- The Saturation component in the HSV color model in the range from 0..1.
- Double
- The Value component in the HSV color model in the range from 0..1.
- Double (Optional)
- The Alpha component in the range from 0..1.
Return Value
HslColor
A new HslColor equivalent to the given HSVA values.