Autosave: 20260215-180158

This commit is contained in:
Flatlogic Bot 2026-02-15 18:01:58 +00:00
parent 42caaab32b
commit 787ae733a1

View File

@ -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);