Skip to content

ianreah/jsFrames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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