Skip to main content
Version: Version 5

Class: Stroke

Experimental

Constructors

Constructor

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

Experimental

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

Default Value

1