+ 7
Which is best method to draw the graphics on the Web page (canvas or svg)?
Canvas and svg both methods are used to draw the graphics on the Web page but i confused which i choose the method.
23 Answers
+ 13
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 XML syntax, which provides better accessibility
- Resolution independent
- Support for event handlers
- Not suited for game applications
- Best suited for applications with large rendering areas (for example, Google Maps)
+ 10
Svg is scalable and perfect for icon ans logo images.
+ 9
Svg builds a lot of interesting graphics, with the scalable graphics, you can build all kind of charts for data analysis on all medias. Study d3.js to know more.
+ 9
I, personally prefer canvas, but it depends of your purposes.
Also, it's possible to remake SVG with a canvas but not the opposite, you just need a bit of programming and trigonometry knowledge ;)
But anyway, this is probably due to the fact I prefer making games and dislike both built in stuff and markup languages! ^^;
+ 4
it's really depends what you want to do
+ 4
SVG
+ 3
Definitely SVG
+ 3
IF you want to design logos or some shapes then svg is good
but for making games or stuff like that use canvas
+ 3
This is very subjective and also out of topic (!), but :
My favorite kind of design is when drawings are made with pencils and papers on a table, then scanned and photoshoped to be integrated to the web page. It has many disadvantages, of course, but it's so crazy nice and alive compared to svg or canvas ...
+ 3
when compared to canvas, SVG has better scalability i.e,printed with high quality resolution.,
but not suitable for game applications.
+ 2
canvas and it is more powerful and faster
+ 2
but the game need more options like touch things...
and with svg is hard to make
+ 2
I'm preferring svg, because it doesn't work with pixels so you can make it small or big. it keeps its look on certain things when you wanna make a image.
+ 2
depends on requirements
if you need to zoom an element than go for svg because it draw by vector so it can zoom for large scale
but if you don't need to zoom than you can go for canvas
+ 2
SVG
+ 2
what about webGL
+ 1
i am sorry
you are right
svg is better
+ 1
Yes;)
+ 1
In my opinion canvas
0
svg is better than canvas