fixed spacing
This commit is contained in:
parent
46eb5cdb1b
commit
674060ed93
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ export default class Confetti implements ICanvasEffect {
|
|||
|
||||
private resetParticle = (particle: ConfettiParticle, width: number, height: number): ConfettiParticle => {
|
||||
particle.color = this.colors[(Math.random() * this.colors.length) | 0] + (this.options.alpha + ')');
|
||||
if(this.options.gradient) {
|
||||
if (this.options.gradient) {
|
||||
particle.color2 = this.colors[(Math.random() * this.colors.length) | 0] + (this.options.alpha + ')');
|
||||
} else {
|
||||
particle.color2 = particle.color;
|
||||
|
|
Loading…
Reference in a new issue