Day tabs whiter
This commit is contained in:
fraxle
2026-05-27 20:40:27 +01:00
parent 25dba2126f
commit 60dfdb5361
+1 -1
View File
@@ -52,7 +52,7 @@ const html = htm.bind(h);
// Converts a base RGB colour into the same 135° gradient used by the thermal // Converts a base RGB colour into the same 135° gradient used by the thermal
// bands legend: 50% white blend to pastelise, then a subtle light→dark sweep. // bands legend: 50% white blend to pastelise, then a subtle light→dark sweep.
function weatherGradient(r, g, b) { function weatherGradient(r, g, b) {
const blend = (c) => Math.round(c + (255 - c) * 0.68); const blend = (c) => Math.round(c + (255 - c) * 0.82);
const [mr, mg, mb] = [blend(r), blend(g), blend(b)]; const [mr, mg, mb] = [blend(r), blend(g), blend(b)];
const lighten = (c) => Math.min(255, Math.round(c + (255 - c) * 0.30)); const lighten = (c) => Math.min(255, Math.round(c + (255 - c) * 0.30));
const darken = (c) => Math.round(c * 0.96); const darken = (c) => Math.round(c * 0.96);