led-matrix
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

HTML5 LED Matrix

Build Status

An HTML5 Matrix display simulator that accepts a matrix of pixel data and renders them using HTML5 Canvas.

Install

$ npm install led-matrix --save-dev
# or 
$ yarn add led-matrix

Usage

import { LedMatrix } from 'led-matrix';
import { createStore } from 'matrix-display-store';
 
const store = createStore(32, 16);
const matrix = new LedMatrix(canvasElement, {
  x: 32,
  y: 16,
  // other options...
});
matrix.setData(store.matrix);
matrix.render();

Options

{
  xnumber;
  ynumber;
  pixelWidthnumber;
  pixelHeightnumber;
  marginnumber;
  glowboolean;
  animatedboolean;
}

Related

License

Licensed under the MIT License

Package Sidebar

Install

npm i led-matrix

Weekly Downloads

26

Version

1.0.1

License

MIT

Unpacked Size

7.02 kB

Total Files

8

Last publish

Collaborators

  • sallar