Summary 177
If you want to get into the details of Canvas, your best bet is the Canvas specifica-
tion. The current version of the two documents can be found at:
z http://www.w3.org/TR/html5/the-canvas-element.html
z http://www.w3.org/TR/2dcontext
If you prefer an interactive version with stages of implementation and the op-
tion of leaving comments directly or reporting errors on the individual sections,
go to the WHATWG at http://www.whatwg.org/specs/web-apps/current-work/
multipage/the-canvas-element.html.
Summary
Our journey through the world of Canvas has come to an end. It was a long way
from drawing two overlapping rectangles in red and yellow to programming a
video postcard. You learned how to work with colors, create shadow effects, and
draw lines, Bézier curves, arcs, rectangles, and clipping masks. We spent quite
some time exploring the key features of Canvas—manipulating images and cre-
ating appealing effects by combining pixel manipulation methods with patterns,
transformations, and compositing. We even dared to hand-code animations.
But although this chapter is the longest in the book, it can only provide a small
glimpse into the myriad possibilities offered through Canvas. Many other im-
pressive examples are waiting to be discovered on the Internet—go explore!