Alex Does Things Poorly

Alex does a variety of things poorly - swift, data science, datavis, ML, drawing, AR, unity, etc, etc.

17 July 2021

AnimatableData and Spirographs

by alex

A bit more 100 Days of SwiftUI finished today.

We covered AnimatableData today, which has already made it across to my Generative Art explorations. In particular, the AnimatedAcrossShapes sketch uses a stack of AnimatablePair structs to stash four animatable CGFloats on a shape. The spirograph was awesome. I had fun extending the presented material by experimenting with the amount you stride across theta by, to make other geometric shapes.

Spiro Stride By Spiro Stride Two Spiro Stride Gradient

tags: swift - swiftui - generative-art