BIN fnc colorHSLtoRGB: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{placeholder}} |Description=" to "{{placeholder}} {{Feature arma3contact|This function is part of the Arma 3 Contact expansion only.}} |Description=") |
Lou Montana (talk | contribs) (Page filling) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | 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= | ||
|p1= |Parameter 1= | |p1= hue: [[Number]] - (Optional, default 0) |Parameter 1= | ||
| |Return value= | |p2= saturation: [[Number]] - (Optional, default 0) |Parameter 2= | ||
|p3= lightness: [[Number]] - (Optional, default 0) |Parameter 3= | |||
| [[Array]] of [[Number]]s - to format [{{Color|red|R}}, {{Color|green|G}}, {{Color|blue|B}}] |Return value= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |Example 1= | |x1= <code>[[private]] _rgb = [0, 100, 50] [[call]] [[BIN_fnc_colorHSLtoRGB]];</code> |Example 1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |See also= | | [[BIS_fnc_colorRGBtoHTML]] |See also= | ||
}} | }} | ||
Line 33: | Line 37: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Function Group: Misc|{{uc:colorHSLtoRGB}}]] | [[Category:Function Group: Misc|{{uc:colorHSLtoRGB}}]] | ||
Revision as of 23:17, 27 June 2020
Description
- Description:
- Converts HSL colour format to RGB. Template:Feature arma3contact
- Execution:
- call
- Groups:
- Uncategorised
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