mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 07:27:14 +08:00
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.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
Block a user