[]
Initializes a new instance of the C1HslColor struct.
public C1HslColor(float h, float s, float l)
Type | Name | Description |
---|---|---|
float | h | Hue is a value between 0 and 1. |
float | s | Saturation is a value between 0 and 1. |
float | l | Luminance is a value between 0 and 1. |
Initializes a new instance of the C1HslColor struct.
public C1HslColor(byte a, float h, float s, float l)
Type | Name | Description |
---|---|---|
byte | a | Alpha channel. |
float | h | Hue is a value between 0 and 1. |
float | s | Saturation is a value between 0 and 1. |
float | l | Luminance is a value between 0 and 1. |
Initializes a new instance of the C1HslColor struct.
public C1HslColor(Color rgbColor)
Type | Name | Description |
---|---|---|
Color | rgbColor | RGB color used to initialize the HSL color. |