RhinoCommon API
RhinoGetGetColor Method |
Easy to use color getter.
Namespace: Rhino.Input
Assembly: RhinoCommon (in RhinoCommon.dll)

public static Result GetColor( string prompt, bool acceptNothing, ref Color color )
Public Shared Function GetColor ( prompt As String, acceptNothing As Boolean, ByRef color As Color ) As Result
Parameters
- prompt
- Type: SystemString
Command prompt. - acceptNothing
- Type: SystemBoolean
If true, the user can press enter. - color
- Type: System.DrawingColor
Color value returned here. also used as default color.
Return Value
Type: ResultCommands.Result.Success - got color.
Commands.Result.Nothing - user pressed enter.
Commands.Result.Cancel - user cancel color getting.

If you need options or more advanced user interface, then use GetColor class.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14