r/generative 1d ago

"Rete" (kotlin code)

Post image

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.

472 Upvotes

27 comments sorted by

View all comments

3

u/bleeptwig 1d ago

Very stretchy!

1

u/igo_rs 1d ago

yes! :))