Skip to content

Instantly share code, notes, and snippets.

@erica
Created April 5, 2017 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erica/2dc5c20d3edb7adc48fc4d878b4a3f16 to your computer and use it in GitHub Desktop.
Save erica/2dc5c20d3edb7adc48fc4d878b4a3f16 to your computer and use it in GitHub Desktop.
import Cocoa
public enum InterpolationCurve { case linear, easeIn, easeOut, easeInOut }
public protocol Interpolating {
func interpolateTo(value: Self, by degree: Double, curve: InterpolationCurve)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment