RGB

Category: Arithmetics
Since engine version: 4.9.1.0 GWE

Description

Composes a 32 bit color value from the three base colors. Range 0-255 for all parameters.

Syntax

int RGB (int byR, int byG, int byB);

Parameters

byR:
Red color part
byG:
Green color part
byB:
Blue color part

Example

SetSkyAdjust(RGB(255,0,0));
Makes a ruddy sky.
See also: HSL, HSLa, RGBa
Sven2, April 2002