ColorRGB
- specify color using Red-Green-Blue components

Miscellaneous functions
(AmiBroker 4.80)


SYNTAX ColorRGB( red, green, blue )
RETURNS NUMBER
FUNCTION The function allows to specify color out of 16 million color (24 bit) palette using Red, Green, Blue components.

The return value is a number that can be used in Plot, PlotOHLC, PlotForeign, AddColumn, AddTextColumn functions to specify chart or column color.

Parameters:
red, green, blue - represent color component values in range 0..255 each

For more information about RGB color model please read: http://en.wikipedia.org/wiki/RGB_color_model

EXAMPLE Plot( MA(C,10), "Light Red", ColorRGB( 255, 128, 128 ) ); Plot( MA(C,20), "Light Green", ColorRGB( 128, 255, 128 ) ); Plot( MA(C,30), "Light Blue", ColorRGB( 128, 128, 255 ) );
SEE ALSO ColorHSB() function , PLOT() function , AddColumn() function

References:

The ColorRGB function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.