Spaces:
Running
Running
Update index.html
Browse files- index.html +14 -11
index.html
CHANGED
|
@@ -1110,17 +1110,20 @@ function drawNeuralActivity(time) {
|
|
| 1110 |
}
|
| 1111 |
}
|
| 1112 |
|
| 1113 |
-
//
|
| 1114 |
-
neuralCtx.save();
|
| 1115 |
-
neuralCtx.globalAlpha = 0.
|
| 1116 |
-
neuralCtx.beginPath();
|
| 1117 |
-
|
| 1118 |
-
neuralCtx.
|
| 1119 |
-
neuralCtx.
|
| 1120 |
-
neuralCtx.
|
| 1121 |
-
neuralCtx.
|
| 1122 |
-
neuralCtx.
|
| 1123 |
-
|
|
|
|
|
|
|
|
|
|
| 1124 |
</script>
|
| 1125 |
</body>
|
| 1126 |
</html>
|
|
|
|
| 1110 |
}
|
| 1111 |
}
|
| 1112 |
|
| 1113 |
+
// Strong orb-wide glow
|
| 1114 |
+
neuralCtx.save();
|
| 1115 |
+
neuralCtx.globalAlpha = 0.19 + 0.27 * beat;
|
| 1116 |
+
neuralCtx.beginPath();
|
| 1117 |
+
neuralCtx.arc(w / 2, h / 2, Math.min(w, h) * (0.50 + 0.13 * beat), 0, Math.PI * 2);
|
| 1118 |
+
neuralCtx.fillStyle = "#a21caf";
|
| 1119 |
+
neuralCtx.shadowColor = "#ec4899";
|
| 1120 |
+
neuralCtx.shadowBlur = 160 + 110 * beat;
|
| 1121 |
+
neuralCtx.fill();
|
| 1122 |
+
neuralCtx.restore();
|
| 1123 |
+
|
| 1124 |
+
requestAnimationFrame(drawNeuralActivity);
|
| 1125 |
+
}
|
| 1126 |
+
requestAnimationFrame(drawNeuralActivity);
|
| 1127 |
</script>
|
| 1128 |
</body>
|
| 1129 |
</html>
|