A Clojure port of the easings.net easing functions. Orignal source code may be found at ai/easings.net.
Leiningen/Boot
[com.dedovic/easings-clj "0.2.0"]
Clojure CLI/deps.edn
com.dedovic/easings-clj {:mvn/version "0.2.0"}
Gradle
compile 'com.dedovic:easings-clj:0.2.0'
Maven
<dependency>
<groupId>com.dedovic</groupId>
<artifactId>easings-clj</artifactId>
<version>0.2.0</version>
</dependency>
(require 'easings.core :as ease)
(ease/ease-in-sine 0.2)
ease-[in|out|in-out]-sine
ease-[in|out|in-out]-quad
ease-[in|out|in-out]-cubic
ease-[in|out|in-out]-quart
ease-[in|out|in-out]-quint
ease-[in|out|in-out]-expo
ease-[in|out|in-out]-circ
ease-[in|out|in-out]-back
- support Clojurescript via shadow-cljs
- better example using Quil
- Renamed core easing functions to
.cljc
file extension to support cross-platform usage - Replaced hard-coded Math functions with
math.cljc
namespace that uses reader conditional to either consume Java or JavaScript standard libraries - Added Changelog, Included Functions sections to README
Added:
- initial release
lein test
npx shadow-cljs compile tests
- (2021-06-21): Elastic functions
- (2021-06-21): Bounce functions