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