Skip to content

Commit a6ec9a9

Browse files
author
Maksim Izmaylov
committed
Animation color change
1 parent 9107f19 commit a6ec9a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

_js/network.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
ctx.beginPath();
151151
ctx.moveTo(p.x, p.y);
152152
ctx.lineTo(p.closest[i].x, p.closest[i].y);
153-
ctx.strokeStyle = 'rgba(108,68,227,'+ p.active+')';
153+
ctx.strokeStyle = 'rgba(160,143,248,'+ p.active+')';
154154
ctx.stroke();
155155
}
156156
}
@@ -169,7 +169,7 @@
169169
if(!_this.active) return;
170170
ctx.beginPath();
171171
ctx.arc(_this.pos.x, _this.pos.y, _this.radius, 0, 2 * Math.PI, false);
172-
ctx.fillStyle = 'rgba(108,68,227,'+ _this.active+')';
172+
ctx.fillStyle = 'rgba(160,143,248,'+ _this.active+')';
173173
ctx.fill();
174174
};
175175
}

js/scripts.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)