constructor([stroke], [opacity], [x], [y], [_points])

Class: Polyline.

Description:

Creates an instance of Polygon shape object.

Parameters:

Name Type Default Description

[stroke]

Stroke

A border of the shape.

[opacity]

number

1

Opacity of the shape (0 to 1).

[x]

number

0

Horizontal position from the left edge.

[y]

number

0

Vertical position from the top edge.

[_points]

Array.<object>

[]

An array of point objects that represent each point where lines begin, connect and end: [{x:number,y:number}, ...].