Garry's Mod Wiki

Color:AddWhiteness

  Color:AddWhiteness( number whiteness )

Description

Converts a Color into HWB color space, adds given value to the "whiteness" and converts it back into an RGB color.

A slightly more efficient combination of COLOR:GetWhiteness & COLOR:SetWhiteness

Arguments

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