FromAhsl Method
Creates a new HslColor from individual color component values.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static HslColor FromAhsl(
double a,
double h,
double s,
double l
)
Public Shared Function FromAhsl (
a As Double,
h As Double,
s As Double,
l As Double
) As HslColor
static member FromAhsl :
a : float *
h : float *
s : float *
l : float -> HslColor
Parameters
- Double
- The Alpha (transparency) component in the range from 0..1.
- Double
- The Hue component in the range from 0..360.
- Double
- The Saturation component in the range from 0..1.
- Double
- The Lightness component in the range from 0..1.
Return Value
HslColor
A new HslColor built from the individual color component values.
Remarks
This exists for symmetry with the Color struct; however, the appropriate constructor should commonly be used instead.