Skip to content

Instantly share code, notes, and snippets.

@alexpersian
Last active February 11, 2020 15:27
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/e872a98e2454db0df02f018d19c35516 to your computer and use it in GitHub Desktop.
Save alexpersian/e872a98e2454db0df02f018d19c35516 to your computer and use it in GitHub Desktop.
// MARK: Lighten Blend Filter
let lightenFilter = CIFilter(name: "CILightenBlendMode")!
let solidDarkColorImage = CIImage(color:CIColor(red: 0.09, green: 0.14, blue: 0.32))
lightenFilter.setValuesForKeys([
"inputImage": multiplyFilter.outputImage!,
"inputBackgroundImage": solidDarkColorImage
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment