Tabata
A lightweight CIFilter wrapper for Mac apps.
Used in: Lapsodi Time-Lapse app.
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
let sourceImage = NSImage(...)
let image = Tabata()
.brightness(brightness, saturation: saturation, andContrast: contrast)
.hue(hue)
.process(image: sourceImage) # returns NSImage.
Filters
Brightness, contrast and saturation
Tabata().brightness(brightness, saturation: saturation, andContrast: contrast)
Exposure
Tabata().exposure(0.5)
Hue
Tabata().hue(1.57)
Gaussian blur
Tabata().gaussianBlur(10)
Tilt-Shift
Tabata().tiltShift(4)
Scale
Tabata().scale(0.5)
Requirements
Installation
Tabata is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Tabata"
Author
SotaYokoe, [email protected]
License
Tabata is available under the MIT license. See the LICENSE file for more info.