# Sandbox.Painter.Star

```csharp
void Star(Vector2 center, float bodyRadius, float spikeLength, int points = 5, float rotation = -90)
```

Draws a star using Fill and Stroke. Body radius measures to the valleys; spike length
extends beyond it to the tips, in drawing pixels. Rotation is clockwise degrees from right.
At least three points and a positive body radius are required. Zero spike length draws a regular polygon.

### Parameters

- `center` (`Vector2`)
- `bodyRadius` (`float`)
- `spikeLength` (`float`)
- `points` (`int`), default `5`
- `rotation` (`float`), default `-90`

Declared in [Sandbox.Painter](/api/Sandbox.Painter).
Assembly: `Sandbox.Engine`.
