Swiftpack.co - heestand-xyz/VertexKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by heestand-xyz.
heestand-xyz/VertexKit 2.0.2
a Framework for iOS & macOS
⭐️ 43
🕓 2 weeks ago
iOS macOS tvOS
.package(url: "https://github.com/heestand-xyz/VertexKit.git", from: "2.0.2")

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)

GitHub

link
Stars: 43
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics