Commit 3c5a6ccb by doszhang

dos

parent 3fde3335
......@@ -143,7 +143,7 @@ function Particle() {
this.vx = (Math.random() - 0.5) * 10;
this.vy = (Math.random() - 0.5) * 10;
this.alpha = Math.random() * .5 + 1;
this.alpha = Math.random() * .5 + .5;
this.color;
}
......@@ -154,7 +154,7 @@ Particle.prototype = {
this.x += this.vx;
this.vy += this.gravity;
this.y += this.vy;
this.alpha -= 0.03;
this.alpha -= 0.01;
if (this.x <= -this.w || this.x >= canvas.width ||
this.y >= canvas.height ||
this.alpha <= 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment