Retrieves an intensity value for the red component of a red-green-blue (RGB) value.
rhinoscriptsyntax.ColorRedValue (rgb)
rhinoscript.utility.ColorRedValue (rgb)
rgb |
Required. Number. The RGB color value. |
Number |
The red component if successful. |
None |
If not successful or on error. |
import rhinoscriptsyntax as rs
rgb = rs.LayerColor("Default")
print "Red = ", rs.ColorRedValue(rgb)
print "Green = ", rs.ColorGreenValue(rgb)
print "Blue = ", rs.ColorBlueValue(rgb)