Skip to content

Instantly share code, notes, and snippets.

@adamwiggins
Created August 18, 2009 06:46
Show Gist options
  • Save adamwiggins/169581 to your computer and use it in GitHub Desktop.
Save adamwiggins/169581 to your computer and use it in GitHub Desktop.
class Accelerate( IntervalAction ):
def init(self, other, rate = 2):
self.other = other
self.rate = rate
self.duration = other.duration
def start(self):
self.other.target = self.target
self.other.start()
def update(self, t):
self.other.update( t**self.rate )
def __reversed__(self):
return Accelerate(Reverse(self.other), 1.0/self.rate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment