BIS fnc HEXtoRGB: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (Text replacement - "\[\[[cC]ategory:\{\{Name\|arma3\}\}: [fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
Line 20: Line 20:
| [[Color|Color (RGBA)]], [[BIS_fnc_colorConfigToRGBA]], [[BIS_fnc_colorRGBAtoHTML]], [[BIS_fnc_colorRGBtoHTML]], [[BIS_fnc_colorRGBAtoTexture]]
| [[Color|Color (RGBA)]], [[BIS_fnc_colorConfigToRGBA]], [[BIS_fnc_colorRGBAtoHTML]], [[BIS_fnc_colorRGBtoHTML]], [[BIS_fnc_colorRGBAtoTexture]]
}}
}}
[[Category:{{Name|arma3}}: Functions|{{uc:HEXtoRGB}}]]

Revision as of 03:11, 2 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Math

Syntax

Syntax:
Syntax needed
Parameters:
hexString: String - string representing 4 octets of HEX color
Return Value:
Return value needed

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:
See also needed

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