API reference
API reference
Select your platform
No SDKs available
No versions available

LayerAlphaBlend Class

Modifiers: final
Defines the coefficients of how to blend the layer (using an add operation). "Source" refers to the layer you are currently compositing and "destination" refers to whatever is already in the buffer. This compositing can be modeled by:
finalColor = (sourceColor * sourceFactorColor) + (destinationColor * destinationFactorColor) finalAlpha = (sourceAlpha * sourceFactorAlpha) + (destinationAlpha * destinationFactorAlpha)

Signature

data class LayerAlphaBlend(val sourceFactorColor: BlendFactor, val destinationFactorColor: BlendFactor, val sourceFactorAlpha: BlendFactor, val destinationFactorAlpha: BlendFactor)

Constructors

LayerAlphaBlend ( sourceFactorColor , destinationFactorColor , sourceFactorAlpha , destinationFactorAlpha ) : LayerAlphaBlend
Signature
constructor(sourceFactorColor: BlendFactor, destinationFactorColor: BlendFactor, sourceFactorAlpha: BlendFactor, destinationFactorAlpha: BlendFactor)
Parameters
sourceFactorColor: BlendFactor
destinationFactorColor: BlendFactor
sourceFactorAlpha: BlendFactor
destinationFactorAlpha: BlendFactor

Properties

destinationFactorAlpha : BlendFactor
[Get]
Signature
val destinationFactorAlpha: BlendFactor
destinationFactorColor : BlendFactor
[Get]
Signature
val destinationFactorColor: BlendFactor
sourceFactorAlpha : BlendFactor
[Get]
Signature
val sourceFactorAlpha: BlendFactor
sourceFactorColor : BlendFactor
[Get]
Signature
val sourceFactorColor: BlendFactor
Did you find this page helpful?
Thumbs up icon
Thumbs down icon