Get Color - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Maplets[Examples]

  

GetColor

  

display a Maplet application that requests a color

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

GetColor(opts)

Parameters

opts

-

equation(s) of the form option=value where option is one of default or title; specify options for the Maplet application

Description

• 

The GetColor() calling sequence displays a color dialog that prompts the user to select a color.  The value returned is an RGB COLOR data structure.  If there is no default color and the user clicks Cancel, an exception is raised.

• 

The GetColor sample Maplet worksheet describes how to write a Maplet application that behaves similarly to this routine by using the Maplets[Elements] package.

• 

The opts argument can contain one or more of the following equations that set Maplet application options.

  

 

  

default = anything

  

This is the default object returned if the user does not select a color. It need not be a valid color definition.

  

 

  

title = string or symbol

  

Specifies the Maplet application title.  By default, the title is Get Color.

Examples

withMapletsExamples:

GetColortitle=Get Color

COLORRGB,0,153,51

(1)

See Also

GetColor Sample Maplet

Maplets[Elements]

Maplets[Elements][ColorDialog]

Maplets[Examples]

Overview of Maplet Applications