Spaces:
Running
Running
Update index.html
Browse files- index.html +9 -10
index.html
CHANGED
|
@@ -1110,28 +1110,27 @@ function drawNeuralActivity(time) {
|
|
| 1110 |
}
|
| 1111 |
}
|
| 1112 |
|
| 1113 |
-
//
|
| 1114 |
neuralCtx.save();
|
| 1115 |
-
const energyPulse = 0.
|
| 1116 |
-
const glowRadius = Math.min(w, h) * (
|
| 1117 |
const x = w / 2, y = h / 2;
|
| 1118 |
|
| 1119 |
-
// Create a radial gradient for the glow
|
| 1120 |
const grad = neuralCtx.createRadialGradient(
|
| 1121 |
-
x, y, Math.min(w, h) * 0.
|
| 1122 |
x, y, glowRadius
|
| 1123 |
);
|
| 1124 |
-
grad.addColorStop(0, `rgba(236,72,153,${0.
|
| 1125 |
-
grad.addColorStop(0.
|
| 1126 |
-
grad.addColorStop(0.
|
| 1127 |
-
grad.addColorStop(1, `rgba(32,1,39,0.
|
| 1128 |
|
| 1129 |
neuralCtx.globalAlpha = energyPulse;
|
| 1130 |
neuralCtx.beginPath();
|
| 1131 |
neuralCtx.arc(x, y, glowRadius, 0, Math.PI * 2);
|
| 1132 |
neuralCtx.fillStyle = grad;
|
| 1133 |
neuralCtx.shadowColor = "#f472b6";
|
| 1134 |
-
neuralCtx.shadowBlur =
|
| 1135 |
neuralCtx.fill();
|
| 1136 |
neuralCtx.restore();
|
| 1137 |
|
|
|
|
| 1110 |
}
|
| 1111 |
}
|
| 1112 |
|
| 1113 |
+
// Expanded, vibrant energy glow (25% larger)
|
| 1114 |
neuralCtx.save();
|
| 1115 |
+
const energyPulse = 0.23 + 0.14 * beat; // still not too strong, but lively
|
| 1116 |
+
const glowRadius = Math.min(w, h) * (0.85 + 0.28 * beat); // 25% larger!
|
| 1117 |
const x = w / 2, y = h / 2;
|
| 1118 |
|
|
|
|
| 1119 |
const grad = neuralCtx.createRadialGradient(
|
| 1120 |
+
x, y, Math.min(w, h) * 0.15,
|
| 1121 |
x, y, glowRadius
|
| 1122 |
);
|
| 1123 |
+
grad.addColorStop(0, `rgba(236,72,153,${0.42 + 0.17 * beat})`); // bright pink center
|
| 1124 |
+
grad.addColorStop(0.38, `rgba(139,92,246,${0.18 + 0.13 * beat})`); // purple
|
| 1125 |
+
grad.addColorStop(0.82, `rgba(99,102,241,${0.08 + 0.11 * beat})`); // indigo
|
| 1126 |
+
grad.addColorStop(1, `rgba(32,1,39,0.01)`); // transparent
|
| 1127 |
|
| 1128 |
neuralCtx.globalAlpha = energyPulse;
|
| 1129 |
neuralCtx.beginPath();
|
| 1130 |
neuralCtx.arc(x, y, glowRadius, 0, Math.PI * 2);
|
| 1131 |
neuralCtx.fillStyle = grad;
|
| 1132 |
neuralCtx.shadowColor = "#f472b6";
|
| 1133 |
+
neuralCtx.shadowBlur = 650 + 340 * beat; // 25% more blur
|
| 1134 |
neuralCtx.fill();
|
| 1135 |
neuralCtx.restore();
|
| 1136 |
|