Marching Squares

Click and drag to draw :)

This algorithm is used to generate contour maps: Each line has a different 'threshold'.

Here is the wikipedia article which describes how it works.


Truncate to nearest:
test