constructor([path], [stroke], [background], [opacity], [x], [y])
Class: Shape.
Description:
Shape constructor.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
string | undefined |
Path consisting of points. It can be auto-generated by performing operations of one shape to another, such as add() or subtract(). |
|
|
|
Stroke | null |
A border of the shape. |
|
|
|
string | null |
Color, gradient, image, and background options like in CSS. |
|
|
|
number |
1 |
Opacity of the shape as a decimal between 0 and 1. |
|
|
number |
0 |
Position of the shape from left edge. |
|
|
number |
0 |
Position of the shape from the top. |
