From 1cfe9898ca191582ba4bd5ea652a3fedfae3dc28 Mon Sep 17 00:00:00 2001 From: Astrologies Date: Thu, 16 Dec 2021 06:15:40 -0500 Subject: [PATCH] alphaland snow update :) --- html/alphaland/js/snowfall/canvas-snow.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/alphaland/js/snowfall/canvas-snow.js b/html/alphaland/js/snowfall/canvas-snow.js index 75741f2..4ea9a3f 100644 --- a/html/alphaland/js/snowfall/canvas-snow.js +++ b/html/alphaland/js/snowfall/canvas-snow.js @@ -53,7 +53,7 @@ function Blizzard(parentId) { c.height = H; //This varies the number of snowflakes showing dependent on size of the element - numFlakes = Math.floor(W / 25); + numFlakes = Math.floor(W); ctx.clearRect(0, 0, W, H); //snowflake flakes @@ -62,7 +62,7 @@ function Blizzard(parentId) { flakes.push({ x: Math.random() * W, //x-coordinate y: Math.random() * H, //y-coordinate - r: Math.random() * 9 + 1 //radius + r: Math.random() * 3 //radius }); } @@ -90,7 +90,7 @@ function Blizzard(parentId) { for (var i = 0; i < numFlakes; i++) { - angle += 0.01; + //angle += 0.01; var p = flakes[i]; //Updating X and Y coordinates