💾 Archived View for thrig.me › blog › 2023 › 05 › 12 › mountains.gmi captured on 2024-07-09 at 01:03:26. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-11-14)

-=-=-=-=-=-=-

Mountains

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?

out.gif

46 degree angle, 1234 objects, minlen 4

triangle.go

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