BlendMode

class BlendMode

Members:

kClear : replaces destination with zero: fully transparent

kSrc : replaces destination

kDst : preserves destination

kSrcOver : source over destination

kDstOver : destination over source

kSrcIn : source trimmed inside destination

kDstIn : destination trimmed by source

kSrcOut : source trimmed outside destination

kDstOut : destination trimmed outside source

kSrcATop : source inside destination blended with destination

kDstATop : destination inside source blended with source

kXor : each of source and destination trimmed outside the other

kPlus : sum of colors

kModulate : product of premultiplied colors; darkens destination

kScreen : multiply inverse of pixels, inverting result; brightens destination

kLastCoeffMode : last porter duff blend mode

kOverlay : multiply or screen, depending on destination

kDarken : darker of source and destination

kLighten : lighter of source and destination

kColorDodge : brighten destination to reflect source

kColorBurn : darken destination to reflect source

kHardLight : multiply or screen, depending on source

kSoftLight : lighten or darken, depending on source

kDifference : subtract darker from lighter with higher contrast

kExclusion : subtract darker from lighter with lower contrast

kMultiply : multiply source with destination, darkening image

kLastSeparableMode : last blend mode operating separately on components

kHue : hue of source with saturation and luminosity of destination

kSaturation : saturation of source with hue and luminosity of destination

kColor : hue and saturation of source with luminosity of destination

kLuminosity : luminosity of source with hue and saturation of destination

kLastMode : last valid value

Methods

__init__

Attributes

kClear

kColor

kColorBurn

kColorDodge

kDarken

kDifference

kDst

kDstATop

kDstIn

kDstOut

kDstOver

kExclusion

kHardLight

kHue

kLastCoeffMode

kLastMode

kLastSeparableMode

kLighten

kLuminosity

kModulate

kMultiply

kOverlay

kPlus

kSaturation

kScreen

kSoftLight

kSrc

kSrcATop

kSrcIn

kSrcOut

kSrcOver

kXor

name

value

Methods

BlendMode.__init__(self: skia.BlendMode, value: int) None

Attributes

BlendMode.kClear = <BlendMode.kClear: 0>
BlendMode.kColor = <BlendMode.kColor: 27>
BlendMode.kColorBurn = <BlendMode.kColorBurn: 19>
BlendMode.kColorDodge = <BlendMode.kColorDodge: 18>
BlendMode.kDarken = <BlendMode.kDarken: 16>
BlendMode.kDifference = <BlendMode.kDifference: 22>
BlendMode.kDst = <BlendMode.kDst: 2>
BlendMode.kDstATop = <BlendMode.kDstATop: 10>
BlendMode.kDstIn = <BlendMode.kDstIn: 6>
BlendMode.kDstOut = <BlendMode.kDstOut: 8>
BlendMode.kDstOver = <BlendMode.kDstOver: 4>
BlendMode.kExclusion = <BlendMode.kExclusion: 23>
BlendMode.kHardLight = <BlendMode.kHardLight: 20>
BlendMode.kHue = <BlendMode.kHue: 25>
BlendMode.kLastCoeffMode = <BlendMode.kScreen: 14>
BlendMode.kLastMode = <BlendMode.kLuminosity: 28>
BlendMode.kLastSeparableMode = <BlendMode.kMultiply: 24>
BlendMode.kLighten = <BlendMode.kLighten: 17>
BlendMode.kLuminosity = <BlendMode.kLuminosity: 28>
BlendMode.kModulate = <BlendMode.kModulate: 13>
BlendMode.kMultiply = <BlendMode.kMultiply: 24>
BlendMode.kOverlay = <BlendMode.kOverlay: 15>
BlendMode.kPlus = <BlendMode.kPlus: 12>
BlendMode.kSaturation = <BlendMode.kSaturation: 26>
BlendMode.kScreen = <BlendMode.kScreen: 14>
BlendMode.kSoftLight = <BlendMode.kSoftLight: 21>
BlendMode.kSrc = <BlendMode.kSrc: 1>
BlendMode.kSrcATop = <BlendMode.kSrcATop: 9>
BlendMode.kSrcIn = <BlendMode.kSrcIn: 5>
BlendMode.kSrcOut = <BlendMode.kSrcOut: 7>
BlendMode.kSrcOver = <BlendMode.kSrcOver: 3>
BlendMode.kXor = <BlendMode.kXor: 11>
BlendMode.name
BlendMode.value