BlendModeCoeff

class BlendModeCoeff

For Porter-Duff SkBlendModes (those <= kLastCoeffMode), these coefficients describe the blend equation used.

Coefficient-based blend modes specify an equation: (‘dstCoeff’ * dst + ‘srcCoeff’ * src), where the coefficient values are constants, functions of the src or dst alpha, or functions of the src or dst color.

Members:

kZero : 0

kOne : 1

kSC : src color

kISC : inverse src color (i.e. 1 - sc)

kDC : dst color

kIDC : inverse dst color (i.e. 1 - dc)

kSA : src alpha

kISA : inverse src alpha (i.e. 1 - sa)

kDA : dst alpha

kIDA : inverse dst alpha (i.e. 1 - da)

kCoeffCount

Methods

__init__

Attributes

kCoeffCount

kDA

kDC

kIDA

kIDC

kISA

kISC

kOne

kSA

kSC

kZero

name

value

Methods

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

Attributes

BlendModeCoeff.kCoeffCount = <BlendModeCoeff.kCoeffCount: 10>
BlendModeCoeff.kDA = <BlendModeCoeff.kDA: 8>
BlendModeCoeff.kDC = <BlendModeCoeff.kDC: 4>
BlendModeCoeff.kIDA = <BlendModeCoeff.kIDA: 9>
BlendModeCoeff.kIDC = <BlendModeCoeff.kIDC: 5>
BlendModeCoeff.kISA = <BlendModeCoeff.kISA: 7>
BlendModeCoeff.kISC = <BlendModeCoeff.kISC: 3>
BlendModeCoeff.kOne = <BlendModeCoeff.kOne: 1>
BlendModeCoeff.kSA = <BlendModeCoeff.kSA: 6>
BlendModeCoeff.kSC = <BlendModeCoeff.kSC: 2>
BlendModeCoeff.kZero = <BlendModeCoeff.kZero: 0>
BlendModeCoeff.name
BlendModeCoeff.value