# Linear(float, params BackgroundGradientStop[])

> Construct a linear gradient from an angle (radians) and a stop list.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

## Linear(float, BackgroundGradientStop\[])

```csharp
public static BackgroundGradient Linear(float angle, params BackgroundGradientStop[] stops)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): **** (\[BackgroundGradientStop\[]]\(/engine/6000.7/script-reference/unityengine/uielements/backgroundgradientstop)):&#x20;

### Returns

| Type                                                                                               | Description |
| -------------------------------------------------------------------------------------------------- | ----------- |
| [BackgroundGradient](/engine/6000.7/script-reference/unityengine/uielements/backgroundgradient.md) |             |
