RhinoCommon API
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)
The ColorHSV type exposes the following members.
| Name | Description | |
|---|---|---|
| ColorHSV(Color) |
Constructs a new instance of ColorHSV that is equivalent to an RGB color.
| |
| ColorHSV(Double, Double, Double) |
Constructs a new instance of ColorHSV with custom channel values.
| |
| ColorHSV(Double, Double, Double, Double) |
Constructs a new instance of ColorHSV with custom channel values.
|
| Name | Description | |
|---|---|---|
| A |
Gets or sets the alpha channel value.
Alpha channels are limited to a 0~1 range.
| |
| H |
Gets or sets the hue channel value.
Hue channels rotate between 0.0 and 1.0.
| |
| S |
Gets or sets the saturation channel value.
Saturation channels are limited to a 0~1 range.
| |
| V |
Gets or sets the value (brightness) channel value.
Value channels are limited to a 0~1 range.
|
| Name | Description | |
|---|---|---|
| CreateFromCMYK |
Create the nearest HSV equivalent of a CMYK color.
| |
| CreateFromHSL |
Constructs the nearest CMYK equivalent of an HSV color.
| |
| CreateFromLAB |
Create the nearest HSV equivalent of a LAB color.
| |
| CreateFromLCH |
Create the nearest HSV equivalent of a LCH color.
| |
| CreateFromXYZ |
Create the nearest HSV 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.) | |
| ToArgbColor |
Convert HSV color to an equivalent System.Drawing.Color.
| |
| ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
| Name | Description | |
|---|---|---|
| (ColorHSV to Color) |
Implicitly converts a ColorHSV in a .Net library color.
|