HSV Function
Returns a Color object based on the HSV (hue, saturation, value) color model.
Syntax
result = HSV( hue, saturation, value )
Parameters | ||
hue |
The value of Hue in the color. |
|
saturation |
The value of Saturation in the color. |
|
value |
The value of Value in the color. |
Notes
The HSV function returns a color object based on the amounts of Hue, Saturation, and Value passed. These amounts are represented by doubles between 0 and 1.
Colors can also be created using the RGB or CMY models. You can also use the &c literal to specify a color using the RGB model.
Examples
This example uses the HSV function to assign a Color to the FillColor property of a Rectangle control.
Rectangle1.FillColor=HSV(.8,.5,.75)
See Also
Color data type, CMY, RGB, SelectColor functions; &c literal.