summaryrefslogtreecommitdiff
path: root/tweening.lisp
diff options
context:
space:
mode:
authorBoutade <thegoofist@protonmail.com>2019-10-18 12:08:52 -0500
committerBoutade <thegoofist@protonmail.com>2019-10-18 12:08:52 -0500
commitaeb013df855052aec8a5199f82d9725be6d99c1b (patch)
tree58da893961d92ae9db129566b192ae7936271d0a /tweening.lisp
parent23284accc56c71f3e293fc9ac0c923988ce4ab6a (diff)
checking for completes in a sequence
Diffstat (limited to 'tweening.lisp')
-rw-r--r--tweening.lisp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tweening.lisp b/tweening.lisp
index df9b398..4de5c21 100644
--- a/tweening.lisp
+++ b/tweening.lisp
@@ -25,6 +25,10 @@
(setf (loop-mode ,this-seq) ',loop-mode)
,this-seq))))
+(defun take-action (action &key (delay 20) (at 0))
+ (let ((anim (pause delay at)))
+ (setf (on-complete anim) action)
+ anim))
(defun pausing (&key for at)
"A light wrapper around PAUSE. Is aware of default parameters that may have