Canvas vs. SVG | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Canvas vs. SVG

Canvas vs. SVG Canvas - Elements are drawn programmatically - Drawing is done with pixels - Animations are not built in - High performance for pixels-based drawing operations - Resolution dependent - No support for event handlers - You can save the resulting image as .png or .jpg - Well suited for graphic-intensive games SVG - Elements are part of the page's DOM (Document object model) - Drawing is done with vectors - Effects, such as animations are built in - Based on standard

24th Oct 2017, 6:35 AM
Bashdar Abdalrahman MOHAMMED
Bashdar Abdalrahman MOHAMMED - avatar
1 Answer
0
svg is best
17th Feb 2018, 2:57 AM
SIVA GANESH
SIVA GANESH - avatar