+ 6

What is the different between svg and canvas?

26th Apr 2017, 12:32 PM
vismay thakkar
vismay thakkar - avatar
2 ответов
+ 3
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. You can attach JavaScript event handlers for an element. In SVG, each drawn shape is remembered as an object.
26th Apr 2017, 12:47 PM
Cosby Asare, Owusu
Cosby Asare, Owusu - avatar
+ 3
SVG handle vector graphics. Canvas handle bitmap graphics.
26th Apr 2017, 5:15 PM
visph
visph - avatar