1.0.1 • Published 5 years ago

led-matrix v1.0.1

Weekly downloads
15
License
MIT
Repository
github
Last release
5 years ago

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

{
  x: number;
  y: number;
  pixelWidth: number;
  pixelHeight: number;
  margin: number;
  glow: boolean;
  animated: boolean;
}

Related

License

Licensed under the MIT License

1.0.1

5 years ago

1.0.0

6 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago