First Edition Updates
Most of the content from the first edition of this book remains intact. It remains because this book is geared towards a wide range of developers, from those who have never seen a Canvas to those who want to learn some intermediate-to-advanced ways to make use of the Canvas.
Every chapter has been revised with updated code and optimizations, as well as updates to address browser compatibility and other issues that have arisen over the past two years. A few parts have been removed. Some of the redundant code listings have been moved to the source distribution to make the book easier to read. We have also replaced parts of Chapter 4 with more, shorter demos, and we’ve completely rewritten Chapter 10 to remove the discussion of Phonegap because similar content is now widely available.
We have also added a ton of new content that we believe will help take your Canvas applications to the next level. This includes the following:
A new animated Hello World application
A discussion of accessibility and the sub-dom concept
Multiple methods to clear the Canvas
Finding points in the current path
Drawing focus rings
Animating gradients with text
Using pixel data to detect collisions
Five new examples that focus on using
Box2Dwebfor physics-based animationsUsing
getUserMedia()to capture video on the CanvasMaking use of the new Web Audio API
A* path finding and animation
Coarse and fine tile-based scrolling
Development of mobile web (iOS) full-screen, scaled applications
A new game ...
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.
Read now
Unlock full access