Ring code v2: logo disc locator, projective rectification, animated dashes, lab pages, bench tool
This commit is contained in:
@@ -29,7 +29,7 @@ function frame(t) {
|
||||
const size = Math.min(w, h) * 0.9;
|
||||
if (MODE === "ring") {
|
||||
// one full turn every 45 s
|
||||
render(ctx, w / 2, h / 2, size / (2 * DISC), (t / 1000) * (2 * Math.PI / 45), bits, lab.center);
|
||||
render(ctx, w / 2, h / 2, size / (2 * DISC), (t / 1000) * (2 * Math.PI / 45), bits, t / 1000);
|
||||
} else {
|
||||
const m = lab.classic[idx].modules, n = m.length, s = Math.floor(size / (n + 8));
|
||||
const x0 = (w - n * s) / 2, y0 = (h - n * s) / 2;
|
||||
|
||||
Reference in New Issue
Block a user