Ring locator: contrast ranking, all-round ink check; bench baseline switch

This commit is contained in:
2026-08-16 20:12:33 +01:00
parent e677e270fd
commit b314f01efc
6 changed files with 30 additions and 10 deletions
+3 -1
View File
@@ -1,6 +1,6 @@
// far / low contrast bench: stills with per-stage diagnosis, and timed sequences
import * as RC from "/static/js/ringcode.js";
import { lcg, makeRoom, frame, jpeg } from "/static/ringlab/synth.js";
import { lcg, makeRoom, frame, jpeg, design } from "/static/ringlab/synth.js";
import * as V1 from "/static/ringlab/ringcode_v1.js";
import { makeRingScanner } from "/static/js/ringscan.js";
@@ -131,6 +131,7 @@ function toneLab(img, T, t) {
window.runFar = async (cfg) => {
const rnd = lcg(cfg.seed || 4242), results = [];
design.v1 = !!cfg.v1;
for (const t of cfg.trials) {
const room = makeRoom(t.W, t.H, t.room, rnd);
let f = frame(room, t, rnd);
@@ -157,6 +158,7 @@ window.runFar = async (cfg) => {
// seq: frame params + { fps, secs, interval, tokens: [{ bits, token }], shake }
window.runSeq = async (cfg) => {
const rnd = lcg(cfg.seed || 777), results = [];
design.v1 = !!cfg.v1;
for (const s of cfg.seqs) {
const room = makeRoom(s.W, s.H, s.room, rnd);
const res = { ...s, tokens: undefined };