cloud size

This commit is contained in:
Sander Hautvast 2022-12-09 15:42:16 +01:00
parent 9f73b39e87
commit 029260939d

View file

@ -4,7 +4,7 @@ import '../css/app.css';
let width = window.innerWidth,
height = window.innerHeight;
const num_clouds = 200;
let size_factor = Math.random() * 1000 + 1500,
let size_factor = Math.random() * 1000 + 2500,
max_cloud_size = (width * height) / size_factor,
max_speed_x = 50,
max_speed_y = 30,