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
Hue in degrees in range [0, 360)
2 number saturation
Saturation in range [0, 1]
3 number brightness
Brightness in range [0, 1]