Sub topic 2
The Darken group: Multiply and its relatives
This chapter assumes you can work with layers, layer masks and adjustment layers, and that you can read brightness and hue values. A blend mode compares the top layer's pixels (the blend color) with the pixels beneath (the base color). The examples use values from 0 (black) to 1 (white).
The Darken group: Multiply and its relatives
Multiply multiplies the base by the blend. Both values are at most 1, so the result is never lighter than either input. A white blend pixel leaves the base unchanged. Darken keeps the darker value in each channel. Use these modes for shadows, dark textures and grunge overlays.
The Lighten group: Screen and its relatives
Screen inverts both colors, multiplies them, then inverts the result. The output is never darker than either input, and black in the blend has no effect. Lighten keeps the lighter value in each channel. Use Screen for glows, light leaks and soft highlights.
The Contrast group: Overlay, Soft Light and Hard Light
Overlay applies Multiply to dark base pixels and Screen to light ones, so shadows get darker and highlights get lighter. A 50% gray blend leaves the base unchanged. Soft Light is a gentler version. Hard Light is Overlay with the layer roles swapped, so the blend decides which operation applies. Use these modes for contrast and color grading.
The Inversion group: Difference, Exclusion, Subtract and Divide
Difference subtracts the smaller value from the larger. Identical pixels turn black, which makes Difference useful for checking alignment between two images. Exclusion gives a similar result with lower contrast. Subtract and Divide do what their names say. Results outside the 0 to 1 range are clipped, so check the histogram for blown highlights or crushed shadows.
def multiply(base, blend):
return base * blend
def screen(base, blend):
return 1 - (1 - base) * (1 - blend)
def overlay(base, blend):
if base < 0.5:
return 2 * base * blend
return 1 - 2 * (1 - base) * (1 - blend)
def difference(base, blend):
return abs(base - blend)
print(round(multiply(0.5, 0.5), 2)) # 0.25, darker
print(round(screen(0.5, 0.5), 2)) # 0.75, lighter
print(round(overlay(0.5, 0.5), 2)) # 0.5, unchanged
print(round(difference(0.9, 0.4), 2)) # 0.5Exercise
In Multiply, what does a white pixel in the blend layer do to the base pixel?
Show answer
It leaves the base pixel unchanged, because base times 1 equals base.