Click or drag to resize
RhinoGetGetColor Method
Easy to use color getter.

Namespace: Rhino.Input
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public static Result GetColor(
	string prompt,
	bool acceptNothing,
	ref Color color
)

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.
See Also