BIN fnc colorHSLtoRGB: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
Contact>Unknown user
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "<code>\[\[private\]\] (_?[a-zA-Z0-9_]+) = \[([^\[]*)\] \[\[(call|spawn)\]\] \[\[(BI(N|S)_fnc_[a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>private $1 = [$2] $3 $4;</sqf>")
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


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


| arma3 |= Game name
|gr1= Contact


|1.00|= Game version
|descr= Converts {{Wikipedia|HSL and HSV|HSL colour format}} to RGB.
____________________________________________________________________________________________
{{Feature|arma3contact}}


| ''N/A'' |= Description
|s1= [hue, saturation, lightness] call [[BIN_fnc_colorHSLtoRGB]]
____________________________________________________________________________________________


| <!-- [] call [[BIN_fnc_colorHSLtoRGB]]; --> |= Syntax
|p1= hue: [[Number]] - (Optional, default 0)


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


| |= Return value
|p3= lightness: [[Number]] - (Optional, default 0)
____________________________________________________________________________________________


|x1= <code></code> |=
|r1= [[Array]] of [[Number]]s - to format [{{Color|red|R}}, {{Color|green|G}}, {{Color|blue|B}}]
____________________________________________________________________________________________


| |= See also
|x1= <sqf>private _rgb = [0, 100, 50] call BIN_fnc_colorHSLtoRGB;</sqf>


|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>
[[Category:Function Group: Misc|{{uc:colorHSLtoRGB}}]]
[[Category:Functions|{{uc:colorHSLtoRGB}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:colorHSLtoRGB}}]]

Revision as of 14:35, 1 July 2022

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