HTML and CSS Reference
In-Depth Information
CHAPTER 6. BASIC DRAWING
WITH THE CANVAS
As you learned in Chapter 1 , one of HTML5's goals is to
make it easier to put rich applications inside otherwise
ordinary web pages. In this case, the word “rich” doesn't
have anything to do with your bank account. Instead, a
rich application is one that's decked out with slick graph-
ics, interactive features, and showy frills like animation.
The most important new tool for rich applications is the
canvas , a drawing surface where you can let your inner
Picasso loose. Compared with every other HTML ele-
ment, the canvas is unique because it requires
JavaScript. There's no way to draw shapes or paint pic-
tures without it. That means the canvas is essentially a
Search WWH ::




Custom Search