Garry's Mod Wiki

Garry's Mod Wiki

  Color:AddBrightness( number saturation )

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 HSV color space, adds given value to the brightness also known as "value" and converts it back into an RGB color.

A slightly more efficient combination of COLOR:GetBrightness & COLOR:SetBrightness

This is useful to quickly change the saturation of the color without changing hue or luminance, allowing for things like easy theming.

Arguments

1 number saturation
The brightness value to add in range [0, 1]

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...