HslColorToHsv(Double, Double, Double, Double) Method
Converts the given HSLA color component values to their HSV color equivalent.
Namespace: Avalonia.MediaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static HsvColor ToHsv(
double hue,
double saturation,
double lightness,
double alpha = 1
)
Public Shared Function ToHsv (
hue As Double,
saturation As Double,
lightness As Double,
Optional alpha As Double = 1
) As HsvColor
static member ToHsv :
hue : float *
saturation : float *
lightness : float *
?alpha : float
(* Defaults:
let _alpha = defaultArg alpha 1
*)
-> HsvColor
- 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.
HsvColorA new
HsvColor equivalent to the given HSLA values.