---
title: SKInterpolationMode.linear
framework: spritekit
role: symbol
role_heading: Case
path: spritekit/skinterpolationmode/linear
---

# SKInterpolationMode.linear

Values between two keyframes are interpolated linearly.

## Declaration

```swift
case linear
```

## Discussion

Discussion Given a sequence with the key values of [5, 1, 10, 0] and times of [0, 0.25, 0.5, 1], linear interpolation produces a set of values that follow a series of straight lines between each keyframe.

## See Also

### Constants

- [SKInterpolationMode.spline](spritekit/skinterpolationmode/spline.md)
- [SKInterpolationMode.step](spritekit/skinterpolationmode/step.md)
