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