BIN fnc colorHSLtoRGB: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" or...) |
Lou Montana (talk | contribs) 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>") |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
|game1= arma3 | |||
|version1= 1.94 | |||
| | |gr1= Contact | ||
| | |descr= Converts {{Wikipedia|HSL and HSV|HSL colour format}} to RGB. | ||
{{Feature|arma3contact}} | |||
| | |s1= [hue, saturation, lightness] call [[BIN_fnc_colorHSLtoRGB]] | ||
|p1= hue: [[Number]] - (Optional, default 0) | |||
| | |p2= saturation: [[Number]] - (Optional, default 0) | ||
|p3= lightness: [[Number]] - (Optional, default 0) | |||
| [ | |r1= [[Array]] of [[Number]]s - to format [{{Color|red|R}}, {{Color|green|G}}, {{Color|blue|B}}] | ||
| | |x1= <sqf>private _rgb = [0, 100, 50] call BIN_fnc_colorHSLtoRGB;</sqf> | ||
| | |seealso= [[BIS_fnc_colorRGBtoHTML]] | ||
}} | }} | ||
Revision as of 13:35, 1 July 2022
Description
- Description:
- Converts HSL colour format to RGB.
- 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:
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