Class Name: HSV Color

Superclass - Color Data

Definition

Contains the actual Hue, Saturation, and Value data values for a color defined within the Hue Saturation Value color model. The Saturation and Value values are expected to be between 0 and 1. If Value has a value of 0, then the values of Hue and Saturation are meaningless, because the color will be black. If Saturation has a value of 0, then the value of Hue is meaningless, and the value of Value will determine the shade of a grey color, somewhere between white and black. Hue is expected to have a value between 0.0 and 360.0 (not including 360.0). If the value of Hue is 'undefined' (because the value of Value or Saturation is 0), then the value of Hue can be represented as SE_POSITIVE_INFINITY, but this is not required. Basically, if Value == 0.0, then the values of Hue and Saturation should be ignored, and if Saturation == 0.0, then the value of Hue should be ignored. The Hue Saturation Value color model represents the color space as a hexagonal cone. The Hue of the color determines the 'color' of the color. The Saturation of the color determines the 'intensity' of the color, differentiating a 'strong' red from a 'weak' red, for example. And the Value of the color is the difference between a light color and a dark color. Decreasing the Value of a color adds black to the color.

Primary Page in DRM Diagram:

Example

  1. A HSV Color for pure black (Value = 0.0, Hue and Saturation values don't matter)
  2. A HSV Color for a bright red (Hue = 0.0, Saturation = 1.0, Value = 1.0)

FAQs

I use RGB, not HSV. How do I get RGB from an HSV transmittal?
This is very easy to do. The mathematical transformation is a bit involved, but the SEDRIS API will do it for you, if you ask nicely. After opening the transmittal, before you retrieve any Color Data, (or, if you want, even before you open the transmittal) call the SE_SetColorModel() function, like so "SE_SetColorModel( SE_RGB_MODEL);", and for the rest of the execution of that program, you will never get back a HSV_Color object. Each Color Data object you get back from there on out will be a RGB Color object.

Constraints

None.

Composed of (two-way)

Component of (one-way)(inherited)

Field Elements

SE_HSV_DATA hsv_data;

Prev: Grid Overlap. Next: HSV Color Control Link. Up:Index.