BIS fnc colorConfigToRGBA: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Arrays | |gr1 = Arrays | ||
| Converts config color format to RGBA array of numbers. | | Converts config color format to RGBA array of numbers. | ||
| configColor call [[BIS_fnc_colorConfigToRGBA]] | | configColor call [[BIS_fnc_colorConfigToRGBA]] | ||
|p1= configColor: [[Array]] - config color | |p1= configColor: [[Array]] - config color | ||
| [[Color|Color (RGBA)]] - format [r, g, b, a] | | [[Color|Color (RGBA)]] - format [r, g, b, a] | ||
|x1= <code>["0.5 + 0.25",0,0,1] [[call]] [[BIS_fnc_colorConfigToRGBA]]; {{codecomment|// returns [0.75,0,0,1]}}</code> | |x1= <code>["0.5 + 0.25",0,0,1] [[call]] [[BIS_fnc_colorConfigToRGBA]]; {{codecomment|// returns [0.75,0,0,1]}}</code> | ||
| [[Color|Color (RGBA)]], [[BIS_fnc_colorRGBtoHTML]], [[BIS_fnc_colorRGBAtoHTML]], [[BIS_fnc_colorRGBAtoTexture]] | | [[Color|Color (RGBA)]], [[BIS_fnc_colorRGBtoHTML]], [[BIS_fnc_colorRGBAtoHTML]], [[BIS_fnc_colorRGBAtoTexture]] | ||
}} | }} | ||
Revision as of 22:38, 17 January 2021
Description
Syntax
- Syntax:
- configColor call BIS_fnc_colorConfigToRGBA
- Parameters:
- configColor: Array - config color
- Return Value:
- Color (RGBA) - format [r, g, b, a]
Examples
- Example 1:
["0.5 + 0.25",0,0,1] call BIS_fnc_colorConfigToRGBA; // returns [0.75,0,0,1]
Additional Information
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