BIN fnc colorHSLtoRGB: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Function " to "{{RV|type=function ")
m (Text replacement - "\|game([0-9])=([^ ]+) * \|version([0-9])=([^ ]+) * " to "|game$1=$2 |version$3=$4 ")
(One intermediate revision by one other user not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 1.94
|version1= 1.94


Line 8: Line 7:


|descr= Converts {{Wikipedia|HSL and HSV|HSL colour format}} to RGB.
|descr= Converts {{Wikipedia|HSL and HSV|HSL colour format}} to RGB.
{{Feature|arma3contact|This function is part of the [[Arma 3 Contact]] expansion only.}}
{{Feature|arma3contact}}


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

Revision as of 10:58, 14 June 2021

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