Commit f4e4db07 by doszhang

dos

parent 80caf3ee
...@@ -91,8 +91,6 @@ function resizeCanvas() { ...@@ -91,8 +91,6 @@ function resizeCanvas() {
} }
function updateWorld() { function updateWorld() {
canvas.width = 641;
canvas.width = 640;
update(); update();
paint(); paint();
window.requestAnimationFrame(updateWorld); window.requestAnimationFrame(updateWorld);
...@@ -113,7 +111,7 @@ function update() { ...@@ -113,7 +111,7 @@ function update() {
function paint() { function paint() {
ctx.globalCompositeOperation = 'source-over'; ctx.globalCompositeOperation = 'source-over';
ctx.fillStyle = "rgba(255, 255, 255,0)"; ctx.fillStyle = "rgba(0,0,0,0.01)";
ctx.fillRect(0, 0, w, h); ctx.fillRect(0, 0, w, h);
ctx.globalCompositeOperation = 'lighter'; ctx.globalCompositeOperation = 'lighter';
for (var i = 0; i < particles.length; i++) { for (var i = 0; i < particles.length; i++) {
......
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