- specify color using Red-Green-Blue components

Miscellaneous functions
(AmiBroker 4.80)

SYNTAX ColorRGB( red, green, blue )
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.

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

For more information about RGB color model please read:

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


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

More information:

See updated/extended version on-line.