Blend Modes

Blend modes for Elements and Shaders.

From the Skia documentation:

Mode

Description

Src In

replaces destination

Dst In

preserves destination

Src Over

source over destination

Dst Over

destination over source

Src In

source trimmed inside destination

Dst In

destination trimmed by source

Src Out

source trimmed outside destination

Dst Out

destination trimmed outside source

Src ATop

source inside destination blended with destination

Dst ATop

destination inside source blended with source

Xor

each of source and destination trimmed outside the other

Plus

sum of colors

Modulate

product of premultiplied colors; darkens destination

Screen

multiply inverse of pixels, inverting result; brightens destination

Overlay

multiply or screen, depending on destination

Darken

darker of source and destination

Lighten

lighter of source and destination

Color Dodge

brighten destination to reflect source

Color Burn

darken destination to reflect source

Hard Light

multiply or screen, depending on source

Soft Light

lighten or darken, depending on source

Difference

subtract darker from lighter with higher contrast

Exclusion

subtract darker from lighter with lower contrast

Multiply

multiply source with destination, darkening image

Hue

hue of source with saturation and luminosity of destination

Saturation

saturation of source with hue and luminosity of destination

Color

hue and saturation of source with luminosity of destination

Luminosity

luminosity of source with hue and saturation of destination