From 787ae733a1e94d250e464678c6bdffce4587ec43 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sun, 15 Feb 2026 18:01:58 +0000 Subject: [PATCH] Autosave: 20260215-180158 --- index.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 917a59c..62945e6 100644 --- a/index.php +++ b/index.php @@ -794,17 +794,17 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; this.speed = 1 + Math.random() * 2; this.hue = Math.random() * 360; this.opacity = 0.1 + Math.random() * 0.3; - this.angle = Math.PI / 4; // 45 grados para inclinación diagonal + this.angle = Math.PI / 2.8; // Más pronunciada (aprox 64 grados) } update(intensity) { - const s = this.speed * (1 + (intensity / 255) * 2); + const s = this.speed * (1 + (intensity / 255) * 3); // Un poco más rápido this.x += Math.cos(this.angle) * s; this.y += Math.sin(this.angle) * s; this.hue = (this.hue + 1) % 360; - if (this.y > canvas.height + 50 || this.x > canvas.width + 50) { + if (this.y > canvas.height + 100 || this.x > canvas.width + 100) { this.reset(); } } @@ -817,7 +817,13 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489"; ctx.translate(lx, ly); ctx.rotate(this.angle); - ctx.fillStyle = `hsla(${this.hue}, 80%, 60%, ${this.opacity})`; + const color = `hsla(${this.hue}, 80%, 60%, ${this.opacity})`; + ctx.fillStyle = color; + + // Efecto de rastro/resplandor (Blur) + ctx.shadowBlur = 25; + ctx.shadowColor = color; + ctx.beginPath(); // Dibujamos centrado en la traslación para que la rotación sea correcta ctx.roundRect(-this.width / 2, -this.height / 2, this.width, this.height, this.width / 2);