+ 6

Canvas vs SVG

Hi. It seems quite hard and ineffective to draw using canvas. Maybe it would be better to draw SVG in Illustrator for instance and just paste a code to HTML?

20th Feb 2018, 1:14 PM
Dmitrii Vasilev
Dmitrii  Vasilev - avatar
7 Respostas
20th Feb 2018, 1:37 PM
Youssef Ouamou
Youssef Ouamou - avatar
+ 10
SVG is more suitable for games
20th Feb 2018, 1:34 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 5
are you sure? it was written that canvas is better for games
20th Feb 2018, 1:36 PM
Dmitrii Vasilev
Dmitrii  Vasilev - avatar
+ 2
@Muhammad, canvas is more suitable for games, while svg is better with graphs. @Dmitrii, yes, it's easier to do that. You can easily create nice svg animations. But svg is slower compared to canvas.
20th Feb 2018, 1:43 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 2
@Jonathan what do you mean slower?
20th Feb 2018, 1:45 PM
Dmitrii Vasilev
Dmitrii  Vasilev - avatar
+ 1
canvas = bitmap. and svg = vector. now choose your concept dude doesn't matter canvas or svg
20th Feb 2018, 8:24 PM
Gunawan Wp
Gunawan Wp - avatar