A Clojure library designed to tween a value between two points.
Inbetweening or tweening is the process of generating intermediate points between two points.
Simply add this to your leiningen deps: [tween-clj "0.4.0"]
The tweening interface defines two main concepts. Transition functions and easing functions.
The transition function defines how a value transitions between two states. There are several transition functions to choose from.
The easing function defines how the transition proceeds. You can ease into a transition (with ease-in) or out of a transition (with ease-out) or even both with east-in-out.
(map (partial ease-in transition-elastic) [0 0.1 0.2 0.5 0.9 1])
Available transition types:
Copyright © 2012 Glen Stampoultzis
Distributed under the Eclipse Public License, the same as Clojure.