RGB

From Soldat Community Wiki
Revision as of 14:06, 15 August 2012 by Freeman (talk | contribs) (Created page with " ''function RGB(R,G,B: Byte):Longint;'' '''Parameter Info:''' R (Byte): Red value G (Byte): Green value B (Byte): Blue value '''Description:''' Convert R,G,B to ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
function RGB(R,G,B: Byte):Longint;

Parameter Info:
 R (Byte): Red value
 G (Byte): Green value
 B (Byte): Blue value

Description:
 Convert R,G,B to a Longint for use with WriteConsole/DrawText.

Examples

  DrawText(0, 'Hello big world!', 330, RGB(255,0,0), 0.20, 40, 240);
  // Will draw: "Hello big world!" in the center screen with red color.