BIS fnc colorRGBAtoTexture: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|s1= +" to "|s1= ") |
Lou Montana (talk | contribs) m (Text replacement - "<span style="color: *(#?[a-zA-Z]+) *;? *">(.+)<\/span>" to "{{Color|$1|$2}}") |
||
(4 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
|gr1= Arrays | |gr1= Arrays | ||
|descr= Converts RGB color format to procedural texture, e.g | |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. | Values are in range 0..1. | ||
|s1= color call [[BIS_fnc_colorRGBAtoTexture]] | |s1= color call [[BIS_fnc_colorRGBAtoTexture]] | ||
|p1= color: [[Array]] - format [ | |p1= color: [[Array]] - format [{{Color|red|R}},{{Color|green|G}},{{Color|blue|B}},{{Color|grey|A}}] | ||
|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>)" | |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>)" | ||
|x1= < | |x1= <sqf>private _texture = [0,0,0,1] call BIS_fnc_colorRGBAtoTexture;</sqf> | ||
|seealso= [[BIS_fnc_colorRGBAtoHTML]] | |seealso= [[BIS_fnc_colorRGBAtoHTML]] | ||
}} | }} |
Latest revision as of 01:15, 30 April 2023
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:
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