An old project of mine so sadly I’ve lost the code for now.
I suspect it will turn up while I’m pawing over my old files, I’ve got a decade of pastebins to sift through, hoping it will turn up there if I search some old messenger conversations.
This was a MIT-Scheme function but until I have some accompanying code I won’t post it over there. It works by dividing each polygon into smaller parts, then each of those parts are divided further, and so on until the declared limit.
Great for carpet fractals.
0