Garry's Mod Wiki

Color:GetWhiteness

  number Color:GetWhiteness()

Description

Converts a Color into HWB color space and returns the "whiteness" of the color.

See COLOR:ToHWB if you want to get all 3 components.

Returns

1 number whiteness
Whiteness of the color in range [0, 1]