Skip to content

Instantly share code, notes, and snippets.

Created September 27, 2018 14:00
What would you like to do?
let group = GPUImageFilterGroup()
let contrastFilter = GPUImageContrastFilter()
contrastFilter.contrast = FoboCore.Context.sceneManager.popArtContrastLevel
let colorFilter = GPUImageFalseColorFilter()
colorFilter.firstColor = GPUVector4(FoboCore.Context.sceneManager.popArtColor.first)
colorFilter.secondColor = GPUVector4(FoboCore.Context.sceneManager.popArtColor.second)
group.initialFilters = [contrastFilter]
group.terminalFilter = colorFilter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment