0
What is better, CANVAS or SVG?
Choose the correct option
1 Answer
+ 1
While both Canvas and SVG can be used to create graphics, they are very different and each has their own purpose. Canvas is an immediate mode drawing surface whereas SVG is a retained mode scene graph. This means that Canvas is a lower level API than SVG, giving the developer more control and speed at the cost of more code and complexity. SVG is a higher level API, which lets the developer quickly draw shapes, but at the cost of fewer features and reduced speed. In addition, SVG is a resolution-independent vector API, while canvas is aresolution-dependent bitmap API.
Currently, Canvas has better browser support and can be used to draw vectors like SVG.
So, I guess both are good but none is better.