ColorHSV Structure

ColorHSV Structure

Represents an HSV (Hue, Saturation, Value) color with double precision floating point channels. HSV colors (also sometimes called HSB, where B means Brightness) are similar to HSL colors in that they represent colors in a cylindrical color space, and are intended to provide intuitive means to edit the brightness of a particular color over RGB color space where each each color channel would need to be modified to affect the color brightness.

Namespace:  Rhino.Display
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
[SerializableAttribute]
public struct ColorHSV
<SerializableAttribute>
Public Structure ColorHSV

The ColorHSV type exposes the following members.

Constructors
  NameDescription
Public methodColorHSV(Color)
Constructs a new instance of ColorHSV that is equivalent to an RGB color.
Public methodColorHSV(Double, Double, Double)
Constructs a new instance of ColorHSV with custom channel values.
Public methodColorHSV(Double, Double, Double, Double)
Constructs a new instance of ColorHSV with custom channel values.
Top
Properties
  NameDescription
Public propertyA
Gets or sets the alpha channel value. Alpha channels are limited to a 0~1 range.
Public propertyH
Gets or sets the hue channel value. Hue channels rotate between 0.0 and 1.0.
Public propertyS
Gets or sets the saturation channel value. Saturation channels are limited to a 0~1 range.
Public propertyV
Gets or sets the value (brightness) channel value. Value channels are limited to a 0~1 range.
Top
Methods
  NameDescription
Public methodStatic memberCreateFromCMYK
Create the nearest HSV equivalent of a CMYK color.
Public methodStatic memberCreateFromHSL
Constructs the nearest CMYK equivalent of an HSV color.
Public methodStatic memberCreateFromLAB
Create the nearest HSV equivalent of a LAB color.
Public methodStatic memberCreateFromLCH
Create the nearest HSV equivalent of a LCH color.
Public methodStatic memberCreateFromXYZ
Create the nearest HSV 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 methodToArgbColor
Convert HSV color to an equivalent System.Drawing.Color.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Operators
  NameDescription
Public operatorStatic member(ColorHSV to Color)
Implicitly converts a ColorHSV in a .Net library color.
Top
Version Information

Rhino for Windows

Supported in: 6.14
See Also