Garry's Mod Wiki

Color:GetSaturation

  number Color:GetSaturation()

Description

Converts a Color into HSV color space and returns the saturation.

See COLOR:ToHSV if you want to get all 3 components.

Returns

1 number saturation
Saturation in range [0, 1]