mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
add bit of random to the confetti
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user