For about two years before I discovered this I used to take screen shots, paste them into Photoshop and then used the Eyedropper tool to get the colour. I tried Apple’s DigitalColor Meter, and even wrote HEX numbers down on pieces of paper.
Then a light bulb came on when I accidentally continued to hold my click when selecting with the Eyedropper tool. The Eyedropper tool will let you sample colours from outside Photoshop! Woo hoo! Apparently this is a well know tip but incase anyone else out there is unaware of this I’ve decided to write it up.
Let’s say I want to sample the green used on the Times Online website. With my photoshop document open I need to have the green visible in a web browser outside the photoshop window. Here’s how I set my screen up.
Now you can select the Eyedropper Tool (shortcut I) and click and hold within your photoshop document. You can now drag the Eyedropper tool outside your Photoshop document and sample any colour on your desktop. Watch the video below to see it in action.
Colour Sampling Outside Photoshop from George Ornbo on Vimeo.
You’ll notice the menu appearing before I move the tool to select the colour. If you right click you can choose the sample rate. This is the area that gets sampled. So “Point Sample” is the exact point that you click. This is great for large blocks of colour. “3 x 3 Average” will sample an average of 3 x 3 pixels around the point at which you click. The number gradually increase in the options and increase the sample. If the image you are sampling contains a variety of colours you can either zoom in or use these options to average the colour out.
Have an update or suggestion for this article? You can edit it here and send me a pull request.
Using HashiCorp Vault with LDAP
How to use HashiCorp Vault to setup an LDAP backed secret store with read-only access for users in groups and read-write access for specific users
Linux and Unix xargs command tutorial with examples
Tutorial on using xargs, a UNIX and Linux command for building and executing command lines from standard input. Examples of cutting by character, byte position, cutting based on delimiter and how to modify the output delimiter.
Copy a file in Go
How to copy a file in Go. The ioutil package does not offer a shorthand way of copying a file. Instead the os package should be used.