Auto commit: 2026-02-15T18:06:15.676Z
This commit is contained in:
parent
66ecfcc69b
commit
813342a48c
@ -732,6 +732,8 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489";
|
|||||||
let animationId;
|
let animationId;
|
||||||
let bars = [];
|
let bars = [];
|
||||||
|
|
||||||
|
const barPalette = [190, 140, 330, 45]; // Cian, Lima, Rosa, Oro
|
||||||
|
|
||||||
class ColorBar {
|
class ColorBar {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.reset();
|
this.reset();
|
||||||
@ -750,8 +752,9 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489";
|
|||||||
this.width = 3 + Math.random() * 5;
|
this.width = 3 + Math.random() * 5;
|
||||||
this.height = 40 + Math.random() * 60; // Mucho más largas, como barras reales
|
this.height = 40 + Math.random() * 60; // Mucho más largas, como barras reales
|
||||||
this.speed = 1 + Math.random() * 2;
|
this.speed = 1 + Math.random() * 2;
|
||||||
this.hue = Math.random() * 360;
|
// Selecciona un color específico de la paleta
|
||||||
this.opacity = 0.1 + Math.random() * 0.3;
|
this.hue = barPalette[Math.floor(Math.random() * barPalette.length)];
|
||||||
|
this.opacity = 0.15 + Math.random() * 0.35; // Un poco más visibles
|
||||||
this.angle = Math.PI / 2.8; // Más pronunciada (aprox 64 grados)
|
this.angle = Math.PI / 2.8; // Más pronunciada (aprox 64 grados)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -760,7 +763,7 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489";
|
|||||||
this.x += Math.cos(this.angle) * s;
|
this.x += Math.cos(this.angle) * s;
|
||||||
this.y += Math.sin(this.angle) * s;
|
this.y += Math.sin(this.angle) * s;
|
||||||
|
|
||||||
this.hue = (this.hue + 1) % 360;
|
// Ya no cambiamos el hue constantemente para mantener el color específico
|
||||||
|
|
||||||
if (this.y > canvas.height + 100 || this.x > canvas.width + 100) {
|
if (this.y > canvas.height + 100 || this.x > canvas.width + 100) {
|
||||||
this.reset();
|
this.reset();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user