@fabwaseem/easy-led-matrix
Version:
A simple library to create beautiful led matrix easily with full customizations.
46 lines (33 loc) • 905 B
Markdown
Easily turn a div into a beautiful LED matrix with full customizations.
```
npm install @fabwaseem/easy-led-matrix
$ yarn add @fabwaseem/easy-led-matrix
```
```
import { LedMatrix } from 'easy-led-matrix';
import { LedMatrix } from "https://www.unpkg.com/easy-led-matrix@1.1.1/index.min.js";
const container = document.querySelector(".container");
const matrix = new LedMatrix(container, config);
matrix.init()
```
```
{
shape: "square" | "circle";
size: number;
color: string;
amount: number;
gap: number;
litColor: string;
fps: number;
noise: number;
background: string;
}
```
Visit [demo ](https://fabwaseem.github.io/easy-led-matrix)for a working example of Matrix in action, then check out its [source on github](https://github.com/fabwaseem/led-matrix).