Skip to main content
100%

Maze Tree

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on May 14, 2014

A maze, generated as a uniform spanning tree via Wilson’s algorithm, is drawn on a black canvas. The tree layout repositions each maze cell from its grid coordinates into a Reingold–Tilford tree, animating the transition over 2.5 seconds with d3 transitions and tweens. The code uses d3.layout.tree, d3.timer, and the Canvas 2D API to redraw links each frame, with nodes sorted by depth.

AI-generated description

This maze is a uniform spanning tree generated by Wilson’s algorithm. To illustrate this point, the maze is transformed into a Reingold–Tilford tree layout.

gpl-3.0 Licensed

Similar vizzes