RGBa

Category: Arithmetics
Since engine version: 4.9.1.0 GWE

Description

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

Syntax

int RGBa (int byR, int byG, int byB, int byA);

Parameters

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

Example

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