|
@@ -201,8 +201,7 @@ function animation() {
|
|
ctx.globalCompositeOperation = 'source-over';
|
|
ctx.globalCompositeOperation = 'source-over';
|
|
ctx.globalAlpha = 0.8;
|
|
ctx.globalAlpha = 0.8;
|
|
ctx.fillStyle = 'rgb(39,48,123)';
|
|
ctx.fillStyle = 'rgb(39,48,123)';
|
|
- ctx.fillRect(0, 0, w, h)
|
|
|
|
-
|
|
|
|
|
|
+ ctx.fillRect(0, 0, w, h);
|
|
ctx.globalCompositeOperation = 'lighter';
|
|
ctx.globalCompositeOperation = 'lighter';
|
|
for (var i = 1, l = stars.length; i < l; i++) {
|
|
for (var i = 1, l = stars.length; i < l; i++) {
|
|
stars[i].draw();
|
|
stars[i].draw();
|