+ 1

Is there any use of canvas and svg in today's pages?

5th Sep 2020, 7:43 PM
Strakoš
Strakoš - avatar
6 odpowiedzi
+ 2
Strakoš There exist frameworks for working with canvas, or you can write most needed tasks yourself. Canvas are used when simple image won't do, i.e. you need to dynamically draw a graph. SVG images are smaller in file size, so it's used to make websites load faster. Another boon is that SVGs scale, so you can reuse them at different sizes instead of having same image copy at 12px, 16px, 18px, 32px and 64px
5th Sep 2020, 8:06 PM
BlazingMagpie
BlazingMagpie - avatar
+ 3
Anything involving graphics.
5th Sep 2020, 11:24 PM
Sonic
Sonic - avatar
+ 2
BlazingMagpie I meant like actually drawing by coding in javascript. Sounds very time consuming and not very practical. Isnt it easier to just import a picture for (e.g. logos).
5th Sep 2020, 7:55 PM
Strakoš
Strakoš - avatar
+ 1
Web games are sometimes just canvas and SVG are used as various icons everywhere (see Font Awesome)
5th Sep 2020, 7:51 PM
BlazingMagpie
BlazingMagpie - avatar
+ 1
One the most important use of Svg is animated icons. svg are also used to make logo as logo must not brust on zoom/stretching screen.
6th Sep 2020, 2:52 AM
Divya Mohan
Divya Mohan - avatar