Tweak the colour formula again
- ID
ca2048b- date
2025-01-31 09:11:52+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
83ceb5b- message
Tweak the colour formula again- changed files
1 file, 2 additions, 2 deletions
Changed files
static/app.js (15050 → 15051)
diff --git a/static/app.js b/static/app.js
index da512f5..4e9f5e2 100644
--- a/static/app.js
+++ b/static/app.js
@@ -185,8 +185,8 @@ function chooseColour(fandom) {
// The saturation/lightness values are chosen to get a dark-ish
// shade that will look good with white text.
const saturation = 0.7 + 0.3 * getRand();
- const lightness1 = 0.15 + 0.2 * getRand();
- const lightness2 = lightness1 - 0.1;
+ const lightness1 = 0.27 + 0.2 * getRand();
+ const lightness2 = lightness1 - 0.15;
// Convert to rgb.
let [red1, green1, blue1] = hslToRgb(hue, saturation, lightness1);