From f4a6e85eaf48cfa74af0d1449553555fb3d124ca Mon Sep 17 00:00:00 2001 From: Boutade Date: Fri, 4 Oct 2019 14:28:07 -0500 Subject: initial readme --- .images/animise-eg-3.gif | Bin 0 -> 111664 bytes README.org | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .images/animise-eg-3.gif create mode 100644 README.org diff --git a/.images/animise-eg-3.gif b/.images/animise-eg-3.gif new file mode 100644 index 0000000..4b12a5c Binary files /dev/null and b/.images/animise-eg-3.gif differ diff --git a/README.org b/README.org new file mode 100644 index 0000000..2118379 --- /dev/null +++ b/README.org @@ -0,0 +1,38 @@ + +* Animise + + /General purpose tweens and easing/ + + Animise is a small library to define, compose, and sequence changes to number + values through time. Animise is intended to be used as a general purpose + [[https://en.wikipedia.org/wiki/Inbetweening][tweening]] solution for your Common Lisp projects. + + Here is a short example using animise to define an animated a box using SDL2 + + #+begin_src lisp +;; ... snip + +(let* ((rect (sdl2:make-rect 0 0 100 100)) + (color (list 255 0 0 255)) + + (anim (sequencing (:loop-mode :looping :targeting rect) + (pausing :for 200 :start (sdl2:get-ticks)) + (grouping (:with-duration 1200) + (animating :linearly :the 'cadddr :of color :to 0) + (animating :quading-out :the 'sdl2:rect-x :to 400) + (animating :bouncing-out :the 'sdl2:rect-y :to 300)) + (grouping (:with-duration 1000) + (animating :linearly :the 'cadddr :of color :to 255) + (animating :elastically-out :the 'sdl2:rect-x :to 0)) + (animating :cubically-in-out :the 'sdl2:rect-y :to 0 :for 800)))) + + ;; ... snip + + #+end_src + +And here is what the above might looks like + +[[./images/animise-eg-3.gif]] + + + -- cgit v1.2.3