From bee281d237139f0aa055197a019366993cbe1a67 Mon Sep 17 00:00:00 2001 From: Palazzini Luca Date: Tue, 17 Sep 2024 13:20:39 +0200 Subject: [PATCH] Change brightenHsl error color to magenta --- web/widgets/graph_widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/widgets/graph_widget.js b/web/widgets/graph_widget.js index f525f99..ccc3320 100644 --- a/web/widgets/graph_widget.js +++ b/web/widgets/graph_widget.js @@ -41,7 +41,7 @@ function hexToHsl(hex) { // Darkens an hsl color value function brightenHsl(hsl, amount) { const colorMatches = hsl.match(/[\d.]+/g); - let [h, s, l, a = 1] = colorMatches ? colorMatches.map(Number) : [0, 0, 100]; + let [h, s, l, a = 1] = colorMatches ? colorMatches.map(Number) : [300, 100, 50]; l = Math.min(100, Math.max(0, l * amount)); return `hsl(${h}, ${s}%, ${l}%, ${a})`; }