Click or drag to resize
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) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
[SerializableAttribute]
public struct ColorLAB

The ColorLAB type exposes the following members.

Constructors
  NameDescription
Public methodColorLAB(Color)
Constructs a new instance of ColorLAB that is equivalent to an RGB color.
Public methodColorLAB(Double, Double, Double)
Constructs a new instance of ColorLAB with custom channel values.
Public methodColorLAB(Double, Double, Double, Double)
Constructs a new instance of ColorLAB with custom channel values.
Top
Properties
  NameDescription
Public propertyA
Gets or sets the Base channel. The channel is limited to 0~1.
Public propertyAlpha
Gets or sets the Alpha channel. The channel is limited to 0~1.
Public propertyB
Gets or sets the Opponent channel. The channel is limited to 0~1.
Public propertyL
Gets or sets the lightness channel. The channel is limited to 0~1.
Top
Methods
  NameDescription
Public methodStatic memberCreateFromCMYK
Create the nearest LAB equivalent of a CMYK color.
Public methodStatic memberCreateFromHSL
Create the nearest LAB equivalent of an HSL color.
Public methodStatic memberCreateFromLCH
Create the nearest LAB equivalent of an LCH color.
Public methodStatic memberCreateFromXYZ
Create the nearest LAB equivalent of an XYZ color.
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Operators
See Also