HTML canvasses are bitmaps. They are arrays of bytes. If bitmaps are scaled up you will see jaggies. Scalable Vector Graphics is a software layer between design and output. A svg graphic that looks good on a cell phone will look good on a large display.
The svg graphics area is set in a way that is quite similar to the HTML needed to create an html canvas.
<svg width="300" height="300">SVG code here</svg>
innerVar="<svg width="300" height="300">"+svgJsVar+"</svg>";
SVG is a very verbose markup language.
The second link is for a text file similar to the code used to create the above graphic. You can download it and save it as a .html file. Load it into an editor, play around with the variables and see the results in your browser.
The last link is the home page.
click here to view svg markup