Better day cycle light color progression

This commit is contained in:
Richard Zink committed 2026-10-07 06:59:35 +02:00
1 parent 1d4ebbc7d9
commit 7fbc9e8cf2
1 file changed
+9 -5
+9 -5
View File
@@ -65,13 +65,17 @@
var CYCLE = 20000;
var palette = [
{ t: 0.00, sky: 0x100f12, cloud: 0x54514f, light: 0x999187 },
{ t: 0.15, sky: 0x29282c, cloud: 0x6d6a63, light: 0xb0a89a },
{ t: 0.30, sky: 0x1c1b1f, cloud: 0x6d6a63, light: 0xe6dfd1 },
{ t: 0.00, sky: 0x100f12, cloud: 0x54514f, light: 0x3a383d },
{ t: 0.10, sky: 0x1c1b1f, cloud: 0x54514f, light: 0x54514f },
{ t: 0.20, sky: 0x29282c, cloud: 0x6d6a63, light: 0xa85f1d },
{ t: 0.30, sky: 0x1c1b1f, cloud: 0x6d6a63, light: 0xc56a2b },
{ t: 0.40, sky: 0x3a383d, cloud: 0x999187, light: 0xe0914f },
{ t: 0.50, sky: 0x3a383d, cloud: 0x999187, light: 0xf3ede1 },
{ t: 0.60, sky: 0x29282c, cloud: 0x999187, light: 0xe6dfd1 },
{ t: 0.70, sky: 0x29282c, cloud: 0x6d6a63, light: 0xe0914f },
{ t: 0.85, sky: 0x1c1b1f, cloud: 0x54514f, light: 0xb0a89a },
{ t: 1.00, sky: 0x100f12, cloud: 0x54514f, light: 0x999187 }
{ t: 0.80, sky: 0x1c1b1f, cloud: 0x6d6a63, light: 0xc15c46 },
{ t: 0.90, sky: 0x1c1b1f, cloud: 0x54514f, light: 0x54514f },
{ t: 1.00, sky: 0x100f12, cloud: 0x54514f, light: 0x3a383d }
];
function getColor(t) {