# SplitRGBaValue

Arithmetics
5.1 OC
array
int rgba 32 bit color value
Returns an array with the red, green, blue, and alpha values of the specified 32 bit color value: [red, green, blue, alpha]
var rgba = SplitRGBaValue(GetCursor()->GetColor()); GetCursor()->Message("R: %d|G: %d|B: %d|A: %d",rgba[0], rgba[1], rgba[2], rgba[3]);
Displays the four color values of the currently selected clonk above the clonk's head.
GetRGBaValue
SetRGBaValue
Tyron
2004-09