Neolithic Prancing Minotaurs
Miss any of our Open RFC calls?Watch the recordings here! »

rafy

1.0.0 • Public • Published

rafy

A RAF js engine

Install

$ npm install rafy

Usage

import Rafy from 'rafy';
 
const rafy = new Rafy();
 
const fn = () => {
  console.log('It will perform the function on each frame');
};
 
// Add function to queue
rafy.add(fn);
 
// Start rafy
rafy.start();
 
// Remove function from queue
rafy.remove(fn);
 
// Stop rafy
rafy.stop()

Install

npm i rafy

DownloadsWeekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

13.9 kB

Total Files

9

Last publish

Collaborators

  • avatar