Converts colors from red-green-blue (RGB) to hue-luminance-saturation (HLS) format.
rhinoscriptsyntax.ColorRGBToHLS (rgb)
rhinoscript.utility.ColorRGBToHLS (rgb)
rgb |
Required. Number. The RGB color value. |
Tuple |
A tuple containing the hue, luminance, and saturation values if successful. |
None |
If not successful or on error. |
import rhinoscriptsyntax as rs
hls = rs.ColorRGBToHLS((128, 128, 128))
print "Hue = ", hls[0]
print "Luminance = ", hls[1]
print "Saturation = ", hls[2]