Ring code: soft gradient wipe, longer and eased, bean shape untouched
This commit is contained in:
@@ -165,7 +165,7 @@ window.runSeq = async (cfg) => {
|
||||
for (const name of cfg.pipes) res[name] = { got: [], false: 0, frames: 0, ms: 0, first5: null };
|
||||
for (const key of Object.keys(scanners)) delete scanners[key];
|
||||
let px = 0, py = 0;
|
||||
const fadeMs = Math.min(220, s.interval * (s.fadeK || 0.25)), t00 = s.t0 || 0;
|
||||
const fadeMs = Math.min(400, s.interval * (s.fadeK || 0.45)), t00 = s.t0 || 0;
|
||||
for (let i = 0; i < s.fps * s.secs; i++) {
|
||||
const ms = t00 + (i * 1000) / s.fps + rnd() * 20, slot = Math.floor(ms / s.interval), idx = slot - Math.floor(t00 / s.interval);
|
||||
const cur = s.tokens[idx], prev = idx > 0 ? s.tokens[idx - 1] : null, since = ms - slot * s.interval;
|
||||
|
||||
Reference in New Issue
Block a user