<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKInterpolationMode/linear",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:@E@SKInterpolationMode@SKInterpolationModeLinear"
  },
  "title" : "SKInterpolationMode.linear"
}
-->

# SKInterpolationMode.linear

Values between two keyframes are interpolated linearly.

```
case linear
```

## 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.

![Playground graph generated by SKKeyframeSequence using linear interpolation](images/com.apple.spritekit/media-2852036@2x.png)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)