LogoopenSUSE Build Service > Projects
Sign Up | Log In

Identify color of a pixel on the screen

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)
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. 

Source Files

Filename Size Changed Actions
grabc.changes 123 Bytes Download File
grabc.spec 1.64 KB Download File
grabc1.1.tar.gz 2.91 KB Download File

Comments for home:jfita (0)

Login required, please login or signup in order to comment