Using SVG and JS to display pretty math functions in 3D