# DoRGBaValue

Arithmetics
5.1 OC
int
int Val 32 bit color value
int change Color value to be added.
int select 0-3: Color value to be changed.
Adds a specified color value to a 32 bit color value.

select
Selection
0
Alpha value
1
Red value
2
Green value
3
Blue value

This function does not ensure maximum or minimum limits of color values.
GetCursor
()->SetColor(DoRGBaValue(GetCursor()->GetColor(),-20,1));
Reduces the red part of the currently selected clonk by 20.
GetRGBaValue
SetRGBaValue
Tyron
2004-08