Skip to content

Commit

Permalink
change fade percentage with fontsize
Browse files Browse the repository at this point in the history
  • Loading branch information
syxanash committed Dec 26, 2024
1 parent 55fa483 commit dd96e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/bluerain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit dd96e78

Please sign in to comment.