ColorHSB
|
Miscellaneous functions |
SYNTAX | ColorHSB( hue, saturation, brightness ) |
RETURNS | NUMBER |
FUNCTION | The function allows to specify color out of 16 million color (24 bit) palette using Hue, Saturation and Brightness parameters.
The return value is a number that can be used in Plot, PlotOHLC, PlotForeign, AddColumn, AddTextColumn functions to specify chart or column color. Parameters:
Each parameter ranges from 0 to 255, where 0 represents 0% saturation/brightness or 0 degree hue in HSV color wheel, and 255 represents 100% saturation/brightness or 360degrees hue in HSV color wheel. When you modify hue from 0 to 255 you will see consecutive rainbow colors starting from red, through yellow and green to blue and violet. For more information about HSB color space please read: http://en.wikipedia.org/wiki/HSB_color_space |
EXAMPLE | // Example 1: |
SEE ALSO | ColorRGB() function , PLOT() function , AddColumn() function |
The ColorHSB function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.