BIS fnc colorRGBAtoTexture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *([^=\| ]+) * \|p1=" to " |s1= $1 |p1=")
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3")
Line 7: Line 7:
|gr1= Arrays
|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>
|descr= 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.
Values are in range 0..1.



Revision as of 21:37, 13 June 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