colorpicker
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | colorpicker [2010/06/22 03:44] (current) – created jochen | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== colorpicker ====== | ||
| + | ===== Motivation ===== | ||
| + | As part of a toolbox with a GUI that supports statistical map overlay, I wanted to have a nice interface to select (pick) colors. Most programs (e.g. Photoshop) have a comparable option. | ||
| + | |||
| + | ===== Function reference ('help colorpicker' | ||
| + | < | ||
| + | |||
| + | FORMAT: | ||
| + | |||
| + | Input fields: | ||
| + | |||
| + | icolor | ||
| + | icnames | ||
| + | |||
| + | Output fields: | ||
| + | |||
| + | color Cx3 RGB color (values in the [0...255] range)</ | ||
| + | |||
| + | ===== GUI layout and functionality ===== | ||
| + | The general layout is always the same and looks like this: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Each of the five areas showing a color-gradient is click-sensitive, | ||
| + | |||
| + | Additionally, | ||
| + | |||
| + | The buttons on the lower right side will | ||
| + | * reset the color to the values given at call time (Reset) | ||
| + | * close the dialog without altering the values given at call time (Cancel) | ||
| + | * close the dialog and return the colors as they were displayed at the time (Accept) | ||
| + | |||
| + | If multiple colors are to be shown (e.g. a palette), names can be given and instead of one uni-colored patch in the top right corner, a grid of colors is presented, which itself is click-sensitive to switch between colors: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ===== Notes ===== | ||
| + | This function requires the [[xfigure]] class to be working properly! | ||
colorpicker.txt · Last modified: 2010/06/22 03:44 by jochen
