Greetings, Scratcher Press the green flag or spacebar to generate Simple implementation of the marching squares algorithm. It basically genarates the filled contours of a 2D scalar field, which in this case is generated wth perlin noise. It would look much smoother if I linearly interpolated based on the actual perlin noise values in the scalar field instead of just setting them to either 0 or 1, but that'd be harder to implement, take longer to render, and I can't be bothered. Perhaps a project for another day. I used an older project of mine as base for this one, so the code is for the most part an unreadable mess, sorry.
All code by me, @CasTur, with the exception of the perlin noise, which I think I got from @iaobardar More info here: http://jamie-wong.com/2014/08/19/metaballs-and-marching-squares/