GetRGBaValue

Category: Arithmetics
Since engine version: 1.0 OC

Description

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

Syntax

int GetRGBaValue(int Val, int select);

Parameters

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

Example

GetRGBaValue(GetCursor()->GetColor(), 2);
Returns the green fraction of the currently selected clonk.
See also: RGBa, SetRGBaValue
Tyron, 2004-08