Blend Modes
Blend modes for Elements and Shaders.
From the Skia documentation:
Mode | Description |
Source In | replaces destination |
Destination In | preserves destination |
Source Over | source over destination |
Destination Over | destination over source |
Source In | source trimmed inside destination |
Destination In | destination trimmed by source |
Source Out | source trimmed outside destination |
Destination Out | destination trimmed outside source |
Source ATop | source inside destination blended with destination |
Destination 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 |
Last updated