The next version of the Canvas, dubbed “Level 2,” is slated to have changes and updates
to the API. The new features and functionality are in a constant state of flux. It appears
that most of these new features are being added so that the Canvas can be more DOM
accessible. At press time, it appeared that some of the following would make it into the
• A way to define “hit regions” for mouse events instead of listening across the entire
• The TextMetrics object returned from context.measureText will include many
more properties, including bounding box and height information.
• New ways to create and use patterns from images and image data.
• New Path objects that can have text applied.
For more information about the Canvas updates in HTML5.1, check out this site.
For more information about Canvas Level 2, check out this site.
Over the past 11 chapters, you have been immersed in the world of HTML5 Canvas.
We have given you dozens of examples and applications to work from and through so
that you can start building your own creations. From simple text displays to high-
performance games, we have shown you many ways to bring some of the magic of
previous RIA (Rich Internet Application) technologies into the plug-in-less browser
We offered many strategies for integrating Canvas with other HTML5 technologies, as
well as techniques for handling text, displaying graphics, scrolling bitmaps, creating
animation, detecting multiple types of collisions, embedding and manipulating video,
playing music, handling sound effects, creating user interfaces, optimizing code, and
preparing apps for the mobile web and Windows 8. We even introduced you to the
future of 3D and multiuser applications directly in the web browser and showed you
how to get started creating an object model for the HTML5 Canvas.
However, the true future is up to you. HTML5 and Canvas are dynamic topics that are
still in a rapid state of change and adoption. While this book is a good starting point,
you will need to keep abreast of new changes to the technology. Visit our website for
news and updates on HTML5 Canvas.
O’Reilly also has several books that you might find useful, including:
• HTML5: Up and Running by Mark Pilgrim
664 | Chapter 11: Further Explorations