Skip to content
a Framework for iOS & macOS
Branch: master
Clone or download
Latest commit 52065f7 May 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Assets adds image May 20, 2019
Resources
Shaders v0.2.0 May 22, 2019
Source
VertexKit.xcodeproj
VertexKit.xcworkspace
.gitignore
LICENSE v0.1.3 May 20, 2019
Podfile v0.1.4 May 20, 2019
Podfile.lock v0.1.3 May 20, 2019
README.md adds tutorial to readme May 21, 2019
VertexKit.podspec v0.2.0 May 22, 2019

README.md

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)
You can’t perform that action at this time.