RhinoGet.GetColor Method

RhinoGetGetColor Method

Easy to use color getter.

Namespace:  Rhino.Input
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
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: Result

Commands.Result.Success - got color.

Commands.Result.Nothing - user pressed enter.

Commands.Result.Cancel - user cancel color getting.

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

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also