colorPicker
Author: Peter G. Baum (peter@dr-baum.net)
Keywords: gnocl, Tcl, gtk, gnome

## NAME

colorPicker - Create and manipulate a widget for selecting colors.

## SYNOPSIS

colorPicker ?-option optionVal ...?

## OPTIONS

-title
  Title of the color selection dialog.
  type: string
  default: ""

-variable
  Name of a (global) variable which is changed if the color is changed.
  type: string
  default: ""

-command
  Tcl command which is executed if the color is changed.
  Before evaluating every percent (%) and its following character is substituted in command:

  %% | by %,
  %a | by the alpha value of the selected color
  %b | by the blue value of the selected color
  %g | by the green value of the selected color
  %r | by the red value of the selected color
  %w | by the widget-ID

  type: string
  default: ""

-sensitive
  Wheather or not the item is sensitve to user input.
  type: boolean
  default: 1

## DESCRIPTION

## WIDGET COMMANDS

The colorPicker command creates a new Tcl command whose name is an ID returned on widget creation. This command may be used to invoke various operations on the widget. It has the following general form:
ID option ?arg arg ...?
option and arg determine the exact behavior of the command. The following commands are possible for colorPicker widgets:

ID getColor
  Returns a list of red green blue and alpha value of the current color.

ID setColor col
  Sets the color. col can be a textual description like "lightblue", a list of a textual description and a alpha value, a list of rgb values or a list of rgba values. If alpha is not set, it defaults to 65535.

## KEYWORDS

Copyright © 2001 - 2002 P. G. Baum