stroke([stroke])

Class: Shape.

Description:

Sets or gets a Stroke of the shape.

Parameters:

Name Type Description

[stroke]

Stroke

Stroke object

Returns:

When called without parameters, current Stroke is returned; otherwise this Shape is returned for method chaining.

Type: Stroke | this