-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Labels
Description
https://github.com/vydd/easing
This library defines commonly used easing functions.
You can see them in action by entering (ql:quickload :easing-demo) (easing-demo:demo) - this uses Sketch for drawing and animation.
To run automated tests, use (ql:quickload :easing-test) (easing-test:run-tests).
The main system, EASING comes with two implementations of easing functions, in EASING and EASING-F packages.
The functions are the same, but the ones in EASING-F are optimized for SINGLE-FLOAT arguments and they sacrifice precision for speed.
PACKAGE EASING
CL-USER> (loop for i = 0 then (incf i 0.1) while (< i 1) collect (ease:in-sine i))
(0 0.012311659771023553D0 0.04894348515145941D0 0.1089934843127639D0 0.1909830111282953D0 0.2928932188134524D0 0.4122147780057823D0 0.5460095669980957D0 0.6909831124782594D0 0.843565682918261D0)
PACKAGE EASING-F
CL-USER> (loop for i = 0 then (incf i 0.1) while (< i 1) collect (ease-f:in-sine i))
(0.0 0.012311637 0.04894346 0.10899347 0.190983 0.29289323 0.41221482 0.54600954 0.6909832 0.84356576)
Thanks!