ColorRedValue

Retrieves an intensity value for the red component of a red-green-blue (RGB) value.

Syntax

rhinoscriptsyntax.ColorRedValue (rgb)

rhinoscript.utility.ColorRedValue (rgb)

Parameters

rgb

Required.  Number.  The RGB color value.

Returns

Number

The red component if successful.

None

If not successful or on error.

Example

import rhinoscriptsyntax as rs

rgb = rs.LayerColor("Default")

print "Red = ", rs.ColorRedValue(rgb)

print "Green = ", rs.ColorGreenValue(rgb)

print "Blue = ", rs.ColorBlueValue(rgb)

Also See

ColorBlueValue

ColorGreenValue