feat: Add bluish animated sky background with dynamic colors and clouds

This commit is contained in:
Kacper Kostka (aider)
2025-04-05 17:43:12 +02:00
parent 90650fefdd
commit d2a4927577
2 changed files with 69 additions and 0 deletions

View File

@@ -5,6 +5,16 @@ let lastFrameTime = 0;
let fps = 0;
let debugMode = false;
// Sky background variables
const SKY_COLORS = [
'#1a2980', // Deep blue
'#2980b9', // Medium blue
'#6dd5fa', // Light blue
'#2980b9', // Medium blue
];
let skyAnimationTime = 0;
let skyAnimationSpeed = 0.0005; // Controls how fast the sky animates
// Initialize the simulation
window.onload = function() {
canvas = document.getElementById('simulation-canvas');