From 4e49b2536073ca4043a1b6a7e0f4ac14c6911555 Mon Sep 17 00:00:00 2001 From: Sander Hautvast Date: Fri, 9 Dec 2022 16:25:53 +0100 Subject: [PATCH] less green --- src/js/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/index.js b/src/js/index.js index 5c64c44..4827a49 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -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 + 2500, + let size_factor = Math.random() * 1000 + 1500, max_cloud_size = (width * height) / size_factor, max_speed_x = 50, max_speed_y = 30, @@ -108,19 +108,19 @@ import '../css/app.css'; const shift = Math.random() * 80 - 40; // yellow if (i % 3 === 0) { - return `radial-gradient(circle ${size / 2}px, rgba(${200-shift}, ${150+shift/3}, 0, 1.0), rgba(0, 0, 0, 0.0)) no-repeat`; + return `radial-gradient(circle ${size / 2}px, rgba(${200 - shift}, ${150}, 0, 1.0), rgba(0, 0, 0, 0.0)) no-repeat`; } // blue if (i % 4 === 1) { - return `radial-gradient(circle ${size / 2}px, rgba(${100+shift}, 0, ${200+shift}, 1.0), rgba(0, 0, 0, 0.0)) no-repeat`; + return `radial-gradient(circle ${size / 2}px, rgba(${100 + shift}, 0, ${200 + shift}, 1.0), rgba(0, 0, 0, 0.0)) no-repeat`; } // purple if (i % 4 === 2) { - return `radial-gradient(circle ${size / 2}px, rgba(${61+shift}, 1, ${88+shift}, 1.0), rgba(0, 0, 0, 0.0)) no-repeat`; + return `radial-gradient(circle ${size / 2}px, rgba(${61 + shift}, 1, ${88 + shift}, 1.0), rgba(0, 0, 0, 0.0)) no-repeat`; } // orange if (i % 4 === 3) { - return `radial-gradient(circle ${size / 2}px, rgba(${200+shift}, ${80+shift}, 1, 1.0), rgba(0, 0, 0, 0.0)) no-repeat`; + return `radial-gradient(circle ${size / 2}px, rgba(${200 + shift}, ${80 + shift}, 1, 1.0), rgba(0, 0, 0, 0.0)) no-repeat`; } }