Alex Does Things Poorly

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

30 August 2021

Another Catchup Day

by alex

Some catchup on the blog today. I’ve been mostly keeping up with 100 Days of SwiftUI but haven’t been writing. Just feeling a little too overwhelmed with everything. So I’m not going to write much here today, just that I’m done with day 81 and looking forward to wrapping the whole thing up in a few weeks.

For today’s image, another sketch from the Generative Design book. The big challenge here was how to determine if the actively drawing line intersects with a previously drawn line. In the book they load the pixels and see if the canvas has been draw to at that point, but in Swift I had to do some trig to calculate the distance from a point to a line segment.

Intelligent agents

tags: swift - swiftui - generative-art