toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

198
active users

#openrndr

3 posts1 participant0 posts today

One thing I've been wondering for years is whether I could use something like the Physarum algorithm to transport elements along the paths that form.

The issue was that the paths are transited by agents moving in both directions. Rivers don't do that.

During the Creative Code Jam last Saturday I figured out a way to have one direction per path. So nice to watch in real time :) I only had my 10 y.o. laptop, so had to work on 640x480 😅 #CreativeCoding #OPENRNDR #Kotlin

The program no longer crashes and the fix was simpler than I thought.

Instead of comparing rounded doubles (what a silly idea) I did the proper thing, which is abs(a - b) < epsilon. A lot of times 🙂 Takes maybe half second to generate the design. Then I can pan, zoom and rotate to find a screenshot I like.

I'm thinking that the lines that end in lonely places should end with a tiny knot. I may try that next.

This iteration has been a big challenge: Generate shapes, get their concave hull, pack those hulls, calculate the transformation matrices mapping the original hulls to the packed ones. Apply those transformation matrices to the original shapes. Finally play with a 2D camera to find the right shot.

And I still have an interesting rounding bug which doesn't fit in this description :)