mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
add bit of random to the confetti
This commit is contained in:
parent
d1bcb8af64
commit
913e18579f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue