Color-cycling applied to a spanning tree generated by Prim’s algorithm. This version rotates hue; see what happens when you vary periodicity instead.