improving list of assets
Some checks failed
Frontend Build and Deploy / build (push) Failing after 49s

This commit is contained in:
2025-06-03 16:26:48 -03:00
parent 98b104b573
commit 0188dcd32b
5 changed files with 138 additions and 33 deletions

View File

@@ -123,14 +123,12 @@ const MatrixBackground: React.FC = () => {
});
// Check which dots are near the mouse
let hoveredCount = 0;
dots.forEach((dot, index) => {
const dx = dot.x - mouseX;
const dy = dot.y - mouseY;
const distance = Math.sqrt(dx * dx + dy * dy);
if (distance < config.hoverRadius) {
hoveredCount++;
const intensity = 1 - (distance / config.hoverRadius);
dot.targetBrightness = config.baseBrightness +
(config.hoverBrightness - config.baseBrightness) * intensity;