PERGOLA LOGO

Color Picker and Color Box Selector

View as standalone SVG

The color picker basic and extended versions now run in a single interface. The panel now has the narrow/wide spectrum button to toggle between 65536 and 393216 visible colors.

The ColorBoxSelector class is specifically designed to use the pergola.colorpicker, a reusable instance of the ColorPicker class created at runtime. A ColorBoxSelector instance initializes the color picker through its event handler. To initialize the color picker through some other object or event you must specifically invoke the pergola.colorpicker.init() method which expects one object with two properties: user, the object that processes the color result, and color, the new initial color value in any legal format:

HOW

Use of the color box selector (as in this page):