Liking cljdoc? Tell your friends :D

infinitelives.pixi.events


*frame-chans*cljs

source

*resize-chans*cljs

source

clear-frame-chans!cljs

(clear-frame-chans!)
source

clear-resize-chans!cljs

(clear-resize-chans!)
source

del-frame-chan!cljs

(del-frame-chan! c)
source

del-resize-chancljs

(del-resize-chan c)
source

fallback-fpscljs

source

frame-event-chan-handlercljs

(frame-event-chan-handler ev)
source

install-frame-handlercljs

(install-frame-handler)

install the frame callback to send frame chan messages

install the frame callback to send frame chan messages
sourceraw docstring

install-resize-handlercljs

(install-resize-handler)

install the resize callback to resize the main canvas renderer

install the resize callback to resize the main canvas renderer
sourceraw docstring

make-request-animation-framecljs

(make-request-animation-frame)

compose a function that is the r-a-f func. returns a function. This returned function takes a callback and ensures its called next frame

compose a function that is the r-a-f func. returns a function. This returned function takes a callback and ensures
its called next frame
sourceraw docstring

new-frame-chancljs

(new-frame-chan)
source

new-resize-chancljs

(new-resize-chan)
source

next-framecljs

(next-frame)

returns a single use channel which closes on next frame callback. pulling from it waits exactly one frame. eg

;; wait one frame
(<! (next-frame))
returns a single use channel which closes on next frame callback.
pulling from it waits exactly one frame. eg

```
;; wait one frame
(<! (next-frame))
```
sourceraw docstring

request-animation-framecljs

schedules the passed in callback to be fired once, next animation frame.

schedules the passed in callback to be fired once, next animation frame.
sourceraw docstring

resize-event-chan-handlercljs

(resize-event-chan-handler ev)
source

wait-framescljs

(wait-frames frames)

returns a channel which closes when a certain number of frames have passed. eg

;; wait 10 frames
(<! (wait-frames 10))
returns a channel which closes when a certain number
of frames have passed. eg

```
;; wait 10 frames
(<! (wait-frames 10))
```
sourceraw docstring

wait-timecljs

(wait-time delay)

returns a channel which closes when a certain amount of time in milliseconds has passed, but determines that time by counting the requestAnimationFrame callbacks, so that when tab focus is lost, the callback, and thus this wait is suspended.

;; wait one seconds worth of frames
(<! (wait-time 1000))
returns a channel which closes when a certain amount of
time in milliseconds has passed, but determines that time by counting
the requestAnimationFrame callbacks, so that when tab focus is lost,
the callback, and thus this wait is suspended.

```
;; wait one seconds worth of frames
(<! (wait-time 1000))
```
sourceraw docstring

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

× close