BIN fnc colorHSLtoRGB: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "{{Feature|arma3contact|This function is part of the Arma 3 Contact expansion only.}}" to "{{Feature|arma3contact}}") |
Lou Montana (talk | contribs) m (Fix Wikipedia link) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 1.94 | |version1= 1.94 | ||
|gr1= Contact | |gr1= Contact | ||
|descr= Converts {{ | |descr= Converts {{Link|https://en.wikipedia.org/wiki/HSL_and_HSV|HSL colour format}} to RGB. | ||
{{Feature|arma3contact}} | {{Feature|arma3contact}} | ||
Line 20: | Line 19: | ||
|r1= [[Array]] of [[Number]]s - to format [{{Color|red|R}}, {{Color|green|G}}, {{Color|blue|B}}] | |r1= [[Array]] of [[Number]]s - to format [{{Color|red|R}}, {{Color|green|G}}, {{Color|blue|B}}] | ||
|x1= < | |x1= <sqf>private _rgb = [0, 100, 50] call BIN_fnc_colorHSLtoRGB;</sqf> | ||
|seealso= [[BIS_fnc_colorRGBtoHTML]] | |seealso= [[BIS_fnc_colorRGBtoHTML]] | ||
}} | }} |
Latest revision as of 22:14, 23 February 2023
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