Skip to content

Instantly share code, notes, and snippets.

@alexpersian
Last active February 11, 2020 15:27
Show Gist options
  • 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