Name
CanvasRenderingContext2D.beginPath( ): start a new collection of subpaths in a canvas
Synopsis
void beginPath( )
Description
beginPath( )
discards any
currently defined path and begins a new one. It sets the current
point to (0,0)
.
When the context for a canvas is first created, beginPath( )
is implicitly called.
See Also
CanvasRenderingContext2D.closePath(
)
|
CanvasRenderingContext2D.fill(
)
|
CanvasRenderingContext2D.stroke(
)
|
Chapter 22 |
Get JavaScript: The Definitive Guide, 5th Edition 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.