All Projects → heestand-xyz → VertexKit

heestand-xyz / VertexKit

Licence: MIT license
a Framework for iOS & macOS

Programming Languages

swift
15916 projects
Metal
113 projects

VertexKit

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

Particles Example

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

PixelKit.main.render.bits = ._16

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

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

let particles = UVParticlesPIX(at: .size(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)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].