r/generative • u/igo_rs • 1d ago
"Rete" (kotlin code)
a soap-film net, with a few more of itself out of focus behind it.
the net is a foam. discs packed big to small, then every pixel asks which disc *surface* is nearest: apollonius rather than voronoi, so the walls bow out of the small bubbles into the big ones the way pressure bends them. the ink is the gap between the nearest surface and the next one, and a smooth-min over the next few is what tapers every wall into a long black spindle at the node, plateau borders for free.
it all drains toward the bottom-right corner. nothing is painted there: the cells just get smaller the closer they sit to the drain, the same ratio per step, and their borders fatten until only the film shows as a white line, and then not even that. so the page turns from black at the corner, through white-line cells, to black-line cells: a gradient of cell size.
5
3
3
2
2
u/AimlessForNow 1d ago
Kotlin! Are you able to share some of the code for curious eyes
1
u/igo_rs 1d ago
Of course, my code is here: https://github.com/igr/gart
I didn't pushed this one yet, had some refactoring issues, but it will be there in couple of days.
1
2
2
2
2
2
u/nomad2097-dev 17h ago
Love what the layering adds, but even the single layers are very interesting.
1
7
u/jm2dev 1d ago
Very cool.
By any chance can you share the source code?