#

API Documentation for: NEXT
Show: Inherited Protected Private Deprecated

# Graphics.StrokeDash Class

Defined in: `Graphics.StrokeDash:2106`
Module: EaselJS

Graphics command object. See setStrokeDash and append for more information.

## Constructor

### `Graphics.StrokeDash`

(

- `[segments]`
- `[offset=0]`

)

Defined in `Graphics.StrokeDash:2106`

#### Parameters:

- `[segments]` Array optional
- `[offset=0]` Number optional

- Index
- Methods
- Properties

## Item Index

### Methods

- exec

### Properties

- EMPTY_SEGMENTS static
- offset
- segments

## Methods

### `exec`

(

- `ctx`

)

Defined in `exec:2121`

Execute the Graphics command in the provided Canvas context.

#### Parameters:

- `ctx` CanvasRenderingContext2D

  The canvas rendering context

## Properties

### `EMPTY_SEGMENTS`

Array protected final static readonly

Defined in `EMPTY_SEGMENTS:2135`

The default value for segments (ie. no dash).

### `offset`

Number

Defined in `offset:2117`

### `segments`

Array

Defined in `segments:2113`