RGB

From Soldat Community Wiki
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.