Default 0.8 s codes, wipe over 70% of the interval (560 ms)

This commit is contained in:
2026-08-16 23:04:26 +01:00
parent 7a29a171e1
commit 4c8db53aac
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ function ringLoop(t) {
if (c.width !== size) { c.width = c.height = size; }
const ctx = c.getContext("2d");
ctx.clearRect(0, 0, size, size);
const fadeMs = Math.min(500, qr.interval_ms * 0.6);
const fadeMs = Math.min(700, qr.interval_ms * 0.7);
const k = prevBits ? Math.min(1, (t - switchedAt) / fadeMs) : 1;
drawRing(ctx, size / 2, size / 2, (size / 2) / DISC * 0.98, (t / 1000) * (2 * Math.PI / 45), qr.bits, t / 1000,
prevBits ? { from: prevBits, k, seed: qr.slot } : null);