SetRGBaValue
Category:
Arithmetics
Since engine version:
5.1 OC
Description
Sets a single color value of a 32 bit color value.
select
Selection
0
Alpha value
1
Red value
2
Green value
3
Blue value
Syntax
int
SetRGBaValue(
int
Val,
int
NewVal,
int
select);
Parameters
Val:
32 bit color value
NewVal:
0-255: Color value to be replaced with the old one.
select:
0-3: Color value to be changed.
Example
GetCursor
()->SetColor(SetRGBaValue(
GetCursor
()->
GetColor
(),255,1));
Sets the red value of the current clonk to maximum.
See also:
DoRGBaValue
,
GetRGBaValue
Tyron, 2004-08