0

What is better, CANVAS or SVG?

Choose the correct option

28th Nov 2017, 9:04 AM
Marie Gomez
Marie Gomez - avatar
1 Odpowiedź
+ 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.
28th Nov 2017, 9:43 AM
DAB
DAB - avatar