GetRGBaValue

Category: Arithmetics
Since engine version: 4.9.5.0 CE

Description

Returns one of the three color fractions of the specified 32 bit color value:
iSelect Return value
0 Alpha value
1 Red value
2 Green value
3 Blue value

Syntax

int GetRGBaValue (int Val, int iSelect);

Parameters

Val:
32 bit color value
iSelect:
0-3: desired value to be returned

Example

GetRGBaValue(GetColorDw(GetCursor()),2);
Returns the green fraction of the currently selected clonk
See also: RGBa, SetRGBaValue
Tyron, August 2004