# Sandbox.Painter.Pie

```csharp
void Pie(Vector2 center, float radius, float startAngle, float sweepAngle)
```

Draws a pie sector using [Sandbox.Painter.Fill](/api/Sandbox.Painter/Fill) and the current [Sandbox.Painter.Stroke](/api/Sandbox.Painter/Stroke). Angles are clockwise degrees from right; negative sweeps are supported.
A full sweep draws a circle without radial seams.

### Parameters

- `center` (`Vector2`)
- `radius` (`float`)
- `startAngle` (`float`)
- `sweepAngle` (`float`)

Declared in [Sandbox.Painter](/api/Sandbox.Painter).
Assembly: `Sandbox.Engine`.
