💾 Archived View for thrig.me › blog › 2023 › 05 › 12 › mountains.gmi captured on 2023-05-24 at 17:51:08. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
So this was supposed to be a monte carlo Sierpinski triangle generator, but I got distracted somewhere along the way, and the code instead generates somewhat randomly placed mountains. The angle is off from what a Sierpinski triangle needs, and there's some caveman overlap prevention. Probably tolerable if you need "some mountains" for an role playing game map, or something like that?
46 degree angle, 1234 objects, minlen 4
Similar methods include a poisson disk sample (which does not put things too close) or brown noise (which clumps more than white noise, and might be modified to restart itself or make random long leaps elsewhere). Prior art:
https://thrig.me/src/ministry-of-silly-vaults.git
https://thrig.me/src/morna.git