From f3c966563e86c62d083da6947372a30c6bbd4a1b Mon Sep 17 00:00:00 2001 From: Showdown76py Date: Sun, 16 Aug 2026 23:00:19 +0100 Subject: [PATCH] Ring code: wipe eases in and out (quart), less stagger --- static/js/ringcode.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/ringcode.js b/static/js/ringcode.js index 0f72472..e4b0016 100644 --- a/static/js/ringcode.js +++ b/static/js/ringcode.js @@ -201,8 +201,9 @@ export function render(ctx, cx, cy, unit, theta, bits, t = 0, fade = null) { const from = alphaOf(prev[k][j]), to = alphaOf(ring[j]); const lo = a - half - cap, hi = a + half + cap; const dir = phase(k + 7, j + (fade.seed || 0) * 31) < 0.5 ? 1 : -1; - const delay = phase(k + 3, j + (fade.seed || 0) * 17) * 0.25, x = Math.min(1, Math.max(0, (fade.k - delay) / 0.75)); - const e = 0.5 - 0.5 * Math.cos(Math.PI * x); + const delay = phase(k + 3, j + (fade.seed || 0) * 17) * 0.15, x = Math.min(1, Math.max(0, (fade.k - delay) / 0.85)); + // quart in-out: eases in, crosses, eases out. sine read as a constant slide + const e = x < 0.5 ? 8 * x ** 4 : 1 - (-2 * x + 2) ** 4 / 2; if (!ctx.createConicGradient) { ctx.globalAlpha = from + (to - from) * e; dash();