Click or drag to resize

DialogsShowColorDialog Method (Color4f, Boolean)

Displays the standard modal color picker dialog for floating point colors.

Namespace:  Rhino.UI
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public static bool ShowColorDialog(
	ref Color4f color,
	bool allowAlpha
)

Parameters

color
Type: Rhino.DisplayColor4f
The initial color to set the picker to and also accepts the user's choice.
allowAlpha
Type: SystemBoolean
Specifies if the color picker should allow changes to the alpha channel or not.

Return Value

Type: Boolean
true if a color was picked, false if the user canceled the picker dialog.
See Also