cloud size

This commit is contained in:
Sander Hautvast 2022-12-09 15:37:47 +01:00
parent dfc1eadafd
commit 9f73b39e87

View file

@ -3,8 +3,8 @@ import '../css/app.css';
(function () {
let width = window.innerWidth,
height = window.innerHeight;
const num_clouds = 100;
let size_factor = Math.random() * 1000 + 4500,
const num_clouds = 200;
let size_factor = Math.random() * 1000 + 1500,
max_cloud_size = (width * height) / size_factor,
max_speed_x = 50,
max_speed_y = 30,