Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Clojure library designed to tween a value between two points.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples Release 0.4.0 September 17, 2012
Octocat-spinner-32 src Release 0.4.0 September 17, 2012
Octocat-spinner-32 test Release 0.4.0 September 17, 2012
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 README.md Release 0.4.0 September 17, 2012
Octocat-spinner-32 project.clj Release 0.4.0 September 17, 2012
README.md

tween-clj

A Clojure library designed to tween a value between two points.

Inbetweening or tweening is the process of generating intermediate points between two points.

Build Status

Usage

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.

An example:

(map (partial ease-in transition-elastic) 
     [0 0.1 0.2 0.5 0.9 1])

Available transition types:

  • transition-linear
  • transition-pow
  • transition-expo
  • transition-sine
  • transition-circ
  • transition-back
  • transition-bounce
  • transition-elastic

License

Copyright © 2012 Glen Stampoultzis

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.