The ColorSelection widget inherits from the VBox widget. It creates a ColorSelectionDialog. This is disabled by default. The length of the array depends on whether opacity is enabled or not. All values are between 0.0 and 1.0.
Color is a pointer to the array of colors to fill in.
Here's a simple example demonstrating the use of the ColorSelectionDialog. The program displays a window containing a drawing area. Clicking on it opens a color selection dialog, and changing the color in the color selection dialog changes the background color.