Converts colors from hue-luminance-saturation (HLS) to red-green-blue format.
rhinoscriptsyntax.ColorHLSToRGB (hls)
rhinoscript.utility.ColorHLSToRGB (hls)
hls |
Required. List. The HLS color value. |
Number |
The RGB color value if successful. |
None |
If not successful or on error. |
import rhinoscriptsyntax as rs
rgb = rs.ColorHLSToRGB( (160, 120, 0) )
print "Red = ", rs.ColorRedValue(rgb)
print "Green = ", rs.ColorGreenValue(rgb)
print "Blue = ", rs.ColorBlueValue(rgb)