How is the canvas tag useful in HTML5?

I am a junior developer, I can’t understand how the canvas tag is useful to us? I have read many articles about this, but I cannot get the root benefit from the canvas tag.

+5
source share
6 answers

Think of the difference between canvas and svg as the difference between Photoshop and Illustrator (or Gimp and Inkscape for you, OSS). One deals with bitmaps and another vector image.

With canvas, as you paint in a bitmap, you can easily blur, blur, burn, dodge images. But since this is a bitmap, you cannot easily draw a line, and then decide to reposition the line. You need to delete the old line and then draw a new line.

svg, , , , , , . , . .

. canvas javascript. . javascript , , , svg, , , C.

+5

, , / 2D- HTML5 API .

, , .

+4

Canvas:

, , , , . , , - , , , , - , , , .

+4

.

+2

, :

  • gps. GPS - XML- . - , " ".
  • , -, - PNG, .
  • , , . ?

:

0

( ) - canvas - -, , DOM ( , DOM - , )

Of course - the canvas made some kind of animation easier and plugins, but we could do it earlier (mostly with flash). I believe that the real importance is the ability to know what is happening on the page.

0
source

All Articles