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)
- C#
- VB
- F#
public HslColor(
double alpha,
double hue,
double saturation,
double lightness
)
Public Sub New (
alpha As Double,
hue As Double,
saturation As Double,
lightness As Double
)
new :
alpha : float *
hue : float *
saturation : float *
lightness : float -> HslColor
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