The HSV procedure creates a color table based on the HSV (Hue and Saturation Value) color system.
Using the input parameters, a spiral through the single-ended HSV cone is traced. Points along the cone are converted from HLS to RGB. The current colortable (and the COLORS common block) contains the new colortable on exit.
This routine is written in the IDL language. Its source code can be found in the file hsv.pro
in the lib
subdirectory of the IDL distribution.
HSV, Vlo, Vhi, Satlo, Sathi, Hue, Loops [, Colr]
Starting value, from 0 to 100%.
Ending value, from 0 to 100%.
Starting saturation, from 0 to 100%.
Ending saturation, from 0 to 100%.
Starting Hue, from 0 to 360 degrees. Red = 0 degs, green = 120, blue = 240.
The number of loops through the color spiral. This parameter does not have to be an integer. A negative value causes the loops to traverse the spiral in the opposite direction.
An optional (256,3) integer array in which the new R, G, and B values are returned. Red = Colr[*,0], green = Colr[*,1], blue = Colr[*,2].
None.
Introduced: Original