| (mm) | Grab a color from screen | |||||||||||
| Search | Home | Software | Count | ||||||||||||
|
Software: X/Motif ansi xterm grabc mdgclock miv mplaymidi mppp mxascii mcmap mxcmap mxconsole mxkill mxshowfont qtip xmastm yrolo Web mhttpd web counter upload.pl TimeTrack.pl mod_auth_ldap Games fltkmm iphonemm Java cdcl jdgclock Libraries libcalen libmcfg libsll libmsock Misc bangla font dpr genmake hod smtp.pl vhtml phones_ldap showpic_ldap mbasecalc fluid_hack kdialppp MS Windows mwinclip.pl mbasecalc mailsend wiv |
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,221The 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.
To compile, at the shell prompt, type:
gunzip < grabc1.1.tar.gz | tar xvf -
cd grabc1.1
(Look at Makefile)
make
It only uses X library.
Copyright- GNU GPL If you use this program please let me know March 16, 1997 (a quick hack on my home linux box)
URL of this page: |
|||||||||||
| back | Page updated: Sat Jan 5 01:19:40 2008 GMT Copyright © 2008 muquit@muquit.com. | |||||||||||