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.
Listening to BBC Radio with mpv
The BBC publishes high quality 320 kbps HLS AAC streams that can be used to listen to radio from the command-line using mpv. Here are the URLs and some aliases to start listening quickly.
Vim: So long Pathogen, hello native package loading
Vim 8 added a native way to load third-party packages. This means, for me at least, there is no longer any need to use a third party plugin helper like Pathogen.
Linux and Unix more command tutorial with examples
Tutorial on using more, a UNIX and Linux command for viewing the contents of a file or files one screen at a time. Examples of viewing a file, viewing multiple files, searching using regular expressions and opening the file in a text editor.