Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

jsFrames

A JavaScript library for creating frame-based animations.

Example usage:

Register any functions to be called on each frame. The functions accept a single parameter for the timestamp of the current frame.

jsFrames.registerAnimation(function (thisFrameTimestamp) {
    // Get the position of your animated items based on thisFrameTimestamp
    // Draw the frame...
});

(Optionally), subscribe to get frames per second updates.

jsFrames.onFpsUpdate(function (fps) {
    // Display frames per second
});

Start the animation.

jsFrames.start();

See the project pages for more details.

About

A JavaScript library for creating frame-based animations

Resources

Releases

No releases published
You can’t perform that action at this time.