Started on a slightly different implementation in alternate-triangles.htm - I think this is a better approach but not sure how easy the graph creation would be.