HTML and CSS Reference
Figure 6.2. “3 Dreams of Black” is an interactive music video created exclusively for Google Chrome. You can
experience Chris Milk's masterpiece at http://ro.me and download the source code!
Canvas: a product of Apple's iOS
Canvas isn't the W3C's brainchild for HTML5. It originally came in 2004 as part of the
Mac OS X WebKit by Apple. Two years later, Gecko and Opera browsers adopted it. Pop-
ularity since then has significantly grown, and Canvas is now an official HTML5 API.
Because 2D is great for programming simple games, we'll teach you how to use Canvas as
and HTML. As you'll soon see, a majority of the creation process involves accessing a
ingContext2D interface object. Although CanvasRenderingContext2D interface
object sounds long and fancy, it really means accessing Canvas to draw. Each newly drawn
piece sits on top of any previous drawings.