// Draw and animate clouds ctx.fillStyle = 'rgb…

Ralf ·

// Draw and animate clouds
ctx.fillStyle = 'rgba(255, 255, 255, 0.8)';
clouds.forEach(cloud => {
cloud.x += cloud.speed;
if (cloud.x > canvas.width + cloud.width) {
cloud.x = -cloud.width;
}