Converts a color from hue-luminance-saturation (HLS) to red-green-blue (RGB) format.
Rhino.ColorHLSToRGB (arrHSL)
arrHSL |
Required. Array. The HLS color value. |
Number |
The RGB color value if successful. |
Null |
If not successful or on error. |
Dim lngRGB
lngRGB = Rhino.ColorHLSToRGB( Array(160, 120, 0) )
Rhino.Print "Red = " & CStr(lngRGB \ 256 ^ 0 And 255)
Rhino.Print "Green = " & CStr(lngRGB \ 256 ^ 1 And 255)
Rhino.Print "Blue = " & CStr(lngRGB \ 256 ^ 2 And 255)