Converts a color from red-green-blue (RGB) to hue-saturation-value (HSV) format.
Rhino.ColorRGBToHSV (lngRGB)
lngRGB |
Required. Number. The RGB color value. |
Array |
An array containing the hue, saturation, and brightness values if successful, where:
|
||||||||||||
Null |
If not successful or on error. |
Dim arrHSV
arrHSV = Rhino.ColorRGBToHSV(RGB(128, 0, 255))
Rhino.Print "Hue = " & CStr(arrHSV(0))
Rhino.Print "Saturation = " & CStr(arrHSV(1))
Rhino.Print "Value= " & CStr(arrHSV(2))