Liking cljdoc? Tell your friends :D

clunk.delay


add-delay-fnclj

(add-delay-fn {:keys [current-scene] :as state} d)

Add a delay-fn into the current scene.

Add a delay-fn into the current scene.
sourceraw docstring

add-delay-fnsclj

(add-delay-fns {:keys [current-scene] :as state} ds)

Add a collection of delay-fns into the current scene.

Add a collection of delay-fns into the current scene.
sourceraw docstring

apply-allclj

(apply-all state finished)

apply a collection of finished delay-fns to the state.

apply a collection of finished delay-fns to the state.
sourceraw docstring

delay-fnclj

(delay-fn duration-ms f & {:keys [tag] :or {tag :none}})
source

finished?clj

source

sequential-delay-fnsclj

(sequential-delay-fns delay-datas
                      &
                      {:keys [initial-delay tag]
                       :or {initial-delay 0 tag :none}})

Creates a sequence of delay-fns from a given list of [time-ms on-complete-fn] tuples where each time-ms is relative to the ending of the previous one.

Creates a sequence of delay-fns from a given list of `[time-ms
on-complete-fn]` tuples where each `time-ms` is relative to the
ending of the previous one.
sourceraw docstring

update-delay-fnclj

(update-delay-fn dt d)

Decrement the time remaining since the last frame.

Decrement the time remaining since the last frame.
sourceraw docstring

update-stateclj

(update-state {:keys [current-scene dt] :as state})

Update all the delay-fns in the current scene and apply the ones that have finished.

Update all the delay-fns in the current scene and apply the ones
that have finished.
sourceraw docstring

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

× close