RhinoCommon API
ColorLCH Structure |
Represents an LCH (Lightness, A, B) color with double precision floating point channels.
LCH colors (also sometimes called CIELUV) are transformation of the 1931 CIE XYZ color space,
in order to approach perceptual uniformity. They are primarily used in computer graphics which
deal with colored lights.
Namespace: Rhino.Display
Assembly: RhinoCommon (in RhinoCommon.dll)

The ColorLCH type exposes the following members.

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

Name | Description | |
---|---|---|
![]() | A |
Gets or sets the Alpha channel. The Alpha channel is limited to the 0~1 range.
|
![]() | C |
Gets or sets the Chroma channel. Chroma is defined from -1.0 to +1.0.
|
![]() | H |
Gets or sets the Hue channel. The hue channel is limited to the 0~360 degree range.
|
![]() | L |
Gets or sets the Lightness channel.
|

Name | Description | |
---|---|---|
![]() ![]() | CreateFromCMYK |
Create the nearest LCH equivalent of a CMYK color.
|
![]() ![]() | CreateFromHSL |
Create the nearest LCH equivalent of an HSL color.
|
![]() ![]() | CreateFromLAB |
Create the nearest LCH equivalent of a LAB color.
|
![]() ![]() | CreateFromXYZ |
Create the nearest LCH 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.) |
![]() | MakePositive |
Ensure the Chromaticity of this color is positive.
|
![]() | ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |

Name | Description | |
---|---|---|
![]() ![]() | (ColorLCH to Color) |
Implicitly converts a LCH color into a .Net library color.
|

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