OOF2: The Manual
Name
HSVAColor (HSVAColor) — Color specified by Hue, Saturation, Value, and Alpha.
Synopsis
HSVAColor(hue,saturation,value,alpha)
Details
-
Base class:
Color -
Parameters:
hue- Value of Hue. Type: A real number in the range [0, 360].
saturation- Value of Saturation. Type: A real number in the range [0, 1].
value- Value of ... hmmm ... Value. Type: A real number in the range [0, 1].
alpha- Opacity. Type: A real number in the range [0, 1].
Description
HSVColor specifies a Color in terms of its
hue, saturation, and
value. We stole our algorithm for converting
between RGB and
HSV from http://www.cs.rit.edu/~ncs/color/t_convert.html.
hue is angle on the color wheel, in degrees. 0
or 360 is red, 60 is yellow, 120 is green, 180 is cyan, 240 is
blue, and 300 is magenta.
saturation describes the
“strength” or “purity” of the color.
It's a floating point number between 0 and 1.
Low values give pale, washed-out colors, tending toward white.
value is the brightness of the color. It too
is a floating point number between 0 and 1, where 0 is darkest and
1 is brightest.



