Identify color of a pixel on the screen

Edit Package grabc

grabc is s simple but very useful program to determine the color string in hex (or in RGB components) by clicking on a pixel on the screen. While web browsing, lots of time you find a nice color and wonder what color is that! Well just use grabc!

When this program is run, the mouse pointer is grabbed and changed to a cross hair and when the mouse is clicked, the color of the clicked pixel is written to stdout in hex prefixed with #. The R, G, B component of the color are also printed to stderr. Here's a sample example,

$ grabc
(mouse ponter turns into a cross hair and you click on something)
#b2c0dd
178,192,221

The string #b2c0dd is printed on stdout and 178,192,221 is printed on stderr.

This program can be useful when you see a color and want to use the color in xterm or your window manager's border but no clue what the name of the color is. It's silly to use an image processing software to find it out.

Refresh
Refresh
Source Files
Filename Size Changed
grabc-1.0.2.tar.gz 0000010468 10.2 KB
grabc.changes 0000000667 667 Bytes
grabc.spec 0000001704 1.66 KB
Latest Revision
Jordi Fita's avatar Jordi Fita (jfita) committed (revision 5)
- Upgrade to version 1.0.2:
  * Was not working properly on Ubuntu Terminal. It was using default Colormap.
    Do not use default colormap, rather get it from window attributes.
  * If could not get XImage from target window, it is probably root window, so
    try to grab it from there.
  * Added some options
  * Color can be grabbed from a specific location
  * Change license from GNU GPL to MIT
Comments 0
openSUSE Build Service is sponsored by