# Sandbox.Bitmap.SetLinearGradient

```csharp
void SetLinearGradient(Vector2 start, Vector2 end, Gradient gradient)
```

Sets the pen for drawing with a linear gradient.

### Parameters

- `start` (`Vector2`): the gradient's start point.
- `end` (`Vector2`): the gradient's end point.
- `gradient` (`Gradient`): The color of the gradient.

Declared in [Sandbox.Bitmap](/api/Sandbox.Bitmap).
Assembly: `Sandbox.Engine`.
