# BackgroundGradientStop

> A single color stop in a BackgroundGradient.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Implements:** [IEquatable\<BackgroundGradientStop>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct BackgroundGradientStop : IEquatable<BackgroundGradientStop>
```

## Fields

| Value                                                                                                                   | Description                                                                                                                                                                                                                                                                                                 |
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [color](/engine/6000.7/script-reference/unityengine/uielements/backgroundgradientstop/color.md)                         | Color of the stop.                                                                                                                                                                                                                                                                                          |
| [position](/engine/6000.7/script-reference/unityengine/uielements/backgroundgradientstop/position.md)                   | Position of the stop along the gradient axis. Interpretation depends on [\_positionIsPercent](/engine/6000.7/script-reference/unityengine/uielements/backgroundgradientstop/positionispercent.md): when true, expressed as a fraction in \[0,1]; when false, expressed as a length in element-local pixels. |
| [positionIsPercent](/engine/6000.7/script-reference/unityengine/uielements/backgroundgradientstop/positionispercent.md) | True when [\_position](/engine/6000.7/script-reference/unityengine/uielements/backgroundgradientstop/position.md) is a percentage (fraction of the gradient extent).                                                                                                                                        |

## Static Methods

| Method                                                                                              | Description                                                           |
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| [Percent](/engine/6000.7/script-reference/unityengine/uielements/backgroundgradientstop/percent.md) | Construct a stop expressed as a percentage of the gradient extent.    |
| [Pixels](/engine/6000.7/script-reference/unityengine/uielements/backgroundgradientstop/pixels.md)   | Construct a stop expressed as a pixel length along the gradient axis. |
