Skip to Content
Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development
book

Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development

by Peter Lubbers, Brian Albers, Frank Salim
August 2010
Intermediate to advanced
304 pages
6h 44m
English
Apress
Content preview from Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development

Chapter 2. Using the HTML5 Canvas API

In this chapter, we'll explore what you can do with the HTML5 Canvas API—a cool API that enables you to dynamically generate and render graphics, charts, images, and animation. We'll walk you through using the basics of the rendering API to create a drawing that can scale and adjust to the browser environment. We'll show you how to create dynamic pictures based on user input in a heatmap display. Of course, we'll also alert you to the pitfalls of using HTML5 Canvas and share tricks to overcome them.

This chapter presumes only a minimal amount of graphics expertise, so don't be afraid to jump in and try out one of the most powerful features of HTML.

Overview of HTML5 Canvas

An entire book could be written about ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Using the HTML5 Filesystem API

Using the HTML5 Filesystem API

Eric Bidelman
HTML5 Geolocation

HTML5 Geolocation

Anthony T. Holdener
HTML5 Hacks

HTML5 Hacks

Jesse Cravens, Jeff Burtoft
Jump Start HTML5

Jump Start HTML5

Tiffany B Brown, Kerry Butters, Sandeep Panda

Publisher Resources

ISBN: 9781430227908Purchase book