Category: Arithmetics
Since engine version: 5.1 OC
SplitRGBaValue
Description
Returns an array with the red, green, blue, and alpha values of the specified 32 bit color value: [red, green, blue, alpha]
Syntax
array SplitRGBaValue(int rgba);
Parameter
- rgba:
- 32 bit color value
Example
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.
See also: GetRGBaValue, SetRGBaValue


