Garry's Mod Wiki

Color:SetHue

  Color:SetHue( number hue )

Description

Converts a Color into HSV color space, sets the hue and converts it back into an RGB color.

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

Arguments

1 number hue
The new hue value in degrees [0, 360).