ColorHLSToRGB

Converts colors from hue-luminance-saturation (HLS) to red-green-blue format.

Syntax

rhinoscriptsyntax.ColorHLSToRGB (hls)

rhinoscript.utility.ColorHLSToRGB (hls)

Parameters

hls

Required.  List.  The HLS color value.

Returns

Number

The RGB color value if successful.

None

If not successful or on error.

Example

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)

Also See

ColorAdjustLuma

ColorRGBToHLS