---
title: sourceOut
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/graphicscontext/blendmode-swift.struct/sourceout
---

# sourceOut

A mode that you use to paint the source image onto the transparent parts of the background, while erasing the background.

## Declaration

```swift
static var sourceOut: GraphicsContext.BlendMode { get }
```

## Discussion

Discussion This mode implements the equation R = S*(1 - Da) where R is the composite image. S is the source image. Da is the source background’s alpha value.

## See Also

### Accessing Porter-Duff modes

- [clear](swiftui/graphicscontext/blendmode-swift.struct/clear.md)
- [copy](swiftui/graphicscontext/blendmode-swift.struct/copy.md)
- [sourceIn](swiftui/graphicscontext/blendmode-swift.struct/sourcein.md)
- [sourceAtop](swiftui/graphicscontext/blendmode-swift.struct/sourceatop.md)
- [destinationOver](swiftui/graphicscontext/blendmode-swift.struct/destinationover.md)
- [destinationIn](swiftui/graphicscontext/blendmode-swift.struct/destinationin.md)
- [destinationOut](swiftui/graphicscontext/blendmode-swift.struct/destinationout.md)
- [destinationAtop](swiftui/graphicscontext/blendmode-swift.struct/destinationatop.md)
- [xor](swiftui/graphicscontext/blendmode-swift.struct/xor.md)
