From 38b1babb974dc943d21e358c6ff63c993d747f6b Mon Sep 17 00:00:00 2001 From: julian laplace Date: Tue, 15 Jul 2025 14:49:01 +0200 Subject: edit copy --- bundle.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bundle.js') diff --git a/bundle.js b/bundle.js index e21a325..b395d86 100644 --- a/bundle.js +++ b/bundle.js @@ -37721,7 +37721,7 @@ function channel(t, a, b, c, d, add, mul) { return a + b * Math.cos(2 * Math.PI * (c * t + d)) * mul + add; } -function color(t, add, mul) { +function color(t, add, mul, alpha) { var a = void 0, b = void 0, c = void 0, @@ -37734,6 +37734,9 @@ function color(t, add, mul) { d = palette[3][i]; rgb[i] = Math.round(channel(-t, a, b, c, d, add, mul) * 255); } + if (alpha) { + return "rgba(" + rgb + "," + alpha + ")"; + } return "rgb(" + rgb + ")"; } @@ -39399,7 +39402,7 @@ function bindRoot() { var el = document.querySelector(".root-select ." + key); el.addEventListener("click", fn); - el.style.background = (0, _color2.default)(Math.pow(2, index / 12), 0, 1.6); + el.style.background = (0, _color2.default)(Math.pow(2, index / 12), key.length === 6 ? 0 : -0.15, key.length === 6 ? 0.95 : 0.4, 1); }); } -- cgit v1.2.3-70-g09d2