Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alajfit/javascript-easy-canvas-animation
The allows the canvas rotation and fps counter to be setup and used instantly
https://github.com/alajfit/javascript-easy-canvas-animation
Last synced: about 2 months ago
JSON representation
The allows the canvas rotation and fps counter to be setup and used instantly
- Host: GitHub
- URL: https://github.com/alajfit/javascript-easy-canvas-animation
- Owner: alajfit
- Created: 2014-09-07T16:30:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-08T14:49:21.000Z (over 10 years ago)
- Last Synced: 2024-03-18T18:10:43.969Z (10 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
JavaScript-Easy-Canvas-Control
==============================The allows for JavaScript canvas rotation and fps counter to be setup and used instantly
## Using the Function
Insert the code or a link anywhere on your page, it is modular and doesnt activate until all images and scripts have been loaded.
The initial variable can be set to true or false, if set to true the function will try to update an element containing the id fps, if an element is not found containing fps the fps will not be shown.
Once the code has been loaded it will attempt on each animation call to fire an 'update','render' and 'check' function from the Global scope.
If a canvas element is not found in the DOM when the page has fully loaded the animation function will not fire.