diff options
author | Boutade <thegoofist@protonmail.com> | 2019-10-15 11:39:17 -0500 |
---|---|---|
committer | Boutade <thegoofist@protonmail.com> | 2019-10-15 11:39:17 -0500 |
commit | 23284accc56c71f3e293fc9ac0c923988ce4ab6a (patch) | |
tree | 802e35cbb5b18b63bbe7fba8162415b5ef97bb65 /animise.lisp | |
parent | b8776e6d3857d275cbb8b5983cb2f3b51eb44cb0 (diff) |
on-complete extensions
Diffstat (limited to 'animise.lisp')
-rw-r--r-- | animise.lisp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/animise.lisp b/animise.lisp index 9f2eb0c..232a6c1 100644 --- a/animise.lisp +++ b/animise.lisp @@ -94,7 +94,12 @@ (make-instance 'tween :target (list 0) :start-time start :duration duration :accessor 'car :end-val duration :rounding nil)) -(defun animate (target acc end &key (start 0) (ease #'linear) (rounding t) (duration 1000)) +(defun animate (target acc end &key + (start 0) + (ease #'linear) + (rounding t) + on-complete + (duration 1000) ) (make-instance 'tween :target target :start-time start @@ -102,6 +107,7 @@ :end-val end :ease-fn ease :rounding rounding + :on-complete on-complete :duration duration)) (defun in-sequence (t1 &rest tws) |