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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access