BIN fnc colorHSLtoRGB: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Misc(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
m (Fix Wikipedia link)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.94


|1.94|Game version=
|gr1= Contact
____________________________________________________________________________________________


| Converts {{Wikipedia|HSL and HSV|HSL colour format}} to RGB.
|descr= Converts {{Link|https://en.wikipedia.org/wiki/HSL_and_HSV|HSL colour format}} to RGB.
{{Feature arma3contact|This function is part of the [[Arma 3 Contact]] expansion only.}} |Description=
{{Feature|arma3contact}}
____________________________________________________________________________________________


| [hue, saturation, lightness] call [[BIN_fnc_colorHSLtoRGB]] |Syntax=
|s1= [hue, saturation, lightness] call [[BIN_fnc_colorHSLtoRGB]]


|p1= hue: [[Number]] - (Optional, default 0) |Parameter 1=
|p1= hue: [[Number]] - (Optional, default 0)


|p2= saturation: [[Number]] - (Optional, default 0) |Parameter 2=
|p2= saturation: [[Number]] - (Optional, default 0)


|p3= lightness: [[Number]] - (Optional, default 0) |Parameter 3=
|p3= lightness: [[Number]] - (Optional, default 0)


| [[Array]] of [[Number]]s - to format [{{Color|red|R}}, {{Color|green|G}}, {{Color|blue|B}}] |Return value=
|r1= [[Array]] of [[Number]]s - to format [{{Color|red|R}}, {{Color|green|G}}, {{Color|blue|B}}]
____________________________________________________________________________________________


|x1= <code>[[private]] _rgb = [0, 100, 50] [[call]] [[BIN_fnc_colorHSLtoRGB]];</code> |Example 1=
|x1= <sqf>private _rgb = [0, 100, 50] call BIN_fnc_colorHSLtoRGB;</sqf>
____________________________________________________________________________________________


| [[BIS_fnc_colorRGBtoHTML]] |See also=
|seealso= [[BIS_fnc_colorRGBtoHTML]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>

Latest revision as of 22:14, 23 February 2023

Hover & click on the images for description

Description

Description:
Converts HSL colour format to RGB.
enoch icon ca.png
This content is exclusive to the Arma 3 Contact Expansion.
Execution:
call
Groups:
Contact

Syntax

Syntax:
[hue, saturation, lightness] call BIN_fnc_colorHSLtoRGB
Parameters:
hue: Number - (Optional, default 0)
saturation: Number - (Optional, default 0)
lightness: Number - (Optional, default 0)
Return Value:
Array of Numbers - to format [R, G, B]

Examples

Example 1:
private _rgb = [0, 100, 50] call BIN_fnc_colorHSLtoRGB;

Additional Information

See also:
BIS_fnc_colorRGBtoHTML

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