User`s guide

15 Examples of GUIs Created Programmatically
The colorPalette function populates a GUI figure or panel with a color
palette. See “View and Run the C olor Palette Code” on page 1 5-55 for a link to
thecodefilecomprisingthisexample.
The figure below shows the palette as the child of a figure.
The Components
The colorPalette includes the following components:
An array of color cells defined as toggle buttons
An Eraser toggle button with the
icon
A button group that contains the array of color cells and the eraser button.
The button g roup provides exclusive m anagement of these toggle buttons.
15-52