Skip to content

A pull-stream through that will throttle the source until the next tick of a Pixi.js ticker

License

Notifications You must be signed in to change notification settings

20kbudget/pull-pixi-tick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pull-pixi-tick

A pull-stream "Through" that will throttle the source until the next tick of a pixi.js ticker.

install

yarn add pull-pixi-tick

usage

const pull = require('pull-stream')
const tickThrough = require('pull-pixi-tick').through
const tickSource = require('pull-pixi-tick').source
const {Application} = require('pixi.js')

const {view, ticker} = new Application()
document.body.appendChild(view)

pull(
    pull.count(1000),
    tickThrough(ticker),
    pull.log()
);

pull(
    tickSource(ticker),
    pull.log()
)

About

A pull-stream through that will throttle the source until the next tick of a Pixi.js ticker

Resources

License

Stars

Watchers

Forks

Packages

No packages published