Skip to content

requestAnimationFrame as a through pull stream

Notifications You must be signed in to change notification settings

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