# Sandbox.Stroke.Dotted

```csharp
static Stroke Dotted(Fill fill, float width = 1, float gap = 4, float offset = 0)
```

Creates round dots with diameter equal to the stroke width. Dimensions are in drawing pixels.

### Parameters

- `fill` (`Fill`): Color, gradient or image used to paint the dots.
- `width` (`float`), default `1`: Diameter of each dot.
- `gap` (`float`), default `4`: Gap between dot edges. Closed paths fit whole dot periods around their perimeter.
- `offset` (`float`), default `0`: Phase along the path, in drawing pixels.

### Returns

`Stroke`

Declared in [Sandbox.Stroke](/api/Sandbox.Stroke).
Assembly: `Sandbox.Engine`.
