# PerceptualBlend

> Linearly interpolate between the gradient keys, using a perceptual color space for colors.

## Definition

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

```csharp
PerceptualBlend = 2
```

### Remarks

This mode finds the two keys adjacent to the requested evaluation time, and interpolates between them.

Color keys are interpolated using a perceptual "[Oklab](https://bottosson.github.io/posts/oklab/)" color space, which often produces more visually pleasing results than a simple [GradientMode.Blend](/engine/6000.6/script-reference/unityengine/gradientmode/blend.md) interpolation. It is slightly more expensive to calculate than the simple blend mode though.

Additional Resources: [Gradient.mode](/engine/6000.6/script-reference/unityengine/gradient/mode.md), [Gradient.Evaluate](/engine/6000.6/script-reference/unityengine/gradient/evaluate.md), [Gradient.colorSpace](/engine/6000.6/script-reference/unityengine/gradient/colorspace.md).
