BIN fnc colorHSLtoRGB: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{Feature[ _]arma3" to "{{Feature|arma3") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to " ") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 7: | ||
|gr1 = Contact |GROUP1= | |gr1 = Contact |GROUP1= | ||
| Converts {{Wikipedia|HSL and HSV|HSL colour format}} to RGB. | | Converts {{Wikipedia|HSL and HSV|HSL colour format}} to RGB. | ||
{{Feature|arma3contact|This function is part of the [[Arma 3 Contact]] expansion only.}} |Description= | {{Feature|arma3contact|This function is part of the [[Arma 3 Contact]] expansion only.}} |Description= | ||
| [hue, saturation, lightness] call [[BIN_fnc_colorHSLtoRGB]] |Syntax= | | [hue, saturation, lightness] call [[BIN_fnc_colorHSLtoRGB]] |Syntax= | ||
Line 22: | Line 22: | ||
| [[Array]] of [[Number]]s - to format [{{Color|red|R}}, {{Color|green|G}}, {{Color|blue|B}}] |Return value= | | [[Array]] of [[Number]]s - to format [{{Color|red|R}}, {{Color|green|G}}, {{Color|blue|B}}] |Return value= | ||
|x1= <code>[[private]] _rgb = [0, 100, 50] [[call]] [[BIN_fnc_colorHSLtoRGB]];</code> |Example 1= | |x1= <code>[[private]] _rgb = [0, 100, 50] [[call]] [[BIN_fnc_colorHSLtoRGB]];</code> |Example 1= | ||
| [[BIS_fnc_colorRGBtoHTML]] |See also= | | [[BIS_fnc_colorRGBtoHTML]] |See also= |
Revision as of 19:47, 16 January 2021
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:
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