BIS fnc HEXtoRGB: Difference between revisions
Jump to navigation
Jump to search
(overhaul due to outdated data) |
mNo edit summary |
||
Line 5: | Line 5: | ||
|1.00|Game version= | |1.00|Game version= | ||
|gr1= Math |GROUP1= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 33: | Line 35: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:HEXtoRGB}}]] | [[Category:Functions|{{uc:HEXtoRGB}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:HEXtoRGB}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:HEXtoRGB}}]] |
Revision as of 00:04, 6 October 2020
Description
Syntax
- Syntax:
- [hexString] call BIS_fnc_HEXtoRGB
- Parameters:
- hexString: String - string representing 4 octets of HEX color
- Return Value:
- Array of Numbers - array of 4 numbers in range 0..1
Examples
- Example 1:
["025D00FF"] call BIS_fnc_HEXtoRGB; // [1,0.843138,0,1]
- Example 2:
- Usually HEX code is represented as 3 octet without alpha, so you can add it yourself:
[_hexString + "FF"] call BIS_fnc_HEXtoRGB; // Add 4th octet to get alpha
Additional Information
- See also:
- ColorBIS_fnc_colorConfigToRGBABIS_fnc_colorRGBAtoHTMLBIS_fnc_colorRGBtoHTMLBIS_fnc_colorRGBAtoTexture
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note