Skip to content

Instantly share code, notes, and snippets.

@alexpersian
Last active February 11, 2020 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexpersian/66a60a191612381953fa1eab6a173617 to your computer and use it in GitHub Desktop.
Save alexpersian/66a60a191612381953fa1eab6a173617 to your computer and use it in GitHub Desktop.
// MARK: Multiply Blend Filter
let multiplyFilter = CIFilter(name: "CIMultiplyBlendMode")!
let solidLightColorImage = CIImage(color: CIColor(red: 0.33, green: 0.98, blue: 0.25))
multiplyFilter.setValuesForKeys([
"inputImage": grayscaleFilter.outputImage!,
"inputBackgroundImage": solidLightColorImage
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment