SVG/JavaScript interactive geometry