constructor(stroke, opacity, [x], [y], [point1], [point2])
Class: Line.
Description:
Creates an instance of a Line shape.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
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. |
|
|
number |
An object with X and Y coordinates {x: number, y: number}. |
|
|
|
number |
An object with X and Y coordinates {x: number, y: number}. |
