RGBa

Category: Arithmetics
Since engine version: 1.0 OC

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:
Opacity

Example

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