Garry's Mod Wiki

Color:AddBlackness

  Color:AddBlackness( number blackness )

Recently Added

This was recently added in version (2025.01.23). It might only be available on the Dev Branch right now.

Description

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

A slightly more efficient combination of COLOR:GetBlackness & COLOR:SetBlackness

Arguments

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