So,

I was working with my father, a physicist and mathematician, who wants to have a little math example done in javascript. We haven’t finished the meat and potatoes of the project, but one hurdle was the necessity to place 8 divs in a circle on the page. This is a variation on the Tirgrams and Clifford Algebras demonstration that comes with the Mathmatics software Wolfram. Essentially this displays the trigrams in a clock formation, right to left around a circle.

I looked around for a few examples and none of them seemed to work out the way I wanted them too, so I asked him to help and this is what we came up with.

//trigrams are a class that contain divs displaying 1 of 8 trigrams. function draw() { var windowWidth = $(window).width();