Canvas Pocket Reference

Book description

The Canvas element is a revolutionary feature of HTML5 that enables powerful graphics for rich Internet applications, and this pocket reference provides the essentials you need to put this element to work. If you have working knowledge of JavaScript, this book will help you create detailed, interactive, and animated graphics -- from charts to animations to video games -- whether you're a web designer or a programmer interested in graphics.

Canvas Pocket Reference provides both a tutorial that covers all of the element's features with plenty of examples and a definitive reference to each of the Canvas-related classes, methods, and properties.

You'll learn how to:

  • Draw lines, polygons, and curves
  • Apply colors, gradients, patterns, and transparency
  • Use transformations to smoothly rotate and resize drawings
  • Work with text in a graphic environment
  • Apply shadows to create a sense of depth
  • Incorporate bitmapped images into vector graphics
  • Perform image processing operations in JavaScript

Publisher resources

View/Submit Errata

Product information

  • Title: Canvas Pocket Reference
  • Author(s): David Flanagan
  • Release date: December 2010
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781449302788