colorpicker

Select a color using a modal dialog

Description

The colorpicker object uses an Operating System color picker dialog that lets you choose a color to be output as a Max RGB color. On the Mac OS, the Color Picker dialog that lets you choose colors in several different color spaces--red-green-blue (RGB), hue-saturation-value (HSV), web-safe colors, and the nostalgia-inducing crayon mode. On Windows, you are presented with a standard color picker dialog, including a selection of basic colors, custom colors, a color swatch and numerical input for red-green-blue (RGB), hue-saturation-luminance (HSL)

Arguments

None.

Messages

bang Same as double-clicking the object.
list RGB list (0-255) [list] A list of three numbers between 0 and 255 specifies the RGB color components of the default color which initially appears in the Color Picker dialog box when it is opened.
(mouse) Double-clicking the object opens the Color Picker dialog box. If the patcher is unlocked, hold down the Command key on Macintosh or the Control key on Windows while double-clicking to open the dialog.

Information for box attributes common to all objects

Output

list: After you open the Color Picker dialog box and make a selection, clicking on the OK button will send a list of the RGB equivalents of the color you selected out the outlet. If you click the Cancel button, no messages are sent.

Examples

Display a color or retrieve selected RGB color values

See Also

Name Description
panel Colored background area
swatch Color swatch for RGB color selection and display