Garry's Mod Wiki

Revision Difference

COLOR:AddBlackness#563441

<function name="AddBlackness" parent="Color" type="classfunc">⤶ <description>Converts a <page>Color</page> into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model), adds given value to the "blackness" and converts it back into an RGB color.⤶ ⤶ A slightly more efficient combination of <page>COLOR:GetBlackness</page> & <page>COLOR:SetBlackness</page>⤶ </description>⤶ <realm>Shared and Menu</realm>⤶ <added>2025.01.23</added>⤶ <args>⤶ <arg name="blackness" type="number">The "blackness" value to add in range [0, 1]</arg>⤶ </args>⤶ </function>