led-matrix-ts
Version:
Highly customizable led matrix for the browser
15 lines • 461 B
JavaScript
export class VerticalScroller {
loopEndIndex(panel) {
return panel.board.height - 1;
}
generatePanelFrameAtIndex(currentIndex, panel) {
let display = [];
for (let i = 0; i < panel.board.height; i++) {
let row;
row = panel.board.getRowAtIndex(currentIndex + i);
display.push(row.slice(0, panel.width));
}
return display;
}
}
//# sourceMappingURL=vertical-scroller.js.map