Skip to content

Commit

Permalink
Improve snow visibility against light background
Browse files Browse the repository at this point in the history
  • Loading branch information
dhelonious committed Dec 29, 2024
1 parent 8c9f365 commit 7ef895f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mastodon/addons/snow.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function animate(ctx, snowflakes, canvas, maxFlakes) {
y: 0, // Start from top
radius: Math.random() * 7 + 3,
speed: Math.random() * 0.5 + 0.3,
opacity: Math.random() * 0.6 + 0.4
opacity: Math.random() * 0.4 + 0.6
});
}
snowflakes.forEach(flake => {
Expand All @@ -26,7 +26,7 @@ function animate(ctx, snowflakes, canvas, maxFlakes) {
flake.y + Math.sin(Math.PI * 2 * i / 6) * flake.radius
);
}
ctx.strokeStyle = `rgba(255, 255, 255, ${flake.opacity})`;
ctx.strokeStyle = `rgba(208, 228, 242, ${flake.opacity})`;
ctx.lineWidth = 1.5;
ctx.stroke();
ctx.restore();
Expand Down

0 comments on commit 7ef895f

Please sign in to comment.