Ring code: changed dashes wipe from a random end instead of cross-fading

This commit is contained in:
2026-11-16 22:50:17 +01:00
parent 413ea35bf6
commit 4584e516ff
3 changed files with 28 additions and 9 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ function ringLoop(t) {
const fadeMs = Math.min(220, qr.interval_ms * 0.25);
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 } : null);
prevBits ? { from: prevBits, k, seed: qr.slot } : null);
requestAnimationFrame(ringLoop);
}