SplitRGBaValue
Arithmetics
5.1 OC (returns proplist since 8.0 OC)
proplist
int
rgba
32 bit color value
Returns a proplist with the red, green, blue, and alpha values of the specified 32 bit color value: {R = red, G = green, B = blue, Alpha = alpha}
var rgba = SplitRGBaValue(GetCursor()->GetColor());
GetCursor()->Message("R: %d|G: %d|B: %d|A: %d", rgba.R, rgba.G, rgba.B, rgba.Alpha);
Displays the four color values of the currently selected clonk above the clonk's head.
GetRGBaValue
SetRGBaValue
Tyron2004-09