Home /  Sketchbook /  p5.js - Marching Squares 3
  • Info

Overview

This is a p5.js sketch implementing the basic Marching Squares algorithm, inspired by Coding Train’s video - Coding Marching Squares .

In this iteration:

  • Allow for multiple steps within the 2D value field

Next steps in upcoming sketches / iterations

  • Fix the issue of not connecting the isolines to the left and top window edges.

Controls

(No interactivity implemented yet).

References:

  • Marching Squares (Wikipedia) article describing the algorithm
  • Coding Train’s video - Marching Squares - original inspiring video.

Links:

  • Live View
  • Source on Github

Screenshot:

screenshot