Implement Color.RGBToHSV and Color.colorToHSV.

Closes #1010.