Testing347 commited on
Commit
5b73a01
·
verified ·
1 Parent(s): ab55128

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +7 -19
index.html CHANGED
@@ -1110,27 +1110,15 @@ function drawNeuralActivity(time) {
1110
  }
1111
  }
1112
 
1113
- // Super radiant but balanced energy glow
1114
  neuralCtx.save();
1115
- const energyPulse = 0.22 + 0.13 * beat; // much lower opacity, still pulses
1116
- const glowRadius = Math.min(w, h) * (0.68 + 0.21 * beat); // covers outside the orb but not entire background
1117
- const x = w / 2, y = h / 2;
1118
-
1119
- const grad = neuralCtx.createRadialGradient(
1120
- x, y, Math.min(w, h) * 0.18,
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 = 500 + 270 * beat;
 
1134
  neuralCtx.fill();
1135
  neuralCtx.restore();
1136
  </script>
 
1110
  }
1111
  }
1112
 
1113
+ // Even larger, ultra-bold orb-wide glow
1114
  neuralCtx.save();
1115
+ neuralCtx.globalAlpha = 0.52 + 0.38 * beat; // higher opacity
 
 
 
 
 
 
 
 
 
 
 
 
 
1116
  neuralCtx.beginPath();
1117
+ // Radius goes beyond the orb: up to 1.2x the orb's width/height
1118
+ neuralCtx.arc(w / 2, h / 2, Math.min(w, h) * (1.1 + 0.22 * beat), 0, Math.PI * 2);
1119
+ neuralCtx.fillStyle = "#a21caf";
1120
+ neuralCtx.shadowColor = "#ec4899";
1121
+ neuralCtx.shadowBlur = 900 + 360 * beat; // extreme, fills the whole section
1122
  neuralCtx.fill();
1123
  neuralCtx.restore();
1124
  </script>