Converts an RGB vector to an HSV vector.
rgb is a vector representing the red, green, and blue components.
The Hue value in the Color Chooser has a range of 0 to 360, while the H component of an HSV vector has a corresponding range of 0 to 1. To convert the rgb_to_hsv function’s return value to the corresponding Color Chooser value, multiply it by 360.