Skip to Main Content
Pro JavaScript Development: Coding, Capabilities, and Tooling
book

Pro JavaScript Development: Coding, Capabilities, and Tooling

by Den Odell
August 2014
Intermediate to advanced content levelIntermediate to advanced
472 pages
13h 6m
English
Apress
Content preview from Pro JavaScript Development: Coding, Capabilities, and Tooling

CHAPTER 11

image

Building Games with Canvas API

One of the web browser’s most exciting new capabilities in recent years has been the adoption of the <canvas> tag in HTML5 and its associated JavaScript API. Alone in an HTML document, it does nothing. However, combine it with the power of JavaScript and you have a blank drawing surface in your page to which you can add shapes, images and text to your heart’s content. The contents of a canvas element are represented by pixel data on a flat drawing surface rather than individual DOM elements in a document, so if you draw over an existing shape with another, there’s no record in the document that the original ...

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

Web Development with jQuery

Web Development with jQuery

Richard York
Pro JavaScript Techniques, Second Edition

Pro JavaScript Techniques, Second Edition

John Resig, Russ Ferguson, John Paxton
Modern JavaScript Tools & Skills

Modern JavaScript Tools & Skills

James Kolce, Mark Brown, Craig Buckler, Michael Wanyoike, Nilson Jacques

Publisher Resources

ISBN: 9781430262695Purchase book