feat: Add bluish animated sky background with dynamic colors and clouds
This commit is contained in:
10
js/main.js
10
js/main.js
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user