Skip to content

fabwaseem/led-matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy LED Matrix

Easily turn a div into a beautiful LED matrix with full customizations.

Installation

npm install @fabwaseem/easy-led-matrix
# or
$ yarn add @fabwaseem/easy-led-matrix

Usage

import { LedMatrix } from 'easy-led-matrix';
#or
import { LedMatrix } from "https://www.unpkg.com/[email protected]/index.min.js";

const container = document.querySelector(".container");
const matrix = new LedMatrix(container, config);
matrix.init()


Config

{
  shape: "square" | "circle";
  size: number;
  color: string;
  amount: number;
  gap: number;
  litColor: string;
  fps: number;
  noise: number;
  background: string;
}

Demo

Visit demo for a working example of Matrix in action, then check out its source on github.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published