constructor([stroke], [opacity], [x], [y], [_points])
Class: Polyline.
Description:
Creates an instance of Polygon shape object.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
null |
A border of the shape. |
|
|
|
number |
1 |
Opacity of the shape (0 to 1). |
|
|
number |
0 |
Horizontal position from the left edge. |
|
|
number |
0 |
Vertical position from the top edge. |
|
|
Array.<Point> |
[] |
An array of Point objects {x:number,y:number} that represent each point where lines begin, connect and end: [{x:number,y:number}, ...]. |
