GRABC(1)

πŸ“¦
version 1.1+git20210125.b9e4316 Β· 2 versions
  • 1.1+git20210125.b9e4316 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.1 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– GRABC(1) πŸ’–

okay so bestie, you know that grabc page in the manual? yeah, the one numbered 1? that's this one. sit down, we're doing color picking and it's gonna be iconic. πŸŽ€


✨ NAME ✨

grabc β€” A tool to identify a pixel color of an X Window. fr fr that's the whole job and she does it beautifully πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

grabc v1.0.2
A program to identify a pixel color of an X Window
by muquit@muquit.com https://www.muquit.com/

Usage: grabc [options]
Where the options are:
 -v         - show version info
 -h         - show this usage
 -hex       - print pixel value as Hex on stdout
 -rgb       - print pixel value as RGB on stderr
 -W         - print the Window id at mouse click
 -w id      - window id in hex, use -l +x+y
 -l +x+y    - pixel co-ordinate. requires window id
 -d         - show debug messages
 -a         - Print all 16 bits of color. Default is high order 8 bits
Example:
* Print pixel color in hex on stdout:
   $ grabc
* Show usage:
   $ grabc -h
* Print Window Id (Note the upper case W):
   $ grabc -W
* Print pixel color of Window iwith id 0x13234 at location 10,20
   $ grabc -w 0x13234 -l +10+20

(yes bestie, it says iwith. that's canon. we don't touch it. πŸ’€)


🌈 DESCRIPTION 🌈

grabc is a simple but very useful program β€” like, lowkey a tiny legend β€” that figures out the color string in hex (or in RGB components, if that's your vibe) when you click on a pixel on the screen. πŸ–±οΈβœ¨

So picture this: you're web browsing, and you keep finding a nice color and you're like "what color IS that??" 😭 Well. just use grabc! that's it, that's the whole solution.

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 #. 🎨 periodt.


πŸ‘‘ LICENSE πŸ‘‘

MIT β€” go off, bestie, it's permissive.


🫢 AUTHOR 🫢

grabc is written by Muhammad Muquit <muquit@muquit.com>. Homepage: <https://www.muquit.com/>. πŸ§šβ€β™€οΈ


πŸŽ€ the cute sign-off πŸŽ€

this page came from perl v5.22.1, dated 2018-04-16 β€” and honestly? she's still serving. go pick a pixel. you got this. πŸ’œβ­πŸŒΈ