09-13-2017, 05:02 AM
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
10-31-2017, 05:07 AM
SVG- SVG stands for Scalable Vector Graphics that is based upon the XML vector image and hence for two dimensional graphics with the support for interactivity and animation purpose.
CANVAS- The canvas is the element that is basically used to draw the graphics on web pages. The graphic is generally to the left and hence is created with <canvas>.
CANVAS- The canvas is the element that is basically used to draw the graphics on web pages. The graphic is generally to the left and hence is created with <canvas>.