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
/
loop.js
11 lines
(8 loc)
•
183 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var
animationFrame =
require
(
'./frame'
);
function
loop
(
board
) {
animationFrame
(
function
(
stamp
) { board.
render
(board.
context
, stamp);
loop
(board); }); }
module
.
exports
= loop;