Liking cljdoc? Tell your friends :D

quip.tween


->tweenclj

(->tween field
         to-value
         &
         {:keys [from-value easing-fn update-fn step-count yoyo? yoyo-update-fn
                 on-yoyo-fn repeat-times on-repeat-fn on-complete-fn]
          :or {yoyo? false
               step-count 100
               from-value 0
               on-complete-fn identity
               yoyo-update-fn -
               easing-fn ease-linear
               update-fn +
               on-repeat-fn identity
               repeat-times 1
               on-yoyo-fn identity}})

Create a new tween for modifying a field on a sprite over time.

Create a new tween for modifying a field on a sprite over time.
sourceraw docstring

add-tweenclj

(add-tween {:keys [tweens] :as sprite} tween)
source

apply-tweenclj

(apply-tween sprite
             {:keys [field update-fn yoyo? yoyoing? yoyo-update-fn total-change
                     normalized-deltas progress resetting?]})
source

complete-repetitionclj

(complete-repetition {:keys [repeat-times resetting?] :as tween})
source

ease-in-backclj

(ease-in-back x)
source

ease-in-bounceclj

(ease-in-bounce x)
source

ease-in-circclj

(ease-in-circ x)
source

ease-in-cubicclj

(ease-in-cubic x)
source

ease-in-elasticclj

(ease-in-elastic x)
source

ease-in-expoclj

(ease-in-expo x)
source

ease-in-out-backclj

(ease-in-out-back x)
source

ease-in-out-bounceclj

(ease-in-out-bounce x)
source

ease-in-out-circclj

(ease-in-out-circ x)
source

ease-in-out-cubicclj

(ease-in-out-cubic x)
source

ease-in-out-elasticclj

(ease-in-out-elastic x)
source

ease-in-out-expoclj

(ease-in-out-expo x)
source

ease-in-out-quadclj

(ease-in-out-quad x)
source

ease-in-out-quartclj

(ease-in-out-quart x)
source

ease-in-out-quintclj

(ease-in-out-quint x)
source

ease-in-out-sineclj

(ease-in-out-sine x)
source

ease-in-quadclj

(ease-in-quad x)
source

ease-in-quartclj

(ease-in-quart x)
source

ease-in-quintclj

(ease-in-quint x)
source

ease-in-sineclj

(ease-in-sine x)
source

ease-linearclj

source

ease-out-backclj

(ease-out-back x)
source

ease-out-bounceclj

(ease-out-bounce x)
source

ease-out-circclj

(ease-out-circ x)
source

ease-out-cubicclj

(ease-out-cubic x)
source

ease-out-elasticclj

(ease-out-elastic x)
source

ease-out-expoclj

(ease-out-expo x)
source

ease-out-quadclj

(ease-out-quad x)
source

ease-out-quartclj

(ease-out-quart x)
source

ease-out-quintclj

(ease-out-quint x)
source

ease-out-sineclj

(ease-out-sine x)
source

ease-sigmoidclj

(ease-sigmoid x)
source

handle-on-completesclj

(handle-on-completes {:keys [tweens] :as sprite})
source

handle-on-repeatsclj

(handle-on-repeats {:keys [tweens] :as sprite})
source

handle-on-yoyosclj

(handle-on-yoyos {:keys [tweens] :as sprite})
source

normalized-deltasclj

(normalized-deltas easing-fn step-count)
source

remove-completed-tweensclj

(remove-completed-tweens sprites)
source

tween-x-fnclj

(tween-x-fn [x y] d)
source

tween-x-yoyo-fnclj

(tween-x-yoyo-fn [x y] d)
source

tween-y-fnclj

(tween-y-fn [x y] d)
source

tween-y-yoyo-fnclj

(tween-y-yoyo-fn [x y] d)
source

update-spriteclj

(update-sprite {:keys [tweens] :as sprite})
source

update-sprite-tweensclj

(update-sprite-tweens {:keys [current-scene] :as state})
source

update-tweenclj

(update-tween {:keys [progress step-count yoyo? yoyoing? repeat-times]
               :as tween})
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close