Blend Modes

Blend modes for Elements and Shaders.

From the Skia documentation:

Mode

Description

Clear

Replaces destination with Alpha and Color components set to zero; a fully transparent pixel.

Src

Replaces destination with source. Destination alpha and colorcomponent values are ignored.

Dst

Preserves destination, ignoring source. Drawing with Paint set to kDst has no effect.

Src Over

Replaces destination with source blended with destination. If source is opaque, replaces destination with source. Used as the default Blend_Mode for SkPaint.

Dst Over

Replaces destination with destination blended with source. If destination is opaque, has no effect.

Src In

Replaces destination with source using destination opacity.

Dst In

Scales destination opacity by source opacity.

Src Out

Replaces destination with source using the inverse of destination opacity, drawing source fully where destination opacity is zero.

Dst Out

Replaces destination opacity with inverse of source opacity. If source is transparent, has no effect.

Src Atop

Blends destination with source using read destination opacity.

Dst Atop

Blends destination with source using source opacity.

Xor

Blends destination by exchanging transparency of the source and destination.

Plus

Replaces destination with source and destination added together.

Modulate

Replaces destination with source and destination multiplied together.

Screen

Replaces destination with inverted source and destination multiplied together.

Overlay

Replaces destination with multiply or screen, depending on destination.

Darken

Replaces destination with darker of source and destination.

Lighten

Replaces destination with lighter of source and destination.

Color Dodge

Makes destination brighter to reflect source.

Color Burn

Makes destination darker to reflect source.

Hard Light

Makes destination lighter or darker, depending on source.

Soft Light

Makes destination lighter or darker, depending on source.

Difference

Subtracts darker from lighter with higher contrast.

Exclusion

Subtracts darker from lighter with lower contrast.

Multiply

Multiplies source with destination, darkening image.

Hue

Replaces hue of destination with hue of source, leaving saturation and luminosity unchanged.

Saturation

Replaces saturation of destination saturation hue of source, leaving hue and luminosity unchanged.

Color

Replaces hue and saturation of destination with hue and saturation of source, leaving luminosity unchanged.

Luminosity

Replaces luminosity of destination with luminosity of source, leaving hue and saturation unchanged.