ColorHSL Structure |
Namespace: Eto.Drawing
The ColorHSL type exposes the following members.
| Name | Description | |
|---|---|---|
| ColorHSL(Color) |
Initializes a new instance of the ColorHSL class with converted HSL values from a Color | |
| ColorHSL(Single, Single, Single, Single) |
Initializes a new instance of the ColorHSL class
|
| Name | Description | |
|---|---|---|
| A |
Gets or sets the alpha (0-1)
| |
| H |
Gets or sets the hue (0-360)
| |
| L |
Gets or sets the luminance (0-1)
| |
| S |
Gets or sets the saturation (0-1)
|
| Name | Description | |
|---|---|---|
| Distance |
Calculates the 'distance' of two HSL colors
| |
| Equals(Object) |
Compares the given object for equality with this object
(Overrides ValueTypeEquals(Object).) | |
| Equals(ColorHSL) |
Compares the given object for equality with this object
| |
| GetHashCode |
Gets the hash code for this object
(Overrides ValueTypeGetHashCode.) | |
| ToColor |
Converts this HSL color to a RGB Color value
|
| Name | Description | |
|---|---|---|
| Equality |
Compares two ColorHSL objects for equality
| |
| (Color to ColorHSL) |
Implicitly converts from a Color to a ColorHSL
| |
| (ColorHSL to Color) |
Implicitly converts a ColorHSL to an RGB Color | |
| Inequality |
Compares two ColorHSL objects for equality
|