ColorLCH
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)
Syntax
[SerializableAttribute]public struct ColorLCH
The ColorLCH type exposes the following members.
Constructors
Name
Description
Public Method
ColorLCH(Color)
Constructs a new instance of ColorLCH that is equivalent to an ARGB color.
Public Method
ColorLCH(Double, Double, Double)
Constructs a new instance of ColorLCH with custom channel values.
Public Method
ColorLCH(Double, Double, Double, Double)
Constructs a new instance of ColorLCH with custom channel values.
Properties
Name
Description
Public Property
A
Gets or sets the Alpha channel. The Alpha channel is limited to the 0~1 range.
Public Property
C
Gets or sets the Chroma channel. Chroma is defined from -1.0 to +1.0.
Public Property
H
Gets or sets the Hue channel. The hue channel is limited to the 0~360 degree range.
Public Property
L
Gets or sets the Lightness channel.
Methods
Name
Description
Public Method
Static Member
CreateFromCMYK
Create the nearest LCH equivalent of a CMYK color.
Public Method
Static Member
CreateFromHSL
Create the nearest LCH equivalent of an HSL color.
Public Method
Static Member
CreateFromLAB
Create the nearest LCH equivalent of a LAB color.
Public Method
Static Member
CreateFromRGBA
Create the nearest LCH equivalent of an RGBA color.
Public Method
Static Member
CreateFromXYZ
Create the nearest LCH equivalent of an XYZ color.
Public Method
Equals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public Method
GetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public Method
MakePositive
Ensure the Chromaticity of this color is positive.
Public Method
ToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Operators
Name
Description
Public Operator
Static Member
.(ColorLCH to Color)
Implicitly converts a LCH color into a .Net library color.