Sub topic 6
Smooth Blends with Gradients
Assume you can create a layer mask, select its thumbnail in the Layers panel, and use the Gradient tool. A gradient on a mask creates a gradual change between visible and hidden areas. This is useful for combining two exposures, fading a texture, or blending a foreground layer into a background.
How a gradient controls visibility
A layer mask uses grayscale values:
- White reveals the layer fully.
- Black hides the layer fully.
- Gray reveals the layer partly.
When you drag a gradient across a mask, Photoshop fills the mask with a range of gray values. The layer becomes fully visible at one end, fully hidden at the other end, and partly visible between them.
For example, a black-to-white gradient makes one side of a layer disappear gradually while the other side remains visible. The direction of your drag determines the direction of the blend.
Apply a gradient to a layer mask
- Place the layer you want to blend above another layer.
- Add a layer mask to the upper layer. Start with Reveal All if you want to control the blend gradually.
- Click the mask thumbnail. A border around the thumbnail shows that the mask is active.
- Select the Gradient tool. In the Options bar, choose the foreground-to-background gradient.
- Set the foreground color to black and the background color to white. Press
Dto restore the default colors, then pressXif you need to swap them. - Choose a linear gradient for a straight transition.
- Drag across the image in the direction of the desired blend.
Hold Shift while dragging to constrain the line to a 45-degree angle. A short drag creates a narrow, fast transition. A long drag creates a wider, softer transition.
If the result is reversed, press X and drag again, or undo and use the opposite direction. You can also press Ctrl+I on Windows or Command+I on macOS to invert the entire mask.
Refine the blend
A gradient is editable as long as you work on the mask rather than the image pixels. Drag again to replace the existing mask gradient. If you need a more irregular transition, switch to the Brush tool and paint with a soft brush using black, white, or a low-opacity gray.
Use the Layers panel to compare the result:
- Shift-click the mask thumbnail to disable the mask temporarily.
- Click the mask thumbnail again to enable it.
- Alt-click on Windows or Option-click on macOS to inspect the mask itself.
For more control, open the Properties panel while the mask is selected. Feather softens the mask edges. Density reduces the mask's overall strength, so even white areas reveal less than 100 percent of the layer. These controls can adjust the blend without repainting the mask.
Exercise
You want the left side of an upper layer visible and the right side hidden. Which gradient and drag direction should you use on the layer mask?
Show answer
Use a white-to-black gradient and drag from left to right. White keeps the left side visible, while black hides the right side.