RhinoCommon API
ColorLAB Structure |
Represents a LAB (Lightness, A, B) color with double precision floating point channels.
LAB colors are based on nonlinearly compressed CIE XYZ color space coordinates.
The A and B parameters of a LAB color represent the opponents.
Namespace: Rhino.Display
Assembly: RhinoCommon (in RhinoCommon.dll)

The ColorLAB type exposes the following members.

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

Name | Description | |
---|---|---|
![]() | A |
Gets or sets the Base channel. The channel is limited to 0~1.
|
![]() | Alpha |
Gets or sets the Alpha channel. The channel is limited to 0~1.
|
![]() | B |
Gets or sets the Opponent channel. The channel is limited to 0~1.
|
![]() | L |
Gets or sets the lightness channel. The channel is limited to 0~1.
|

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

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

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