what is difference between canvas and svg? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is difference between canvas and svg?

20th Oct 2016, 8:28 AM
Joyx Kish
Joyx Kish - avatar
4 Answers
+ 1
canvas drawings are done with pixels and svg drawings are done with vectors
20th Oct 2016, 4:20 PM
Clitson Belleau
Clitson Belleau - avatar
+ 1
Canvas uses javascript to draw graphics while svg does not
30th Oct 2016, 12:22 AM
victor eberechi
victor eberechi - avatar
+ 1
If you were to use images, SVG is a lot better to use as it does not lose quality when stretched as png, jpeg, jpg will lose and get pixelated as a result. It is all personal preference really. Canvas works on a tech level on drawing with pixels
15th Nov 2016, 5:36 PM
Kris
0
Canvas is made for graphics
23rd Oct 2016, 11:55 AM
konstantin
konstantin - avatar