# SplitRGBaValue

Arithmetics
4.9.5.0 CE
bool
int Val 32 bit color value
int red [opt] variable in which the red value is to be stored
int green [opt] variable in which the green value is to be stored
int blue [opt] variable in which the blue value is to be stored
int alpha [opt] variable in which the alpha value is to be stored
Writes the red, green, blue, and alpha values of a 32 bit color value to the specified variables.
var red, green, blue; SplitRGBaValue(GetColorDw(GetCursor()),red,green,blue); GetCursor()->Message("Rot: %d|Grün %d|Blau %d",red, green, blue);
Displays the three color values of the currently selected clonk above the clonk's head.
GetRGBaValue
SetRGBaValue
Tyron
2004-09