opacity([opacity])
Class: Line. Method inherited from Shape.
Description:
Gets or sets the opacity (transparency) of the shape.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
number |
Decimal value between 0 and 1 (inclusive). |
Returns:
If called without arguments, returns the current opacity; otherwise, returns this shape for method chaining.
Type: number | this
