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