# Color.Lerp

```csharp
static Color Lerp(in Color a, in Color b, float frac, bool clamped = True)
```

Performs linear interpolation between two colors.

### Parameters

- `in a` (`Color`): The source color.
- `in b` (`Color`): The target color.
- `frac` (`float`): Fraction to the target color. 0 will return source color, 1 will return target color, 0.5 will "mix" the 2 colors equally.
- `clamped` (`bool`), default `True`: Clamp fraction to range of [0,1]. If not clamped, the color will be extrapolated.

### Returns

`Color`: The interpolated color.

Declared in [Color](/api/Color).
Assembly: `Sandbox.System`.
