Slight modification of Mike Bostok's visualisation, using a single Cubehelix color scale.
A spanning tree of the canvas is generated using Prim’s algorithm and then flooded with color. Hue encodes Manhattan distance from the root of the tree.
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js