fixed spacing

pull/21833/head
MaHa-Nordeck 2020-10-22 15:28:30 +02:00
parent 46eb5cdb1b
commit 674060ed93
1 changed files with 1 additions and 1 deletions

View File

@ -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;