+ 3

difference between canvas and svg??

describe difference between canvas and SVG ... which is more important.......

27th Apr 2019, 10:30 AM
Najmuddin Ansari
Najmuddin Ansari - avatar
2 Respostas
+ 4
Canvas is like a sheet of paper you can freely draw on and erase. Svg is a vector graphic which is like a normal image except it can scale without getting pixelated.
27th Apr 2019, 10:32 AM
Dragonxiv
Dragonxiv - avatar
+ 2
Canvas draws 2D graphics, on the fly (with a JavaScript). SVG is XML based, which means that every element is available within the SVG DOM. If attributes of an SVG object are changed, the browser can automatically re-render the shape.Canvas is rendered pixel by pixel.
27th Apr 2019, 10:32 AM
Alessio Benvenuti
Alessio Benvenuti - avatar