The performance of this thing makes it borderline unusable, I am not sure if it's the drawing, hit-testing, or both. A good deal of that can probably be solved by utilizing webgl for the drawing rather than the html canvas. Upload geometry once, and draw with parameters (color, et al.) as-needed