grabc -- Identify the color of a pixel on the screen

Paint programs, vector editors, 3d modelers, animation editors, etc.
Post Reply
Message
Author
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

grabc -- Identify the color of a pixel on the screen

#1 Post by musher0 »

Hello all.

I discovered this little gem recently. As the title says. It's been around for
a while. So I searched the forum, but I think this little utility has never
been discussed here before.

grabc is a CLI program, so you have to run it from console. From the
developer's site:
$ grabc
(mouse ponter turns into a cross hair and you click on something)
#b2c0dd
178,192,221
gcolor2 and mtpaint have something similar, but these apps occupy more
space on screen, and it's not as easy if you want the color underneath
those apps.

grabc is handy for developers, but also for any user just curious about the
definition of the colors on their screen.

The source of grabc is here:
http://muquit.com/muquit/software/grabc/grabc.html

Debian has it ready to install, here for Stretch:
https://packages.debian.org/search?keyw ... ection=all
and here for Wheezy:
https://packages.debian.org/search?suit ... ords=grabc

For Slacko and slackware generally, I don't have any URLs, sorry.

~~~~~~~~~~~

So you have the "hex" color of a pixel -- or you've collected a few colors
from your screen. Now what?

Well, you may want to harmonize colors between your background and
your GTK theme.

For starters, it may help to know their name, so for a rather complete
listing of hex colors and color names, please go here:
http://www.colorhexa.com/color-names

Then, if, like me, you're a bit of a dummy when it comes to color combos
and designs, and you're always wondering what color goes with what, this
site may help you out:
https://designschool.canva.com/blog/100 ... mbinations
This may help you create a design color ensemble.

Finally, if you're looking for a GTK2 theme to match your color design
idea, don't forget to browse through the offerings at gnome-look:
https://www.gnome-look.org/browse/cat/136
AND
at deviant art's gtk2 section:
http://www.deviantart.com/customization ... tk2/newest

I hope someone finds the above info helpful.

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#2 Post by greengeek »

Awesome, thanks musher.
I grabbed the "wheezy" package just to see if it worked in my Slacko 5.6 derivative and it was perfect. Very handy!

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#3 Post by musher0 »

My pleasure, greengeek!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

grabc for Xenialpup64 = debian jessie 64's

#4 Post by mikeslr »

Hi musher0,

Nice find. It will take a lot of guess-work out of color matching.

For those who may not know it, debian packages are frequently compatible (or nearly so --some tweaking required) with contemporaneous Ubuntu OSes. For Xenial, that would be the Jessie packages. With that thought in mind, after making sure I could recover from something weird happening, I followed the links from the website you provided, then downloaded and installed the deb for jessie 64-bit into Xenialpup64. [The download page showed several dependencies, but they all looked familiar so I ignored them].

Seems to be working OOTB.

:oops: I could have done it the easy way > Use PPM. :roll:

Thanks,

mikesLr

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#5 Post by musher0 »

Hello,mikesLr.

Oh. Grabc is in your PPM, is it? That is good to know.
I couldn't find it on mine...

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#6 Post by greengeek »

...nor mine.
(Slacko 5.6)
(i used the wheezy package from mushers link and it worked for me despite the grabc package being unavailable in PPM)

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

#7 Post by mikeslr »

Hi musher0, g/g,

Xenialpup64's Puppy Package Manager responded with 4 files to the search for grabc. As the Jessie64 deb alone appears to work OOTB, I didn't try installing any. So I don't know which, if any, beyond selecting just one would be needed, and --this being a 'Ubuntu64-pup'-- moving libs where they could be found would have been necessary.

Being absent-minded isn't all bad. :lol:

mikesLr

Post Reply