Merge pull request #102 from yukiny0811/develop-1.13.0 develop 1.13.0
Merge pull request #102 from yukiny0811/develop-1.13.0
develop 1.13.0
Creative coding framework for Swift.Using Metal directly for rendering.
import SwiftyCreatives final class SampleSketch: Sketch { override func draw(encoder: SCEncoder) { let count = 20 for i in 0...count { color(1, Float(i) / 20, 0, 1) pushMatrix() rotateY(Float.pi * 2 / Float(count) * Float(i)) translate(10, 0, 0) box(1, 1, 1) popMatrix() } } }
ZStack { SketchView(SampleSketch()) } .background(.black)
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
SwiftyCreatives
Creative coding framework for Swift.
Using Metal directly for rendering.
Features
Sample Code
Main sketch process
You can use SketchView as SwiftUI View
Other Examples