Revision Difference
COLOR:GetBlackness#565044
<function name="GetBlackness" parent="Color" type="classfunc">
<description>Converts a <page>Color</page> into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model) and returns the "blackness" of the color.
See <page>COLOR:ToHWB</page> if you want to get all 3 components.
</description>
<file line="349-L354">lua/includes/util/color.lua</file>⤶
<realm>Shared and Menu</realm>
<added>2025.01.23</added>
<rets>
<ret name="blackness" type="number">Blackness of the color in range [0, 1]</ret>
</rets>
</function>