# Sandbox.Painter.Line

## Overload 1

```csharp
void Line(System.ReadOnlySpan<Vector2> points)
```

### Parameters

- `points` (`System.ReadOnlySpan<Vector2>`)

## Overload 2

```csharp
void Line(Vector2 from, Vector2 to)
```

Draws a line using the current [Sandbox.Painter.Stroke](/api/Sandbox.Painter/Stroke) in drawing pixels. Subpixel strokes use coverage fading.

### Parameters

- `from` (`Vector2`)
- `to` (`Vector2`)

## Overload 3

```csharp
void Line(Line line)
```

Draws a line using [Sandbox.Painter.Stroke](/api/Sandbox.Painter/Stroke) and its X/Y coordinates in drawing pixels. Z is ignored.

### Parameters

- `line` (`Line`)

Declared in [Sandbox.Painter](/api/Sandbox.Painter).
Assembly: `Sandbox.Engine`.
