AnimatableData and Spirographs

Posted on Sat 17 July 2021 in swift

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