# fireworknighthamrdsky

> This JavaScript code generates a simple animation of fireworks bursting in the night sky on a canvas element in a web browser.

Latest version **1.2.4** (published 2024-03-17) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install fireworknighthamrdsky
pnpm add fireworknighthamrdsky
yarn add fireworknighthamrdsky
bun add fireworknighthamrdsky
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2024-03-17 |
| First published | 2024-03-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 9.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | HamRd |
| Maintainers | hamrd |
| Keywords | sample, npm, package, tea, brew, cup, aromatic, chai, oolong |

## Links

- npm: https://www.npmjs.com/package/fireworknighthamrdsky
- Repository: https://github.com/HamRd/FireworkNightSky
- Homepage: https://github.com/HamRd/FireworkNightSky#readme
- Issues: https://github.com/HamRd/FireworkNightSky/issues
- npm.io page: https://npm.io/package/fireworknighthamrdsky

## Dependencies (8)

- [axios](https://npm.io/package/axios.md) ^0.21.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [tea-bag](https://npm.io/package/tea-bag.md) ^4.0.0
- [tea-cup](https://npm.io/package/tea-cup.md) ^3.0.0
- [tea-pot](https://npm.io/package/tea-pot.md) ^6.0.0
- [tea-time](https://npm.io/package/tea-time.md) ^2.0.0
- [tea-leaves](https://npm.io/package/tea-leaves.md) ^1.0.0
- [tea-infuser](https://npm.io/package/tea-infuser.md) ^5.0.0

## Recent versions

- 1.2.4 (latest) — 2024-03-17
- 1.0.0 — 2024-03-03

## README

## Firework Night Sky
This JavaScript code generates a simple animation of fireworks bursting in the night sky on a canvas element in a web browser.

## Usage
Ensure you have an HTML file with a <canvas> element with the id "canvas" where the fireworks animation will be displayed.
Include the provided index.js file in your project.
## Description
The code defines a FireworkParticle class that represents a single particle in a firework explosion. Each particle has a random velocity, color, and alpha value to create a sparkling effect.

## Animation
Fireworks are triggered by clicking the mouse anywhere on the canvas. Upon clicking, multiple particles are created and spread out with varying velocities and colors, simulating a fireworks explosion. The animation loop continuously updates the position and transparency of the particles, creating the illusion of twinkling lights in the night sky.

## License
This code is provided under the MIT License. You are free to use and modify it according to your needs.

---
_Source: https://npm.io/package/fireworknighthamrdsky · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
