Garry's Mod Wiki

Revision Difference

COLOR:GetBlackness#563424

<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>⤶ <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>⤶ ⤶