caching the midpoints and drawing the triangles at the end got it to work
caching the midpoints and drawing the triangles at the end got it to work

luckybit4755/i-can-haz-js3,luckybit4755/i-can-haz-js3