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.000 to 360.000, 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.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License