js: turn off snowing
Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
parent
2b12da2e74
commit
9db309db8c
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue