Category: Arithmetics
Since engine version: 1.0 OC
SetRGBaValue
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