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

Proxy Information
Original URL
gemini://thrig.me/blog/2023/05/12/mountains.gmi
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
1179.059384 milliseconds
Gemini-to-HTML Time
0.280454 milliseconds

This content has been proxied by September (ba2dc).