1.5.0 • Published 2 months ago

canvasfireworkschanima v1.5.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 months ago

Canvas Fireworks Animation

This is a simple JavaScript Canvas fireworks animation. It creates colorful fireworks on a canvas element when you click on it.

Usage

To use this animation, follow these steps:

Ensure you have an HTML file with a canvas element. Include the provided index.js file in your HTML file. Open the HTML file in a web browser. Click anywhere on the canvas to create a fireworks display. How It Works When you click on the canvas, a new firework is created at the clicked position. Each firework moves upwards and then explodes into smaller particles. The color of each firework is randomly generated. Fireworks disappear after a certain number of explosions or when their opacity becomes too low.

Dependencies

This animation does not have any external dependencies. It only requires a modern web browser that supports HTML5 canvas.

License

This project is licensed under the MIT License.