Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

2. Canvas Reference

Chapter 2. Canvas Reference

This part of the book is a reference section that covers the <canvas> tag and its related classes. The reference is arranged alphabetically and methods are alphabetized by their full names, which include the names of the classes that define them. If you want to read about the getContext() method, for example, you’d look up Canvas.getContext(). And if you want to read about the arc() method, you’d look up CanvasRenderingContext2D.arc(). Because the name of that class is so long, however, it is abbreviated as CRC in this reference.

Most of this chapter documents methods of CanvasRenderingContext2D (using the name CRC), but Canvas, CanvasGradient, CanvasPattern, ImageData, and TextMetrics are also covered.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint