November 2011
Intermediate to advanced
502 pages
11h 55m
English

What we'll cover in this chapter:
So far, the graphics drawn in the book example programs have used a few simple commands, and the “canvas drawing API” has been alluded to a number of times. But for the most part, the code has been provided without much explanation.
In this chapter, we look at creating visual content using the canvas element. Specifically, you'll see how to work with color using JavaScript, and take a brief tour of the canvas drawing API.
Colors applied to the canvas element are specified using CSS-style ...
Read now
Unlock full access