+ 3
What is the difference between svg and canvas?
3 ответов
+ 4
Svg
It used in html if you want to make characters you can use svg
Canvas
It is used in javascript , and it is too easy to make
https://code.sololearn.com/Wkpf3EbGrd2I/?ref=app
https://code.sololearn.com/Wi7i23skNSpo/?ref=app
https://code.sololearn.com/WIfAmxxbIKFv/?ref=app
https://code.sololearn.com/W5NHCTspaYqM/?ref=app
https://code.sololearn.com/WmO0u22bAd1e/?ref=app
https://code.sololearn.com/WUS7Lb7STNA9/?ref=app
https://code.sololearn.com/WM4U7Xo4A6e0/?ref=app
+ 3
SVG
1.SVG has better scalability. So it can be printed with high quality at any resolution.
2.SVG can be modified through script and CSS
3.svg is Resolution independent
Canvas
1.Canvas has poor scalability. Hence it is not suitable for printing on higher resolution
2.Canvas can be modified through script only
3.it is Resolution dependent
for get to know more see it once 👇
https://www.educba.com/svg-vs-canvas/