try to fix this spaghetti of a code

This commit is contained in:
Frederik Spirgi
2026-09-09 14:56:05 +02:00
parent b9bccb5cfc
commit 197276bbda
11 changed files with 216 additions and 457 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ function resizeCanvas() {
function drawMatrix() {
ctx.fillStyle = "rgba(0, 0, 0, 0.2)";
ctx.fillRect(0, 0, window.innerWidth, window.innerHeight);
ctx.fillStyle = "#39FF14";
ctx.fillStyle = getComputedStyle(document.documentElement).getPropertyValue("--matrix-rain").trim() || "#39FF14";
ctx.font = fontSize + "px monospace";
for (let i = 0; i < drops.length; i++) {