10-13-2017, 09:48 AM
(09-13-2017, 05:02 AM)sinelogixtech Wrote: What is the difference between SVG and <Canvas>?SVG:
- Vector based (composed of shapes)
- Multiple graphical elements, which become the part of the DOM
- Modified through script and CSS
- Give better performance with smaller number of objects or larger surface, or both
- Better scalability — can be printed with high quality at any resolution
- Raster based (composed of pixel)
- Single HTML element similar to <img> in behavior
- Modified through script only
- Give better performance with smaller surface or larger number of objects, or both
- Poor scalability — not suitable for printing on higher resolution