Skip to main content
Version: Version 5 beta

Class: Stroke

Experimental

Constructors

new Stroke()

new Stroke(): Stroke

Experimental

Returns

Stroke

Properties

color

color: RgbaColor

Experimental

The stroke color of the stroke. If the color is transparent, no stroke is visible.


dashArray

dashArray: number[] = []

Experimental

A dash array defining a pattern of dashes and gaps to be used in drawing


lineWidth

lineWidth: number = 1

Experimental

The stroke width in points. If this value is 0, no stroke is drawn.

Default Value

1