opacity([opacity])

Class: Polyline. Method inherited from Shape.

Description:

Gets or sets the opacity (transparency) of the shape.

Parameters:

Name Type Description

[opacity]

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