Revision Difference
COLOR:AddSaturation#563437
<function name="AddSaturation" parent="Color" type="classfunc">
<description>Converts a <page>Color</page> into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV), adds given value to the [saturation](https://en.wikipedia.org/wiki/Colorfulness) and converts it back into an RGB color.
A slightly more efficient combination of <page>COLOR:GetHue</page> & <page>COLOR:SetHue</page>⤶
A slightly more efficient combination of <page>COLOR:GetSaturation</page> & <page>COLOR:SetSaturation</page>⤶
This is useful to quickly change the saturation of the color without changing hue or luminance, allowing for things like easy theming.
</description>
<realm>Shared and Menu</realm>
<added>2025.01.23</added>
<args>
<arg name="saturation" type="number">The saturation value to add in range [0, 1]</arg>
</args>
</function>