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 linear-easing-fn
               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

asymptotic-easing-fnclj

(asymptotic-easing-fn x)
source

complete-repetitionclj

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

exponential-easing-fnclj

(exponential-easing-fn 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

linear-easing-fnclj

source

normalized-deltasclj

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

remove-completed-tweensclj

(remove-completed-tweens sprites)
source

sigmoidal-easing-fnclj

(sigmoidal-easing-fn x)
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