Art-in-Swift
MetalBuilder
Art-in-Swift | MetalBuilder | |
---|---|---|
8 | 1 | |
77 | 55 | |
- | - | |
2.3 | 8.0 | |
about 1 year ago | 3 months ago | |
Swift | Swift | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Art-in-Swift
- Labyrinthe
-
2D slime creatures [OC]
Thanks! It is done in pure Metal(it’s like glsl but by Apple). The only framework I used is my own open source wrapper for Metal that I called MetalBuilder. It makes it easier to create and manage buffers, textures and shaders. If you interested you may want to check out some other stuff that I made using MetalBuilder: https://github.com/gadirom/Art-in-Swift I also have a subreddit dedicated to it: https://www.reddit.com/r/MetalBuilder/
-
The new version of MetalBuilder is out!
It's a wrapper for Metal based on Swift's ResultBuider and property wrappers. Allows to dispatch shaders with very little Swift code. Also it automatically generates most of the declarations for the shaders on the Metal side. It's pure Swift, so you may run it on an iPad in Swift Playgrounds. Here is an example of usage: https://github.com/gadirom/Art-in-Swift/blob/main/SplinesRenderer.swiftpm/README.md
- Polishing the new building block for dynamic interpolated 2D-mesh creation and rendering
-
Particles simulation controlled by Apple's Vision (Sound!)
this is a broken link edit: fixed https://github.com/gadirom/Art-in-Swift/tree/main/MetalBuilder_Particles_Vision.swiftpm
- MetalBuilder on the left, ReordableViews on the right
- Swift playground run on an iPad, drawn with Core graphics inside SwiftUI view
-
Touch sensitive particles, coded on an iPad
Glad you liked it! iPad has a free app called Swift Playgrounds, with which you can even produce and publish an app to the app store. In many cases it's as powerful as XCode, e.g. you have access to Metal - Apple's analog to OpenGL. Here you may find a collection of snippets that can be run on an iPad straight away, just copy paste one of them into a new Playground. The technology used there is very similar, except that particles in the video above are generated in an App (instead of Playground - these are two kinds of documents available in Swift Playgrounds) and use my custom declarative wrapper for Metal, which simplifies things a ton. I hope to make it into an open source package soon and write some tutorials, so stay tuned!
MetalBuilder
What are some alternatives?
Whisky - A modern Wine wrapper for macOS built with SwiftUI
Anime4KMetal - Anime4K for Apple platforms based on Metal
MetalSnapshotTaker - Exports images of arbitrary size from MTKView subclasses
Throttler - One Line to throttle, debounce and delay: Say Goodbye to Reactive Programming such as RxSwift and Combine.
apple-metal-sketch-dojo - Graphics and animations with the Apple Metal API
Satin - A 3D Graphics Framework built on Apple's Metal
Apple-Silicon-Guide - Apple Silicon Guide. Learn all about the A17 Pro, A16 Bionic, R1, M1-series, M2-series, and M3-series chips. Along with all the Devices, Operating Systems, Tools, Gaming, and Software that Apple Silicon powers.
ToyFlightSimulator - Toy Flight Simulator implemented with Swift and Metal
TransformGesture - Handle two finger transformation gesture in SwiftUI and Metal views