Chapter 7. HTML5 Canvas

We saw in the previous chapter how to use the HTML5 canvas drawing API. We will now manipulate canvas a bit more deeply and see how it can be used for rendering graphs, game graphics, or other visual images on the fly. As you learned previously, canvas is a rectangular area that you can add to your HTML5 page and that you can use to render and manipulate graphics through several available methods. In this chapter, you will see what you can do with canvas and its other APIs.

Apple initially created the canvas element to make dashboard widgets in its Safari browser with the use of the Mac OSX WebKit. Later it was adopted by other browsers and eventually became a standard accepted by the WHATWG (Web Hypertext Application Technology ...

Get HTML5 Solutions: Essential Techniques for HTML5 Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.