2.0.2
Day tabs whiter
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user