[]
public HslColor(Color color)
Public Sub New(color As Color)
Type | Name | Description |
---|---|---|
Color | color |
Initializes a new instance of the HslColor struct.
public HslColor(float hue, float saturation, float lightness, float opacity = 1)
Public Sub New(hue As Single, saturation As Single, lightness As Single, Optional opacity As Single = 1)
Type | Name | Description |
---|---|---|
float | hue | Hue value in the range [0, 360]. |
float | saturation | Saturation value in the range [0, 1]. |
float | lightness | Lightness value in the range [0, 1]. |
float | opacity | Opacity value in the range [0, 1]. |
Initializes a new instance of the HslColor struct from a 32-bit ARGB value.
public HslColor(int argb)
Public Sub New(argb As Integer)
Type | Name | Description |
---|---|---|
int | argb |