Back to Glossary
Design & Typography

Blend Modes

What Are Blend Modes?

A blend mode is the formula that decides how a layer’s colors combine with the colors underneath it, one pixel at a time. Multiply darkens, Screen lightens and Overlay adds contrast, and most modes have one top-layer color that drops out and leaves the picture below unchanged. Photoshop calls them blending modes, and CE.SDK has 27 of them: the 16 that CSS defines, Pass Through for groups and ten more that Photoshop also has, such as Linear Burn and Hard Mix.

Try all 27 blend modes on one photo

Step through the modes, then swap the top layer. On the gray ramp, the part that vanishes is the color the mode drops out.

In our tests the math matched CE.SDK’s own renders to within one level on all but a handful of pixels. It works on 8-bit sRGB values, and the 16 modes CSS also defines follow the W3C formulas. Your own photo never leaves your device, since the blending runs in this page.

How Are Blend Modes Grouped?

Blend modes fall into groups by their effect on the picture underneath, and most modes in a group share the color that drops out. Photoshop’s menu sorts its modes into similar sets, and CE.SDK’s docs put its 27 into these six groups.

Nothing drops out

Normal modes cover what’s below

Normal shows the top layer as it is, so only a lower opacity lets the picture through. Pass Through looks the same on a single layer and changes how a group blends, which the next section covers.

White drops out

Darken modes make the picture darker

Darken, Multiply, Color Burn, Linear Burn and Darken Color never return a lighter result than the picture below. Multiply is the one for shadows and for ink or line art on white paper.

Black drops out

Lighten modes make the picture lighter

Lighten, Screen, Color Dodge, Linear Dodge and Lighten Color never return a darker result than the picture below. Screen suits flames, sparks and light leaks shot on black.

Mid-gray drops out

Contrast modes darken and lighten in one pass

Overlay, Soft Light, Hard Light, Vivid Light, Linear Light and Pin Light darken where one layer is darker than mid-gray and lighten where it’s lighter. Overlay goes by the picture below and the others by the top layer, while Hard Mix pushes every channel to full or nothing.

Black drops out

Inversion modes subtract or divide the layers

Difference, Exclusion and Subtract leave the picture alone where the top layer is black, and Difference turns matching pixels black. Divide is the reverse: white leaves the picture unchanged and dark parts of the top layer brighten it.

No color drops out

Component modes mix hue, saturation and luminosity

Hue, Saturation, Color and Luminosity take one or two of those properties from the top layer and the rest from the picture below. Color, for example, tints a black-and-white photo and keeps its light and shadow.

Why Does One Color of the Top Layer Disappear?

Most formulas have one top-layer value that returns the picture below unchanged: white for Multiply, since any value times 1 stays the same, black for Screen and mid-gray for Overlay. A grain texture that sits around mid-gray therefore changes the photo only where its specks are lighter or darker, and flames filmed on black add only the flames. Our video overlay test shows what Screen does to a clip’s black background.

What Does Pass Through Do?

Pass Through lets the layers inside a group blend with everything below the group, as if the group weren’t there. In our CE.SDK test, a new group started on Pass Through, so a Multiply layer inside it darkened the photo underneath. Set the group to Normal and its layers blend only with each other, and the finished group sits on the photo like a single Normal layer.

Which Blend Mode Should You Use?

Go by the job and by which color should vanish: Multiply for anything on white, Screen for anything on black and Overlay or Soft Light for textures on gray. A greeting card app, for example, can let users drop a scanned signature onto a photo card, and Multiply removes the white paper around the ink.

Which blend mode fits each job
  Use Why
A shadow, or ink on white paper Multiply White leaves the photo as it is, so only the dark marks show
Flames, sparks or light leaks shot on black Screen Black leaves the photo as it is, and every brighter color lightens it
Film grain or paper texture Overlay or Soft Light Mid-gray leaves the photo as it is, so only the lighter and darker specks show
A tint over a black-and-white photo Color It keeps the photo’s light and shadow and takes its color from the top layer
Lining up two drafts of a design Difference Pixels that match turn black, so what still shows is new or has moved

How Blend Modes Work in CE.SDK

CE.SDK runs the same 27 blend modes in the browser, on iPhone and Android devices and on servers, for images, video, shapes, text and groups, and the tool above runs the math that matched its renders. Your users choose a mode while they design, your app can set one through the engine, and a template can keep it fixed.

Your users pick a mode from the inspector bar

When your users design, the web editor’s inspector bar has an Opacity and blend mode control for the selected block, where they choose the mode and lower the opacity.

Your app sets the mode through the engine

When your app assembles a layout, like a paper texture over every product photo, it sets the mode and the opacity on the block. The same calls run on the server for batch jobs. In our test, a PDF export kept the 16 modes the PDF format defines as live blends and drew 10 others, such as Linear Burn and Hard Mix, as Normal, so check the PDF of a print design that relies on one of those.

A template keeps its blend mode

When a template’s look depends on a blend mode, set the layer/blendMode scope to Defer and turn it off on that block. Users in the Adopter role can then edit the template without changing the mode.

Set a blend mode and lock it
// Multiply drops the white paper around a scanned signature.
if (engine.block.supportsBlendMode(signature)) {
  engine.block.setBlendMode(signature, 'Multiply');
  engine.block.setOpacity(signature, 0.9);
}
// Let each block's own setting decide, then lock this one for Adopters.
engine.editor.setGlobalScope('layer/blendMode', 'Defer');
engine.block.setScopeEnabled(signature, 'layer/blendMode', false);
Blend Modes guide

FAQs

Multiply multiplies the two layers, so white drops out and every other color darkens the picture. Screen does the same with inverted values, so black drops out and every other color lightens it. A white background calls for Multiply and a black one for Screen.

Multiply, which leaves the picture unchanged wherever the top layer is white and keeps the darker marks. It also darkens every colored part of the top layer, so a logo with light colors in it looks better saved with a transparent background.

Overlay, Soft Light and Hard Light are built so that a 50% gray top layer returns the picture unchanged, darker grays darken it and lighter grays lighten it. That’s why a texture on mid-gray changes the photo only where its specks are.

Each app picks its own formula for some modes. Soft Light has several published versions, one in Photoshop and another in the W3C spec that CSS follows, and CE.SDK matched the W3C one in our test. The names differ too, since Photoshop’s Darker Color and Lighter Color are Darken Color and Lighten Color in CE.SDK.

Yes. Blocks with a video fill take a blend mode and an opacity the same way images do, so a clip of light leaks shot on black can sit over the main footage in Screen.