O'Reilly logo

HTML5 for .NET Developers: Single page web apps, JavaScript, and semantic markup by Jim Jackson II and Ian Gilman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Canvas

This chapter covers

  • Building graphics into web applications using HTML Canvas
  • Working with text, lines, shapes, and images on Canvas
  • Animating elements in Canvas

The Canvas API is new in HTML5, and it provides a means of drawing bitmap-based images inside the browser. Canvas has received a lot of media and developer attention because it is, in fact, a blank canvas upon which anyone can draw practically any visual element. In addition, because the canvas element is an HTML element like any other, it can be addressed in JavaScript as a regular element and participate in page flow and styling. Games are currently the most common use for Canvas, but any kind of image editing or drawing program could also be built using this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required