Skip to content

ianreah/jsFrames

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published