RhinoCommon API
ColorHSL Structure |
Represents an HSL (Hue, Saturation, Luminance) color with double precision floating point channels.
HSL colors are used primarily in Graphical User Interface environments as they provide a
very natural approach to picking colors.
Namespace: Rhino.Display
Assembly: RhinoCommon (in RhinoCommon.dll)

The ColorHSL type exposes the following members.

Name | Description | |
---|---|---|
![]() | ColorHSL(Color) |
Constructs a new instance of ColorHSL that is equivalent to an RGB color.
|
![]() | ColorHSL(Double, Double, Double) |
Constructs a new instance of ColorHSL with custom channel values.
|
![]() | ColorHSL(Double, Double, Double, Double) |
Constructs a new instance of ColorHSL with custom channel values.
|

Name | Description | |
---|---|---|
![]() | A |
Gets or sets the alpha channel value.
Alpha channels are limited to a 0~1 range.
|
![]() | H |
Gets or sets the hue channel value.
Hue channels rotate between 0.0 and 1.0.
|
![]() | L |
Gets or sets the luminance channel value.
Luminance channels are limited to a 0~1 range.
|
![]() | S |
Gets or sets the saturation channel value.
Saturation channels are limited to a 0~1 range.
|

Name | Description | |
---|---|---|
![]() ![]() | CreateFromCMYK |
Create the nearest HSL equivalent of a CMYK color.
|
![]() ![]() | CreateFromHSV |
Constructs the nearest HSL equivalent of an HSV color.
|
![]() ![]() | CreateFromLAB |
Create the nearest HSL equivalent of a LAB color.
|
![]() ![]() | CreateFromLCH |
Create the nearest HSL equivalent of a LCH color.
|
![]() ![]() | CreateFromXYZ |
Create the nearest HSL equivalent of an XYZ color.
|
![]() | Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) |
![]() | GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToArgbColor |
Convert HSL color to an equivalent System.Drawing.Color.
|
![]() | ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |

Name | Description | |
---|---|---|
![]() ![]() | (ColorHSL to Color) |
Implicitly converts a ColorHSL in a .Net library color.
|

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14