Discussion Forum | Board Infinity

What is the difference between Canvas and SVG graphics?

What is the difference between Canvas and SVG graphics?

Canvas draws 2D graphics, with the help of JavaScript whereas SVG is a language for describing 2D graphics in XML. In SVG, each shape drawn is identified as an object. So, if any changes done, the browser can automatically re-render the shape. In Canvas is rendered pixel by pixel. Once the graphic is drawn, it is forgotten by the browser.