Skip to content

livejs/pull-raf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pull-raf

raf as a through pull stream

made to control the flow of pixel streams.

install

with npm:

npm install --save pull-raf

usage

raf = require('pull-raf')

pull(source, raf(), sink)

source

pull.asyncMap(function (pixels, cb) {
  raf(function () {
    cb(null, pixels)
  })
})

About

requestAnimationFrame as a through pull stream

Resources

Stars

Watchers

Forks

Packages

No packages published