<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>[agm]</title>
<style>
body {
margin: 0;
background: black;
overflow: hidden;
cursor: pointer;
}
canvas {
position: fixed;
top: 0;
left: 0;
}
#info {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(255, 192, 203, 0.9);
padding: 20px;
border-radius: 10px;
color: black;
font-family: Arial;
max-width: 300px;
text-align: center;
z-index: 1000;
box-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
}
</style>
</head>
<body>
<canvas id="matrix"></canvas>
<div id="info">
<h2>✨ GARCIA ✨</h2>
<p>¡DE:garcia!</p>
<p>para:no se aquien enviar</p>
<p>no se me gusta dormir</p>
<p>Contenido del garcia</p>
</div>
<script>
const canvas = document.getElementById('matrix');
const ctx = canvas.getContext('2d');
const info = document.getElementById('info');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
const palabras = ["GARCIA", "AMOR", "AMOR", "AMOR", "AMOR", "AMOR",
"AMOR", "AMOR", "AMOR", "AMOR", "AMOR", "AMOR"];
class Particula {
constructor(x, y) {
this.x = x;
this.y = y;
this.velocity = {
x: (Math.random() - 0.5) * 6,
y: (Math.random() - 0.5) * 6
};
this.alpha = 1;
this.size = Math.random() * 5 + 2;
this.color = `hsl(${Math.random() * 360}, 100%, 70%)`;
}
dibujar() {
ctx.save();
ctx.globalAlpha = this.alpha;
ctx.fillStyle = this.color;
ctx.beginPath();
ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2);
ctx.fill();
ctx.restore();
}
actualizar() {
this.x += this.velocity.x;
this.y += this.velocity.y;
this.alpha -= 0.015;
this.size *= 0.97;
this.dibujar();
}
}
let particulas = [];
const tamanoFuente = 30;
const columnas = canvas.width / tamanoFuente;
const gotas = [];
const velocidadCaida = 0.9;
for(let i = 0; i < columnas; i++) {
gotas[i] = Math.floor(Math.random() * -canvas.height);
}
function animar() {
ctx.fillStyle = 'rgba(0, 0, 0, 0.04)';
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = '#FF00FF';
ctx.font = `${tamanoFuente}px monospace`;
for(let i = 0; i < gotas.length; i++) {
const texto = palabras[Math.floor(Math.random() * palabras.length)];
const y = gotas[i] * tamanoFuente;
ctx.fillText(texto, i * tamanoFuente, y);
if(y > canvas.height && Math.random() > 0.996) {
gotas[i] = 0;
}
gotas[i] += velocidadCaida;
}
particulas.forEach((particula, indice) => {
if(particula.alpha <= 0) {
particulas.splice(indice, 1);
} else {
particula.actualizar();
}
});
requestAnimationFrame(animar);
}
canvas.addEventListener('click', (e) => {
for(let i = 0; i < 25; i++) {
particulas.push(new Particula(e.clientX, e.clientY));
}
});
document.addEventListener('keydown', (e) => {
if(e.code === 'Space') {
info.style.display = info.style.display === 'block' ? 'none' : 'block';
}
});
document.addEventListener('click', () => {
info.style.display = 'none';
});
window.addEventListener('resize', () => {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
});
animar();
</script>
</body>
</html>