BIS fnc colorRGBAtoTexture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "")
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|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.00|Game version=
|1.00


|gr1 = Arrays |GROUP1=
|gr1 = Arrays


| Converts RGB color format to procedural texture, e.g <tt>[0,0,0,1]</tt> becomes <tt>"#(argb,8,8,3)color(0,0,0,1)"</tt>.<br>
| Converts RGB color format to procedural texture, e.g <tt>[0,0,0,1]</tt> becomes <tt>"#(argb,8,8,3)color(0,0,0,1)"</tt>.<br>
Values are in range 0..1. |Description=
Values are in range 0..1.


| color call [[BIS_fnc_colorRGBAtoTexture]] |Syntax=
| color call [[BIS_fnc_colorRGBAtoTexture]]


|p1= color: [[Array]] - format [<span style="color: red">R</span>,<span style="color: green">G</span>,<span style="color: blue">B</span>,<span style="color: grey">A</span>] |Parameter 1=
|p1= color: [[Array]] - format [<span style="color: red">R</span>,<span style="color: green">G</span>,<span style="color: blue">B</span>,<span style="color: grey">A</span>]


| [[String]] - procedural texture to format "#(argb,8,8,3)color(<span style{{=}}"color: red">R</span>,<span style{{=}}"color: green">G</span>,<span style{{=}}"color: blue">B</span>,<span style{{=}}"color: grey">A</span>)" |Return value=
| [[String]] - procedural texture to format "#(argb,8,8,3)color(<span style{{=}}"color: red">R</span>,<span style{{=}}"color: green">G</span>,<span style{{=}}"color: blue">B</span>,<span style{{=}}"color: grey">A</span>)"


|x1= <code>_texture = [0,0,0,1] [[call]] [[BIS_fnc_colorRGBAtoTexture]];</code> |Example 1=
|x1= <code>_texture = [0,0,0,1] [[call]] [[BIS_fnc_colorRGBAtoTexture]];</code>


| [[BIS_fnc_colorRGBAtoHTML]] |See also=
| [[BIS_fnc_colorRGBAtoHTML]]
}}
}}



Revision as of 23:38, 17 January 2021

Hover & click on the images for description

Description

Description:
Converts RGB color format to procedural texture, e.g [0,0,0,1] becomes "#(argb,8,8,3)color(0,0,0,1)".
Values are in range 0..1.
Execution:
call
Groups:
Arrays

Syntax

Syntax:
color call BIS_fnc_colorRGBAtoTexture
Parameters:
color: Array - format [R,G,B,A]
Return Value:
String - procedural texture to format "#(argb,8,8,3)color(R,G,B,A)"

Examples

Example 1:
_texture = [0,0,0,1] call BIS_fnc_colorRGBAtoTexture;

Additional Information

See also:
BIS_fnc_colorRGBAtoHTML

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


Bottom Section