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.
Linux and Unix watch command tutorial with examples
Tutorial on using watch, a UNIX and Linux command for executing a program periodically and showing a fullscreen output. Examples of watching a file download, a network interface come up, and showing the five most CPU intensive processes.
Build your own Vim statusline
Statuslines in Vim are not hard to create. Making your own means one less dependency in your life.
Custom Vim Bindings in tmux 2.4
tmux 2.4 made a significant change to key bindings. Here is how to support custom keybindings for versions before and after tmux 2.4