Site: app regions with screenshots, props, downloads, English and Chinese, narrow layout; hit layer follows draw order

This commit is contained in:
ZacharyZhang-NY committed 2026-10-08 23:57:34 -04:00
1 parent 29e4e7f70f
commit 07719a1fd3
29 files changed
+1423 -97

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
// The film's tempo: 112 BPM, landings on sixteenths.
const BEAT = 60 / 112;
const STEP = BEAT / 4;
/** Times parts to land beat by beat, blocks on sixteenths. */
export function grow(parts: SVGGElement[][]): void {
let beat = 1;
for (const blocks of parts) {
blocks.forEach((g, i) => g.style.setProperty("--land", `${(beat * BEAT + i * STEP).toFixed(3)}s`));
beat += Math.ceil(blocks.length / 4);
}
}