A bit of trigonometry combined with Perlin noise wrapped in a loop for tens of thousands of iterations
Native JS + Trigonometry + Perlin = ❤️