HTML and CSS Reference
In-Depth Information
CHAPTER 7. DEEPER INTO
THE CANVAS
The canvas is a huge, sprawling feature. In the previous
chapter, you learned how to draw line art and even create
a respectable drawing program in a few dozen lines of
JavaScript. But the canvas has more up its sleeve than
that. Not only can it show dynamic pictures and host
paint programs, but it can also play animations, process
images with pixel-perfect control, and run interactive
games. In this chapter, you'll learn the practical begin-
nings for all these tasks.
First, you'll start by looking at drawing context methods
that let you paint different types of content on a canvas,
including images and text. Next, you'll learn how to add
Search WWH ::




Custom Search