Blend mode

The blendMode attribute can be applied to PartText, PartImage, PartAnimatedImage and PartDraw elements to configure how two overlapping Part* objects are rendered.

Introduced in Wear OS 5.1.

Blend mode Description
CLEAR Destination pixels covered by the source are cleared to 0.
COLOR Replaces hue and saturation of destination with hue and saturation of source, leaving luminosity unchanged.
COLOR_BURN Makes destination darker to reflect source.
COLOR_DODGE Makes destination brighter to reflect source.
DARKEN Retains the smallest component of the source and destination pixels.
DIFFERENCE Subtracts darker from lighter with higher contrast.
DST The source pixels are discarded, leaving the destination intact.
DST_ATOP Discards the destination pixels that are not covered by source pixels.
DST_IN Keeps the destination pixels that cover source pixels, discards the remaining source and destination pixels.
DST_OUT Keeps the destination pixels that are not covered by source pixels.
DST_OVER The source pixels are drawn behind the destination pixels.
EXCLUSION Subtracts darker from lighter with lower contrast.
HARD_LIGHT Makes destination lighter or darker, depending on source.
HUE Replaces hue of destination with hue of source, leaving saturation and luminosity unchanged.
LIGHTEN Retains the largest component of the source and destination pixels.
LUMINOSITY Replaces luminosity of destination with luminosity of source, leaving hue and saturation unchanged.
MODULATE Multiplies the source and destination pixels.
MULTIPLY Multiplies the source and destination pixels.
OVERLAY Multiplies or screens the source and destination depending on the destination color.
PLUS Adds the source pixels to the destination pixels and saturates the result.
SATURATION Replaces saturation of destination with saturation of source, leaving hue and luminosity unchanged.
SCREEN Adds the source and destination pixels, then subtracts the source pixels multiplied by the destination.
SOFT_LIGHT Makes destination lighter or darker, depending on source.
SRC The source pixels replace the destination pixels.
SRC_ATOP Discards the source pixels that do not cover destination pixels.
SRC_IN Keeps the source pixels that cover the destination pixels, discards the remaining source and destination pixels.
SRC_OUT Keeps the source pixels that do not cover destination pixels.
SRC_OVER The source pixels are drawn over the destination pixels.
XOR Discards the source and destination pixels where source pixels cover destination pixels.