cleaned up d3 coloring (requires name)

also better triangle support in regular polygon, and a background
lightgray to svg