VertexKit 0.2.0

VertexKit 0.2.0

Maintained by Hexagons.



VertexKit 0.2.0

VertexKit

License Cocoapods Platform

a Framework for iOS & macOS
written in Swift & Metal
an extension of PixelKit

Install

pod 'VertexKit'

import VertexKit

Tutorial

Particles in VertexKit & PixelKit

Particle Example

view.wantsLayer = true
view.layer!.backgroundColor = .black

PixelKit.main.bits = ._16

let pres: PIX.Res = .square(Int(sqrt(1_000_000)))

let noise = NoisePIX(res: pres)
noise.colored = true
noise.octaves = 5
noise.zPosition = .live * 0.1

let particles = ParticlesUV3DPIX(res: .cgSize(view.bounds.size) * 2)
particles.vtxPixIn = noise - 0.5
particles.color = LiveColor(lum: 1.0, a: 0.1)

let finalPix: PIX = particles
finalPix.view.frame = view.bounds
finalPix.view.checker = false
view.addSubview(finalPix.view)