Skip to main content

ToHsv(Double, Double, Double, Double) Method

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

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static HsvColor ToHsv(
double hue,
double saturation,
double lightness,
double alpha = 1
)

Parameters

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

Return Value

HsvColor
A new HsvColor equivalent to the given HSLA values.

See Also

Reference

HslColor Structure
ToHsv Overload
Avalonia.Media Namespace