canvas-partcl-generator
v1.0.2
Published
A library for creating customizable particle systems on HTML5 canvases.
Downloads
5
Readme
Canvas Particle Generator
A lightweight JavaScript library for creating customizable particle systems on HTML5 canvases. Easily add stunning particle effects to your web applications with just a few lines of code.
Installation
To install the library, run:
npm install canvas-partcl-generator
Usage
First, include the library in your project:
import ParticleGenerator from 'canvas-partcl-generator';
Then, initialize the particle generator with your canvas element ID and optional settings:
const particleGenerator = new ParticleGenerator('yourCanvasId', {
count: 100, // Number of particles
});
Options
count
: Number of particles (default: 100).
Contributing
Contributions are welcome! Please feel free to submit a pull request.
License
This project is licensed under the MIT License.