This template defines a new procedure named ColorBox. Calling this procedure pops up a dialog box to select a color. Colors can be entered by their name, selected from a list, defined in RGB values or as HSV values. The procedure gets the following parameters:
To configure the different aspects of the color box, there exists a global array named colorBox. A default value of ``-'' means that the Tk default value is used. This array contains elements that control the color box (color, font etc.):
A small example of an invocation may look like this:
ColorBox ''/usr/lib/X11/rgb.txt'' ''Background''
This would create the following dialog box: