Canvas.beginPath

Syntax

beginPath(drawFill: Boolean, drawStroke: Boolean);

Parameters

drawFill. It determines whether polyline is filled. If the parameter is set to True, polyline is filled.

drawStroke. It determines whether polyline borders are rendered. If the parameter is set to True, borders are rendered.

Description

The beginPath initializes start of polyline rendering.

Comments

When the polyline is rendered, the Canvas.endPath method is called.

Polyline is a continuous line formed from one or more joined lines.

Example

The example of method use is given in description of the Canvas.drawPoly method.

See also:

Canvas