UNPKG
led-canvas
Version:
latest (0.0.3)
0.0.3
0.0.2
Lightweight led board implemented with canvas
github.com/marionebl/led-canvas
marionebl/led-canvas
led-canvas
/
src
/
animation
/
frame.js
8 lines
(6 loc)
•
229 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
var
animationFrame =
window
.
requestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
function
(
callback
) {
window
.
setTimeout
(callback,
1000
/
60
); };
module
.
exports
= animationFrame;