PixelKit Demos

Image Levels

pod 'PixelKit'
pod 'VertexKit'
import PixelKit
import VertexKit
let image = ImagePIX()
image.image = UIImage(named: "Öland")

let levels = LevelsPIX()
levels.inPix = image
levels.brightness = 1.5
levels.gamma = 0.5

let hueSat = HueSatPIX()
hueSat.inPix = levels
hueSat.sat = 0.5

let blur = BlurPIX()
blur.inPix = hueSat
blur.radius = 0.25

let res: PIX.Res = .custom(w: 1500, h: 1000)
let circle = CirclePIX(res: res)
circle.radius = 0.45
circle.bgColor = .clear

let finalPix: PIX = blur & (image * circle)
finalPix.view.frame = view.bounds
view.addSubview(finalPix.view)
Created by Hexagons