Sub topic 2
White Reveals, Black Conceals, Gray Blends
Assume you can navigate the Layers, Tools, and Properties panels, use the Brush tool, and make basic selections. This chapter focuses on the working model behind a layer mask. Once you understand that model, painting and refining masks become predictable.
A mask controls visibility
A layer mask is a grayscale image attached to a layer. Photoshop reads each pixel in the mask and uses its brightness to decide how much of the layer to show.
- White reveals the layer completely.
- Black conceals the layer completely.
- Gray reveals the layer partially.
The mask does not change or remove the original pixels. It changes whether those pixels are visible in the document. A hidden area can be shown again by painting white on the mask.
| Mask value | Layer visibility | Typical use |
|---|---|---|
| White | 100% visible | Keep the layer unchanged in that area |
| 50% gray | About 50% visible | Create a soft transition |
| Black | 0% visible | Hide the layer in that area |
The effect is similar to placing a transparent sheet over a layer. White areas are clear, black areas are opaque, and gray areas are partly transparent.
Why gray creates smooth edges
Suppose a layer contains a sky replacement. A black mask over the foreground hides the replacement there. A white mask over the sky reveals it. Along the horizon, gray pixels reveal part of the replacement and blend it with the layers below.
Gray does not mean that Photoshop paints a gray color onto the image. It means that Photoshop applies partial opacity to the masked layer. A 25% gray area shows roughly one quarter of the layer and allows the underlying content to dominate.
Brush opacity and flow affect the mask value you paint. A soft brush also creates a range of gray pixels along its edge. These gradual values produce a transition instead of a hard boundary.
The mask and the layer work together
The layer thumbnail and mask thumbnail have separate roles:
- The layer thumbnail represents the original image or content.
- The mask thumbnail represents visibility.
- A chain-link icon between them means they move together.
- Clicking the mask thumbnail edits the mask rather than the layer.
A mask can reveal a layer only where the layer itself contains visible content. White cannot reveal pixels that were already transparent or hidden by another process.
A predictable painting method
To reveal more of the layer, set the foreground color to white and paint on the mask. To conceal more, use black. Press D to restore the default foreground and background colors, then press X to swap them.
Work with a soft brush and lower opacity when you need gradual changes. Use a hard brush or a selection when you need a precise boundary. Because the original layer remains intact, you can switch between black and white while correcting the same mask.
Exercise
A layer mask is white over a subject, black over the background, and gray along the subject's edge. What will the viewer see?
Show answer
The subject will be fully visible, the background layer will be hidden in that area, and the edge will show a partial blend between the masked layer and the layers below.