Alpha blending

Alpha blending determines what happens to opaque areas when layers are combined with what’s underneath them. Alpha blending is an incredibly powerful feature for masking and creating complex shapes, but it can be a little confusing. Above Over is the most common, default alpha blending. Below Over is a handy one to know — it means the underlying image ends up on top.

If you’re familiar with shape boolean operations, alpha blending is very similar. The main difference is that alpha blending works with full color layers.

Alpha blending can be set for vector layers, mask layers, and groups using Layer › Alpha Blending, or the alpha blending popup next to the opacity controls on the properties window. Each material layer has its own alpha blending popup, too.

Alpha blending types #

In the names below, “above” is the layer being blended, and “below” is everything underneath it.

  • Above Over draws the layer on top of what’s below. This is the normal behaviour.
  • Below Over draws what’s below on top of the layer.
  • Above Inside keeps only the parts of the layer that overlap what’s below.
  • Below Inside keeps only the parts of what’s below that overlap the layer.
  • Above Outside keeps only the parts of the layer that don’t overlap what’s below.
  • Below Outside keeps only the parts of what’s below that don’t overlap the layer. The layer acts like an eraser.
  • Above Atop keeps what’s below, and draws the layer only where it overlaps what’s below.
  • Below Atop keeps the layer, and draws what’s below only where it overlaps the layer.
  • XOR keeps both, but removes the areas where they overlap.

These are the Porter and Duff compositing operators, if you’d like to read more about the maths behind them.

Groups and blending #

In Skala, groups are merged when being composited, and there is no pass-through blending. This means color blending and alpha blending is contained, and can not affect layers outside the group.

Further reading: Color blending and mask layers