BIS fnc colorRGBAtoTexture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "<span style="color: *(#?[a-zA-Z]+) *;? *">(.+)<\/span>" to "{{Color|$1|$2}}")
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Arrays


|1.00|= Game version
|descr= Converts RGB color format to procedural texture, e.g {{hl|[0,0,0,1]}} becomes {{hl|"#(argb,8,8,3)color(0,0,0,1)"}}.<br>
____________________________________________________________________________________________
Values are in range 0..1.


| <pre>/*
|s1= color call [[BIS_fnc_colorRGBAtoTexture]]


Description:
|p1= color: [[Array]] - format [{{Color|red|R}},{{Color|green|G}},{{Color|blue|B}},{{Color|grey|A}}]
Converts RGB color format to procedural texture.
[0,0,0,1] becomes "#(argb,8,8,3)color(0,0,0,1)"


Parameter(s):
|r1= [[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>)"
0: ARRAY - color in RGBA format


Returns:
|x1= <sqf>private _texture = [0,0,0,1] call BIS_fnc_colorRGBAtoTexture;</sqf>
String
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_colorRGBAtoTexture]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[BIS_fnc_colorRGBAtoHTML]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Misc|{{uc:colorRGBAtoTexture}}]]
[[Category:Functions|{{uc:colorRGBAtoTexture}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:colorRGBAtoTexture}}]]

Latest revision as of 02:15, 30 April 2023

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:
private _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