GetRGBaValue
Category:
Arithmetics
Since engine version:
5.1 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(
GetColor
(
GetCursor
()),2);
Returns the green fraction of the currently selected clonk.
See also:
RGBa
,
SetRGBaValue
Tyron, 2004-08