Skip to main content

HslColor(Double, Double, Double, Double) Constructor

Initializes a new instance of the HslColor struct.

Definition​

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

public HslColor(
double alpha,
double hue,
double saturation,
double lightness
)

Parameters​

  Double
The Alpha (transparency) component in the range from 0..1.
  Double
The Hue component in the range from 0..360. Note that 360 is equivalent to 0 and will be adjusted automatically.
  Double
The Saturation component in the range from 0..1.
  Double
The Lightness component in the range from 0..1.

See Also​

Reference​

HslColor Structure
HslColor Overload
Avalonia.Media Namespace