GetColor

Displays the Rhino color picker dialog box allowing the user to select an RGB color value.

Syntax

rhinoscriptsyntax.GetColor ( color=[0,0,0] )

rhinoscript.usetinterface.GetColor ( color=[0,0,0] )

Parameters

color

Optional.  list of three values.  A default RGB color value.  If omitted, the default color is black, or RGB(0,0,0).

Returns

list

The RGB color value selected by the user if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

color = rs.LayerColor("Default")

rgb = rs.GetColor(color)

if rgb: rs.LayerColor("Default", rgb)