r/photoshop•
Omega128

Hatching selected areas

Hi,

Firstly, I'm new to photoshop but at work we've recently purchased it as a way to annotate photographs etc for reports.

Is it possible to easily create a way to fill a section with hatching, such as for architectural / cartographic purposes?

I've tried downloading various patterns, but I seem to be stuck either with an opaque background and no way to readily change the colour of the hatching itself.

I'm telling myself there must be a simple way to achieve this ...

Posted Jul 6, 2016, 1:48 PM UTC

12
CreeDorofl•

yup, it's totally possible. This is one way to do it. There's lots of ways to skin the cat.

First we're gonna make a custom hatching pattern that alternates between black stripes and transparent background.

• Make a new document (ctrl+N), make the size 4 x 4 pixels. Make the background contents dropdown say "transparent". Zoom all the way in to the max photoshop will allow (one way is to hold control and keep pressing + until it says you're at 3200% zoom).

Press B on the keyboard and you should see a tool on that vertical toolbar on the left become selected. That's the brush tool. We don't actually want that, we want the pencil. So click and hold on the brush tool until you get a popup showing alternate tools, and pick the pencil.

By default your foreground and background colors (the two big squares at the bottom of this toolbar) should be black and white. You should change the black to whatever color you think you'll use the most... if that's black, just leave it as is. Don't worry about the background color.

Now with the pencil, draw a simple pattern like this: http://i.imgur.com/ntTGsLr.jpg

Normally those black lines would show over a sort of light gray checkerboard pattern, indicating the background is transparent. But photoshop doesn't properly show this pattern (probably cuz we're working in a tiny 4 x 4 image). But if you look at the layers palette on the right, you can see the lines fall over a checkerboard pattern indicating that the areas between them are transparent.

• Now do edit - define pattern, and give it a name like "hatching".

• Open any image where you wish to add hatching.

• Do ctrl+shift+N to create a new, empty layer on top of the image. This empty layer is where we'll add the hatching, so it's separate from the original image and can be manipulated without affecting the original underlying image.

• Use one of photoshop's selection tools like the rectangular marquee (keyboard shortcut: m) to create a selection around the area you want to add hatching.

To do more complex shapes, you can try the poly lasso... click and hold the button just below the rectangular marquee and pick the lasso with angular sides. You use it by just clicking and releasing (not click and drag) at each corner of a room or whatever until you complete a loop and come back to the first place you clicked. When you close that loop you should see the "marching ants" animation indicating that area has been selected. Protip: hold shift while you are choosing the next spot to click and it will force the line to be perfectly straight, or a perfect 45 degree diagonal.

Selected area using poly lasso plus hold-shift trick: http://i.imgur.com/dbYBREf.jpg

• Now fill the selected area with hatching by using edit - fill - and choose pattern from the dropdown. Find the diagonal line pattern you made (should be the very last one). If all goes well, you'll get diagonal stripes filling in that area you had selected.

• Now the only issue is, do you want to change the color or transparency of those stripes? Like in this example, the text looks a little harder to read right?
http://i.imgur.com/JwldGgn.jpg

To change the transparency of the stripes, go to the layers palette on the right, where the current layer should already be highlighted, and there's a little opacity dropdown that says "100%"... try changing that to 70% or 50% to make the stripes more transparent.

To change the color of the stripes, press ctrl+U on the keyboard, check "colorize", then play with the hue, saturation, and lightness sliders. Lightness especially, as changing the hue and saturation of pure black just results in... it's still black.

Here's an example of both the color and transparency of the stripes being changed: http://i.imgur.com/eHqvXMJ.jpg

That should about cover it, send a message if any trouble.

5
nayhem_jr•

You can add a pattern as a layer and change the blending mode (likely Multiply). To choose where to apply hatching, apply a mask (Layer > Layer Mask > Hide All). Click on the mask icon and use the Brush tool to paint #FFFFFF white wherever you want hatching to appear. You can use other gray tones for degrees of transparency, and #000000 black to completely hide. Be careful to not paint in the actual image contents!

You can then add adjustment layers to change colors (e.g. Hue/Saturation) and clip mask them to the hatch layer so they don't affect the artwork below. You can also use Layer Effects to add a Color Overlay (with blending modes such as Overlay) that only affects the hatch layer.

1