JavaScript: The Definitive Guide

25.14. CanvasRenderingContext2D.beginPath( ): start a new collection of subpaths in a canvas

25.14.1. Synopsis

void beginPath( )

25.14.2. 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.

25.14.3. See Also

CanvasRenderingContext2D.closePath( )
CanvasRenderingContext2D.fill( )
CanvasRenderingContext2D.stroke( )
Chapter 22

Категории