https://github.com/karbassi/canvas-animation-frame
Standalone canvas frame limiter. Set the frames per second (FPS) and let it run.
https://github.com/karbassi/canvas-animation-frame
animation canvas fps javascript
Last synced: about 1 month ago
JSON representation
Standalone canvas frame limiter. Set the frames per second (FPS) and let it run.
- Host: GitHub
- URL: https://github.com/karbassi/canvas-animation-frame
- Owner: karbassi
- License: mit
- Created: 2020-04-08T15:52:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-21T16:49:45.000Z (about 5 years ago)
- Last Synced: 2025-03-04T09:41:56.054Z (4 months ago)
- Topics: animation, canvas, fps, javascript
- Language: JavaScript
- Homepage: https://karbassi.github.io/Canvas-Animation-Frame/
- Size: 26.4 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Canvas Animation Frame
Standalone frame limiter. Set the frames per second (FPS) and let it run.
## Example
```js
const animation = new AnimationFrame(10, () => update());function update() {
// do something
}
```See the [example folder](./example) for a fully working example.