Programmer's Color Picker


What Is This?

The Programmer's Color Picker is a utility for choosing colors and converting them to and from different color formats. Certain programs and APIs require color data using different color models and in different numeric formats; most commonly, RGB and HSV values in decimal (0-255) and floating-point (0.0-1.0). Future versions may expand the number of models and formats supported.


How to Use It

There are several ways to use this program. The easiest way is to click on the Pick... button and choose a color with the standard Windows color picker. Another way is to click on the Grab... button, take a screenshot, and "grab" a color from any program or image being displayed on the screen. A third way is to type in the color data manually into the different boxes and click the "Translate" button in the box you wish to translate from. (This method is usually only useful for conversion purposes when certain color values are already known.)

Note that typing in color data yourself can in many cases lead to "illegal" (out of range) values unless you happen to get them from a source that only gives legal values; look in the Color Models section for more information on the values expected by each color model. It is particularly easy to provide illegal values to the CMYK and YIQ color models; if CMYK or YIQ colors are needed, it may be best to convert from a safer or more intuitive color model.

The Grab Screen button (under the Grab... menu) will hide all currently opened ColorPicker windows, attempt to make sure the desktop and its windows are redrawn, and then capture the screen. It is usually unnecessary to move ColorPicker out of the way before capturing the screen, but there can be cases where the screen doesn't redraw fast enough. Another thing to note is that the two color boxes in the lower-left corner of the Screen Capture menu serve two different functions: The one on the left contains the currently selected color (this is copied into the RGB area of the main form when Ok is clicked), the one on the right contains the color currently under the cursor when it is over the screen capture window.

The "Inner" and "Outer" colors can be used to contrast two or more colors. You can also save up to 16 more colors by using the Windows color picker's "Custom Colors" feature.


Color Models


Website

My website is located at http://www.geocities.com/~ffrog. I welcome queries, job offers, threats, etc. I didn't spend too much time on this documentation, so you may be curious about how some of these color models work...

- Sean O'Malley
- E-mail
- August 8, 2000