Garry's Mod Wiki

Color:SetWhiteness

  Color:SetWhiteness( number whiteness )

Description

Converts a Color into HWB color space, sets the "whiteness" and converts it back into an RGB color.

Arguments

1 number whiteness
The new "whiteness" value in range [0, 1]