# Pixels(Color, float)

> Construct a stop expressed as a pixel length along the gradient axis.

## Definition

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

```csharp
public static BackgroundGradientStop Pixels(Color color, float pixels)
```

### Parameters

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

### Returns

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