js: turn off snowing

Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
Naman Sood 2023-01-17 18:13:13 -05:00
parent 2b12da2e74
commit 9db309db8c

View file

@ -3,7 +3,7 @@ const canvas = document.querySelector('canvas#bg');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
const snowing = true;
const snowing = false;
const ctx = canvas.getContext('2d');
const FILL_STYLES = {
@ -86,7 +86,7 @@ function Point() {
const dots = [];
const n = 50;
const n = snowing ? 50 : 20;
for(let i = 0; i < n; i++) {
dots[i] = new Point();