Inspired by the game Dots & Boxes and the wall drawings of artist Sol LeWitt. I have some plans to add some code to manage animations - this is all I've got right now, though.
I used Sketch.js to set up my canvas (I highly recommend it).
Also had some help from dat.GUI.
See it in action at tbaldw.in/dots.
Check out the source at github.com/rolyatmax/dots.