An open API service indexing awesome lists of open source software.

https://github.com/PixxxeL/js-fireworks

Fireworks on pure 2D canvas without any dependencies
https://github.com/PixxxeL/js-fireworks

animation canvas gamedev js

Last synced: about 1 month ago
JSON representation

Fireworks on pure 2D canvas without any dependencies

Awesome Lists containing this project

README

        

Javascript Fireworks
====================

Usage on your HTML page:

```html

window.onload = function () {
var firework = JS_FIREWORKS.Fireworks({
id : 'fireworks-canvas',
hue : 120,
particleCount : 50,
delay : 0,
minDelay : 20,
maxDelay : 40,
boundaries : { // of respawn and target
top: 50,
bottom: 240,
left: 50,
right: 590
},
fireworkSpeed : 2,
fireworkAcceleration : 1.05,
particleFriction : .95,
particleGravity : 1.5
});
firework.start();
};

```

Example: http://www.pixel-tyumen.ru/works/js-firework/