Garry's Mod Wiki

Color:ToHSV

Description

Encodes a RGB Color into the HSV color space.
This function uses ColorToHSV internally.

Returns

1 number Hue
Degrees in range [ 0 , 360 )
2 number Saturation
Range [ 0 , 1 ]
3 number Brightness
Range [ 0 , 1 ]