canvas-confetti
canvas-confetti copied to clipboard
🎉 performant confetti animation in the browser
Thanks for making `canvas-confetti` it's awesome! We (effectively) have the following code: ```javascript const confettiFrequency = 40; const animationEnd = Date.now() + 1000; const confettiOptions = {/* ... */}; let...
```javascript function setupCanvas(canvas) { // Get the device pixel ratio, falling back to 1. var dpr = window.devicePixelRatio || 1; // Get the size of the canvas in CSS pixels....
Thank you awsome library. It save my day. Just want to know is it possible to hv shapes ( square or circle) to hv diff back/front colors when rotates. (Eg:...
Hi, I'm getting this error with version `1.5.1` `Uncaught TypeError: Cannot read properties of undefined (reading 'reset')` Would you mind looking into it? Thanks! 
Oh a feel free to delete this non issue 👍🏼
Is there a function that received the canvas or its context as a parameter and allows to draw custom confetti particles? Similar to https://github.com/alampros/react-confetti#drawshape= ? If there's no function, could...
popular UI libs are using z-index in range of 1k-2k for dialogs, toolbars etc. Current zindex default is `100`, why not set to max? `Number.MAX_SAFE_INTEGER` or `2147483647` to be "safe",...

This change allows to add an emoji to the shapes array like shapes: ['emoji:💸'] It doesn't look like it's harder to render than circles or squares to me. No shape-changing...
In the case of using this library for snow i found that i needed to control the wobble effect. This exposes those two options but keeps the reasonable defaults :)