DbRGB

This command will generate a RGB value from integers.

Syntax
DWORD dbRGB ( int iRed, int iGreen, int iBlue )

Usage
This command returns a single RGB value generated from the separate RGB values specified. This combined value can be used with other functions, such as dbInk.

DWORD foreground_color = dbRGB ( 255, 0, 255 ); DWORD background_color = dbRGB ( 0, 255, 0 ); dbInk ( foreground_color, background_color );

Presumably, this works in the same way as the macro D3DCOLOR_XRGB, which theoretically should run faster. If trying to optimize fully, replace this function with D3DCOLOR_XRGB.

some ref. colors:
 * red dbRGB(255,0,0)
 * green dbRGB(0,255,0)
 * blue dbRGB(0,0,255)
 * yellow dbRGB(255,255,0)
 * magenta dbRGB(255,0,255)
 * cyan dbRGB(0,0,255)
 * white dbRGB(255,255,255)
 * black dbRGB(0,0,0)