SVG or Canvas? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

SVG or Canvas?

Which one should I learn? (the easier and simpler). thanks in advance 🙂

31st Aug 2018, 11:32 PM
Abdou
9 Answers
+ 7
Depends on what kind of application you want to create. 💗 🤗🙆‍♂️
1st Sep 2018, 11:30 PM
NimWing Yuan
NimWing Yuan - avatar
+ 6
i prefer canvas because things in svg are hard to make as they are made from vectors im not even sure how to make images using svg but canvas is easier and simpler as you asked and canvas can also be used to make really cool interactive content like this👇👇 https://code.sololearn.com/WajDL1WEBOL2/?ref=app
1st Sep 2018, 3:47 AM
Code master
+ 6
svg or canvas a very intriguing doubt indeed https://code.sololearn.com/WI8NvUTDaLQH/?ref=app
1st Sep 2018, 1:15 PM
Morpheus
Morpheus - avatar
+ 3
1st Sep 2018, 12:49 AM
AL Araf
AL Araf - avatar
1st Sep 2018, 8:41 AM
Abdou
+ 3
thank you Paul
1st Sep 2018, 12:47 PM
Abdou
+ 3
I think canvas are better and easyer since svg are 2d if you pefer 3D over 2D, but canvas are pixel based if you like pixlated stuff it is really your opinon, Canvas are best for making games and svgs are made for images and animations
2nd Sep 2018, 3:50 AM
Little Cupcake
Little Cupcake - avatar
+ 2
It based on previous knowledge. if you know javascript,go for canvas and if you know xml ....go for svg. if you know none of this, then go for canvas✌
2nd Sep 2018, 10:57 AM
Tech Inary
Tech Inary - avatar
+ 1
Pros of using Canvas: The HTML canvas is used to draw graphics that include everything from simple lines to complex graphic objects. Cons of using Canvas: Since it is pixel-based, so the quality is lost upon magnifying indefinitely. Pros of using SVG: Since it is not pixel-based, so it can be magnified infinitely with no loss of quality. Cons of using SVG: It offers several methods for drawing paths, boxes, circles, text, and graphic images. Not all images can be drawn.
2nd Sep 2018, 10:05 AM
Rafey Iqbal Rahman
Rafey Iqbal Rahman - avatar