# Sandbox.Stroke.Dashed

```csharp
static Stroke Dashed(Fill fill, float width = 1, float dashLength = 8, float gap = 4, float offset = 0)
```

Creates a dashed stroke with butt caps and round joins. Dimensions are in drawing pixels.

### Parameters

- `fill` (`Fill`): Color, gradient or image used to paint the dashes.
- `width` (`float`), default `1`: Centered stroke width.
- `dashLength` (`float`), default `8`: Length of each dash along the path's centerline.
- `gap` (`float`), default `4`: Gap between dash runs before extending their caps.
- `offset` (`float`), default `0`: Phase along the path, in drawing pixels.

### Returns

`Stroke`

Declared in [Sandbox.Stroke](/api/Sandbox.Stroke).
Assembly: `Sandbox.Engine`.
