BIS fnc HEXtoRGB: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - " |s1=[" to " |s1= [") |
||
Line 8: | Line 8: | ||
|descr= Convert hexcode color into RGBA array format. | |descr= Convert hexcode color into RGBA array format. | ||
|s1=[hexString] call [[BIS_fnc_HEXtoRGB]] | |s1= [hexString] call [[BIS_fnc_HEXtoRGB]] | ||
|p1= hexString: [[String]] - string representing '''4 octets''' of HEX color | |p1= hexString: [[String]] - string representing '''4 octets''' of HEX color |
Revision as of 23:11, 12 July 2022
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:
- Example 2:
- Usually HEX code is represented as 3 octet without alpha, so you can add it yourself:
Additional Information
- See also:
- Color (RGBA) BIS_fnc_colorConfigToRGBA BIS_fnc_colorRGBAtoHTML BIS_fnc_colorRGBtoHTML BIS_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