add bit of random to the confetti
This commit is contained in:
parent
3b7033f4e4
commit
3f09ef70eb
|
@ -36,7 +36,7 @@ class Particle {
|
|||
this.ang = 0;
|
||||
}
|
||||
|
||||
this.x = this.origX + (this.radius * Math.sin(this.ang));
|
||||
this.x = this.origX + (this.radius * Math.sin(this.ang)) + Math.floor(Math.random() * 3);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue