Description
Convert RGBA hexcode color into RGBA array format.
Syntax
[hexString] call BIS_fnc_HEXtoRGB
Parameters:
hexString: String - string representing 4 bytes of HEX color
Returns: Array format Color (RGBA) - array of 4 numbers in range 0..1
Examples
Example 1
["025D00FF"] call BIS_fnc_HEXtoRGB; // [0.007843, 0.843138, 0, 1]
Example 2
Usually HEX code is represented as 3 bytes without alpha, so you can add it yourself:
_hexstring = "025D00";
[_hexString + "FF"] call BIS_fnc_HEXtoRGB; // add alpha 4th byte
See also
Color · BIS_fnc_colorConfigToRGBA · BIS_fnc_colorRGBAtoHTML · BIS_fnc_colorRGBtoHTML · BIS_fnc_colorRGBAtoTexture