Garry's Mod Wiki

Color:SetBrightness

  Color:SetBrightness( number saturation )

Description

Converts a Color into HSV color space, sets the brightness also known as "value" and converts it back into an RGB color.

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

Arguments

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