Skip to content

Instantly share code, notes, and snippets.

@K4stor
K4stor / gist:a059a719e3a81bc397b1
Last active August 29, 2015 14:14
Hi. Nghia posted a nice article about color lookup tables with Core Image. Now I want to port that code to SWIFT, but all I get is a pink screen :D Actually just need the method of the CIFilter-category. As far as I can see the problem is the converting the data to an NSData object. The post can be found here http://nghiatran.me/2014/06/filter-m…
import Foundation
import GLKit
class ResponseFilter : CIFilter {
var inputImage:CIImage?
var responseName: NSString {
get {
return responseName_
}
set(newName) {