💾 Archived View for thrig.me › blog › 2023 › 05 › 12 › mountains.gmi captured on 2023-06-16 at 16:36:58. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-05-24)
-=-=-=-=-=-=-
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