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.

Get Canvas Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.