FANDOM


This command will generate a RGB value from integers.

SyntaxEdit

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

UsageEdit

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)

See AlsoEdit

dbInk
dbRGBR
dbRGBG
dbRGBB

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.