From dd96e78ab5f543737352c3aaa0328d7750be92fa Mon Sep 17 00:00:00 2001 From: syxanash Date: Thu, 26 Dec 2024 22:56:56 +0000 Subject: [PATCH] change fade percentage with fontsize --- assets/js/bluerain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/bluerain.js b/assets/js/bluerain.js index f50084f..09d3508 100644 --- a/assets/js/bluerain.js +++ b/assets/js/bluerain.js @@ -157,7 +157,7 @@ function resizeCanvas() { function animateRain() { // Add fade effect to the canvas - ctx.fillStyle = "rgba(0, 0, 0, 0.06)"; + ctx.fillStyle = `rgba(0, 0, 0, 0.${fontSize >= 20 ? '1' : '06'})`; ctx.fillRect(0, 0, canvas.width, canvas.height); for (let i = 0; i < skeets.length; i++) {