-- Leo's gemini proxy

-- Connecting to thrig.me:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

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

-- Response ended

-- Page fetched on Tue May 21 17:34:36 2024