# Sandbox.Painter.Arrow

```csharp
void Arrow(Vector2 from, Vector2 to, float width = 4, float headSize = 16)
```

Draws a shafted arrow as one polygon using [Sandbox.Painter.Fill](/api/Sandbox.Painter/Fill) and [Sandbox.Painter.Stroke](/api/Sandbox.Painter/Stroke). All dimensions are in drawing pixels.
Zero-length arrows or nonpositive shaft/head sizes draw nothing.

### Parameters

- `from` (`Vector2`): Center of the shaft's starting edge.
- `to` (`Vector2`): Arrow tip.
- `width` (`float`), default `4`: Shaft width.
- `headSize` (`float`), default `16`: Head length and width. Length is limited to the arrow's length; width is at least the shaft width.

Declared in [Sandbox.Painter](/api/Sandbox.Painter).
Assembly: `Sandbox.Engine`.
