Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>rgb()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
RGB()
Mix a colour from red, green and blue components
------------------------------------------------------------------------------

Syntax
RGB( <nRed>, <nGreen>, <nBlue> )   -->   nColour

Arguments
<nRed>, <nGreen>, <nBlue> are integers in the range 0 to 255
representing the amount of each colour to be used in the new
colour.  (Zero (0) represents none of the colour.)

Returns
A number representing the desired colour is returned.

Description
RGB() is actually a macro, but is used like a function.

Example
nBlack = RGB( 0, 0, 0 )
nWhite = RGB( 255, 255, 255 )
nRed = RGB( 255, 0, 0 )


See Also: GetBValue() GetGValue() GetNearestColor() GetRValue() SetBkColor() SetTextColor()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson