Post #3626056
2026-07-05 23:20 UTC
@bit101@mstdn.social All lovely 🤩
Curious, what algorithm does it use? What kind of configuration? I haven't written this kind of code in a long time, but I recall many of my efforts at reuse were resisted, even something as simple as a particle often wanted a shape or api specific to a project, and it didn't feel right to create uberclasses.
Replies (1)
-
@bit101@mstdn.social 2026-07-05 23:23
@ipsquiggle@sunny.garden I write everything in Go, as part of a couple of custom frameworks I built that use Cairographics C bindings. I think it's pretty standard circle packing. Find a random point that's not in an existing circle, what's the largest circle you can create from there that doesn't overlap another circles. With a few other constraints and parameters.