# Evaluate(float)

> Calculate color at a given time.

## Definition

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

```csharp
public Color Evaluate(float time)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Time of the evaluation (0 - 1).

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [Color](/engine/6000.7/script-reference/unityengine/color.md) |             |

### Remarks

Gradient color and alpha keys are blended and interpolated depending on the gradient [Gradient.mode](/engine/6000.7/script-reference/unityengine/gradient/mode.md).

Unity clamps the colors and alpha if you use a value for `time` that's smaller than `0` or larger than `1`.

Additional Resources: [Gradient.mode](/engine/6000.7/script-reference/unityengine/gradient/mode.md), [GradientMode](/engine/6000.7/script-reference/unityengine/gradientmode.md), [Gradient.SetKeys](/engine/6000.7/script-reference/unityengine/gradient/setkeys.md).
