grabc

Tool to identify pixel colors on X
git clone https://git.sinitax.com/muquit/grabc
Log | Files | Refs | README | Upstream | sfeed.txt

grabc.pod (1523B)


      1=head1 NAME
      2
      3grabc - A tool to identify a pixel color of an X Window.
      4
      5=head1 SYNOPSIS
      6
      7 grabc v1.0.2
      8 A program to identify a pixel color of an X Window
      9 by muquit@muquit.com https://www.muquit.com/
     10 
     11 Usage: grabc [options]
     12 Where the options are:
     13  -v         - show version info
     14  -h         - show this usage
     15  -hex       - print pixel value as Hex on stdout
     16  -rgb       - print pixel value as RGB on stderr
     17  -W         - print the Window id at mouse click
     18  -w id      - window id in hex, use -l +x+y
     19  -l +x+y    - pixel co-ordinate. requires window id
     20  -d         - show debug messages
     21  -a         - Print all 16 bits of color. Default is high order 8 bits
     22 Example:
     23 * Print pixel color in hex on stdout:
     24    $ grabc
     25 * Show usage:
     26    $ grabc -h
     27 * Print Window Id (Note the upper case W):
     28    $ grabc -W
     29 * Print pixel color of Window iwith id 0x13234 at location 10,20
     30    $ grabc -w 0x13234 -l +10+20
     31
     32=head1 DESCRIPTION
     33
     34grabc is a simple but very useful program to determine the color string in 
     35hex (or in RGB components) by clicking on a pixel on the screen. While web 
     36browsing, lots of time you find a nice color and wonder what color is that. 
     37Well just use grabc!
     38
     39When this program is run, the mouse pointer is grabbed and changed to a 
     40cross hair and when the mouse is clicked, the color of the clicked pixel 
     41is written to stdout in hex prefixed with #. 
     42
     43=head1 LICENSE
     44
     45MIT
     46
     47=head1 AUTHOR
     48
     49grabc is written by Muhammad Muquit E<lt>muquit@muquit.comE<gt>.
     50Homepage: L<https://www.muquit.com/>.