sourceAtop
A mode that you use to paint the opaque parts of the source image onto the opaque parts of the background.
Declaration
static var sourceAtop: GraphicsContext.BlendMode { get }Discussion
This mode implements the equation R = S*Da + D*(1 - Sa) where
Ris the composite image.Sis the source image.Dis the background.Sais the source image’s alpha value.Dais the source background’s alpha value.