A toolbox of film styles made in code for Claude Code: 66 ready to use, and your own. Each style is a style prompt plus a demo film made entirely in code by Claude Opus 5.5, with no video model. By Lemomo. · 一套用代码做片的风格工具箱:66 种现成风格,也能做出你自己的
JavaScript agent-skillsai-agentsai-short-filmai-videoanimationcanvasclaudeclaude-codeclaude-code-pluginclaude-code-skillcreative-codingffmpegfilmmakingmotion-graphicsopus-5-5prompt-librarytext-to-speechthreejsvideo-productionwebgl
Slim the library: STYLE.md holds the style, DEMO.md holds our demo
lemomo-ai02dce5b6ff62
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex bbd94bf..4df27e8 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -11,7 +11,7 @@{"name": "lemo-opuscar","source": "./plugin",- "description": "Make a film in one of 39 code-rendered styles: your agent directs, draws, scores and mixes it."+ "description": "Make a film in one of the library's code-rendered styles: your agent directs, draws, scores and mixes it."}]}diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.ymlindex 9c322cd..32ce093 100644--- a/.github/workflows/pages.yml+++ b/.github/workflows/pages.yml@@ -5,7 +5,7 @@ name: galleryon:push:branches: [main]- paths: ['styleboard/**', 'styles/*/poster.jpg', 'styles/*/STYLE.md', '.github/workflows/pages.yml']+ paths: ['styleboard/**', 'styles/*/poster.jpg', 'styles/*/style.json', 'styles/*/STYLE.md', '.github/workflows/pages.yml']workflow_dispatch:permissions:@@ -30,6 +30,23 @@ jobs:- run: gh release download web --repo "$GITHUB_REPOSITORY" --pattern '*.mp4' --dir _site/filmsenv:GH_TOKEN: ${{ github.token }}+ # every film the gallery links must be in the site, or its card opens a dead player (e.g. a style pushed before its films were published)+ - name: check that every linked film is in the site+ run: |+ links=$( { grep -o 'data-src="films/[^"]*"' _site/index.html || true; } | sed 's/^data-src="//; s/"$//' | sort -u)+ [ -n "$links" ] || { echo "::error::_site/index.html links no films: did the gallery markup change?"; exit 1; }+ # the catalog says which styles have a film; each of them must be linked (this also makes the number of linked films at least the number of catalog films)+ expected=$(python3 -c "import json; print('\n'.join(s['slug'] for s in json.load(open('styleboard/catalog.json')) if s.get('dur', 0) > 0))")+ [ -n "$expected" ] || { echo "::error::styleboard/catalog.json lists no film for any style, so the gallery would have no videos (build.py run on a machine without the films? restore catalog.json)"; exit 1; }+ missing=0+ for s in $expected; do+ grep -qx "films/$s.mp4" <<< "$links" || { echo "::error::catalog.json says $s has a film, but the gallery does not link films/$s.mp4"; missing=1; }+ done+ for f in $links; do+ [ -s "_site/$f" ] || { echo "::error::the gallery links $f but it is not in _site (is it missing from the 'web' release? run tools/publish.sh)"; missing=1; }+ done+ echo "$(echo "$links" | wc -l) linked films checked, $(echo "$expected" | wc -l) expected from the catalog"+ [ "$missing" = 0 ]- uses: actions/upload-pages-artifact@v3with:path: _sitediff --git a/.gitignore b/.gitignoreindex 85de525..cb145a8 100644--- a/.gitignore+++ b/.gitignore@@ -7,7 +7,6 @@ core/tts/*.onnxcore/tts/*.bincore/assets/polyhaven/*.hdr# 渲染中间产物-styles/*/demo/stills/t_*.jpgstyles/*/demo/out/styles/*/demo/voices/*.wavstyles/*/demo/music/*.mp3@@ -17,8 +16,6 @@ styles/*/demo/mix.wav# 成片走 GitHub Releasesstyles/*/*.mp4# 2026-09-26 收录已有作品后补充-styles/*/demo/stills/t_*.png-styles/*/demo/stills/dbg/styles/*/demo/out_*/styles/*/demo/chk/styles/*/demo/node_modules@@ -32,11 +29,6 @@ styles/*/demo/music.wav# 赛事官方图,只作参考、不分发(片中标识怎么处理开源前再定)styles/pictogram-motion/demo/ref/styles/*/demo/music/src/-# 这两个风格的 stills/ 里是调试静帧,只提交风格帧-styles/hd-2d/demo/stills/*-!styles/hd-2d/demo/stills/styleframe.jpg-styles/pictogram-motion/demo/stills/*-!styles/pictogram-motion/demo/stills/styleframe.jpg# ---- 2026-09-26 GitHub 发布前补充 ----# 内部工作文件(不公开)@@ -51,121 +43,52 @@ styles/*/demo/**/music_stems/styles/*/demo/**/mix*.wavstyles/*/demo/audio/*.wavcore/audio/*.wav-# 大素材走 Releases 的 assets 包,./setup.sh 下载(清单见 assets.json)+# 大素材走 Releases 的 assets 包,用 sh tools/fetch.sh 下载(清单见 tools/assets.json)core/audio/instruments/+# Demo fonts are not in git: they are free (mostly Google Fonts, OFL); each demo's CREDITS names themstyles/*/demo/fonts/**/*.ttfstyles/*/demo/fonts/**/*.otf# 发布暂存 / Pages 构建产物/.release//_site/-# 静帧只提交风格帧和文档里引用到的(其余是调试帧);以后新增引用后重跑 tools/release.py 前记得补一行+# Demo folders keep code and CREDITS for agents to read; renders, media and process notes stay local+styles/*/storyboard/+styles/*/demo/TREATMENT.md+styles/*/demo/**/*.wav+styles/*/demo/**/*.mp3+styles/*/demo/**/*.ogg+styles/*/demo/**/*.flac+styles/*/demo/**/*.mp4+styles/*/demo/**/*.woff+styles/*/demo/**/*.woff2+styles/*/demo/**/*.gltf+styles/*/demo/**/*.glb+styles/*/demo/**/*.bin+styles/*/demo/**/*.hdr+styles/*/demo/**/*.exr+styles/*/demo/**/*.jpg+styles/*/demo/**/*.jpeg+styles/*/demo/**/*.png+styles/*/demo/**/*.webp+styles/*/demo/**/*.svg+# Stills: only the review frames docs point to are committed; everything else in stills/ is a debug frame.+# Name review frames styleframe.jpg, modelsheet*.jpg, frame_*.jpg, alt_*.jpg or engine*.jpg and they are tracked with no extra line here.styles/*/demo/stills/*-!styles/art-deco/demo/stills/frame_v1_lobby.jpg-!styles/art-deco/demo/stills/frame_v1_roof.jpg-!styles/art-deco/demo/stills/frame_v2_lobby.jpg-!styles/art-deco/demo/stills/frame_v2_roof.jpg-!styles/art-deco/demo/stills/kit_v1.jpg-!styles/art-deco/demo/stills/kit_v2.jpg-!styles/art-deco/demo/stills/modelsheet_v1.jpg-!styles/art-deco/demo/stills/modelsheet_v2.jpg-!styles/art-deco/demo/stills/styleframe.jpg-!styles/ascii-crt/demo/stills/styleframe.jpg-!styles/backrooms/demo/stills/styleframe.jpg-!styles/blueprint/demo/stills/styleframe.jpg-!styles/brick-toy/demo/stills/styleframe.jpg-!styles/cel-anime-80s/demo/stills/styleframe.jpg-!styles/crayon-book/demo/stills/modelsheet_v1.jpg-!styles/crayon-book/demo/stills/modelsheet_v1_moon.jpg-!styles/crayon-book/demo/stills/modelsheet_v2_moon.jpg-!styles/crayon-book/demo/stills/styleframe.jpg-!styles/dark-keynote/demo/stills/styleframe.jpg-!styles/dataviz/demo/stills/engine_demo.jpg-!styles/dataviz/demo/stills/frame_v1_0_animatic.jpg-!styles/dataviz/demo/stills/frame_v1_1_first_summer.jpg-!styles/dataviz/demo/stills/frame_v1_2_century.jpg-!styles/dataviz/demo/stills/frame_v1_3_line_to_stripes.jpg-!styles/dataviz/demo/stills/styleframe.jpg-!styles/game-show/demo/stills/styleframe.jpg-!styles/game-show/demo/stills/t_125.png-!styles/glass-product/demo/stills/styleframe.jpg-!styles/halftone-dossier/demo/stills/styleframe.jpg-!styles/hd-2d/demo/stills/styleframe.jpg-!styles/hd-2d/demo/stills/styleframe_notilt_old.jpg-!styles/impasto/demo/stills/styleframe.jpg-!styles/ink-wash/demo/stills/modelsheet_v1.jpg-!styles/ink-wash/demo/stills/styleframe.jpg-!styles/iso-infographic/demo/stills/engine_shape.jpg-!styles/iso-infographic/demo/stills/frame_v1_hillside.jpg-!styles/iso-infographic/demo/stills/frame_v1_port.jpg-!styles/iso-infographic/demo/stills/frame_v1_route.jpg-!styles/iso-infographic/demo/stills/frame_v2_hands.jpg-!styles/iso-infographic/demo/stills/styleframe.jpg-!styles/living-screencast/demo/stills/styleframe.jpg-!styles/lowpoly-island/demo/stills/styleframe.jpg-!styles/microgame/demo/stills/modelsheet_v2.jpg-!styles/microgame/demo/stills/modelsheet_v2_styles.jpg-!styles/microgame/demo/stills/styleframe.jpg-!styles/one-line/demo/stills/frame_v1_face.jpg-!styles/one-line/demo/stills/frame_v1_hand.jpg-!styles/one-line/demo/stills/frame_v1_love.jpg-!styles/one-line/demo/stills/styleframe.jpg-!styles/paper-lantern/demo/stills/dbg-!styles/paper-lantern/demo/stills/poster.jpg-!styles/paper-lantern/demo/stills/sheet-!styles/paper-lantern/demo/stills/styleframe.jpg-!styles/paper-popup/demo/stills/styleframe.jpg-!styles/paper-popup/demo/stills/t_126.jpg-!styles/papercut-red/demo/stills/styleframe.jpg-!styles/pictogram-motion/demo/stills/cover34_ej.png-!styles/pictogram-motion/demo/stills/cover_ej.png-!styles/pictogram-motion/demo/stills/lab_ath.png-!styles/pictogram-motion/demo/stills/styleframe.jpg-!styles/pixel-rpg/demo/stills/modelsheet_v1.jpg-!styles/pixel-rpg/demo/stills/styleframe.jpg-!styles/pop-art/demo/stills/engine_test.jpg-!styles/pop-art/demo/stills/modelsheet_v2.jpg-!styles/pop-art/demo/stills/styleframe.jpg-!styles/risograph/demo/stills/modelsheet_v2.jpg-!styles/risograph/demo/stills/styleframe.jpg-!styles/rubber-hose/demo/stills/styleframe.jpg-!styles/scifi-toon/demo/stills/styleframe.jpg-!styles/shadow-puppet/demo/stills/hands_test_v1.jpg-!styles/shadow-puppet/demo/stills/styleframe.jpg-!styles/silent-film/demo/stills/frame_v1_cards.jpg-!styles/silent-film/demo/stills/frame_v2_tender.jpg-!styles/silent-film/demo/stills/modelsheet_v2.jpg-!styles/silent-film/demo/stills/redraw_v1.jpg-!styles/silent-film/demo/stills/styleframe.jpg-!styles/spy-titles/demo/stills/frame_v1_airport.jpg-!styles/spy-titles/demo/stills/frame_v1_title.jpg-!styles/spy-titles/demo/stills/frame_v1_train.jpg-!styles/spy-titles/demo/stills/modelsheet_v1.jpg-!styles/spy-titles/demo/stills/styleframe.jpg-!styles/stained-glass/demo/stills/styleframe.jpg-!styles/swiss-motion/demo/stills/styleframe.jpg-!styles/tilt-shift/demo/stills/styleframe.jpg-!styles/ukiyoe/demo/stills/styleframe.jpg-!styles/urban-sketch/demo/stills/styleframe.jpg-!styles/watercolor/demo/stills/styleframe.jpg-!styles/whiteboard/demo/stills/styleframe.jpg-!styles/woodcut/demo/stills/engine_example.jpg-!styles/woodcut/demo/stills/filter_v1.jpg-!styles/woodcut/demo/stills/frame_v1_pour.jpg-!styles/woodcut/demo/stills/frame_v1_village.jpg-!styles/woodcut/demo/stills/modelsheet_v1.jpg-!styles/woodcut/demo/stills/styleframe.jpg+!styles/*/demo/stills/styleframe.jpg+!styles/*/demo/stills/modelsheet*.jpg+!styles/*/demo/stills/frame_*.jpg+!styles/*/demo/stills/alt_*.jpg+!styles/*/demo/stills/engine*.jpg# 用户自己的片子(agent 输出)/films/-# 制作日志是内部幕后记录,不公开+# Production logs are internal: they stay localstyles/*/PRODUCTION_LOG*+styles/*/demo/PRODUCTION_LOG*# 宣传物料(发帖用海报、预告片、教程片),只留本地,不上传 GitHub/docs/social/-# 整机渲染限流锁(core/render/slot.mjs)-.render_slots/-batch/.render_slots/diff --git a/AGENTS.md b/AGENTS.mdindex 962f183..960da0b 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -1,18 +1,29 @@# Lemo-Opuscar: instructions for agents-This repository is a library of film styles. Each style is a prompt (`styles/<slug>/STYLE.md`) with a demo film made entirely in code. People open an agent here, pick a style, and ask for a film about **their own** topic. Your job is to direct and produce that film.+This repository is a library of film styles. Each style has a `styles/<slug>/STYLE.md` (what the style is) and one demo film made entirely in code (`DEMO.md` and `demo/`). People pick a style and ask for a film about **their own** topic. Your job is to direct and produce that film.-## Read first+| The request | Go to |+|---|---|+| A film about the user's topic (the normal case) | **Style and story**, **Workflow** below |+| "Which styles are there?" / no style chosen | **Finding the style** below |+| Directing: story, sound, rhythm, camera, checks, delivery | [`DIRECTOR.md`](DIRECTOR.md) |+| Building: install, pages, voice, music, mix | [`TECHNIQUE.md`](TECHNIQUE.md) |+| Tool commands and flags | [`core/README.md`](core/README.md) |+| Adding a style to the library (owner only) | [`MAINTAINING.md`](MAINTAINING.md) |-1. [`DIRECTOR.md`](DIRECTOR.md): how to direct (story, sound, rhythm, camera, performance, checks).-2. [`TECHNIQUE.md`](TECHNIQUE.md): how to build it (render(t) pages, voice, music, mix, review).-3. `styles/<slug>/STYLE.md` for the chosen style. §1–§8 define the style. §9 shows how our demo was built. The demo is a reference implementation: learn and reuse its techniques, but don't rebuild it or copy its story.+**Films outside `styles/` are the user's: no LemoLab credit, no watermark.**-**The style is fixed; the content is the user's.** From a `STYLE.md`, keep the look, the motion and camera language, the sound and music, and the directing craft. The content comes from the user's topic: the story and its shape, the characters, the settings, the data and how it is charted. Many choices in a `STYLE.md` were made for our demo's story, such as a line chart for a temperature series. When one doesn't fit the user's topic, use what fits, and don't bend the topic to match the demo. The same goes for the beat tables: the story arc in §2 and the beat-by-beat camera in §5 show how our demo used the style. Read them as grammar (which kind of move serves which kind of moment), then write a new arc and shot list from the user's story.+## Style and story-**Scene styles.** Some styles have a practical scene as their demo instead of a story: a set-up guide, a spec walkthrough, a museum plate, a trail guide. Their `STYLE.md` §2 is **Use cases** (which jobs the style does, with shot structure, information order and reading time for each), and §11 **Swap in your content** says how the demo reads every word and number from `demo/content.json`. When the user's job matches one of those use cases, start from that demo's structure and pacing and write the user's own content. Still direct it: pick the camera, the order in which information arrives and the sound for the user's material, and don't just fill in the demo's fields.+- **`STYLE.md` is fixed**: the style's invariants (look, colour, type, motion, camera grammar, sound palette, native moves, pitfalls). Keep all of it.+- **Everything else is yours to direct** from the user's topic: story, structure, characters, settings, shots, timings, references, how data is charted. Never bend the topic toward the demo.+- **Treatment first, demo later.** Write your own `TREATMENT.md`, with three candidate structures and your choice (DIRECTOR.md §4), before you open `DEMO.md` or the demo code. Then use the demo only to learn techniques (a brush engine, a rig, a shader, a mix), never its story, arc, shots, props or timeline.+- **Scene styles** (a set-up guide, a spec walkthrough, a museum plate, a trail guide) list use cases in their `STYLE.md`. Read them as grammar for the order in which information arrives and how long each part needs on screen, then build the user's content in your own structure. Swapping text into a demo's `content.json` is only a technical check, never the way to deliver.+- Never build inside `styles/`: copy what you need into the film's project folder.-**Finding the style.** Users name a style by its gallery name in English or Chinese ("Impasto Oil Painting", "油画厚涂") or by its folder (`impasto`). Look it up in [`styles/README.md`](styles/README.md), which maps every name to its folder. If nothing matches clearly, show the closest two or three and ask.+## Finding the style++Users name a style by its gallery name in English or Chinese ("Impasto Oil Painting", "油画厚涂") or by its folder (`impasto`). Look it up in [`styles/README.md`](styles/README.md). If nothing matches clearly, show the closest two or three and ask.If the user hasn't picked a style:- Suggest two or three that fit their topic.@@ -35,39 +46,25 @@ All 43 styles · 全部风格:## Workflow-1. **Brief.** Make sure the style and the topic are clear. Then ask the user once, in a single message (DIRECTOR.md §1). If the style is unclear, that question goes in the same message:+1. **Brief.** Make sure the style and the topic are clear, then ask the user once, in a single message (DIRECTOR.md §1):- anything about the topic you can't decide yourself (facts; names, logos or products that must appear);- - whether they have material of their own: a voice recording or a preferred voice, music, photos, logos, fonts. Whatever they don't provide, you make;- - whether they want to review a storyboard before production. The default is no: you go straight to the finished film.-- Skip any question their request already answers. Wait for the reply, then fill every other gap with a sensible default, sum up the brief in a few lines, and start. Don't come back with more questions later.-2. **Treatment.** Write `films/<name>/TREATMENT.md` (DIRECTOR.md §4).-3. **Look.** Render a model sheet or style frames with the real drawing code and check them yourself against the `STYLE.md` (DIRECTOR.md §5).-4. **Storyboard, only if the user asked for it.** Show the key shots rendered in the style, with durations and lines, plus the logline (DIRECTOR.md §5).- **Stop and wait for approval.** If they didn't ask for it, don't stop.-5. **Produce.** Voice → check → score (can run in parallel) → animation → mix → render.-6. **Self-check** (DIRECTOR.md §11), then deliver `films/<name>/<name>.mp4`, `.srt`, `poster.jpg` and the source with `build.sh`.+ - whether they have material of their own: a voice recording or a preferred voice, music, photos, logos, fonts;+ - the film's language, if it isn't obvious (default: the language they write in, for voice and subtitles);+ - whether they want to review a storyboard first (default: no);+ - anything missing on their machine: first run `sh plugin/skills/lemo-opuscar/scripts/setup.sh deps` from the library root (core only) and include what it reports. Add the voice and music tiers later, only if the film needs them (TECHNIQUE.md §1).-A user's film carries no LemoLab credit and no watermark. The "LemoLab × Claude Opus 5.5" end card in the `STYLE.md` files belongs to our demos only.+ Skip what their request already answers. Wait for the reply, fill every other gap with a sensible default, sum up the brief in a few lines and start. Don't come back with more questions.+2. **Treatment.** Write `TREATMENT.md` in the project folder (DIRECTOR.md §4), before you open the demo.+3. **Look.** Render style frames or a model sheet with the real drawing code and check them against `STYLE.md` (DIRECTOR.md §5).+4. **Storyboard, only if the user asked for it** (DIRECTOR.md §5). **Stop and wait for approval.** Otherwise don't stop.+5. **Produce.** Voice → check → score (can run in parallel) → animation → mix → render (TECHNIQUE.md).+6. **Self-check and deliver** (DIRECTOR.md §11).-Report progress in the user's language. The film's own language is whatever the user asks for (default: the language they write in).+Report progress in the user's language. If a step fails, read the error, fix the cause and retry; go back to the user only for a decision or something only they can provide.## Where things go-- Work only in `films/<name>/` (ignored by git), unless the user asks you to work in their own project.+- The film's project folder is `films/<name>/` in a clone (ignored by git), or `<name>/` in the user's folder in skill mode (see the skill's `SKILL.md`). Wherever a guide says `films/<name>/`, read "the project folder". Work only there, unless the user asks you to work in their own project.+- Run `node core/…` and `sh tools/…` from the library root (`$LIB` in skill mode).- `core/` has ready-made tools (rendering, TTS, speech check, sampler, sfx, mux). Use them or your own stack, but don't edit `core/` or `styles/` for a user's film.-- Large assets are fetched on demand: `sh tools/fetch.sh voice | instruments | hdri`.- Never kill processes you didn't start. Don't leave background processes running.--## Maintaining the library (repository owner only)--To add a new style:--1. Make it in `styles/<slug>/`: `STYLE.md` in English, following the §1–§9 structure of an existing one; `TREATMENT.md`; `demo/` with the demo's source (a reference implementation, not a rebuild kit) and `CREDITS`; `<slug>.mp4`, `<slug>.srt`, `poster.jpg`, and `demo/stills/styleframe.jpg`.-2. Add a card to `styleboard/cards.json`: film title, one-line story in English and Chinese, and use cases.-3. Run `sh tools/publish.sh`. It checks the repo (no files over 5 MB, no absolute paths, no secrets), uploads new or changed films to GitHub Releases, and rebuilds the gallery data.-4. Commit and push. The gallery (GitHub Pages) rebuilds itself.--The skill in `plugin/skills/lemo-opuscar/` is a thin wrapper: it fetches this repo and sends the agent to this file. Keep the workflow here, not in `SKILL.md`.--Rules: back up before revising (old versions move out of the repo, not into git); only CC0, CC BY or OFL assets; every film's end card carries "LemoLab × Claude Opus 5.5"; no watermark.diff --git a/DIRECTOR.md b/DIRECTOR.mdindex 8251833..3ae2c2c 100644--- a/DIRECTOR.md+++ b/DIRECTOR.md@@ -1,6 +1,6 @@# Directing a Lemo-Opuscar film-This is the directing method behind every film in this library. Pair it with one `styles/<slug>/STYLE.md` (what the style looks and sounds like) and [`TECHNIQUE.md`](TECHNIQUE.md) (how to build it). 中文版:[docs/zh-CN/DIRECTOR.md](docs/zh-CN/DIRECTOR.md)+The directing method behind every film in this library. Pair it with one `styles/<slug>/STYLE.md` (the style) and [`TECHNIQUE.md`](TECHNIQUE.md) (how to build).You are the director, not a tech demo. A film is judged in this order: **sound, rhythm, camera, directing** (performance, staging, emotional arc). Good-looking frames are only the starting point.@@ -8,49 +8,50 @@ You are the director, not a tech demo. A film is judged in this order: **sound,## 1. Take the brief-The user gives you a style and a topic, and sometimes more: length, language, voice, must-have shots, brand rules. Everything they don't specify is your decision.+The user gives a style and a topic, sometimes more (length, language, voice, must-have shots, brand rules). Everything else is your decision. Ask once, in a single message (AGENTS.md, Workflow), then no more questions. Defaults:-Before any work, make sure the style and the topic are clear, then ask **once, in a single message** (a question about the style, if any, goes in it too):+- Length **30–60 s**; shorter and tight beats padded. Beyond two or three minutes multiplies time and token cost: tell the user.+- 1920×1080 at 24 fps by default; other sizes (vertical 1080×1920, for example) with `--size WxH` on the render tools.+- Voice and subtitles in the language the user writes in. Subtitles burned in and exported as `.srt`.+- Loudness −14 LUFS.-- what you can't reasonably decide yourself (usually the facts of their topic, and names, logos or products you must show);-- whether they have material of their own to use: a voice recording or a preferred voice, music, photos, logos, fonts;-- whether they want to review a storyboard before production (default: no).+Say it in the questions when it matters: a good Chinese voice uses Microsoft's online service (edge-tts) and needs a connection; offline, Kokoro reads Chinese but sounds plain (TECHNIQUE.md §4).-Skip whatever their request already answers. Wait for the reply, sum up the brief in a few lines and start; don't come back with more questions. Sensible defaults:+Requests that only change the plan:-- Length **30–60 s**. Let the story decide; shorter and tight beats padded.-- 1920×1080, 24 fps output.-- Narration or dialogue in the language the user writes in, unless they say otherwise. Subtitles burned in and exported as `.srt`.-- Loudness −14 LUFS.+- **No voice, or no subtitles.** Drop those steps and say so in the treatment.+- **Their own voice recording.** Use it as it is; transcribe it with faster-whisper for word timings.+- **Their logos, photos or footage**: see section 12.## 2. Find a benchmark first-Before writing anything, pick one or two reference works (films, title sequences, games, ads) that set the bar for this style and topic. Write down:+Before writing anything, pick one or two reference works (films, title sequences, games, ads) that set the bar for this style **and this topic**. They are your choice, made for the user's film; don't borrow the demo's. Write down:- **What to learn**: composition, pacing, camera grammar, colour logic, score structure.- **What not to take**: characters, designs, melodies, specific shots, logos, fonts.-The benchmark lifts quality more than any rule below. Each `STYLE.md` lists the references we used.+The benchmark lifts quality more than any rule below.## 3. Shape the story- **One subject, one goal, one turn.** A character (or a single object, product or idea) wants something, something changes, it ends differently from how it began.- **Hook in the first 3 seconds.** No slow logo reveal before anything happens.- **An ending that echoes.** Bookend the opening, reveal the scale, or let the character do the thing right the second time.-- **One native move**: a moment only this medium can do (a fold that becomes a transition, ink that blooms into the next scene, a type grid that snaps into the logo). Put it at the emotional peak. Each `STYLE.md` §2 suggests some.+- **One native move**: a moment only this medium can do (a fold that becomes a transition, ink that blooms into the next scene, a type grid that snaps into the logo). Put it at the emotional peak. `STYLE.md` lists the medium's native moves; pick or invent the one your story needs.- **Cut the extras.** One gag the audience reads at thumbnail size beats three they can't. If a beat needs explaining, remove it.## 4. Write the treatment-Write `TREATMENT.md` before drawing anything:+Write `TREATMENT.md` before drawing anything, and before you open the style's `DEMO.md` or demo code:-1. **Logline and arc**: one sentence, then setup → turn → ending.-2. **Benchmark**: learn / don't learn (section 2).-3. **Shot list**: for every shot, the framing (wide / full / medium / close / insert), angle, camera move (push, pull, pan, track, crane, zoom), duration, and **why** it is shot that way.-4. **Beat sheet**, second by second.-5. **Cue map**: tempo, bar grid, instrumentation per section, and on which beat every cut, key action and subtitle lands.-6. **Sound design table**: for each section, the ambience bed, the main foley and the music state.-7. **Subtitle and title design**: the type is part of the style.+1. **Three candidate structures**, a few lines each (for example: a single journey, a before/after, a countdown, a list that turns), then the one you chose and why. Choose the opening image, the ending and the shape of the score from the topic too; the first idea that comes to mind for a style is usually its cliché.+2. **Logline and arc**: one sentence, then setup → turn → ending.+3. **Benchmark**: learn / don't learn (section 2).+4. **Shot list**: for every shot, the framing (wide / full / medium / close / insert), angle, camera move (push, pull, pan, track, crane, zoom), duration, and **why** it is shot that way.+5. **Beat sheet**, second by second.+6. **Cue map**: tempo, bar grid, instrumentation per section, and on which beat every cut, key action and subtitle lands.+7. **Sound design table**: for each section, the ambience bed, the main foley and the music state.+8. **Subtitle and title design**: the type is part of the style.## 5. Prove the look@@ -61,9 +62,7 @@ Render them with the real drawing code, not a mock-up, and check them yourself a### The storyboard (only if the user asked for one)-Render 6–9 key shots with the real drawing code and tile them into one storyboard sheet (`core/render/sheet.py`), with the shot number, framing, duration and line or beat under each. Send it with the logline and the thing you are least sure about, and **wait for approval**. Changing direction here costs minutes; after the full render it costs hours.--If the user didn't ask for a storyboard, don't stop: go on to the finished film.+Render 6–9 key shots with the real drawing code, tiled into one sheet (`core/render/sheet.py`) with shot number, framing, duration and line under each. Send it with the logline and what you are least sure about, and **wait for approval**. If the user didn't ask for one, don't stop.## 6. Sound is half the film@@ -71,16 +70,16 @@ If the user didn't ask for a storyboard, don't stop: go on to the finished film.- **Three layers**: ambience (room, wind, rain, city), foley (tied to actions) and music. Duck the music under dialogue and key foley.- **At least two real silences**, or near-silences, before the turn or the emotional peak. The first sound after the silence should be one of the most important sounds in the film.- **Use sound as a transition** at least twice: bring the next scene's sound in early (J-cut) or let the last scene's sound run over the cut (L-cut).-- **Avoid generic "piano and strings".** Score in the instruments of the style: a big band for rubber-hose, taiko and shamisen for ukiyo-e, a silent-cinema upright for silent film.+- **Avoid generic "piano and strings".** Score in the instruments of the style's sound palette.## 7. Rhythm: the music grid comes first-- Write the cue map before animating. The picture locks to the grid, and a script checks every cue (see TECHNIQUE.md §3).+- Write the cue map before animating. The picture locks to the grid, and a script checks every cue (TECHNIQUE.md §3).- **Vary the pace**: alternate fast and slow, include one clear acceleration or deceleration, and give the audience one breath (a long take or a held pause). A film at one even speed has failed.- One action, one sound, one cut, but don't cut on every beat. Leave time to see.- **Pace for the viewer, not the clock**:- Hold every subtitle at least 1.8 s, and never shorter than the spoken line + 0.6 s.- - After text finishes animating in, hold it for roughly (letters ÷ 15 + 1.5) s in English, (characters ÷ 4.5 + 1.5) s in Chinese.+ - After text finishes animating in, hold it for roughly (letters ÷ 15 + 1.5) s in English, (characters ÷ 4.5 + 1.5) s in Chinese; `readcheck.mjs` checks this for you.- Hold a title card at least 4 s.- Give failures and gags enough time to be understood.- Fast is fine; make it fast with fewer words per screen, not by cutting before people finish reading.@@ -97,7 +96,7 @@ If the user didn't ask for a storyboard, don't stop: go on to the finished film.- **Anticipation, action, follow-through** on every meaningful move. Characters change emotion. They do not just slide across the screen.- **Motion continuity**, especially for characters built from code rigs:- Blend every pose with keyframes and easing; never switch poses inside an `if`. The only exception is a deliberate one-frame comic pop.- - Check shoulders and arms on a large action test sheet (reach, raise, run, kneel) before shooting.+ - Check shoulders and arms on a large action test sheet (reach, raise, run, kneel) before shooting (TECHNIQUE.md §10).- Held props sit **between the palms**, at a depth between the two arms. A hand-over interpolates from one palm to the other. A rolling object turns by distance ÷ radius.- Step through key actions at 0.2 s intervals, enlarged.- Check every expression at final size, especially eyebrow direction: "worried" and "angry" are one flip apart.@@ -109,18 +108,29 @@ If the user didn't ask for a storyboard, don't stop: go on to the finished film.- Subtitles covering the subject.- A gag or failure too fast to understand.- Blank frames in transitions.-- A timed effect (iris, zoom, follow cam) that doesn't track the subject after the camera moves. Write one world → screen function and use it everywhere; never type screen coordinates by hand.+- A timed effect (iris, zoom, follow cam) that doesn't track the subject after the camera moves (one world → screen function, TECHNIQUE.md §2).## 11. Before you deliver-- Watch the whole film once at full speed, then review contact sheets (one frame every 1–2 s) and 0.2 s strips of key actions.-- Voice: every line transcribes back correctly (speech-to-text check).+- Run the review loop (TECHNIQUE.md §8): contact sheets, 0.2 s strips of key actions, one full-speed viewing with sound.+- **Not the demo again.** After the treatment, read `DEMO.md` and compare: structure, opening, signature shot, camera path, score shape, ending. At least four of the six must differ; rethink the ones that match. Before delivery, put your contact sheet next to the demo poster (`styles/<slug>/poster.jpg`) as a last check.+- Voice: every line transcribes back correctly (speech-to-text check). For Chinese, one misheard character in a short line is normal: listen, and if it is right, let the check expect what the model heard (TECHNIQUE.md §4).- Loudness about −14 LUFS; no black frames, no NaN frames; subtitles in sync and not covering key action.- Every row of the sound design table is actually in the mix.-- **Deliver**: `<name>.mp4`, `<name>.srt`, `poster.jpg`, the `TREATMENT.md`, and the source with a one-command `build.sh`.+- No LemoLab sign-off: `grep -rniE "lemo ?lab|opus 5\.5" <project folder>` finds nothing outside `LICENSE` and `CREDITS`, and you have watched the last seconds of the film (text drawn into an image can't be grepped).++**Deliver**, in the project folder (the complete list):++- `<name>.mp4` (24 fps, about −14 LUFS) and `poster.jpg`;+- `<name>.srt`, when the film has narration, dialogue or subtitles;+- `TREATMENT.md`;+- `CREDITS`: every third-party asset in the film (sample libraries, music, fonts, images, the voice engine) with its source and licence (TECHNIQUE.md §11);+- the source, with a one-command `build.sh` (TECHNIQUE.md §2).++**Tell the user**, in their language: where the project folder and the film are; that `CREDITS` lists the third-party assets in the film and their licences; and that they are responsible for the materials they use in it.## 12. Copyright red lines- References teach grammar only. Don't copy characters, designs, melodies, shots, logos or type designs.-- No existing works, games, brands or events appear in the film unless the user owns them or has the right to use them.-- Assets: only CC0, CC BY or OFL, each listed in `CREDITS` with its source.+- No existing works, games, brands or events appear in the film unless the user owns them or has the right to use them. That includes the logos, photos and footage the user hands you: use them when they say they have the right, otherwise draw fictional stand-ins.+- Some of our demos are unofficial fan films of real events or characters. Keep the style, and never carry those names, marks or characters into a user's film.diff --git a/LICENSE b/LICENSEindex 3301c2f..5402a3a 100644--- a/LICENSE+++ b/LICENSE@@ -20,8 +20,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.-----The guides (DIRECTOR.md, TECHNIQUE.md, docs/), the styles/*/STYLE.md files and the-films are licensed under Creative Commons Attribution 4.0 (CC BY 4.0):-https://creativecommons.org/licenses/by/4.0/-Third-party assets keep their own licences; see each demo's CREDITS file.+Third-party assets in the demos (sample libraries, fonts, music, voices) keep their own+licences; see each demo's CREDITS. You are responsible for the materials you use in your+own films.diff --git a/MAINTAINING.md b/MAINTAINING.mdnew file mode 100644index 0000000..b2e9b17--- /dev/null+++ b/MAINTAINING.md@@ -0,0 +1,36 @@+# Maintaining the library++**For the repository owner only.** If you are making a film for a user, go back to [`AGENTS.md`](AGENTS.md): nothing here applies.++## Add a style++Work in `styles/<slug>/` (lowercase letters, digits, hyphens; unique). Start from the templates in `styles/_template/`.++| File | What it holds |+|---|---|+| `style.json` | the only metadata source: `slug`, `num`, `en`, `cn`, `category_en`, `category_cn`, `film`, `line`, `line_cn`, `uses`, `frame_sec`, `dur` |+| `STYLE.md` | the style's invariants only: look, materials and rendering, colour logic, type, motion, camera grammar, sound palette, the medium's pitfalls, native moves, range of variation. No story, arc, beat table, durations or end card. Ends with a link to `DEMO.md` |+| `DEMO.md` | opens with "One example among many. Don't reuse its story, arc, shots, props or timings." Then the demo's story and structure, shot list, score structure, palette and props, end card (the "LemoLab × Claude Opus 5.5" sign-off lives only here, as the library demo's), build notes and code entry points, and for a scene style the `content.json` fields |+| `demo/` | the source, a one-command `build.sh` and `CREDITS` are committed, for agents to read. `TREATMENT.md`, `PRODUCTION_LOG.md`, fonts, audio, textures and models stay local (gitignored); `CREDITS` names every asset so it can be found again |+| `demo/stills/` | stills the docs link (`styleframe.jpg` is the gallery card) |+| `<slug>.mp4`, `<slug>.srt`, `poster.jpg` | the 1080p film, its subtitles when it is spoken, its poster |++Assets are CC0, CC BY or OFL only, each in `demo/CREDITS`. No watermark on any film. Real people, brands and events appear only in an unofficial fan film; its `DEMO.md` says so.++## Gates++- **Human:** approve the style frame before production, and the finished film.+- **Machine:** `asr_check.py` passes on every line; loudness about −14 LUFS; `readcheck.mjs` passes; `python3 tools/release.py check --strict` is clean.++## Register and publish++1. `python3 styleboard/build.py` reads every `styles/*/style.json` and rewrites the gallery data, the README grid and counts, `styles/README.md` and the style list in `AGENTS.md`. Never edit those generated parts by hand. `--frames <slug>` makes the README grid frame at `frame_sec`; `sh styleboard/frames.sh` makes the gallery card images.+2. `sh tools/publish.sh` uploads the full films (`films` release) and the 720p web cuts (`web` release, used by the gallery), then verifies them. Per-demo resource packs are no longer published.+3. `git status --short`, `git add -A`, commit.+4. Push `main`, then watch CI (`gh run watch`): the gallery build fails when a card links a film that isn't on the `web` release.++Don't push before the upload has finished, and don't commit `tools/assets.json` from a failed run.++## Revise a style++Back up first (old versions move out of the repository, not into git). Re-render, replace `<slug>.mp4`, and run `sh tools/publish.sh`: it re-uploads the film and refreshes its web cut.diff --git a/README.md b/README.mdindex fdc0190..fc55df5 100644--- a/README.md+++ b/README.md@@ -2,8 +2,8 @@# Lemo-Opuscar-**43 film styles, each with a short film made entirely in code.**<br>-**43 种影片风格,每种都配一支完全用代码做出来的短片。**+**<!--n-->43<!--/n--> film styles, each with a short film made entirely in code.**<br>+**<!--n-->43<!--/n--> 种影片风格,每种都配一支完全用代码做出来的短片。**Pick a style, bring your own story, and let your coding agent direct the film.<br>选一个风格,带上你自己的故事,让你的编程 agent 来当导演。@@ -39,7 +39,7 @@ I'm **Lemomo** ([@lemomo-ai](https://github.com/lemomo-ai)). More about me on my>> **这不是一个 awesome 合集。** 这里所有的片子都是我自己用 Claude Opus 5.5 做的。风格是按 Opus 5.5 调出来的,换成其他模型不保证能做出同样的效果。-+Every film was directed, drawn, scored and mixed by an AI agent writing code: canvas and WebGL pages rendered frame by frame, original music from free sample libraries, local text-to-speech. No video generation, no stock footage.@@ -58,9 +58,9 @@ claude plugin marketplace add lemomo-ai/lemo-opuscarclaude plugin install lemo-opuscar@lemolab```-Then use it from any folder. On first use it downloads the guides, tools and style prompts (about 60 MB) to `~/lemo-opuscar`, shared by all your films. Each film's project, from source to finished video, goes in the folder you started from. For other agents, copy [`plugin/skills/lemo-opuscar/`](plugin/skills/lemo-opuscar/) into their skills folder.+Then use it from any folder. On first use it downloads the guides, tools and style prompts (about 35 MB) to `~/lemo-opuscar`, shared by all your films. Each film's project, from source to finished video, goes in the folder you started from. For other agents, copy [`plugin/skills/lemo-opuscar/`](plugin/skills/lemo-opuscar/) into their skills folder.-之后在任何目录都能用。第一次使用时,它会把指南、工具和风格提示词(约 60 MB)下载到 `~/lemo-opuscar`,所有片子共用这一份;每支片子的工程,从源码到成片,都放在你发起时所在的文件夹里。其他 agent 可以把 [`plugin/skills/lemo-opuscar/`](plugin/skills/lemo-opuscar/) 复制到它们的 skills 目录。+之后在任何目录都能用。第一次使用时,它会把指南、工具和风格提示词(约 35 MB)下载到 `~/lemo-opuscar`,所有片子共用这一份;每支片子的工程,从源码到成片,都放在你发起时所在的文件夹里。其他 agent 可以把 [`plugin/skills/lemo-opuscar/`](plugin/skills/lemo-opuscar/) 复制到它们的 skills 目录。### Option 2: clone the repo · 方式二:clone 仓库@@ -90,12 +90,17 @@ The agent reads three guides and works like a small studio · agent 会读三份| File · 文件 | What it gives the agent · 给 agent 的东西 ||---|---|-| [`DIRECTOR.md`](DIRECTOR.md) · [中文](docs/zh-CN/DIRECTOR.md) | how to direct: story, sound, rhythm, camera, performance, self-checks<br>怎么导:故事、声音、节奏、镜头、表演、自检 |-| [`TECHNIQUE.md`](TECHNIQUE.md) · [中文](docs/zh-CN/TECHNIQUE.md) | how to build: frame-by-frame rendering, voice, music, mixing<br>怎么做:逐帧渲染、配音、配乐、混音 |-| `styles/<style>/STYLE.md` | what the style looks and sounds like, and how our demo was made<br>这个风格长什么样、听起来什么样,以及样片是怎么做的 |+| [`DIRECTOR.md`](DIRECTOR.md) | how to direct: story, sound, rhythm, camera, performance, self-checks<br>怎么导:故事、声音、节奏、镜头、表演、自检 |+| [`TECHNIQUE.md`](TECHNIQUE.md) | how to build: frame-by-frame rendering, voice, music, mixing<br>怎么做:逐帧渲染、配音、配乐、混音 |+| `styles/<style>/STYLE.md` | what the style looks and sounds like; the story is yours<br>这个风格长什么样、听起来什么样;故事由你定 |-**Good to know · 提前知道**: a film takes an agent about 30–60 minutes and a fair amount of tokens. You need Node 20+, ffmpeg and Python 3.11+; the agent installs the packages and the headless browser it renders with. Big assets (voice model, sample libraries) download only when a step needs them.<br>-一支片子 agent 大约要工作 30–60 分钟,token 用量不小。需要 Node 20+、ffmpeg 和 Python 3.11+,依赖包和渲染用的无头浏览器由 agent 自己安装;配音模型、采样库这类大文件用到时才下载。+### Before you start · 开始之前++- A film takes an agent about 30–60 minutes and a fair amount of tokens. · 一支片子 agent 大约要做 30–60 分钟,token 用量不小。+- You need Node 20+, ffmpeg and Python 3.11+ (or [uv](https://docs.astral.sh/uv/)); the agent installs the rest. · 需要 Node 20+、ffmpeg 和 Python 3.11+(或 uv),其余由 agent 安装。+- Disk: about 350 MB for the core tools, more only when a film needs a voice or sampled instruments. Default output 1920×1080, 24 fps; other sizes on request. · 磁盘:核心工具约 350 MB,片子需要配音或采样乐器时才再下载。默认 1920×1080、24 fps,其他尺寸可以指定。++Update the skill with `claude plugin update lemo-opuscar@lemolab`; uninstall with `claude plugin uninstall lemo-opuscar@lemolab` and delete `~/lemo-opuscar`. If a step stays stuck, [open an issue](https://github.com/lemomo-ai/lemo-opuscar/issues). · 更新:`claude plugin update lemo-opuscar@lemolab`;卸载:`claude plugin uninstall lemo-opuscar@lemolab` 并删除 `~/lemo-opuscar`。一直卡住就[提个 issue](https://github.com/lemomo-ai/lemo-opuscar/issues)。## The styles · 风格@@ -230,8 +235,7 @@ Click a frame for its `STYLE.md` · 点图片看它的 `STYLE.md`。</table><!-- styles:end -->-## Credits and licence · 署名与授权--Made by **LemoLab × Claude Opus 5.5**. Code is MIT; the guides, `STYLE.md` files and films are CC BY 4.0. Third-party samples, fonts and music keep their own licences (CC0, CC BY, OFL), listed in each demo's `CREDITS`.+## Licence · 授权-**LemoLab × Claude Opus 5.5** 出品。代码采用 MIT;指南、`STYLE.md` 和成片采用 CC BY 4.0。第三方采样、字体、音乐沿用各自的授权(CC0、CC BY、OFL),逐条列在每个样片的 `CREDITS` 里。+Made by **LemoLab × Claude Opus 5.5**. MIT licensed. Third-party assets in the demos keep their own licences (see each demo's `CREDITS`); you are responsible for the materials you use in your films.<br>+**LemoLab × Claude Opus 5.5** 出品,MIT 协议。样片中的第三方素材沿用各自的授权(见各样片的 `CREDITS`);你在自己片子里使用的素材由你负责。diff --git a/TECHNIQUE.md b/TECHNIQUE.mdindex 687e573..30fd18d 100644--- a/TECHNIQUE.md+++ b/TECHNIQUE.md@@ -1,6 +1,6 @@# Technique: how the films are built-Every film in this library is made from code: no video generation, no stock footage. This page explains the pipeline, so you can reproduce it with our tools in `core/` or rebuild it in your own stack. Pair it with [`DIRECTOR.md`](DIRECTOR.md) and one `styles/<slug>/STYLE.md`. 中文版:[docs/zh-CN/TECHNIQUE.md](docs/zh-CN/TECHNIQUE.md)+Every film here is made from code: no video generation, no stock footage. This page explains the pipeline, to reproduce with our tools in `core/` or in your own stack. Pair it with [`DIRECTOR.md`](DIRECTOR.md) and one `styles/<slug>/STYLE.md`. Every command and flag is in [`core/README.md`](core/README.md).```timeline (single source of truth)@@ -12,52 +12,72 @@ timeline (single source of truth)mix (duck, compress, balance) ──► mux with ffmpeg, two-pass loudnorm −14 LUFS ──► film.mp4```-## 1. Requirements+## 1. Requirements and install-| Tool | Used for |-|---|---|-| Node 20+ | page rendering: `npm install` pulls `playwright-core` and `three`, then `npx playwright-core install chromium-headless-shell` fetches the headless browser |-| ffmpeg | encoding, muxing, loudness, black-frame checks |-| Python 3.11+ (we use [uv](https://docs.astral.sh/uv/)) | `uv venv && uv pip install -r requirements.txt` (numpy, scipy, soundfile, soxr, librosa, pillow, kokoro-onnx, edge-tts, faster-whisper) |+System tools, which the user installs: **Node 20+**, **ffmpeg**, and **Python 3.11+** or [uv](https://docs.astral.sh/uv/). Developed on macOS (Apple silicon); Linux should work; on Windows use WSL. 3D and shader-heavy styles want a GPU.-Large assets are not in git. Fetch them when a step needs them:+Everything else installs in tiers, from the library root (`$LIB` in skill mode). Install a tier only when the film needs it:-```sh-sh tools/fetch.sh voice # Kokoro TTS model (~340 MB) → core/tts/-sh tools/fetch.sh instruments # CC0 / CC BY sample libraries (~1.35 GB) → core/audio/instruments/-sh tools/fetch.sh hdri # Poly Haven HDRIs for 3D styles → core/assets/polyhaven/-```+| Command | Adds | Size |+|---|---|---|+| `sh plugin/skills/lemo-opuscar/scripts/setup.sh deps` | core: npm packages, headless browser, Python `.venv` (numpy, scipy, soundfile, soxr, pillow): render, synthesize sound, mux | ~350 MB |+| `… setup.sh deps voice` | Kokoro + model (English, offline), edge-tts (Chinese, online), faster-whisper (voice check) | ~0.55 GB + ~145 MB Whisper model on first check |+| `… setup.sh deps music` | numba, for plucked strings (`pluck.py`); the sampler itself needs only the core | ~140 MB |+| `sh tools/fetch.sh instruments <lib>` | a sample library: `freepats`, `karoryfer`, `salamander`, `vcsl`, `vsco2ce` or `all` | 70–400 MB each |+| `sh tools/fetch.sh hdri` | HDRIs for 3D styles | 12 MB |++A synthesized score needs no big download; `sampler.py` names the library to fetch when an instrument is missing. A pack needs about twice its size free while it unpacks. Downloads come from npm, PyPI, GitHub Releases and Hugging Face (`HF_ENDPOINT` sets a mirror).## 2. The picture is a function of time-Each film is a static web page that exposes:+Each film is a folder with an `index.html` (`<demo>` in the commands) that exposes:```jswindow.DUR = 54.2; // secondswindow.render = (t) => { ... }; // draw the frame at time t, deterministicwindow.READY = true; // set once fonts and images are loadedwindow.EV = [{t, type, ...}]; // optional: sound / cue events for the mixer+window.TEXTS = (t) => [{id, text, x0, y0, x1, y1}]; // optional: every text visible at t, for readcheck+```++**Paths:** pages reach library files with absolute URLs (`/core/lib.js`, `/node_modules/three/build/three.module.js`); scripts and `build.sh` use `$LIB`. Never `../..`.++A `build.sh` that works in both modes (in skill mode, put `LIB=<path setup.sh printed>` at the top):++```sh+#!/bin/sh+set -e+HERE=$(cd "$(dirname "$0")" && pwd)+LIB=${LIB:-$(cd "$HERE/../.." && pwd)} # clone mode: <repo>/films/<name>/+export LIB+[ -f "$LIB/core/render/video.mjs" ] || { echo "set LIB to the library folder"; exit 1; }+cd "$LIB"+node core/render/events.mjs "$HERE"+node core/render/video.mjs "$HERE" --fps 24 --out "$HERE/out/video.mp4"+"$LIB/.venv/bin/python" "$HERE/mix.py" # score, foley, voice → out/mix.wav+sh core/render/mux.sh "$HERE/out/video.mp4" "$HERE/out/mix.wav" "$HERE/<name>.mp4" 24```Rules that keep it reliable:- **Deterministic.** No `Date.now()`, no `Math.random()` without a seed (`core/lib.js` has `mulberry` and `hash`), no state carried from the previous frame. Any frame can be rendered alone, in any order, by any worker.-- **Canvas 2D** covers most 2D styles; **three.js** for 3D (`core/three/post.js`: physical depth of field, GTAO, bloom, colour grade, 2× supersampling); **WebGL2** shaders for post passes (film damage, CRT, ink redraw).+- **Canvas 2D** for most 2D styles; **three.js** for 3D (§9); **WebGL2** shaders for post passes (film damage, CRT, ink redraw).- **Animate on twos where the style wants it** (12 fps stepping for stop-motion, pixel or cel looks), but keep the camera and light smooth every frame. A stepped camera reads as lag.- **One world → screen function.** Any effect that follows a subject (iris, zoom, spotlight) goes through it. Never hand-type screen coordinates.+- **Draw for the frame you render.** The default is 1920×1080; for another size pass `--size WxH` (e.g. `1080x1920`) to every render tool and lay the page out from `innerWidth` × `innerHeight`.Capture (`core/render/`):```shnode core/render/still.mjs <demo> 1.5 12 --range 0:50:2 # review stills; exits on page errors-node core/render/video.mjs <demo> --fps 24 --workers 3 # all frames → out/video24.mp4+node core/render/video.mjs <demo> --fps 24 --workers 3 # all frames → <demo>/out/video.mp4node core/render/events.mjs <demo> # export DUR + EV → events.jsonnode core/render/readcheck.mjs <demo> # every on-screen text stays long enough to read```-`video.mjs` renders at most three films at once on one machine and queues the rest, and it keeps its segments next to `--out`, so you can render a second version of the same demo in parallel. To render a version with other content, pass it to the page: `--q 'content=content_alt.json'` (the same flag works for `events.mjs`, with `--out` so the main event file is kept).+To render a second version with other content, pass it to the page and give it its own output: `--q 'content=content_alt.json' --out …/alt.mp4` (the same for `events.mjs`).-What made capture fast: **JPEG screenshots** (about 8× faster than PNG), **one browser per worker** (pages sharing a browser barely parallelise), and **film grain added in ffmpeg**, not drawn in the page: grain makes every frame incompressible and slow.+Capture is fast because of **JPEG screenshots**, **one browser per worker** and **grain added in ffmpeg**: grain drawn in the page makes every frame incompressible and slow.## 3. One timeline drives everything@@ -68,41 +88,40 @@ export const SECS = [{ id: 'chase', t: 12.0, bpm: 144, beats: 12 }, ...];export const HIT = { pratfall: ['chase', 6], ... }; // section + beat```-A small script (`tools/cuecheck.py` in several demos) compares every visual hit with the music cue it should land on. Aim for 0 ms.+A small script (`cuecheck.py`, in `styles/<slug>/demo/tools/` of several demos) compares every visual hit with the music cue it should land on. Aim for 0 ms.## 4. Voice- **TTS is only the default.** If the user brings a recording or names a voice, use that. Otherwise:- - **English**: [Kokoro](https://github.com/thewh1teagle/kokoro-onnx) runs locally with good voices (`af_heart`, `bm_george`, `am_michael`, and others). `core/tts/tts.py lines.json out/` writes one WAV per line and a durations file.- - **Chinese**: [edge-tts](https://github.com/rany2/edge-tts) with Microsoft's neural voices (`zh-CN-XiaoxiaoNeural`, `zh-CN-YunxiNeural`, and others). It needs a network connection. `styles/paper-lantern/demo/tts.py` shows per-line rate and silence trimming. Check Microsoft's terms before using the audio commercially.+ - **English**: [Kokoro](https://github.com/thewh1teagle/kokoro-onnx), local, many voices (an unknown `voice` name makes `tts.py` print the full list; `af_` / `am_` are American, `bf_` / `bm_` British; cast the narrator for this film, not the demo's). `core/tts/tts.py lines.json out/` writes one WAV per line and a durations file. Its Chinese voices (`"lang": "cmn"`) work offline but sound plain.+ - **Chinese**: `core/tts/tts_zh.py lines.json out/` uses [edge-tts](https://github.com/rany2/edge-tts) with Microsoft's neural voices (`zh-CN-XiaoxiaoNeural`, `zh-CN-YunxiNeural`…), with the same outputs as `tts.py`, a rate per line and the silence trimmed. **It needs a network connection.**- Spell numbers out in the TTS text and write them as digits in the subtitles.-- **Check every line**: `core/tts/asr_check.py` transcribes each WAV with faster-whisper and compares it with the script. Re-generate until every line passes. It also writes word timestamps, which you use to place lines and subtitles.+- **Check every line**: `core/tts/asr_check.py` transcribes each WAV with faster-whisper and compares it with the script (`--lang zh`: character by character); re-generate until it exits 0. A misheard character in a short Chinese line is normal: listen, and if it is right, put what the model heard in the line's `asr` field. It also writes word timestamps for placing lines and subtitles.- **Before mixing**: TTS has a high peak-to-average ratio. Compress the voice first, then balance by RMS: voice about 10 dB above the music.## 5. Music-Write an original score from the cue map. Don't reach for generic piano and strings; each style has its own band (see `STYLE.md` §6).+Write an original score from the cue map, in the instruments of the style's sound palette; no generic piano and strings.-- **Samples**: `core/audio/sampler.py` plays real instruments from free libraries: [VSCO 2 CE](https://github.com/sgossner/VSCO-2-CE) and [VCSL](https://github.com/sgossner/VCSL) (CC0), [FreePats](https://freepats.zenvoid.org) (CC0), [Karoryfer](https://github.com/sfzinstruments) (CC0), Salamander Grand Piano (CC BY 3.0), MuldjordKit drums (CC BY 4.0). Write the score as events `(time, instrument, pitch, duration, velocity, pan)`. Long notes are extended seamlessly, and round-robins avoid the machine-gun effect. The full list is in `core/audio/INSTRUMENTS.md`.+- **Samples**: `core/audio/sampler.py` plays real instruments from free libraries (VSCO 2 CE, VCSL, FreePats, Karoryfer, Salamander Grand Piano; list and licences in `core/audio/INSTRUMENTS.md`). Write the score as events `(time, instrument, pitch, duration, velocity, pan)`. Long notes are extended seamlessly, and round-robins avoid the machine-gun effect.- **Plucked and folk strings** (guqin, pipa, shamisen, banjo…): `core/audio/pluck.py`, physical modelling (Karplus–Strong) with bends and vibrato.-- **Synthesis** with numpy for chip tunes, drones and effects.+- **Synthesis** with numpy for chip tunes, drones and effects; no download needed.- **Balance the low end.** Synthetic scores get bass-heavy quickly. Measure energy per band after mixing; keep 20–120 Hz around −3 dB relative to the rest, skip pad notes below MIDI 48, and give the bass some 2nd and 3rd harmonics so it speaks on small speakers.## 6. Sound effects and mix- `core/audio/sfx.py` synthesises foley procedurally (click, whoosh, thump, ding, paper, noise beds…) with filters, envelopes and `add(buffer, sound, at, gain, pan)`. Drive it from `window.EV`, so every sound sits exactly on its frame.-- Three layers: ambience, foley, music. Duck the music under voice and key foley. Plan the silences.-- **Master**: `sh core/render/mux.sh video.mp4 mix.wav out.mp4 24 [grain]` muxes, runs a two-pass loudnorm to −14 LUFS with a true-peak limit, adds grain in ffmpeg, and prints the measured loudness. On light backgrounds use less grain.+- **Master**: `sh core/render/mux.sh video.mp4 mix.wav out.mp4 24 [grain]` muxes, runs a two-pass loudnorm to −14 LUFS with a true-peak limit, adds grain in ffmpeg and prints the measured loudness; it exits non-zero on any failure. On light backgrounds use less grain; for pixel and vector styles, none.- Films with grain baked into the picture compress badly; re-encode with `-tune grain` and a higher CRF.## 7. Subtitles- Export `.srt` with `core/render/srt.py cues.json out.srt` (cues = `[{t0, t1, text}]`), and burn styled captions into the page itself: the caption design is part of the style.-- Timing rules are in DIRECTOR.md §7 (minimum 1.8 s, line + 0.6 s).+- Timing rules are in DIRECTOR.md §7.## 8. Review loop-1. Contact sheets: render a frame every 1–2 s with `still.mjs --range`, then tile them with `core/render/sheet.py`. Do at least two full passes.+1. Contact sheets: a frame every 1–2 s with `still.mjs --range`, tiled with `core/render/sheet.py`. At least two full passes.2. Frame strips at 0.2 s for every key action: hand-overs, falls, hits.3. On the final file: `ffmpeg -af ebur128` (loudness), `blackdetect` (blank frames), whisper again on the final mix if it has voice.4. Watch it once, at full speed, with sound.@@ -111,18 +130,19 @@ Write an original score from the cue map. Don't reach for generic piano and stri- three.js r170 rendered headless through WebGL2 on the GPU; physical depth of field and GTAO from `core/three/post.js`, rendered at 2× and downsampled.- Lighting: soft area lights plus a Poly Haven HDRI at low intensity reads more "real" than bright ambient light.-- The orthographic camera needs `orthographicDepthToViewZ` for depth effects (the perspective version silently breaks DOF).+- `core/three/post.js` is written for a perspective camera. For an orthographic camera swap `perspectiveDepthToViewZ` for `orthographicDepthToViewZ` in its depth pass, or the depth of field silently breaks.## 10. Characters drawn in code-- A 2.5D rig (torso, head, limbs solved per frame) is enough for pantomime. Blend poses with keyframes and easing.+- A 2.5D rig (torso, head, limbs solved per frame) is enough for pantomime.- Order the shoulder rotation as abduction, then flexion; the reverse order crosses raised arms into an X.- Let the shoulder girdle rise and move forward as the arm lifts, and don't outline the part of the arm that overlaps the torso: that line is what makes a joint look like a puppet seam.-- Draw an action test sheet (reach, raise, run, kneel) at large size before animating shots.-## 11. Assets and credits+## 11. Assets, credits and fonts++Only CC0, CC BY or OFL material, each listed in the film's `CREDITS` with its source and licence; `core/audio/sampler.py credits(names)` writes the lines for the instruments you used.-Only CC0, CC BY or OFL material, each listed in the film's `CREDITS` file with its source and licence. `core/audio/sampler.py credits(names)` writes the lines required for the instruments you used. Fonts: Google Fonts (OFL), self-hosted in the project and subset for CJK.+Fonts: Google Fonts (OFL), self-hosted in the project. The typefaces a `STYLE.md` names are not in the library; download them (`https://github.com/google/fonts/tree/main/ofl/<family>`) into the project's `fonts/`. `core/fonts/` holds a few Latin display fonts and a Chinese display font with only about 200 glyphs, not enough for running Chinese text. For Chinese, subset a CJK font to the characters you use: the Google Fonts CSS API with `&text=` returns just those glyphs (`https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@700&text=<URL-encoded characters>`). Download the font file it points to into the project's `fonts/` and load it with `@font-face`; don't link Google Fonts at render time.## 12. Where to look in our demos@@ -135,4 +155,4 @@ Only CC0, CC BY or OFL material, each listed in the film's `CREDITS` file with i| 3D with depth of field and real materials | `styles/brick-toy/`, `styles/paper-popup/` || a CRT or VHS look | `core/post/crt.js`, `styles/ascii-crt/`, `styles/backrooms/` |-Each style's `STYLE.md` §9 shows how its demo was built. Treat our demos as reference implementations: read them to see how a technique works, then write your own film. They are not kits for rebuilding our films.+Each style's `DEMO.md` says how its demo was built. Open it and the code only after your treatment exists, to learn a technique, never to rebuild our film. In skill mode, get the source with `sh <skill folder>/scripts/setup.sh demo <slug>`. Copied demo code often reaches the library with `../..`: replace that with `$LIB` or absolute URLs.diff --git a/core/README.md b/core/README.mdindex 9446f9d..d54697f 100644--- a/core/README.md+++ b/core/README.md@@ -1,45 +1,89 @@-# core/ · 共用制作管线+# core/: the shared production tools-所有命令在仓库根目录运行;Python 用 `.venv/bin/python`(共享环境,**不要往里装包**)。+Command reference for `core/` and `tools/`. How the pieces fit together is in [`TECHNIQUE.md`](../TECHNIQUE.md). Run commands from the library root (`$LIB` in skill mode); Python is the library's `.venv/bin/python`. `<demo>` is any folder with an `index.html`.-## 页面约定-demo 是一个静态页面 `styles/<slug>/demo/index.html`(仓库根作为静态服务根,可引用 `/core/...`、`/node_modules/three/...`),页面必须暴露:-- `window.READY = true`(资源加载完)-- `window.render(t)`:画出第 t 秒的画面(确定性,不依赖真实时间)-- `window.DUR`:总时长(秒)-- 可选 `window.EV = [{t, type, ...}]`:音效/对白/配乐 cue 事件,`events.mjs` 导出给混音脚本+## Install-## 渲染-| 命令 | 作用 |+| Command | What it does ||---|---|-| `node core/render/still.mjs <demo> 1.5 3 [--range 0:50:2.5] [--q 'k=v'] [--prefix t_] [--out dir]` | 渲静帧;页面报错立即退出 |-| `node core/render/video.mjs <demo> --fps 24 [--workers 3] [--q 'k=v'] [--out <demo>/out/video24.mp4]` | 逐帧渲视频。多片并行时 workers 保持 3。整机最多 3 个整片同时渲染(超出自动排队);分段文件放在 `--out` 旁的临时目录,渲完删除,同一个 demo 可以并行渲多个版本(例如换内容版用 `--q 'content=content_alt.json'`) |-| `node core/render/events.mjs <demo> [--q 'content=content_alt.json'] [--out <file>]` | 导出 `<demo>/events.json`(dur + EV);换内容时 `--q` 传参给页面、`--out` 另存,不覆盖主片的事件表 |-| `node core/render/readcheck.mjs <demo> [--q 'k=v'] [--cps 12] [--min 1.5]` | 阅读时长自检:页面提供 `window.TEXTS(t)` → `[{id, text, x0, y0, x1, y1}]`(屏幕像素),每段文字从出现起连续完整在画的时长要 ≥ 字符数 / 12 + 1 s(且 ≥ 1.5 s);有不达标的退出码为 1 |-| `node core/render/slot.mjs -- <command…>` | 整机渲染限流(`video.mjs` 已自动使用):最多 `RENDER_SLOTS`(默认 3)个整片同时渲染,空闲内存低于 `RENDER_MIN_FREE`%(默认 30)时排队 |-| `.venv/bin/python core/render/sheet.py out.jpg img... [--cols 4] [--w 480]` | 缩略图总览(审片) |-| `.venv/bin/python core/render/srt.py cues.json out.srt` | 字幕导出(cues = [{t0,t1,text}]) |-| `sh core/render/mux.sh video.mp4 mix.wav out.mp4 24 [grain]` | 合成成片:两遍 loudnorm −14 LUFS;grain 默认 2,0 = 不加颗粒;结尾打印 ebur128 实测 |--## 音频-| 文件 | 作用 |+| `sh plugin/skills/lemo-opuscar/scripts/setup.sh` | find, clone or update the library; prints `LIB=<path>` |+| `… setup.sh deps` | core tier: npm packages, headless browser, `.venv` from `requirements.txt` |+| `… setup.sh deps voice` | adds `requirements-voice.txt` (kokoro-onnx, edge-tts, faster-whisper) and the Kokoro model |+| `… setup.sh deps music` | adds `requirements-music.txt` (numba, for `pluck.py`; `sampler.py` needs only the core) |+| `… setup.sh demo <slug>` | adds one style's demo source and poster (to read, not to render) |+| `sh tools/fetch.sh voice` \| `hdri` \| `instruments <lib>` \| `instruments all` | Kokoro model · HDRIs · a sample library (`freepats`, `karoryfer`, `salamander`, `vcsl`, `vsco2ce`) |++Sizes are in TECHNIQUE.md §1.++## The page contract++| Global | Required | Meaning |+|---|---|---|+| `window.READY = true` | yes | set once fonts and images are loaded |+| `window.render(t)` | yes | draw the frame at second `t`; deterministic |+| `window.DUR` | video, events, readcheck | film length in seconds |+| `window.EV = [{t, type, …}]` | no | sound and cue events, exported by `events.mjs` |+| `window.TEXTS(t)` | readcheck | `[{id, text, x0, y0, x1, y1}]`: every on-screen text visible at `t`, with its box in pixels. Report an element's **full** text from its first visible frame (a typewriter that reports only the typed letters fails the check) |++The viewport is 1920×1080 at device scale 1, or `--size WxH`. `--q 'k=v&…'` reaches the page as `location.search`. A page error, or an HTTP error on a script, module or the page, stops the tool (exit 1). Other missing files (fetch, images, fonts) print `optional file missing: <URL>` and the tool carries on. The tools wait up to 180 s for `window.READY`.++## Render++| Command | What it does |+|---|---|+| `node core/render/still.mjs <demo> <t> [<t> …] [--range a:b:step] [--prefix t_] [--out dir]` | review stills as JPEGs (default `<demo>/stills/t_<t>.jpg`) |+| `node core/render/video.mjs <demo> [--fps 24] [--workers 3] [--out <demo>/out/video.mp4]` | every frame to a video; up to 6 workers for a single render. Each parallel version needs its own `--out` |+| `node core/render/events.mjs <demo> [--out <file>]` | export `{dur, ev}` to `<demo>/events.json` |+| `node core/render/readcheck.mjs <demo> [--step 0.04] [--latin-cps 15] [--cjk-cps 4.5] [--pad 1.5] [--min 1.5]` | reading-time check (below) |+| `.venv/bin/python core/render/sheet.py out.jpg img… [--cols 4] [--w 480]` | contact sheet |+| `.venv/bin/python core/render/srt.py cues.json out.srt` | subtitles from `[{t0, t1, text}]` |+| `sh core/render/mux.sh video.mp4 mix.wav out.mp4 [fps=24] [grain=2]` | mux and master (below) |++All four page tools take `--size WxH` (default `1920x1080`, even numbers) and `--q 'k=v'`.++**readcheck** asks the page for `window.TEXTS(t)` at every step. Each text must stay fully in frame, unchanged, for at least CJK characters ÷ 4.5 + other non-space characters ÷ 15 + 1.5 s, and never less than `--min`. A new `text` under the same `id` starts a new piece. Subtitles are checked by their `.srt`, not here.++**mux** runs a two-pass `loudnorm` to −14 LUFS / true peak −1.2 dB, adds film grain (`grain` 0 = none) and prints the measured loudness. Silent audio is left at its level with a warning; short audio is padded, long audio cut at the picture's end; missing, damaged or truncated audio is refused. It never leaves a partial file.++## Audio++| Command | What it does ||---|---|-| `core/tts/tts.py lines.json out_dir` | Kokoro 英文配音(`voice`、`speed`),输出 wav + dur.json |-| `core/tts/asr_check.py lines.json voices_dir` | whisper 逐句校对(补静音、`asr` 字段覆盖期望文本),输出 words.json 逐词时间戳 |-| `core/audio/sfx.py` | 程序化音效与混音工具:滤波、包络、click/whoosh/thump/ding…、`compress`、`limit`、`add(buf, x, at, gain, pan)` |-| `core/audio/sampler.py`、`pluck.py` | 采样乐器 + 物理建模拨弦(见 `core/audio/INSTRUMENTS.md`,最后一行 `STATUS: READY` 才可用) |+| `.venv/bin/python core/tts/tts.py lines.json out_dir` | Kokoro, offline. `lines.json` = `[{id, text, voice?, speed?, lang?}]` (defaults `af_bella`, `0.92`, `en-us`; Chinese: `"lang": "cmn"`, a `zf_*`/`zm_*` voice). Writes `<id>.wav` (24 kHz, trimmed) and `dur.json`. Needs a library path under 160 bytes (espeak-ng); it checks |+| `.venv/bin/python core/tts/tts_zh.py lines.json out_dir [--voice zh-CN-XiaoxiaoNeural] [--rate +0%] [--pitch +0Hz]` | edge-tts (Microsoft), online; same outputs as `tts.py`. Per line: `voice`, `rate`, `pitch`, `say` (what is spoken when it differs from `text`). Caches in `out_dir/.cache/`. Voices: `.venv/bin/python -m edge_tts --list-voices` |+| `.venv/bin/python core/tts/asr_check.py lines.json voices_dir [--lang en\|zh\|auto] [--threshold 0.92] [--model base]` | speech-to-text check of every `<id>.wav`; writes `words.json` (word timestamps). English must match word for word (0–999 count the same as their words); Chinese, Japanese, Korean compare by character similarity ≥ `--threshold`. An `asr` field in a line overrides the expected text (names, decimals, times: write it as Whisper does) |+| `core/audio/sfx.py` | procedural foley and mix helpers: filters, envelopes, `click`, `whoosh`, `thump`, `ding`…, `compress`, `limit`, `add(buf, sound, at, gain, pan)` |+| `core/audio/sampler.py`, `core/audio/pluck.py` | sampled instruments and plucked-string modelling ([`audio/INSTRUMENTS.md`](audio/INSTRUMENTS.md)). A missing library is named in the error with its `fetch.sh instruments <lib>` command. `credits(names)` writes the CREDITS lines |-## 画面-| 文件 | 作用 |+## Picture helpers++| File | What it is ||---|---|-| `core/lib.js` | 确定性随机 `mulberry`、`hash`、`vnoise`、缓动(ss/eio/eo/back/spring)、单调三次插值 `monotone`/`track`、包络 `env` |-| `core/three/post.js` | three.js 后期:物理景深、GTAO、辉光、调色、2× 超采样(见 brick-toy) |-| `core/post/crt.js` | WebGL2 CRT/录像带后期(扫描线、光栅、色度渗色、荧光辉光、开机、跟踪噪声),2D 画布输入 |-| `core/fonts/` | Fredoka、ZCOOL KuaiLe;其它字体自行下载 OFL 字体放进自己的 demo/fonts/ |-| `core/assets/polyhaven/` | CC0 HDRI、胡桃木桌面、台灯、茶具(见 SOURCES.md) |--## 参考实现-- `styles/brick-toy/`:3D(three.js)+ 物理 + 景深,STYLE.md 是标准格式-- `styles/scifi-toon/`:2D 矢量卡通、角色口型、原创配乐-- `styles/cel-anime-80s/`:2D 赛璐璐、角色设定表流程、CRT 后期、配乐 fork 子 agent-- 三者 `STYLE.md` 的 §8 记录了踩过的坑,开工前读+| `core/lib.js` | seeded random `mulberry`, `hash`, `vnoise`, `clamp(x,a,b)`, `lerp(a,b,t)`, `seg(t,a,b)` (0→1 between a and b), easing on 0–1 (`ss(t)`, `eio(t)`, `eo(t)`, `ei(t)`, `back(t,s)`, `spring(t,k,z)`), `monotone`/`track` interpolation, envelope `env` |+| `core/three/post.js` | three.js post: physical depth of field, GTAO, bloom, colour grade, 2× supersampling |+| `core/post/crt.js` | WebGL2 CRT / VHS pass over a 2D canvas |+| `core/fonts/` | Fredoka, Lilita One, IM Fell English, ZCOOL KuaiLe (OFL, [`fonts/OFL.md`](fonts/OFL.md)) as subsets; ZCOOL holds only ≈ 200 characters |+| `core/assets/polyhaven/` | CC0 HDRIs and models (`SOURCES.md`) |++## Environment variables++| Variable | Meaning |+|---|---|+| `LEMO_OPUSCAR_HOME` | where `setup.sh` keeps the library (default `~/lemo-opuscar`) |+| `PLAYWRIGHT_CHROME` | a Chrome / headless-shell executable instead of Playwright's |+| `LEMO_ANGLE` | WebGL backend (default `metal` on macOS; `default` passes none) |+| `RENDER_SLOTS` | optional; limits concurrent full renders across processes |+| `LEMO_COLOR=bt709` | `mux.sh` writes limited-range BT.709 instead of the default full-range output |+| `WHISPER_MODEL` | Whisper model name or local folder for `asr_check.py` (same as `--model`; default `base.en` for English, `base` otherwise; `small` is more accurate for Chinese) |+| `HF_ENDPOINT` | Hugging Face mirror for the Whisper download |++## Exit codes++| Tool | 0 | 1 | 2 |+|---|---|---|---|+| render tools | done | page error, missing required file, ffmpeg failure | usage, no `index.html`, `--out` already being written |+| `readcheck.mjs` | all texts long enough | some too short or never fully visible | could not check (no `TEXTS`) |+| `mux.sh` | film written | any failure | – |+| `tts.py`, `srt.py` | done | bad input, missing model, path too long | usage |+| `tts_zh.py` | done | bad input | network unreachable |+| `asr_check.py` | all lines pass | mismatches | model failed to load |diff --git a/core/audio/INSTRUMENTS.md b/core/audio/INSTRUMENTS.mdindex ffc00f7..cb497c4 100644--- a/core/audio/INSTRUMENTS.md+++ b/core/audio/INSTRUMENTS.md@@ -3,9 +3,9 @@给 Lemo-Opuscar 各风格短片写**原创配乐**用。全部 numpy/soxr 离线合成,**48 kHz**,和 `sfx.py` 同一套约定(`SR`、`add()`、`limit()`)。目标是"听起来像真乐器":能用采样就用采样(97 件,真人录音),采样库里没有的民族拨弦(古琴、琵琶、三味线……)用物理建模补上(11 个预设)。-- 试听:`core/audio/demo_instruments.wav`(85 秒,按"弦乐 → 木管 → 铜管 → 色彩打击 → 键盘 → 拨弦/民族 → 物理建模拨弦 → 打击 → 鼓组"的顺序,每件乐器弹一个根音-五度-八度的小动机)-- 采样库:`core/audio/instruments/`(1.35 GB,FLAC 无损;每个库保留原 LICENSE/README)。不在 git 里,用 `sh tools/fetch.sh instruments` 下载-- 索引:`core/audio/instruments/index.json`(随采样包一起下载:每个采样的音高、力度层、起音点、电平;导入即用,不用重建)+- 试听:仓库里没有现成的试听文件(`core/audio/*.wav` 不进 git,也不在采样包里)。下载采样包后,用下面第 1 节的写法给每件乐器弹一个根音-五度-八度的小动机,自己渲一段听+- 采样库:`core/audio/instruments/`(FLAC 无损;每个库保留原 LICENSE/README)。不在 git 里,按库下载,只下片子用到的:`sh tools/fetch.sh instruments <lib>`(`vsco2ce` 395 MB、`vcsl` 271 MB、`salamander` 218 MB、`freepats` 397 MB、`karoryfer` 74 MB),或 `instruments all`(约 1.4 GB)。第 5 节的「来源」列就是所在的库:VSCO 2 CE → `vsco2ce`,VCSL → `vcsl`,Salamander → `salamander`,FreePats 和 MuldjordKit → `freepats`,Karoryfer → `karoryfer`+- 索引:`core/audio/instruments/index.json`(每个库的包里都带一份:每个采样的音高、力度层、起音点、电平;导入即用,不用重建)---@@ -50,7 +50,7 @@ sf.write('cue.wav', mix, SR)| `credits(names)` | 按你用到的乐器列表,生成片尾 CREDITS 行(CC BY 必写的原文 + CC0 致谢) || `info(name=None)` / `instruments(fam=None)` | 打印概况 / 列名字(`fam` 取 弦乐/木管/铜管/打击/键盘/拨弦/民族) || `midi(p)` / `hz(p)` / `name(m)` / `seed(n)` | 音名工具;`seed` 固定轮换随机(同样调用顺序 → 同样结果) |-| `build_index(names=None, force=False)` | 重扫采样并重建 `index.json`(换了/加了采样才需要;~15 s) |+| `build_index(names=None, force=False)` | 重扫采样并重建 `index.json`(换了/加了采样才需要;~15 s;要 librosa:`requirements-dev.txt`) |**它在背后做了什么**- **选采样**:同时考虑"离目标音最近"和"力度层最接近"(代价 = 半音距离 + 4×力度差,向上移调略加罚),同一格里的多个 round-robin 随机轮换,避免机关枪效应。@@ -314,14 +314,14 @@ Drums: "MuldjordKit" by Lars Muldjord (drumgizmo.org), FreePats version, license## 8. 已做的自检(我听不到声音,全部靠数据)**验证了什么**-1. **音高**:全部 97 件采样乐器的每个采样都用 yin 测过基频,写进 `index.json`;按八度一致性投票修正了文件名的八度约定(VSCO/VCSL 多数 +12,Karoryfer −12,定音鼓用频谱主振动模)。`demo_instruments.wav` 里 61 件乐器的首音**单独渲染后用 librosa.pyin 抽查:59/61 在 ±50 音分内,通过者中位偏差 +3.7 音分、最大 16 音分**;2 个“失败”都是已知且核对过的:管钟(虚拟音高,频谱 2:3:4 分音确认击音正确)、`organ`(16′ 音栓,基频低八度)。在成片混音里直接抽查同样 61 个首音:57/61 通过,另外 4 个(钟琴、管钟、二胡、班卓)是被上一件乐器的余音干扰或虚拟音高,单独渲染/频谱核对均正确(钟琴单独渲染频谱峰 = D6 +12 音分)。+1. **音高**:全部 97 件采样乐器的每个采样都用 yin 测过基频,写进 `index.json`;按八度一致性投票修正了文件名的八度约定(VSCO/VCSL 多数 +12,Karoryfer −12,定音鼓用频谱主振动模)。61 件乐器的首音**单独渲染后用 librosa.pyin 抽查:59/61 在 ±50 音分内,通过者中位偏差 +3.7 音分、最大 16 音分**;2 个“失败”都是已知且核对过的:管钟(虚拟音高,频谱 2:3:4 分音确认击音正确)、`organ`(16′ 音栓,基频低八度)。在成片混音里直接抽查同样 61 个首音:57/61 通过,另外 4 个(钟琴、管钟、二胡、班卓)是被上一件乐器的余音干扰或虚拟音高,单独渲染/频谱核对均正确(钟琴单独渲染频谱峰 = D6 +12 音分)。2. **物理建模**:11 个预设 × 2–3 个音高全部 pyin 命中(±1 音分内);古琴 `bend` 的 pyin 轨迹与设定一致(0.8→1.4 s 从 50 滑到 52);泛音音高正确;琵琶轮指实测 13.3 次/秒(设定 14);三味线 sawari 开/关的持续段频谱重心 2030 Hz / 1500 Hz;衰减时间 guqin≈4.3 s、pipa≈2.1 s、shamisen≈0.9 s、banjo≈1.0 s(-30 dB 外推的 T60)。3. **成片数值**:85.5 s、48 kHz 立体声、无 NaN/Inf、峰值 −2.0 dBFS、0 个削波样本;0.5 s RMS 中位 −24 dBFS。4. **长音延长**:小提琴组/大提琴组/长笛/小号/圆号/单簧管/双簧管/手风琴/风笛/二胡/萨克斯/管风琴渲染 14–25 s 长音,延长段无静音洞、电平与原录音一致(见上条数据)。5. **所有乐器**都实际加载并渲染过一次(无异常、无 NaN),所有打击变体各打一次,峰值已按变体归一到 ~0.4。**没法验证的**-- 主观音色是否"像"、混音是否好听、力度层切换是否平滑、延长拼接处是否有可闻的相位/音色跳变——只能靠数据间接判断,建议第一次用时自己耳朵听一下 `demo_instruments.wav`。+- 主观音色是否"像"、混音是否好听、力度层切换是否平滑、延长拼接处是否有可闻的相位/音色跳变——只能靠数据间接判断,建议第一次用时自己耳朵听一下(每件乐器弹一个小动机即可)。- 物理建模的"民族味"(古琴的松沉、三味线的 sawari 质感)只按物理参数和频谱趋势调过,没有和真实录音做听感对比。- 微分音、超出采样音域 ±6 半音以上的移调音色。@@ -333,7 +333,6 @@ Drums: "MuldjordKit" by Lars Muldjord (drumgizmo.org), FreePats version, licensecore/audio/sampler.py 采样乐器引擎(本文件第 2 节)pluck.py 物理建模拨弦 + 模态合成(第 3 节)- demo_instruments.wav 85 秒试听instruments/index.json 音高/力度/电平索引(build_index() 可重建)vsco2ce/ VSCO 2 CE 精选(弦乐/木管/铜管/打击/立式钢琴/管风琴) 395 MB@@ -345,4 +344,4 @@ core/audio/来源链接:VSCO 2 CE https://github.com/sgossner/VSCO-2-CE · VCSL https://github.com/sgossner/VCSL · Salamander https://freepats.zenvoid.org/Piano/acoustic-grand-piano.html · FreePats https://freepats.zenvoid.org/ · Karoryfer https://github.com/sfzinstruments (aliexpress-erhu / karoryfer.sneakybass / karoryfer.weresax)-STATUS: READY+可用性:采样库要先下载(`sh tools/fetch.sh instruments <lib>`,见文首)。用到没下载的库时,`sampler` 报错并给出要跑的那条命令。`sampler.py` 只需核心层 Python 包;`pluck.py` 需要 numba(`setup.sh deps music`)。diff --git a/core/audio/pluck.py b/core/audio/pluck.pyindex a27d8ec..40a3e3e 100644--- a/core/audio/pluck.py+++ b/core/audio/pluck.py@@ -11,7 +11,8 @@"""import numpy as npfrom scipy.signal import butter, sosfilt, lfilter-from numba import njit+try: from numba import njit+except ImportError: raise ImportError('pluck.py needs numba: install the music tier: sh plugin/skills/lemo-opuscar/scripts/setup.sh deps music') from Nonetry:from .sfx import SRdiff --git a/core/audio/sampler.py b/core/audio/sampler.pyindex 23e9bcd..f14421d 100644--- a/core/audio/sampler.py+++ b/core/audio/sampler.py@@ -329,7 +329,8 @@ def _onset(x):def _yin(x, sr, guess):- import librosa+ try: import librosa+ except ImportError: raise ImportError('building the sample index needs librosa (maintainers): pip install -r requirements-dev.txt') from Noney = x[:int(sr * 1.6)].astype(np.float64)if guess is None: fmin, fmax = 40.0, 2000.0else:@@ -382,7 +383,7 @@ def _analyze(nm, zs):def build_index(names=None, force=False):- """扫描 + 分析所有(或指定)乐器,写 instruments/index.json(仓库已附带,一般不用跑)"""+ """扫描 + 分析所有(或指定)乐器,写 instruments/index.json(随采样包一起下载,一般不用跑)"""idx = _load_index()for nm in (names or REG):if nm in idx and not force: continue@@ -390,7 +391,7 @@ def build_index(names=None, force=False):idx[nm] = dict(zones=zs, octave_fix=off)print(f'{nm:18s} {len(zs):4d} zones octave_fix={off:+d}', flush=True)tmp = INDEX + f'.{os.getpid()}.tmp'- json.dump(idx, open(tmp, 'w'), ensure_ascii=False, separators=(',', ':'))+ with open(tmp, 'w', encoding='utf-8') as f: json.dump(idx, f, ensure_ascii=False, separators=(',', ':'))os.replace(tmp, INDEX)global _IDX; _IDX = idxreturn idx@@ -402,7 +403,7 @@ _IDX = Nonedef _load_index():global _IDXif _IDX is None:- _IDX = json.load(open(INDEX)) if os.path.exists(INDEX) else {}+ _IDX = json.load(open(INDEX, encoding='utf-8')) if os.path.exists(INDEX) else {}return _IDX@@ -410,11 +411,15 @@ def _load_index():class Inst:def __init__(self, nm):self.name, self.spec = nm, REG[nm]+ src = self.spec['src']; self.lib = (src[0] if isinstance(src, tuple) else src).split('/')[0]+ if not (os.path.isdir(os.path.join(ROOT, self.lib)) and os.path.exists(INDEX)):+ raise RuntimeError(f'{nm}: its sample library "{self.lib}" is not downloaded. Run, from the library root: sh tools/fetch.sh instruments {self.lib}')idx = _load_index()if nm not in idx:zs, off = _analyze(nm, _scan(nm)); idx[nm] = dict(zones=zs, octave_fix=off)self.zones = [dict(z, id=i) for i, z in enumerate(idx[nm]['zones'])]- if not self.zones: raise RuntimeError(f'{nm}: 没有找到采样')+ if not self.zones:+ raise RuntimeError(f'{nm}: no samples found in {ROOT}/{self.lib}. The download looks incomplete; run again: sh tools/fetch.sh instruments {self.lib}')self.kind, self.rel = self.spec['kind'], self.spec.get('rel', .3)# 力度层 → 0..1 位置(每个变体内分别排)groups = {}diff --git a/core/audio/sfx.py b/core/audio/sfx.pyindex bc9de9c..4300b35 100644--- a/core/audio/sfx.py+++ b/core/audio/sfx.py@@ -49,7 +49,8 @@ def crash(v=1.0):def whoosh(d=.35, v=1.0):n = noise(d); tt = t_(d); out = np.zeros_like(n)for i in range(0, len(n), 480): # 扫频带通- f = 600 + 2600 * np.sin(np.pi * i / len(n)); seg = bp(n[max(0, i - 2000):i + 480], f * .7, f * 1.3)[-480:]; out[i:i + len(seg)] = seg+ hi = min(len(n), i + 480) # 最后一块不足 480 个采样时按实际长度取(d 不是 0.01 s 整数倍也不会崩)+ f = 600 + 2600 * np.sin(np.pi * i / len(n)); seg = bp(n[max(0, i - 2000):hi], f * .7, f * 1.3)[-(hi - i):]; out[i:hi] = segreturn norm(out * np.sin(np.pi * tt / d) ** 2) * vdiff --git a/styles/living-screencast/storyboard/fonts/OFL-inter.txt b/core/fonts/OFL.mdsimilarity index 60%rename from styles/living-screencast/storyboard/fonts/OFL-inter.txtrename to core/fonts/OFL.mdindex 21f6aff..b048a33 100644--- a/styles/living-screencast/storyboard/fonts/OFL-inter.txt+++ b/core/fonts/OFL.md@@ -1,11 +1,23 @@-Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter)+# Fonts in `core/fonts/`: licence-This Font Software is licensed under the SIL Open Font License, Version 1.1.-This license is copied below, and is also available with a FAQ at:-https://scripts.sil.org/OFL+`fonts.css` declares four font families, all licensed under the **SIL Open Font License 1.1** (OFL). The `f0`–`f7.woff2` files are **subsets**: Google Fonts-style `unicode-range` slices that hold only the glyphs listed in `fonts.css`, not the full fonts. The full text of the licence follows the table.+| Family (style) | Files | Glyph subset (`unicode-range` code points) | Copyright line (from the font's own name table) | Licence URL in the font |+|---|---|---|---|---|+| ZCOOL KuaiLe (Regular) | `f0.woff2` | 208 (≈ 200 mostly Chinese characters: **not enough for running Chinese text**) | Copyright 2018 The ZCOOL KuaiLe Project Authors (https://github.com/googlefonts/zcool-kuaile) | https://openfontlicense.org |+| Fredoka (variable, weights 500, 600 and 700 are used; the file's default instance is named "Fredoka Light") | `f1.woff2` (Hebrew, 172), `f2.woff2` (Latin Extended, 1162), `f3.woff2` (Latin, 387) | see `fonts.css` | Copyright 2016 The Fredoka Project Authors (https://github.com/hafontia/Fredoka-One) | http://scripts.sil.org/OFL |+| Lilita One (Regular) | `f4.woff2` (Latin Extended, 1162), `f5.woff2` (Latin, 387) | see `fonts.css` | Copyright (c) 2011 Juan Montoreano ([email protected]), with Reserved Font Names "Lilita One" | http://scripts.sil.org/OFL |+| IM Fell English (Italic and Regular) | `f6.woff2` (Italic), `f7.woff2` (Regular), each Latin, 387 | see `fonts.css` | (c) 2007 Igino Marini (www.iginomarini.com) With Reserved Font Name IM FELL English Italic / IM FELL English Roman | http://scripts.sil.org/OFL |------------------------------------------------------------+How this table was made: the family-to-file mapping comes from `fonts.css`; the copyright and licence lines are the `name` table records (IDs 0 and 14) read from the `.woff2` files themselves with fontTools 4.66.0 (fontTools is not in the shared `.venv`; it was installed in a throw-away environment just to read the files). The designer field (name ID 9) is empty in these files, so the copyright line above is the attribution. Nothing was fetched from a web page for the table.++Lilita One and IM FELL English declare **Reserved Font Names** (see their copyright lines). If you modify or rename these files, condition 3 of the licence below applies.++The licence text below is the standard OFL 1.1, in the plain-text layout of the `OFL.txt` that the ZCOOL KuaiLe project ships (https://github.com/googlefonts/zcool-kuaile/blob/main/OFL.txt). It was compared word for word with the official page https://openfontlicense.org/open-font-license-official-text/: the wording is identical, only the dash characters and the list numbering differ in layout. The text itself is unchanged.++## SIL Open Font License 1.1++```textSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007-----------------------------------------------------------@@ -91,3 +103,4 @@ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIALDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISINGFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROMOTHER DEALINGS IN THE FONT SOFTWARE.+```diff --git a/core/render/browser.mjs b/core/render/browser.mjsindex 0d5178e..51ca752 100644--- a/core/render/browser.mjs+++ b/core/render/browser.mjs@@ -1,15 +1,21 @@-// 无头 Chrome:优先 PLAYWRIGHT_CHROME 环境变量,否则找本机 playwright 缓存里的 headless shell-// GPU 参数让 WebGL 走 ANGLE/GL(M 系列 Mac 上比默认 SwiftShader 快 ~6 倍)-import fs from 'fs'; import path from 'path';-function findExe() {- if (process.env.PLAYWRIGHT_CHROME) return process.env.PLAYWRIGHT_CHROME;- const base = path.join(process.env.HOME, 'Library/Caches/ms-playwright');- const dirs = fs.existsSync(base) ? fs.readdirSync(base).filter(d => d.startsWith('chromium_headless_shell')).sort().reverse() : [];- for (const d of dirs) {- const p = path.join(base, d, 'chrome-headless-shell-mac-arm64/chrome-headless-shell');- if (fs.existsSync(p)) return p;- }- return undefined; // 交给 playwright 自己找+// 无头 Chrome 的启动参数。浏览器本身交给 playwright 按它的版本自己找(npm run 时装的 chromium-headless-shell);+// 想用别的可执行文件:PLAYWRIGHT_CHROME=/path/to/chrome-headless-shell+// GPU:macOS 显式用 Metal(新版 headless-shell 上 --use-angle=gl 会退回 SwiftShader 软渲染,慢 ~6 倍);+// 其它系统不强加后端。LEMO_ANGLE=metal|gl|vulkan|swiftshader… 可覆盖,LEMO_ANGLE=default 表示不传 --use-angle。+export const EXE = process.env.PLAYWRIGHT_CHROME || undefined; // undefined = 让 playwright 自己找+const angle = process.env.LEMO_ANGLE || (process.platform === 'darwin' ? 'metal' : 'default');+export const ARGS = [...(angle === 'default' ? [] : [`--use-angle=${angle}`]), '--enable-gpu', '--ignore-gpu-blocklist', '--font-render-hinting=none', '--force-color-profile=srgb'];++// WebGL 走了软渲染就提醒一次(2D 画布的 demo 不受影响;不会让渲染失败)+let warned = false;+export async function warnIfSoftwareGL(page) {+ if (warned) return; warned = true;+ try {+ const r = await page.evaluate(() => {+ const c = document.createElement('canvas'), g = c.getContext('webgl2') || c.getContext('webgl'); if (!g) return null;+ const e = g.getExtension('WEBGL_debug_renderer_info'), name = e ? g.getParameter(e.UNMASKED_RENDERER_WEBGL) : '';+ g.getExtension('WEBGL_lose_context')?.loseContext(); return String(name);+ });+ if (r && /swiftshader|llvmpipe|software/i.test(r)) console.error(`[note] WebGL runs on software rendering (${r.slice(0, 80)}): 3D/CRT demos will be slow. macOS: LEMO_ANGLE=metal; Linux: needs GPU drivers. See core/README.md.`);+ } catch {}}-export const EXE = findExe();-export const ARGS = ['--use-angle=gl', '--enable-gpu', '--ignore-gpu-blocklist', '--font-render-hinting=none', '--force-color-profile=srgb'];diff --git a/core/render/events.mjs b/core/render/events.mjsindex bdeb183..a1ee863 100644--- a/core/render/events.mjs+++ b/core/render/events.mjs@@ -1,10 +1,11 @@-// 导出音效事件:node core/render/events.mjs styles/<slug>/demo [--q 'content=content_alt.json'] [--out <file>]+// 导出音效事件:node core/render/events.mjs <demo> [--q 'content=content_alt.json'] [--out <file>] [--size 1920x1080]// 默认写 <demo>/events.json;换内容时用 --q 把参数传给页面,--out 写到别处,免得覆盖主片的事件表import fs from 'fs'; import path from 'path';-import { openDemo, closeServer } from './page.mjs';-const args = process.argv.slice(2), opt = (k, d) => { const i = args.indexOf(k); return i >= 0 ? args[i + 1] : d; };-const dir = args[0], Q = opt('--q', ''), out = opt('--out', path.join(dir, 'events.json'));-const { browser, page } = await openDemo(dir, { q: Q });+import { openDemo, closeServer, requireDemo, takeSize } from './page.mjs';+const args = process.argv.slice(2), { w, h } = takeSize(args), opt = (k, d) => { const i = args.indexOf(k); return i >= 0 ? args[i + 1] : d; };+const dir = args[0]; requireDemo(dir);+const Q = opt('--q', ''), out = opt('--out', path.join(dir, 'events.json'));+const { browser, page } = await openDemo(dir, { w, h, q: Q });const ev = await page.evaluate(() => ({ dur: window.DUR, ev: window.EV || [] }));fs.mkdirSync(path.dirname(path.resolve(out)), { recursive: true });fs.writeFileSync(out, JSON.stringify(ev, null, 0));diff --git a/core/render/mux.sh b/core/render/mux.shindex c00b764..ac513fb 100755--- a/core/render/mux.sh+++ b/core/render/mux.sh@@ -1,14 +1,93 @@#!/bin/sh# 合成成片:mux.sh video.mp4 mix.wav out.mp4 [fps] [grain]# 视频按目标帧率输出(定格片段自动复制帧);grain = 颗粒强度(默认 2,0 = 不加;像素/矢量风格用 0)-# 音频两遍 loudnorm → −14 LUFS / TP −1.2(单遍会偏 0.5 LU 左右)+# 音频两遍 loudnorm → −14 LUFS / TP −1.2(单遍会偏 0.5 LU 左右);最后打印实测的 I / LRA / 真峰值+# 任何一步 ffmpeg 失败都以非 0 退出,并且不留半个文件;只有成品存在且非空才打印它的路径。+# 静音 / 极轻(低于 −70 LUFS,loudnorm 量不出来)的音频:只有"成功解码、量出来确实静音"才跳过响度归一并警告,仍然出片。+# 不是音频、没有音频流、或者文件坏了:以 1 退出,不出片。"坏"按实际解码出来的东西来判断,不是看到报错字样就算:+# · 解码器报了错(损坏的 FLAC/MP3/M4A 常常 ffmpeg 报了错还返回 0);+# · 解出来的时长明显少于容器声称的(截断的 FLAC/MP3);+# · WAV 头里声明的音频比文件里实际有的多(写到一半被打断)。+# `ffmpeg … -f wav -` 流式写出的 WAV 头里长度是占位值,解码完整,只是结尾会有三句解封装提示:那是好文件,照常出片(带一句说明)。+# 看不出来的一种:流式 WAV 恰好截断在采样边界上(头里没有长度可比,解码也没有错)。+# 音频比画面短:用静音补到画面长度(不会把视频截短);音频更长:照旧截到画面长度(-shortest)。+# 色彩:默认与以往完全一致(保持 video.mjs 出的 yuvj420p 全范围 / bt470bg 标签);LEMO_COLOR=bt709 改成标准 yuv420p 限幅 / bt709(画面色值差 ±3 以内,但会与旧片有细微色差)。+die() { echo "mux.sh: $*" >&2; exit 1; }V="$1"; A="$2"; O="$3"; FPS="${4:-24}"; GR="${5:-2}"-J=$(ffmpeg -hide_banner -nostats -i "$A" -af loudnorm=I=-14:TP=-1.2:LRA=11:print_format=json -f null - 2>&1 | sed -n '/{/,/}/p')+[ -n "$V" ] && [ -n "$A" ] && [ -n "$O" ] || die "usage: sh core/render/mux.sh video.mp4 mix.wav out.mp4 [fps=24] [grain=2]"+[ -f "$V" ] || die "video not found: $V"+[ -f "$A" ] || die "audio not found: $A"+case "$FPS" in ''|*[!0-9.]*) die "fps must be a number, got '$FPS'";; esac+case "$GR" in ''|*[!0-9.]*) die "grain must be a number (0 = none), got '$GR'";; esac+case "${LEMO_COLOR:-}" in ''|bt709) ;; *) die "LEMO_COLOR must be bt709 or unset, got '$LEMO_COLOR'";; esac++# 检查 WAV 头声明的音频长度有没有超出文件(截断在采样边界上的 WAV,ffmpeg 自己不会报任何错)。按字节逐个读长度,不依赖机器的字节序+wav_truncated() { # 返回 0 = 头里声明的比文件里有的多;占位长度(0 或 0xFFFFFFFF)视为"长度未知",不算截断+ [ "$(dd if="$1" bs=1 count=4 2>/dev/null)" = RIFF ] && [ "$(dd if="$1" bs=1 skip=8 count=4 2>/dev/null)" = WAVE ] || return 1+ _size=$(wc -c < "$1" | tr -d ' '); _off=12+ while [ $((_off + 8)) -le "$_size" ]; do+ _id=$(dd if="$1" bs=1 skip=$_off count=4 2>/dev/null)+ set -- "$1" $(od -An -tu1 -j $((_off + 4)) -N4 "$1"); _len=$(($2 + $3 * 256 + $4 * 65536 + $5 * 16777216))+ if [ "$_id" = data ]; then+ [ "$_len" -eq 0 ] || [ "$_len" -eq 4294967295 ] && return 1+ [ $((_off + 8 + _len)) -gt "$_size" ] && return 0 || return 1+ fi+ _off=$((_off + 8 + _len + (_len & 1)))+ done+ return 1+}++# 第一遍:量响度+[ -n "$(ffprobe -v error -select_streams a:0 -show_entries stream=codec_type -of csv=p=0 "$A" 2>/dev/null)" ] || die "no audio stream in '$A' (is it really the mixed audio file?)"+M=$(ffmpeg -hide_banner -nostats -progress pipe:2 -i "$A" -af loudnorm=I=-14:TP=-1.2:LRA=11:print_format=json -f null - 2>&1) || die "ffmpeg cannot read the audio '$A': $(echo "$M" | tail -2)"+wav_truncated "$A" && die "the WAV file '$A' is cut off: its header promises more audio than the file contains (was the write interrupted?)"+# 解码器/解封装器的日志行都以 [name @ 0x…] 开头;里面有错误字样,除了下面那三句流式 WAV 的固定提示,都算文件坏了(响度会是 -inf,但那不是"静音")+ERRS=$(echo "$M" | grep -E '^\[' | grep -iE 'error|invalid|corrupt|header missing|overread|truncat|incomplete')+BENIGN='Ignoring maximum wav data size|Packet corrupt \(stream = [0-9]+, dts = NOPTS\)|corrupt input packet in stream [0-9]+'+BAD=$(echo "$ERRS" | grep -vE "$BENIGN" | head -2)+[ -z "$BAD" ] || die "the audio '$A' is damaged; ffmpeg reported while decoding it:+$BAD"+# 实际解出多少秒(-progress 最后一条 out_time)对比容器声称的;容器时长是 ffmpeg 自己"从码率估的"时不可靠,不比+DEC=$(echo "$M" | grep '^out_time=' | tail -1 | cut -d= -f2 | awk '{ if ($0 ~ /^-/ || $0 !~ /:/) print 0; else { split($0, p, ":"); print p[1] * 3600 + p[2] * 60 + p[3] } }')+CONT=$(ffprobe -v error -show_entries format=duration -of csv=p=0 "$A" 2>/dev/null | head -1)+if ! echo "$M" | grep -q 'Estimating duration from bitrate' && awk -v d="${DEC:-0}" -v c="${CONT:-0}" 'BEGIN { tol = c * 0.05 > 0.15 ? c * 0.05 : 0.15; exit !(c + 0 > 0 && c - d > tol) }'; then+ die "only ${DEC:-0} s of the ${CONT} s that '$A' claims could be decoded: the file is damaged or cut off"+fi+[ -z "$ERRS" ] || echo "mux.sh: note: ffmpeg complained about the header/ending of '$A' (typical of a WAV streamed with 'ffmpeg … -f wav -', whose length is a placeholder), but all ${DEC:-0} s decoded; continuing" >&2+J=$(echo "$M" | sed -n '/{/,/}/p')g() { echo "$J" | grep "\"$1\"" | sed 's/.*: "\(.*\)".*/\1/'; }-LN="loudnorm=I=-14:TP=-1.2:LRA=11:measured_I=$(g input_i):measured_TP=$(g input_tp):measured_LRA=$(g input_lra):measured_thresh=$(g input_thresh):offset=$(g target_offset):linear=true"-if [ "$GR" = "0" ]; then VF="fps=$FPS,format=yuv420p"; else VF="fps=$FPS,noise=c0s=$GR:allf=t,format=yuv420p"; fi+NORM=1+for k in input_i input_tp input_lra input_thresh target_offset; do+ case "$(g $k)" in ''|*inf*|*nan*) NORM=0;; esac+done+if [ "$NORM" = 1 ]; then+ LN="loudnorm=I=-14:TP=-1.2:LRA=11:measured_I=$(g input_i):measured_TP=$(g input_tp):measured_LRA=$(g input_lra):measured_thresh=$(g input_thresh):offset=$(g target_offset):linear=true"+else+ LN="anull"+ echo "mux.sh: warning: the audio is silent or quieter than -70 LUFS, so loudness normalisation was skipped" >&2+fi++# 音频比画面短就补静音+dur() { ffprobe -v error -show_entries format=duration -of csv=p=0 "$1" 2>/dev/null | head -1; }+VD=$(dur "$V"); AD=$(dur "$A"); PAD=""+if awk -v a="$AD" -v v="$VD" 'BEGIN { exit !(a + 0 > 0 && v + 0 > 0 && a + 0 < v - 0.02) }'; then+ PAD=",apad=whole_dur=$VD"+ echo "mux.sh: note: the audio ($AD s) is shorter than the video ($VD s); padding it with silence" >&2+fi++if [ "$GR" = "0" ]; then VF="fps=$FPS"; else VF="fps=$FPS,noise=c0s=$GR:allf=t"; fi+if [ "${LEMO_COLOR:-}" = "bt709" ]; then+ VF="$VF,scale=in_range=pc:out_range=tv:out_color_matrix=bt709,format=yuv420p,setparams=range=tv:colorspace=bt709:color_primaries=bt709:color_trc=bt709"+ CARGS="-color_range tv -colorspace bt709 -color_primaries bt709 -color_trc bt709"+else+ VF="$VF,format=yuv420p"; CARGS=""+fi+# shellcheck disable=SC2086 (CARGS 要按空格拆成多个参数;默认为空)ffmpeg -y -loglevel error -i "$V" -i "$A" \- -filter_complex "[0:v]$VF[v];[1:a]$LN,aresample=48000[a]" \- -map "[v]" -map "[a]" -c:v libx264 -preset slow -crf 19 -r "$FPS" -c:a aac -b:a 256k -movflags +faststart -shortest "$O"+ -filter_complex "[0:v]$VF[v];[1:a]$LN,aresample=48000$PAD[a]" \+ -map "[v]" -map "[a]" -c:v libx264 -preset slow -crf 19 -r "$FPS" $CARGS -c:a aac -b:a 256k -movflags +faststart -shortest "$O" \+ || { rm -f "$O"; die "ffmpeg failed while writing '$O' (its message is above)"; }+[ -s "$O" ] || { rm -f "$O"; die "no output was written to '$O'"; }echo "$O"-ffmpeg -hide_banner -nostats -i "$O" -af ebur128 -f null - 2>&1 | grep -E "^\s+(I|LRA|Peak):" | head -3+ffmpeg -hide_banner -nostats -i "$O" -af ebur128=peak=true -f null - 2>&1 | grep -E "^\s+(I|LRA|Peak):" | head -3+exit 0diff --git a/core/render/page.mjs b/core/render/page.mjsindex c87cf42..0e6f1c9 100644--- a/core/render/page.mjs+++ b/core/render/page.mjs@@ -1,19 +1,62 @@-// 打开 demo 页面(仓库根为静态服务根),等待 window.READY+// 打开 demo 页面(仓库根为静态服务根;库外的片子工程挂在 /@film/ 下),等待 window.READY+// 出错要大声:页面里的 JS 报错、脚本(<script>、模块 import,resourceType 为 script)或页面本身(document)加载失败都会立即退出(非 0)。+// 其它类型(fetch / xhr / 图片 / 字体…)404 只打印一行警告:很多 demo 会 fetch 可选的 voices/dur.json,没有就用默认值import { chromium } from 'playwright-core';-import path from 'path'; import { fileURLToPath } from 'url';+import fs from 'fs'; import path from 'path'; import { fileURLToPath } from 'url';import { serve, pageURL } from './serve.mjs';-import { EXE, ARGS } from './browser.mjs';+import { EXE, ARGS, warnIfSoftwareGL } from './browser.mjs';export const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..');let srv = null;export async function server() { if (!srv) srv = await serve(ROOT); return srv; }-export async function openDemo(dir, { w = 1920, h = 1080, q = '' } = {}) {+// 每个入口脚本在建任何输出目录之前先调它+export function requireDemo(dir) {+ if (!dir || dir.startsWith('--')) { console.error('usage: <demo> is the folder that holds index.html (see core/README.md)'); process.exit(2); }+ if (!fs.existsSync(path.join(dir, 'index.html'))) { console.error(`no index.html in "${dir}": the demo folder is wrong or the page isn't there yet`); process.exit(2); }+}+// --size WxH(默认 1920x1080):从 args 里取走这一对,返回 { w, h }。宽高须为偶数(H.264 yuv420p 的要求),16–8192+export function takeSize(args) {+ const i = args.indexOf('--size'); if (i < 0) return { w: 1920, h: 1080 };+ const v = args.splice(i, 2)[1] || '', m = /^(\d+)x(\d+)$/.exec(v), w = m && +m[1], h = m && +m[2];+ if (!m || [w, h].some(n => n < 16 || n > 8192 || n % 2)) { console.error(`bad --size "${v}": use WxH with even numbers from 16 to 8192, e.g. 1080x1920`); process.exit(2); }+ return { w, h };+}+const warned = new Set(); // 整个进程里每个可选文件只警告一次(video.mjs 会开好几个页面)+const FATAL = new Set(['script', 'document']); // 页面必须有的东西;模块 import 的类型也是 script+export async function openDemo(dir, { w = 1920, h = 1080, q = '', warnings = false } = {}) {+ requireDemo(dir);const { port } = await server();const browser = await chromium.launch({ executablePath: EXE, args: ARGS });const page = await browser.newPage({ viewport: { width: w, height: h }, deviceScaleFactor: 1 });- page.on('console', m => { if (m.type() === 'error' && !m.text().includes('404')) console.error('[page]', m.text().slice(0, 300)); });+ const log = []; // 最近的报错,READY 迟迟不来时一起打印+ const note = s => { log.push(s); if (log.length > 8) log.shift(); console.error(s); };+ page.on('console', m => {+ const t = m.text();+ if (m.type() === 'error' && /^Failed to load resource/.test(t)) return; // 由下面的 response 事件带 URL 打印+ if (m.type() === 'error' || (warnings && m.type() === 'warning')) note('[page] ' + t.slice(0, 300));+ });page.on('pageerror', e => { console.error('[pageerror]', e.message); process.exit(1); }); // 渲染中报错就停,免得产出坏片+ page.on('response', r => {+ if (r.status() < 400) return;+ const u = r.url(), p = new URL(u).pathname, type = r.request().resourceType();+ if (p === '/favicon.ico') return;+ if (FATAL.has(type)) {+ note(`[page] ${r.status()} ${u}`);+ console.error(`the page needs ${p} (a ${type}) but the server answered ${r.status()}. Check the path: pages use absolute URLs like /core/lib.js (see core/README.md)`); process.exit(1);+ }+ if (!warned.has(u)) { warned.add(u); note(`[page] optional file missing: ${u} (${r.status()}, requested by ${type === 'fetch' || type === 'xhr' ? 'fetch/xhr' : type}; fine if the page has a fallback)`); }+ });+ page.on('requestfailed', r => { if (!/favicon/.test(r.url()) && r.failure()?.errorText !== 'net::ERR_ABORTED') note(`[page] request failed ${r.url()} (${r.failure()?.errorText})`); });await page.goto(pageURL(ROOT, port, dir) + (q ? '?' + q : ''));- await page.waitForFunction(() => window.READY === true, null, { timeout: 180000 });+ const hint = setTimeout(() => {+ console.error(`still waiting for window.READY after 20 s. The page has to set window.READY = true once fonts and images are loaded.\n` ++ (log.length ? ' problems seen so far:\n ' + log.join('\n ') + '\n' : ' no console errors so far: is the <script> closed, does it reach the line that sets window.READY?\n') ++ ` debug: node core/render/still.mjs ${dir} 0, or open the page in a normal browser (the tools serve the library root on 127.0.0.1)`);+ }, 20000);+ const t0 = Date.now();+ try { await page.waitForFunction(() => window.READY === true, null, { timeout: 180000 }); }+ catch (e) { console.error(`window.READY never became true (waited ${((Date.now() - t0) / 1000).toFixed(0)} s, limit 180 s): ${e.message.split('\n')[0]}`); process.exit(1); }+ finally { clearTimeout(hint); }+ await warnIfSoftwareGL(page);return { browser, page };}export function closeServer() { if (srv) srv.server.close(); }diff --git a/core/render/readcheck.mjs b/core/render/readcheck.mjsindex 8cebf50..026b264 100644--- a/core/render/readcheck.mjs+++ b/core/render/readcheck.mjs@@ -1,33 +1,51 @@-// 阅读时长自检:node core/render/readcheck.mjs styles/<slug>/demo [--q 'k=v'] [--step 0.04] [--cps 12] [--min 1.5]-// 页面提供 window.TEXTS(t) → [{id, text, x0, y0, x1, y1}]:t 秒时画面上看得见的每段文字和它的屏幕框(像素)。-// 每段文字从第一次出现起,连续完整在画框内、而且还在 TEXTS 里的时长,要 ≥ 字符数 / cps + 1 s(且 ≥ min)。-// 页面没有 TEXTS 就直接跳过。字幕条另算:它的停留由 .srt 决定。-import { openDemo, closeServer } from './page.mjs';-const args = process.argv.slice(2), opt = (k, d) => { const i = args.indexOf(k); return i >= 0 ? args[i + 1] : d; };-const dir = args[0], Q = opt('--q', ''), STEP = +opt('--step', 0.04), CPS = +opt('--cps', 12), MIN = +opt('--min', 1.5);-const { browser, page } = await openDemo(dir, { q: Q });+// 阅读时长自检:node core/render/readcheck.mjs <demo> [--q 'k=v'] [--step 0.04] [--latin-cps 15] [--cjk-cps 4.5] [--pad 1.5] [--min 1.5] [--size 1920x1080]+// 页面约定 window.TEXTS(t) → [{id, text, x0, y0, x1, y1}]:t 秒时画面上看得见的每段文字和它的屏幕框(像素,视口大小同 --size,默认 1920×1080)。+// id 标识"这一块文字"(数字或字符串都行);同一个 id 下文字换了,算新的一段重新计时。字幕条不用报:它的停留由 .srt 决定。+// text 必须从这块文字第一次出现的那一帧起就是它的【完整文字】:打字机效果如果报"目前打出来的子串",每多一个字都是新的一段,整个检查会失败——+// 打字机的文字请在 TEXTS 里一直报全文,把"哪些字已经显示"留给画面自己处理。+// 规则(同 DIRECTOR.md §7):每段文字从第一次完整进入画框起,连续完整在画、并且还在 TEXTS 里的时长,要 ≥+// (汉字/假名/谚文数 ÷ cjk-cps + 其它非空白字符数 ÷ latin-cps)+ pad 秒,且不低于 min。默认 4.5 字/秒(中日韩)、15 字/秒(字母数字)、pad 1.5、min 1.5。+// 从没完整进入画框的文字(被裁边、出画的滚动条)报 "never fully visible"。+// 退出码:0 全部达标;1 有不达标;2 检查没能运行(页面没有 window.TEXTS,或整片没返回过任何文字)——这不算通过。+import { openDemo, closeServer, requireDemo, takeSize } from './page.mjs';+const args = process.argv.slice(2), { w: VW, h: VH } = takeSize(args), opt = (k, d) => { const i = args.indexOf(k); return i >= 0 ? args[i + 1] : d; };+const dir = args[0]; requireDemo(dir);+const Q = opt('--q', ''), STEP = +opt('--step', 0.04), LATIN = +opt('--latin-cps', 15), CJK = +opt('--cjk-cps', 4.5), PAD = +opt('--pad', 1.5), MIN = +opt('--min', 1.5);+if (![STEP, LATIN, CJK, PAD, MIN].every(Number.isFinite) || STEP <= 0 || LATIN <= 0 || CJK <= 0) { console.error('bad option value (step and the cps values must be > 0)'); process.exit(2); }+const { browser, page } = await openDemo(dir, { w: VW, h: VH, q: Q });const res = await page.evaluate(({ STEP }) => {- if (typeof window.TEXTS !== 'function') return null;- const W = innerWidth, H = innerHeight, seen = {};+ if (typeof window.TEXTS !== 'function') return { noTexts: true };+ if (!(window.DUR > 0)) return { noDur: true };+ const W = innerWidth, H = innerHeight, seen = {}, partial = {};for (let t = 0; t <= window.DUR; t += STEP) {window.render(t);const vis = new Set();for (const b of window.TEXTS(t) || []) {- if (!(b.x0 >= 0 && b.y0 >= 0 && b.x1 <= W && b.y1 <= H)) continue;- vis.add(b.id);- const s = seen[b.id] ??= { text: b.text, t0: t, run: 0, done: false };+ b.id = String(b.id); // 数字 id 也行+ const key = b.id + '\u0000' + b.text; // 同一个 id 下文字变了 = 新的一段+ if (!(b.x0 >= 0 && b.y0 >= 0 && b.x1 <= W && b.y1 <= H)) { partial[key] ??= { id: b.id, text: b.text, t0: t }; continue; }+ vis.add(key);+ const s = seen[key] ??= { id: b.id, text: b.text, t0: t, run: 0, done: false };if (!s.done) s.run = t - s.t0 + STEP;}- for (const id in seen) if (!vis.has(id)) seen[id].done = true; // 只算第一次连续在画的时长+ for (const k in seen) if (!vis.has(k)) seen[k].done = true; // 只算第一次连续在画的时长}- return seen;+ for (const k in partial) if (seen[k]) delete partial[k];+ return { seen: Object.values(seen), partial: Object.values(partial) };}, { STEP });+await browser.close(); closeServer();++if (res.noTexts || res.noDur || (!res.seen.length && !res.partial.length)) {+ console.error('readcheck: NOT CHECKED — ' + (res.noTexts ? 'the page has no window.TEXTS(t) (see the header of core/render/readcheck.mjs for the contract).'+ : res.noDur ? 'window.DUR is not a positive number.' : 'window.TEXTS(t) never returned any text over the whole film.') + ' This is not a pass.');+ process.exit(2);+}+const isCJK = ch => /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u.test(ch);+const need = text => { let cjk = 0, other = 0; for (const ch of text) { if (/\s/.test(ch)) continue; isCJK(ch) ? cjk++ : other++; } return Math.max(MIN, cjk / CJK + other / LATIN + PAD); };let bad = 0;-if (!res) console.log('readcheck: page has no window.TEXTS(t); skipped');-else for (const [id, s] of Object.entries(res)) {- const need = Math.max(MIN, s.text.length / CPS + 1), ok = s.run >= need - 1e-6;- if (!ok) bad++;- console.log(`${ok ? 'OK ' : 'BAD'} ${id.padEnd(18)} at ${s.t0.toFixed(2)}s ${String(s.text.length).padStart(3)} chars need ${need.toFixed(2)}s got ${s.run.toFixed(2)}s`);+for (const s of res.seen) {+ const n = need(s.text), ok = s.run >= n - 1e-6; if (!ok) bad++;+ console.log(`${ok ? 'OK ' : 'BAD'} ${s.id.padEnd(18)} at ${s.t0.toFixed(2)}s ${String([...s.text].filter(c => !/\s/.test(c)).length).padStart(3)} chars need ${n.toFixed(2)}s got ${s.run.toFixed(2)}s ${JSON.stringify(s.text.slice(0, 24))}`);}-await browser.close(); closeServer();+for (const s of res.partial) { bad++; console.log(`BAD ${s.id.padEnd(18)} at ${s.t0.toFixed(2)}s never fully visible (its box is outside the frame) ${JSON.stringify(s.text.slice(0, 24))}`); }process.exit(bad ? 1 : 0);diff --git a/core/render/serve.mjs b/core/render/serve.mjsindex 85c9132..0437dbb 100644--- a/core/render/serve.mjs+++ b/core/render/serve.mjs@@ -1,6 +1,11 @@-// 极简静态服务器(ES module 不能走 file://)+// 极简静态服务器(ES module 不能走 file://)。只监听 127.0.0.1;请求必须落在根目录(或 /@film/ 挂载的片子目录)之内。import http from 'http'; import fs from 'fs'; import path from 'path';-const T = { '.html': 'text/html', '.js': 'text/javascript', '.mjs': 'text/javascript', '.json': 'application/json', '.css': 'text/css', '.jpg': 'image/jpeg', '.png': 'image/png', '.hdr': 'application/octet-stream', '.bin': 'application/octet-stream', '.gltf': 'model/gltf+json', '.woff2': 'font/woff2', '.ttf': 'font/ttf', '.svg': 'image/svg+xml', '.wav': 'audio/wav' };+// 文本类一律声明 UTF-8:页面漏写 <meta charset> 时中文也不会变成乱码+const T = { '.html': 'text/html; charset=utf-8', '.js': 'text/javascript; charset=utf-8', '.mjs': 'text/javascript; charset=utf-8', '.cjs': 'text/javascript; charset=utf-8', '.json': 'application/json; charset=utf-8', '.css': 'text/css; charset=utf-8',+ '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg', '.png': 'image/png', '.gif': 'image/gif', '.webp': 'image/webp', '.svg': 'image/svg+xml',+ '.hdr': 'application/octet-stream', '.bin': 'application/octet-stream', '.gltf': 'model/gltf+json', '.glb': 'model/gltf-binary', '.wasm': 'application/wasm',+ '.woff2': 'font/woff2', '.woff': 'font/woff', '.ttf': 'font/ttf', '.otf': 'font/otf',+ '.wav': 'audio/wav', '.mp3': 'audio/mpeg', '.mp4': 'video/mp4', '.txt': 'text/plain; charset=utf-8', '.map': 'application/json' };// 仓库外的片子工程(skill 模式下在用户自己的文件夹里)挂在 /@film/ 下;/core/…、/styles/…、/node_modules/… 仍从仓库根取const MOUNT = '/@film/'; let filmDir = null;export function pageURL(root, port, dir) {@@ -8,12 +13,28 @@ export function pageURL(root, port, dir) {if (rel.startsWith('..') || path.isAbsolute(rel)) { filmDir = abs; return `http://127.0.0.1:${port}${MOUNT}index.html`; }return `http://127.0.0.1:${port}/${rel.split(path.sep).map(encodeURIComponent).join('/')}/index.html`;}+// URL 路径 → 磁盘文件;出了根目录 / 解码失败 / 含 NUL 返回 { status }+export function resolveRequest(root, url) {+ let u; try { u = decodeURIComponent(url.split('?')[0].split('#')[0]); } catch { return { status: 400 }; }+ if (u.includes('\0')) return { status: 400 };+ const [base, rest] = filmDir && u.startsWith(MOUNT) ? [filmDir, u.slice(MOUNT.length)] : [root, u];+ const p = path.resolve(base, '.' + path.sep + rest.replace(/^\/+/, ''));+ if (p !== base && !p.startsWith(base + path.sep)) return { status: 403 };+ return { path: p };+}export function serve(root, port = 0) {return new Promise(res => {const s = http.createServer((q, r) => {- const u = decodeURIComponent(q.url.split('?')[0]);- const p = filmDir && u.startsWith(MOUNT) ? path.join(filmDir, u.slice(MOUNT.length)) : path.join(root, u);- fs.readFile(p, (e, d) => { if (e) { r.writeHead(404); r.end(); return; } r.writeHead(200, { 'Content-Type': T[path.extname(p)] || 'application/octet-stream' }); r.end(d); });+ const send = (code, body) => { r.writeHead(code, { 'Content-Type': 'text/plain' }); r.end(body); };+ try {+ if (!/^(127\.0\.0\.1|localhost)(:\d+)?$/.test(q.headers.host || '')) return send(403, 'bad host'); // 挡 DNS rebinding+ const x = resolveRequest(root, q.url);+ if (x.status) return send(x.status, x.status === 403 ? 'outside root' : 'bad request');+ fs.readFile(x.path, (e, d) => {+ if (e) return send(404, 'not found');+ r.writeHead(200, { 'Content-Type': T[path.extname(x.path).toLowerCase()] || 'application/octet-stream' }); r.end(d);+ });+ } catch { send(400, 'bad request'); }});s.listen(port, '127.0.0.1', () => res({ server: s, port: s.address().port }));});diff --git a/core/render/slot.mjs b/core/render/slot.mjsindex e7d1d87..afef967 100644--- a/core/render/slot.mjs+++ b/core/render/slot.mjs@@ -1,39 +1,108 @@-// 整机渲染限流:同一时间最多 RENDER_SLOTS 个整片渲染(默认 3),空闲内存低于 RENDER_MIN_FREE%(默认 30)时排队等。-// video.mjs 自动调用;也可以包住任何命令:node core/render/slot.mjs -- <command…>-// 一个槽位 = 仓库根 .render_slots/ 下的一个目录,里面记着占用者的 pid;占用进程已不在的槽位会被接管。-import fs from 'fs'; import path from 'path'; import { spawn, execFileSync } from 'child_process'; import { fileURLToPath } from 'url';+// 整机渲染限流(可选):同一时间最多 RENDER_SLOTS 个整片渲染;已有渲染在跑、且空闲内存低于 RENDER_MIN_FREE%(默认 30)时排队。+// 只有设了 RENDER_SLOTS 时 video.mjs 才调用它;也可以包住任何命令:node core/render/slot.mjs -- <command…>(不设 RENDER_SLOTS 时按 3 个槽)+// 环境变量:RENDER_SLOTS(整数 ≥1)、RENDER_MIN_FREE(0–100)、RENDER_SLOT_DIR(锁目录,默认 <tmp>/lemo-opuscar-render-slots-<uid>,所有克隆共用,只读仓库也能用)。+// RENDER_SLOT_HELD=1 表示外层已经占了槽:acquire() 直接放行,slot.mjs -- <cmd> 直接运行命令。+// 所以在一个外层 slot.mjs 里并行起多个 video.mjs 时,它们合起来只占一个槽(想各占一个,就不要包外层)。+// 一个槽位 = 锁目录下的一个目录:里面有 pid(占用者)和 beat(占用者每 15 秒 touch 一次的心跳)。+// 占用者进程不在了(EPERM 算还在)、或心跳超过 90 秒没动,槽位就是过期的,可以被接管。+// 所有"看状态 → 接管/占槽"的动作都在一把极短的互斥锁(.mutex 目录)里做,所以任何时刻一个槽位只有一个持有者。+import fs from 'fs'; import os from 'os'; import path from 'path'; import { spawn, execFileSync } from 'child_process'; import { fileURLToPath } from 'url';-const LOCKS = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../.render_slots');-const alive = pid => { try { process.kill(pid, 0); return true; } catch { return false; } };-const freePct = () => { // macOS memory_pressure;其它系统拿不到就不设门槛- try { return +(/free percentage:\s*(\d+)/.exec(execFileSync('memory_pressure', { encoding: 'utf8' }))?.[1] ?? 100); } catch { return 100; }+const DIR = process.env.RENDER_SLOT_DIR || path.join(os.tmpdir(), `lemo-opuscar-render-slots-${process.getuid?.() ?? 'u'}`);+const BEAT_EVERY = 15000, STALE_AFTER = 90000, GRACE = 10000;+const pause = ms => Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);+const warned = new Set();+const warnOnce = m => { if (!warned.has(m)) { warned.add(m); console.error('[slot] ' + m); } };+function envNum(name, def, ok) {+ const v = process.env[name]; if (v == null || v === '') return def;+ const n = Number(v); if (ok(n)) return n;+ warnOnce(`ignoring ${name}="${v}" (using ${def})`); return def;+}+const alive = pid => {+ if (!Number.isInteger(pid) || pid <= 0) return false; // kill(0) 会打到整个进程组,必须挡掉+ try { process.kill(pid, 0); return true; } catch (e) { return e.code === 'EPERM'; } // EPERM = 进程在,只是不是我们的};+const mtime = p => { try { return fs.statSync(p).mtimeMs; } catch { return 0; } };+const readPid = d => { try { return Number(fs.readFileSync(path.join(d, 'pid'), 'utf8').trim()); } catch { return NaN; } };+const rmrf = p => { try { fs.rmSync(p, { recursive: true, force: true }); } catch {} };++// 空闲内存百分比;探测不到就当 100(不设门槛)+export function freePct() {+ try {+ if (process.platform === 'darwin') return +(/free percentage:\s*(\d+)/.exec(execFileSync('memory_pressure', { encoding: 'utf8' }))?.[1] ?? 100);+ if (process.platform === 'linux') {+ const m = fs.readFileSync('/proc/meminfo', 'utf8'), avail = /MemAvailable:\s*(\d+)/.exec(m)?.[1], total = /MemTotal:\s*(\d+)/.exec(m)?.[1];+ if (avail && total) return 100 * avail / total;+ }+ return 100 * os.freemem() / os.totalmem();+ } catch { return 100; }+}++// 互斥锁:mkdir 是原子的;持有者只做几次文件操作,超过 10 秒说明它崩在里面了,可以清掉+function withMutex(fn) {+ const m = path.join(DIR, '.mutex');+ for (;;) {+ try { fs.mkdirSync(m); break; } catch (e) {+ if (e.code !== 'EEXIST') throw e;+ if (Date.now() - mtime(m) > GRACE) { const t = `${m}.stale-${process.pid}-${Date.now()}`; try { fs.renameSync(m, t); } catch {} rmrf(t); continue; }+ pause(3 + Math.random() * 7);+ }+ }+ try { return fn(); } finally { try { fs.rmdirSync(m); } catch {} }+}++function stale(d) {+ const pid = readPid(d);+ if (!Number.isInteger(pid) || pid <= 0) return Date.now() - mtime(d) > GRACE; // pid 文件空/坏:刚建的给 10 秒,之后算过期+ if (!alive(pid)) return true;+ return Date.now() - (mtime(path.join(d, 'beat')) || mtime(d)) > STALE_AFTER;+}++export function tryTake(slots, free, minFree) { // 导出仅供测试+ return withMutex(() => {+ let live = 0; const open = [];+ for (let i = 0; i < slots; i++) {+ const d = path.join(DIR, `slot${i}`);+ if (!fs.existsSync(d)) { open.push(d); continue; }+ if (stale(d)) { const t = `${d}.stale-${process.pid}-${Date.now()}`; try { fs.renameSync(d, t); } catch { live++; continue; } rmrf(t); open.push(d); } else live++;+ }+ if (!open.length) return null;+ if (live > 0 && free < minFree) return null; // 一个渲染都没在跑时永远放行,内存门槛只管"再多开一个"+ const d = open[0]; fs.mkdirSync(d);+ fs.writeFileSync(path.join(d, 'pid'), String(process.pid)); fs.writeFileSync(path.join(d, 'beat'), '');+ return d;+ });+}-export async function acquire({ slots = +(process.env.RENDER_SLOTS || 3), minFree = +(process.env.RENDER_MIN_FREE || 30) } = {}) {- fs.mkdirSync(LOCKS, { recursive: true });+export async function acquire({ slots, minFree } = {}) {+ if (process.env.RENDER_SLOT_HELD === '1') return () => {};+ slots ??= envNum('RENDER_SLOTS', 3, n => Number.isInteger(n) && n >= 1 && n <= 256);+ minFree ??= envNum('RENDER_MIN_FREE', 30, n => Number.isFinite(n) && n >= 0 && n <= 100);+ fs.mkdirSync(DIR, { recursive: true });for (let waited = 0; ; waited++) {- if (freePct() >= minFree) {- for (let i = 0; i < slots; i++) {- const d = path.join(LOCKS, `slot${i}`);- try { if (!alive(+fs.readFileSync(path.join(d, 'pid'), 'utf8'))) fs.rmSync(d, { recursive: true, force: true }); } catch {}- try {- fs.mkdirSync(d); fs.writeFileSync(path.join(d, 'pid'), String(process.pid));- const release = () => { try { fs.rmSync(d, { recursive: true, force: true }); } catch {} };- process.on('exit', release);- return release;- } catch {}- }+ const d = tryTake(slots, freePct(), minFree);+ if (d) {+ const timer = setInterval(() => { try { const n = new Date(); fs.utimesSync(path.join(d, 'beat'), n, n); } catch {} }, BEAT_EVERY); timer.unref();+ let done = false;+ const release = () => {+ if (done) return; done = true; clearInterval(timer);+ if (readPid(d) === process.pid) { const t = `${d}.rel-${process.pid}-${Date.now()}`; try { fs.renameSync(d, t); rmrf(t); } catch { rmrf(d); } } // 只删自己的(被接管后不动别人的)+ };+ process.on('exit', release);+ return release;}- if (waited % 30 === 0) console.log(`waiting for a render slot (max ${slots}, free memory ≥ ${minFree}%)…`);+ if (waited % 30 === 0) console.log(`waiting for a render slot (max ${slots}, free memory ≥ ${minFree}% while others render)…`);await new Promise(r => setTimeout(r, 2000));}}-if (process.argv[1] === fileURLToPath(import.meta.url)) {+const real = p => { try { return fs.realpathSync(p); } catch { return p; } };+if (process.argv[1] && real(process.argv[1]) === real(fileURLToPath(import.meta.url))) {const i = process.argv.indexOf('--'), cmd = i >= 0 ? process.argv.slice(i + 1) : [];if (!cmd.length) { console.error('usage: node core/render/slot.mjs -- <command…>'); process.exit(2); }const release = await acquire();const child = spawn(cmd[0], cmd.slice(1), { stdio: 'inherit', env: { ...process.env, RENDER_SLOT_HELD: '1' } });for (const sig of ['SIGINT', 'SIGTERM']) process.on(sig, () => child.kill(sig));- child.on('exit', (code, sig) => { release(); process.exit(code ?? (sig ? 1 : 0)); });+ child.on('error', e => { console.error(`cannot run ${cmd[0]}: ${e.message}`); release(); process.exit(127); });+ child.on('exit', (code, sig) => { release(); process.exit(code ?? (sig ? 128 + (os.constants.signals[sig] || 1) : 0)); });}diff --git a/core/render/srt.py b/core/render/srt.pyindex 1fbe9e9..dd2fd18 100644--- a/core/render/srt.py+++ b/core/render/srt.py@@ -1,9 +1,13 @@"""导出字幕:python core/render/srt.py cues.json out.srt-cues.json = [{"t0": 1.2, "t1": 3.4, "text": "..."}, ...](通常由 events.mjs 从页面的字幕时间线导出,与画面显示区间一致)+cues.json = [{"t0": 1.2, "t1": 3.4, "text": "..."}, ...](由影片自己写出:比如把页面里驱动字幕的时间线原样存成 JSON,这样 .srt 和画面上的字幕区间一致;+ events.mjs 导出的是 {dur, ev}(音效事件),不是字幕)重叠的相邻字幕自动截断到下一条开始"""import sys, json-cues = sorted(json.load(open(sys.argv[1])), key=lambda c: c['t0'])+if len(sys.argv) < 3: print('usage: python core/render/srt.py cues.json out.srt', file=sys.stderr); sys.exit(2)+cues = sorted(json.load(open(sys.argv[1], encoding='utf-8')), key=lambda c: c['t0'])for k in range(len(cues) - 1): cues[k]['t1'] = min(cues[k]['t1'], cues[k + 1]['t0'])-fmt = lambda s: f"{int(s // 3600):02d}:{int(s % 3600 // 60):02d}:{int(s % 60):02d},{int(round(s % 1 * 1000)) % 1000:03d}"+def fmt(s):+ ms = int(round(max(0, s) * 1000)) # 先整体取整到毫秒再拆,进位才不会丢(1.9996 → 00:00:02,000)+ return f"{ms // 3600000:02d}:{ms // 60000 % 60:02d}:{ms // 1000 % 60:02d},{ms % 1000:03d}"out = '\n'.join(f"{k + 1}\n{fmt(c['t0'])} --> {fmt(c['t1'])}\n{c['text']}\n" for k, c in enumerate(cues))-open(sys.argv[2], 'w').write(out); print(sys.argv[2], len(cues), 'cues')+open(sys.argv[2], 'w', encoding='utf-8').write(out); print(sys.argv[2], len(cues), 'cues')diff --git a/core/render/still.mjs b/core/render/still.mjsindex 5ba3601..0f187e5 100644--- a/core/render/still.mjs+++ b/core/render/still.mjs@@ -1,27 +1,25 @@-// 渲静帧:node core/render/still.mjs styles/<slug>/demo <t> [<t> ...] [--range a:b:step] [--q 'k=v&..'] [--prefix t_] [--out dir]-// 以仓库根为静态服务根,页面需暴露 window.READY 和 window.render(t);页面报错立即退出(非 0)-import { chromium } from 'playwright-core';-import fs from 'fs'; import path from 'path'; import { fileURLToPath } from 'url';-import { serve, pageURL } from './serve.mjs';-import { EXE, ARGS } from './browser.mjs';-const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..');+// 渲静帧:node core/render/still.mjs <demo> <t> [<t> ...] [--range a:b:step] [--q 'k=v&..'] [--prefix t_] [--out dir] [--size 1920x1080]+// <demo> = 含 index.html 的文件夹(例如 styles/<slug>/demo、films/<name>);页面需暴露 window.READY 和 window.render(t)。+// 页面报错、必需的文件 404 都会立即退出(非 0);不给时间点会报用法错误+import fs from 'fs'; import path from 'path';+import { openDemo, closeServer, requireDemo, takeSize } from './page.mjs';const args = process.argv.slice(2);const take = k => { const i = args.indexOf(k); return i >= 0 ? args.splice(i, 2)[1] : null; };-const out = take('--out'), q = take('--q') || '', prefix = take('--prefix') || 't_', rg = take('--range');+const { w, h } = takeSize(args), out = take('--out'), q = take('--q') || '', prefix = take('--prefix') || 't_', rg = take('--range');const [dir, ...times] = args;-if (rg) { const [a, b, st] = rg.split(':').map(Number); for (let x = a; x <= b + 1e-9; x += st) times.push(x.toFixed(2)); }+requireDemo(dir);+if (rg) {+ const [a, b, st] = rg.split(':').map(Number);+ if (![a, b, st].every(Number.isFinite) || !(st > 0) || b < a) { console.error(`bad --range "${rg}": use a:b:step with step > 0 (e.g. 0:50:2.5)`); process.exit(2); }+ for (let x = a; x <= b + 1e-9; x += st) times.push(x.toFixed(2));+}+if (!times.length || times.some(t => !Number.isFinite(parseFloat(t)))) { console.error('usage: node core/render/still.mjs <demo> <t> [<t> ...] [--range a:b:step] [--q k=v] [--prefix t_] [--out dir] [--size WxH]'); process.exit(2); }const outDir = out || path.join(dir, 'stills'); fs.mkdirSync(outDir, { recursive: true });-const { server, port } = await serve(ROOT); // 单页多帧静图-const browser = await chromium.launch({ executablePath: EXE, args: ARGS });-const page = await browser.newPage({ viewport: { width: 1920, height: 1080 }, deviceScaleFactor: 1 });-page.on('console', m => { if (m.type() === 'error' || m.type() === 'warning') console.error('[page]', m.text().slice(0, 300)); });-page.on('pageerror', async e => { console.error('[pageerror]', e.message); await browser.close(); server.close(); process.exit(1); });-await page.goto(pageURL(ROOT, port, dir) + (q ? '?' + q : ''));-await page.waitForFunction(() => window.READY === true, null, { timeout: 180000 });+const { browser, page } = await openDemo(dir, { w, h, q, warnings: true }); // 单页多帧静图for (const ts of times) {const t0 = Date.now();await page.evaluate(t => window.render(t), parseFloat(ts));const f = path.join(outDir, `${prefix}${ts}.jpg`);await page.screenshot({ path: f, type: 'jpeg', quality: 92 }); console.log(f, Date.now() - t0 + 'ms');}-await browser.close(); server.close();+await browser.close(); closeServer();diff --git a/core/render/video.mjs b/core/render/video.mjsindex 5575b83..ccf4fde 100644--- a/core/render/video.mjs+++ b/core/render/video.mjs@@ -1,35 +1,72 @@-// 渲视频:node core/render/video.mjs styles/<slug>/demo [--fps 24] [--workers 3] [--q 'k=v'] [--out out/video.mp4]+// 渲视频:node core/render/video.mjs <demo> [--fps 24] [--workers 3] [--q 'k=v'] [--out <demo>/out/video.mp4] [--size 1920x1080]// 多个片子并行制作时 workers 用 3(默认),单独渲染可开到 6// 每个 worker 独立浏览器,JPEG 截图经管道交给 ffmpeg;最后无损拼接-// 整机最多同时 3 个整片渲染(slot.mjs,RENDER_SLOTS 可改),分段文件放在 --out 旁边的临时目录,同一个 demo 可以并行渲多个版本+// 设了环境变量 RENDER_SLOTS(整数)时,整机最多同时这么多个整片渲染(slot.mjs);不设就不限。分段文件放在 --out 旁边各自独有的隐藏目录,渲完(或失败、被中断)就删。+// 同一个 demo 可以并行渲多个版本,但每个版本要有自己的 --out:两个渲染写同一个 --out 会直接报错,不会悄悄互相覆盖。+// <out>.lock 记着占用者的 pid,占用者已不在、或锁文件超过 12 小时没被刷新(pid 被别的进程复用了),都算过期,新渲染接手。import fs from 'fs'; import path from 'path'; import { spawn, execFileSync } from 'child_process';-import { openDemo, closeServer } from './page.mjs';-import { acquire } from './slot.mjs';-const args = process.argv.slice(2), opt = (k, d) => { const i = args.indexOf(k); return i >= 0 ? args[i + 1] : d; };-const dir = args[0], FPS = +opt('--fps', 24), WK = +opt('--workers', 3), Q = opt('--q', '');+import { openDemo, closeServer, requireDemo, takeSize } from './page.mjs';+const args = process.argv.slice(2), { w: W, h: H } = takeSize(args), opt = (k, d) => { const i = args.indexOf(k); return i >= 0 ? args[i + 1] : d; };+const dir = args[0]; requireDemo(dir);+const FPS = +opt('--fps', 24), WK = +opt('--workers', 3), Q = opt('--q', '');+if (!(FPS > 0) || !Number.isInteger(WK) || WK < 1) { console.error('bad --fps / --workers: fps must be > 0, workers an integer ≥ 1'); process.exit(2); }const out = path.resolve(opt('--out', path.join(dir, 'out', 'video.mp4')));-const segDir = path.join(path.dirname(out), `.${path.basename(out, path.extname(out))}_segs`);-fs.mkdirSync(segDir, { recursive: true });-const release = process.env.RENDER_SLOT_HELD ? () => {} : await acquire();-const probe = await openDemo(dir, { q: Q }); const DUR = await probe.page.evaluate(() => window.DUR); await probe.browser.close();+const outDir = path.dirname(out), base = path.basename(out, path.extname(out));+fs.mkdirSync(outDir, { recursive: true });++// —— 同一个 --out 只能有一个渲染在写:<out>.lock 里记着 pid ——+const alive = pid => { try { process.kill(pid, 0); return true; } catch (e) { return e.code === 'EPERM'; } };+const lock = out + '.lock', LOCK_MAX_AGE = 12 * 3600 * 1000;+try { fs.writeFileSync(lock, String(process.pid), { flag: 'wx' }); } catch {+ const other = Number(fs.readFileSync(lock, 'utf8')), age = Date.now() - fs.statSync(lock).mtimeMs;+ if (Number.isInteger(other) && other > 0 && alive(other) && age < LOCK_MAX_AGE) {+ console.error(`another render (pid ${other}) is already writing ${out}. Give this one its own --out.\n` ++ `If no render is running (a crashed one can leave its lock behind), delete ${lock} and run this again.`); process.exit(2);+ }+ fs.writeFileSync(lock, String(process.pid)); // 上一个渲染崩了(或 pid 已被别的进程占用、锁太旧),接手+}+setInterval(() => { try { const n = new Date(); fs.utimesSync(lock, n, n); } catch {} }, 10 * 60 * 1000).unref(); // 长时间的渲染定期刷新,免得被当成过期+// 清掉崩溃遗留的分段目录(里面的 pid 已不在)+for (const n of fs.readdirSync(outDir)) if (n.startsWith(`.${base}_segs-`)) {+ try { const p = Number(fs.readFileSync(path.join(outDir, n, 'pid'), 'utf8')); if (!alive(p)) fs.rmSync(path.join(outDir, n), { recursive: true, force: true }); } catch {}+}+let segDir = null, cleaned = false; const procs = new Set(); // 在跑的 ffmpeg:清理目录前先停掉,免得它们对着已删的目录报错+const cleanup = () => { if (cleaned) return; cleaned = true; for (const p of procs) p.kill('SIGKILL'); if (segDir) fs.rmSync(segDir, { recursive: true, force: true }); try { fs.unlinkSync(lock); } catch {} };+process.on('exit', cleanup);+for (const sig of ['SIGINT', 'SIGTERM']) process.on(sig, () => { cleanup(); process.exit(128 + (sig === 'SIGINT' ? 2 : 15)); });+const fail = msg => { console.error(msg); cleanup(); process.exit(1); };++const release = process.env.RENDER_SLOTS ? await (await import('./slot.mjs')).acquire() : () => {}; // RENDER_SLOT_HELD=1(外层已占槽)时直接放行+segDir = fs.mkdtempSync(path.join(outDir, `.${base}_segs-`)); fs.writeFileSync(path.join(segDir, 'pid'), String(process.pid));+const probe = await openDemo(dir, { w: W, h: H, q: Q }); const DUR = await probe.page.evaluate(() => window.DUR); await probe.browser.close();+if (!(DUR > 0)) fail(`window.DUR must be a positive number of seconds (got ${DUR})`);const TOTAL = Math.round(DUR * FPS), per = Math.ceil(TOTAL / WK), t0 = Date.now();-await Promise.all([...Array(WK)].map(async (_, w) => {+try { await Promise.all([...Array(WK)].map(async (_, w) => {const a = w * per, b = Math.min(TOTAL, a + per); if (a >= b) return;- const { browser, page } = await openDemo(dir, { q: Q });+ const { browser, page } = await openDemo(dir, { w: W, h: H, q: Q });+ // cwd 设在分段目录、用相对文件名:路径里有 # ? 之类的字符时 ffmpeg 才不会把它当协议语法const ff = spawn('ffmpeg', ['-y', '-loglevel', 'error', '-f', 'image2pipe', '-framerate', String(FPS), '-c:v', 'mjpeg', '-i', '-',- '-c:v', 'libx264', '-preset', 'medium', '-crf', '14', '-pix_fmt', 'yuv420p', path.join(segDir, `seg_${w}.mp4`)]);- for (let f = a; f < b; f++) {+ '-c:v', 'libx264', '-preset', 'medium', '-crf', '14', '-pix_fmt', 'yuv420p', `seg_${w}.mp4`], { cwd: segDir, stdio: ['pipe', 'inherit', 'inherit'] });+ procs.add(ff); ff.on('close', () => procs.delete(ff));+ let dead = null; // ffmpeg 提前退出(缺编码器、磁盘满…):它自己的报错已打到 stderr,这里只记一笔并停止喂帧+ let done; const closed = new Promise(r => { done = r; }); ff.on('close', code => done(code));+ ff.on('error', e => { dead = e.code === 'ENOENT' ? 'ffmpeg is not installed (or not on PATH)' : e.message; done(-1); });+ ff.stdin.on('error', () => { dead ??= 'ffmpeg closed its input early'; });+ for (let f = a; f < b && !dead; f++) {await page.evaluate(t => window.render(t), f / FPS);const buf = await page.screenshot({ type: 'jpeg', quality: 95 });- if (!ff.stdin.write(buf)) await new Promise(r => ff.stdin.once('drain', r));+ if (dead) break;+ if (!ff.stdin.write(buf)) await Promise.race([new Promise(r => ff.stdin.once('drain', r)), closed]);if ((f - a) % 60 === 0) console.log(`w${w} ${f - a}/${b - a} ${((Date.now() - t0) / 1000).toFixed(0)}s`);}- ff.stdin.end(); await new Promise(r => ff.on('close', r)); await browser.close();-}));+ ff.stdin.end(); const code = await closed; await browser.close();+ if (dead || code !== 0) fail(`ffmpeg failed for worker ${w}: ${dead || 'exit code ' + code} (ffmpeg's own message, if any, is above)`);+})); } catch (e) { fail(`render stopped: ${String(e.message || e).split('\n')[0]}`); } // 例如页面的 render(t) 抛了错const list = path.join(segDir, 'segs.txt');fs.writeFileSync(list, [...Array(WK)].map((_, w) => `file 'seg_${w}.mp4'`).filter((_, w) => w * per < TOTAL).join('\n'));-execFileSync('ffmpeg', ['-y', '-loglevel', 'error', '-f', 'concat', '-safe', '0', '-i', list, '-c', 'copy', out]);-fs.rmSync(segDir, { recursive: true, force: true });-release();+try { execFileSync('ffmpeg', ['-y', '-loglevel', 'error', '-f', 'concat', '-safe', '0', '-i', 'segs.txt', '-c', 'copy', 'merged.mp4'], { cwd: segDir, stdio: ['ignore', 'inherit', 'inherit'] }); }+catch { fail('ffmpeg could not join the segments (its message is above)'); }+fs.renameSync(path.join(segDir, 'merged.mp4'), out); // 最终文件名里有什么字符都无所谓:不经过 ffmpeg+cleanup(); release();console.log('done', out, TOTAL, 'frames', ((Date.now() - t0) / 1000).toFixed(0) + 's');closeServer();diff --git a/core/tts/asr_check.py b/core/tts/asr_check.pyindex 9bf7a78..9a1b7f4 100644--- a/core/tts/asr_check.py+++ b/core/tts/asr_check.py@@ -1,19 +1,122 @@-"""whisper 自检:python core/tts/asr_check.py lines.json voices_dir-逐句对比原文与转写;前后补 0.6s 静音再转写(短句不补容易听错);输出逐词时间戳 voices_dir/words.json(口型、断句用)-lines.json 里可加 "asr" 字段覆盖期望文本(专有名词、拟声词)"""-import sys, json, re, os, numpy as np, soundfile as sf, librosa-from faster_whisper import WhisperModel-m = WhisperModel('base.en', device='cpu', compute_type='int8')-norm = lambda s: re.sub(r'[^a-z0-9 ]', '', s.lower().replace("'", '').replace('-', ' ')).split()-bad, words = 0, {}-for L in json.load(open(sys.argv[1])):- y, sr = sf.read(os.path.join(sys.argv[2], L['id'] + '.wav'))- if y.ndim > 1: y = y.mean(1)- y = librosa.resample(y, orig_sr=sr, target_sr=16000); pad = np.zeros(int(.6 * 16000))- segs, _ = m.transcribe(np.concatenate([pad, y, pad]).astype(np.float32), beam_size=5, language='en', word_timestamps=True)- segs = list(segs); got = ' '.join(s.text.strip() for s in segs)- words[L['id']] = [(w.word.strip(), round(w.start - .6, 3), round(w.end - .6, 3)) for s in segs for w in s.words]- want = L.get('asr', L['text']); ok = norm(got) == norm(want); bad += not ok- print(('OK ' if ok else 'DIFF'), L['id'], '|', want, '→', got)-json.dump(words, open(os.path.join(sys.argv[2], 'words.json'), 'w'), indent=0)-print('mismatches:', bad)+"""whisper 逐句校对:python core/tts/asr_check.py lines.json voices_dir [--lang en|zh|auto] [--model base|small|…] [--threshold 0.92]+逐句对比原文与转写:前后补 0.6s 静音再转写(短句不补容易听错),输出逐词时间戳 voices_dir/words.json(口型、断句用)。+lines.json 里可加 "asr" 字段覆盖期望文本(专有名词、拟声词、数字的读法,例如 "三十八" 而不是 "38")。+--lang auto(默认)按文本里有没有汉字判断;en 要求去掉标点和大小写后逐词完全一致(0–999 的数字两边都换成读法,所以+ "forty" 和 "40" 算一样;更大的数、年份、序数 3rd、带标点的数(3.5、1:30、1,000、40%)不换,期望的转写写进 "asr" 字段);zh(也可用 ja / ko)按字符相似度,+ 去标点、全半角、汉字数字变阿拉伯数字后 difflib 相似度 ≥ --threshold(默认 0.92)算通过。+模型:--model(或环境变量 WHISPER_MODEL;模型名,或本地目录,离线可用);默认 en → base.en,其它语言 → base(多语言)。+ base 把某句听错、而你听着没错时,换 --model small 再查(更准,约 480 MB,慢几倍)。+ 首次运行会从 Hugging Face 下载(base / base.en ≈ 145 MB);防火墙后面:HF_ENDPOINT=https://hf-mirror.com,+ 或者事先下好,再 --model /path/to/model-dir。+退出码:0 全部通过;1 有不一致;2 检查没能运行(模型加载失败等)。+"""+import sys, json, re, os, argparse, difflib, unicodedata++CJK = re.compile('[㐀-鿿豈--ヿ가-]')+CHAR_LANGS = {'zh', 'ja', 'ko'} # 这些语言按字符比,其余按词比+_DIGITS = str.maketrans('零〇一二三四五六七八九', '00123456789')+++_ONES = 'zero one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen'.split()+_TENS = 'x x twenty thirty forty fifty sixty seventy eighty ninety'.split()+++def num_words(n):+ """0–999 → 英文读法的词列表:40 → ['forty'],105 → ['one', 'hundred', 'five']"""+ out = []+ if n >= 100: out += [_ONES[n // 100], 'hundred']; n %= 100+ if n >= 20: out.append(_TENS[n // 10]); n %= 10+ if n or not out: out.append(_ONES[n]) # 整百(100、200…)不再补 zero;0 本身要读 zero+ return out+++_SENTENCE_PUNCT = '.,;:!?"()[]{}\u2026\u201c\u201d\u2018\u2019' # 词两头的标点(句号、逗号、括号…);百分号不在其内+++def _is_formatted_number(raw):+ """数字之间带标点的写法:小数 3.5、时间 1:30、日期 12/25、千分位 1,000,以及带百分号的 40%。+ 去掉标点后它们会和另一个数长得一样(3.5 → 35),所以不能转成读法。"""+ core = raw.strip(_SENTENCE_PUNCT)+ return bool(re.search(r'\d[.,:/]\d', core) or ('%' in core and re.search(r'\d', core)))+++def norm_en(s):+ """英文比较用的词表:小写、去标点;0–999 的整数(whisper 常把 forty 写成 40)换成读法,"hundred and" 的 and 不计。+ 保持原样(只去标点,不换成读法)的:更大的数、年份、序数(3rd)、以及带标点的数(小数 3.5、时间 1:30、千分位 1,000、百分数 40%)——+ 否则 3.5 会变成 35、和 "thirty five" 混淆。它们的读法请在 lines.json 的 asr 字段里写出期望的转写。"""+ out = []+ for raw in s.lower().replace("'", '').replace('-', ' ').split():+ w = re.sub(r"[^a-z0-9]", '', raw)+ if not w: continue+ if re.fullmatch(r'0|[1-9]\d{0,2}', w) and not _is_formatted_number(raw): out += num_words(int(w))+ elif w == 'and' and out and out[-1] == 'hundred': pass+ else: out.append(w)+ return out+++def norm_zh(s):+ s = unicodedata.normalize('NFKC', s).lower().translate(_DIGITS) # NFKC:全角→半角、兼容字形归一+ return ''.join(c for c in s if unicodedata.category(c)[0] in 'LN') # 只留字母/汉字/数字,标点空白全去掉+++def detect_lang(texts):+ cjk = sum(len(CJK.findall(t)) for t in texts); latin = sum(len(re.findall('[A-Za-z]', t)) for t in texts)+ return 'zh' if cjk and cjk >= 0.3 * (cjk + latin) else 'en'+++def compare(want, got, lang, threshold=0.92):+ """返回 (是否通过, 相似度 0..1)"""+ if lang in CHAR_LANGS:+ a, b = norm_zh(want), norm_zh(got)+ r = difflib.SequenceMatcher(None, a, b).ratio() if (a or b) else 1.0+ return r >= threshold, r+ a, b = norm_en(want), norm_en(got)+ return a == b, 1.0 if a == b else difflib.SequenceMatcher(None, a, b).ratio()+++def load_model(name):+ try: from faster_whisper import WhisperModel+ except ImportError: sys.exit('asr_check.py: faster-whisper is missing: install the voice tier: sh plugin/skills/lemo-opuscar/scripts/setup.sh deps voice')+ try:+ return WhisperModel(name, device='cpu', compute_type='int8')+ except Exception as e:+ msg = f'{type(e).__name__}: {e}'+ print(f"asr_check.py: cannot load the whisper model '{name}'.\n {msg[:300]}", file=sys.stderr)+ if not os.path.isdir(name):+ print(" The model is downloaded from huggingface.co on first use. If that site is blocked or you are offline:\n"+ " set HF_ENDPOINT=https://hf-mirror.com (a mirror), or download the model once and pass --model /path/to/model-dir", file=sys.stderr)+ sys.exit(2)+++def main():+ ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)+ ap.add_argument('lines'); ap.add_argument('voices_dir')+ ap.add_argument('--lang', default='auto'); ap.add_argument('--model'); ap.add_argument('--threshold', type=float, default=0.92)+ a = ap.parse_args()+ lines = json.load(open(a.lines, encoding='utf-8'))+ want = {L['id']: L.get('asr', L['text']) for L in lines}+ lang = detect_lang(list(want.values())) if a.lang == 'auto' else a.lang+ name = a.model or os.environ.get('WHISPER_MODEL') or ('base.en' if lang == 'en' else 'base')+ if lang != 'en' and os.path.basename(name.rstrip('/')).endswith('.en'):+ print(f"asr_check.py: model '{name}' is English-only but the lines are '{lang}'. Use a multilingual model (e.g. --model base or --model small).", file=sys.stderr); sys.exit(2)+ import numpy as np, soundfile as sf, soxr+ m = load_model(name)+ bad, words = 0, {}+ for L in lines:+ y, sr = sf.read(os.path.join(a.voices_dir, L['id'] + '.wav'))+ if y.ndim > 1: y = y.mean(1)+ y = soxr.resample(y, sr, 16000, quality='HQ'); pad = np.zeros(int(.6 * 16000)) # 与 librosa 默认的 soxr_hq 相同+ kw = dict(initial_prompt='以下是普通话的句子。') if lang == 'zh' else {} # 提示成简体,避免转写出繁体+ segs, _ = m.transcribe(np.concatenate([pad, y, pad]).astype(np.float32), beam_size=5, language=lang, word_timestamps=True, **kw)+ tail = (len(y) + len(pad)) / 16000 - .5 # Whisper sometimes repeats the line inside the trailing pad: drop such no-speech segments+ segs = [s for s in segs if not (s.no_speech_prob > .5 and s.start > tail)]; got = ' '.join(s.text.strip() for s in segs)+ words[L['id']] = [(w.word.strip(), round(w.start - .6, 3), round(w.end - .6, 3)) for s in segs for w in s.words]+ ok, r = compare(want[L['id']], got, lang, a.threshold); bad += not ok+ print(('OK ' if ok else 'DIFF'), L['id'], '|', want[L['id']], '→', got, ('' if ok or lang == 'en' else f' (similarity {r:.2f} < {a.threshold})'))+ json.dump(words, open(os.path.join(a.voices_dir, 'words.json'), 'w', encoding='utf-8'), indent=0, ensure_ascii=False)+ print('mismatches:', bad, f'(lang={lang}, model={name})')+ sys.exit(1 if bad else 0)+++if __name__ == '__main__':+ main()diff --git a/core/tts/tts.py b/core/tts/tts.pyindex f2159ce..23ee6c0 100644--- a/core/tts/tts.py+++ b/core/tts/tts.py@@ -1,18 +1,55 @@-"""Kokoro 本地配音:python core/tts/tts.py lines.json out_dir-lines.json = [{"id":..., "text":..., "voice":"bm_george", "speed":0.92}, ...]+"""Kokoro 本地配音(离线):python core/tts/tts.py lines.json out_dir+lines.json = [{"id":..., "text":..., "voice":"bm_george", "speed":0.92, "lang":"en-us"}, ...]+ 默认 voice=af_bella、speed=0.92、lang=en-us。中文用 "lang":"cmn" 加 zf_*/zm_* 声音(离线可用,音色一般)。输出 out_dir/<id>.wav(24kHz,去首尾静音)与 out_dir/dur.json-模型:kokoro-v1.0.onnx / voices-v1.0.bin(github.com/thewh1teagle/kokoro-onnx releases)放在本目录+模型:kokoro-v1.0.onnx / voices-v1.0.bin 放在本目录,下载:sh tools/fetch.sh voice(约 350 MB)+路径限制:espeak-ng(Kokoro 用它把文字转成音素)的数据目录,解析软链后的真实路径必须短于 160 字节(汉字算 3 字节),否则找不到数据、+ 报一个指向别人机器上某个路径(编译 espeak-ng 的那台)的莫名其妙的错。库放在 ~/lemo-opuscar 之类的短路径下就没事;本脚本开工前会检查并说明。+要更自然的中文/日文等声音:core/tts/tts_zh.py(微软 edge-tts,要联网),接口和输出布局相同。"""-import sys, json, os, numpy as np, soundfile as sf-from kokoro_onnx import Kokoro+import sys, json, os, re+if len(sys.argv) < 3 or sys.argv[1] in ('-h', '--help'):+ print(__doc__); sys.exit(0 if len(sys.argv) > 1 and sys.argv[1] in ('-h', '--help') else 2)+import numpy as np, soundfile as sfHERE = os.path.dirname(os.path.abspath(__file__))-k = Kokoro(os.path.join(HERE, 'kokoro-v1.0.onnx'), os.path.join(HERE, 'voices-v1.0.bin'))-lines, out = json.load(open(sys.argv[1])), sys.argv[2]+CJK = re.compile('[-ヿ㐀-鿿가-豈-]')+DEFAULT_VOICE = {'cmn': 'zf_xiaoxiao'}+lines, out = json.load(open(sys.argv[1], encoding='utf-8')), sys.argv[2]++# 先查输入,再加载模型(模型要几秒)+wrong = [L['id'] for L in lines if L.get('lang', 'en-us').lower().startswith('en') and CJK.search(L['text'])]+if wrong:+ sys.exit(f"tts.py: line(s) {', '.join(map(str, wrong))} contain Chinese/Japanese/Korean text but lang is English, and Kokoro would read them as noise.\n"+ f" offline: add \"lang\": \"cmn\" and a zf_*/zm_* voice to those lines; more natural (needs network): python core/tts/tts_zh.py {sys.argv[1]} {out}")+model, voices = os.path.join(HERE, 'kokoro-v1.0.onnx'), os.path.join(HERE, 'voices-v1.0.bin')+if not (os.path.exists(model) and os.path.exists(voices)):+ sys.exit(f'tts.py: the Kokoro model is not in {HERE}.\n install the voice tier: sh plugin/skills/lemo-opuscar/scripts/setup.sh deps voice (from the library root; it also fetches the model, about 350 MB)')+ESPEAK_LIMIT = 160 # 实测:espeak-ng 数据目录的真实路径 ≤159 字节能用,≥160 字节找不到 phontab(软链先被解析,量的是真实路径)+try:+ import espeakng_loader+ espeak_dir = os.path.realpath(espeakng_loader.get_data_path())+except Exception:+ espeak_dir = None # 装的不是 espeakng_loader(比如系统的 espeak-ng):不检查,让 Kokoro 自己报错+if espeak_dir and len(espeak_dir.encode('utf-8')) >= ESPEAK_LIMIT:+ sys.exit(f"tts.py: this library sits under a folder path that is too long for the offline voice engine (espeak-ng).\n"+ f" its data folder is {len(espeak_dir.encode('utf-8'))} bytes long (a Chinese character counts as 3), the limit is {ESPEAK_LIMIT - 1}:\n"+ f" {espeak_dir}\n"+ f" Move the library to a shorter path (e.g. LEMO_OPUSCAR_HOME=~/lemo-opuscar, or a shorter folder for the clone) and run\n"+ f" `sh plugin/skills/lemo-opuscar/scripts/setup.sh deps` there (a moved .venv does not work). No need to move anything for tts_zh.py.")+try: from kokoro_onnx import Kokoro+except ImportError: sys.exit('tts.py: kokoro-onnx is missing: install the voice tier: sh plugin/skills/lemo-opuscar/scripts/setup.sh deps voice')+k = Kokoro(model, voices)+avail = k.get_voices()+for L in lines:+ v = L.get('voice') or DEFAULT_VOICE.get(L.get('lang', 'en-us'), 'af_bella')+ if v not in avail: sys.exit(f"tts.py: unknown voice '{v}' in line '{L['id']}'.\n available: {', '.join(avail)}")os.makedirs(out, exist_ok=True); dur = {}for L in lines:- a, sr = k.create(L['text'], voice=L.get('voice', 'af_bella'), speed=L.get('speed', .92), lang=L.get('lang', 'en-us'))- thr = np.abs(a).max() * .02; nz = np.where(np.abs(a) > thr)[0]- a = a[max(0, nz[0] - int(.03 * sr)): nz[-1] + int(.08 * sr)]+ lang = L.get('lang', 'en-us')+ a, sr = k.create(L['text'], voice=L.get('voice') or DEFAULT_VOICE.get(lang, 'af_bella'), speed=L.get('speed', .92), lang=lang)+ nz = np.where(np.abs(a) > (np.abs(a).max() if len(a) else 0) * .02)[0]+ if len(nz): a = a[max(0, nz[0] - int(.03 * sr)): nz[-1] + int(.08 * sr)] # 去首尾静音;整段几乎无声就原样保留+ else: print('warning: line', L['id'], 'is silent', file=sys.stderr)sf.write(os.path.join(out, L['id'] + '.wav'), a, sr); dur[L['id']] = round(len(a) / sr, 3)print(L['id'], dur[L['id']], L['text'])-json.dump(dur, open(os.path.join(out, 'dur.json'), 'w'), indent=1)+json.dump(dur, open(os.path.join(out, 'dur.json'), 'w', encoding='utf-8'), indent=1)diff --git a/core/tts/tts_zh.py b/core/tts/tts_zh.pynew file mode 100644index 0000000..08d3d6d--- /dev/null+++ b/core/tts/tts_zh.py@@ -0,0 +1,106 @@+"""edge-tts 配音(微软神经语音,中文首选,也能念其它语言):+ python core/tts/tts_zh.py lines.json out_dir [--voice zh-CN-XiaoxiaoNeural] [--rate +0%] [--pitch +0Hz]+lines.json = [{"id":..., "text":..., "voice":"zh-CN-YunxiNeural", "rate":"+10%", "pitch":"-2Hz", "say":"..."}, ...]+ "say"(可选)= 实际送去朗读的文字,默认同 "text"(数字、缩写要写成读法时用;字幕仍用 text)。+ 也认 tts.py 的 "speed"(倍速,1.1 → +10%)。声音列表:python -m edge_tts --list-voices+输出与 tts.py 完全一致:out_dir/<id>.wav(24kHz 单声道,去首尾静音)与 out_dir/dur.json。+ 中间的 mp3 缓存在 out_dir/.cache/,文字/声音/语速没变就不再联网(先写 .part 再改名,Ctrl-C 不会留下半个文件被下次当成好的;+ 缓存里已经坏了的 mp3 会自动删掉重下)。++需要联网:这是微软的在线语音服务,不是本地模型。用它做的声音能不能商用,请自己看微软的服务条款。+网络不通、被防火墙挡住时报错退出(退出码 2;输入或配置有误是 1);离线的替代:tts.py 的 "lang":"cmn"(Kokoro,音色一般,用 asr_check.py 校对)。+"""+import sys, io, json, os, re, asyncio, hashlib, subprocess, argparse+import numpy as np, soundfile as sf+SR = 24000+++def rate_of(L, default):+ r = L.get('rate')+ if r is None and 'speed' in L: r = float(L['speed'])+ if isinstance(r, (int, float)): r = f'{round((float(r) - 1) * 100):+d}%' # 数字当倍速+ return r or default+++async def synth(text, voice, rate, pitch, path):+ """下载到 path:先写 path.part,成功了才改名,所以 path 存在就一定是完整的(任何中断,包括 Ctrl-C,都不会留下半个文件)"""+ import edge_tts+ part = path + '.part'+ last = None+ try:+ for attempt in range(3): # 偶发的网络抖动重试两次+ try:+ await edge_tts.Communicate(text, voice, rate=rate, pitch=pitch).save(part)+ if os.path.getsize(part) == 0: raise OSError('the service returned an empty file')+ os.replace(part, path); return+ except Exception as e:+ last = e+ if type(e).__name__ == 'NoAudioReceived': break # 声音名/文字不对,重试没用+ await asyncio.sleep(1.5 * (attempt + 1))+ raise last+ finally:+ if os.path.exists(part): os.remove(part) # 失败、Ctrl-C 都清掉+++def to_wav(mp3):+ """解码成 24 kHz 单声道;文件坏了返回 None(调用者删掉缓存重下)"""+ try:+ r = subprocess.run(['ffmpeg', '-y', '-loglevel', 'error', '-i', mp3, '-ar', str(SR), '-ac', '1', '-f', 'wav', '-'], capture_output=True, check=True)+ except FileNotFoundError: sys.exit('tts_zh.py: ffmpeg is needed to decode the audio (install it and make sure it is on PATH)')+ except subprocess.CalledProcessError: return None+ try: a, sr = sf.read(io.BytesIO(r.stdout), dtype='float32')+ except Exception: return None+ return (a, sr) if len(a) else None+++def plausible(decoded):+ """缓存里的 mp3 解出来要像一句话:至少 0.15 秒且不是静音(半截文件常常"解码成功"但只剩一小段静音)"""+ if decoded is None: return False+ a, sr = decoded; return len(a) >= 0.15 * sr and float(np.abs(a).max()) > 1e-3+++def main():+ ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)+ ap.add_argument('lines'); ap.add_argument('out_dir')+ ap.add_argument('--voice', default='zh-CN-XiaoxiaoNeural'); ap.add_argument('--rate', default='+0%'); ap.add_argument('--pitch', default='+0Hz')+ a = ap.parse_args()+ lines = json.load(open(a.lines, encoding='utf-8'))+ for L in lines:+ r, p = rate_of(L, a.rate), L.get('pitch', a.pitch)+ if not re.fullmatch(r'[+-]\d+%', r): sys.exit(f"tts_zh.py: line '{L['id']}': rate must look like '+10%' or '-5%' (or a speed number like 1.1), got {r!r}")+ if not re.fullmatch(r'[+-]\d+Hz', p): sys.exit(f"tts_zh.py: line '{L['id']}': pitch must look like '-2Hz' or '+0Hz', got {p!r}")+ try: import edge_tts # noqa: F401+ except ImportError: sys.exit('tts_zh.py: edge-tts is missing: install the voice tier: sh plugin/skills/lemo-opuscar/scripts/setup.sh deps voice')+ os.makedirs(os.path.join(a.out_dir, '.cache'), exist_ok=True); dur = {}+ for n in os.listdir(os.path.join(a.out_dir, '.cache')):+ if n.endswith('.part'): os.remove(os.path.join(a.out_dir, '.cache', n)) # 上次被打断留下的半成品+ for L in lines:+ voice, rate, pitch, say = L.get('voice', a.voice), rate_of(L, a.rate), L.get('pitch', a.pitch), L.get('say', L['text'])+ key = hashlib.sha1(json.dumps([voice, rate, pitch, say], ensure_ascii=False).encode('utf-8')).hexdigest()[:16]+ mp3 = os.path.join(a.out_dir, '.cache', key + '.mp3')+ decoded = to_wav(mp3) if os.path.exists(mp3) else None+ if not plausible(decoded): decoded = None+ if decoded is None and os.path.exists(mp3): os.remove(mp3); print(f"tts_zh.py: cached audio for line '{L['id']}' was damaged; fetching it again", file=sys.stderr)+ if decoded is None:+ try: asyncio.run(synth(say, voice, rate, pitch, mp3))+ except Exception as e:+ if type(e).__name__ == 'NoAudioReceived':+ sys.exit(f"tts_zh.py: no audio came back for line '{L['id']}'. Is the voice name '{voice}' valid (python -m edge_tts --list-voices) and the text speakable?")+ if isinstance(e, ValueError): # 参数本身不对(比如声音名不存在),根本没发请求+ sys.exit(f"tts_zh.py: line '{L['id']}': {e} (voices: python -m edge_tts --list-voices)")+ print(f"tts_zh.py: could not reach Microsoft's speech service for line '{L['id']}': {type(e).__name__}: {str(e)[:200]}\n"+ " edge-tts needs a network connection (and can be blocked by a firewall/proxy). Offline alternative: tts.py with \"lang\": \"cmn\".", file=sys.stderr)+ sys.exit(2) # 退出码 2 = 网络问题;1 = 输入/配置有误+ decoded = to_wav(mp3)+ if decoded is None: sys.exit(f"tts_zh.py: the audio Microsoft returned for line '{L['id']}' could not be decoded (ffmpeg); try again")+ y, sr = decoded+ nz = np.where(np.abs(y) > (np.abs(y).max() if len(y) else 0) * .02)[0]+ if len(nz): y = y[max(0, nz[0] - int(.03 * sr)): nz[-1] + int(.10 * sr)] # 去首尾静音;尾巴留长一点,免得吃掉句尾的余音+ else: print('warning: line', L['id'], 'is silent', file=sys.stderr)+ sf.write(os.path.join(a.out_dir, L['id'] + '.wav'), y, sr); dur[L['id']] = round(len(y) / sr, 3)+ print(L['id'], dur[L['id']], L['text'])+ json.dump(dur, open(os.path.join(a.out_dir, 'dur.json'), 'w', encoding='utf-8'), indent=1)+++if __name__ == '__main__':+ main()diff --git a/docs/frames/picks.json b/docs/frames/picks.jsondeleted file mode 100644index e038075..0000000--- a/docs/frames/picks.json+++ /dev/null@@ -1,45 +0,0 @@-{- "crayon-book": 43.68,- "watercolor": 68.16,- "ink-wash": 34.56,- "impasto": 28.58,- "one-line": 39.9,- "whiteboard": 55.5,- "urban-sketch": 16.2,- "shadow-puppet": 21.76,- "ukiyoe": 26.4,- "papercut-red": 35.28,- "paper-lantern": 60.9,- "risograph": 28.8,- "halftone-dossier": 9.0,- "woodcut": 49.14,- "swiss-motion": 31.68,- "spy-titles": 26.46,- "art-deco": 17.52,- "blueprint": 33.62,- "stained-glass": 40.68,- "pictogram-motion": 65.44,- "ascii-crt": 50.23,- "dataviz": 42.0,- "iso-infographic": 35.28,- "dark-keynote": 8.4,- "living-screencast": 5.94,- "rubber-hose": 30.0,- "cel-anime-80s": 17.7,- "scifi-toon": 11.5,- "pixel-rpg": 27.25,- "hd-2d": 55.08,- "microgame": 23.92,- "game-show": 74.4,- "silent-film": 39.02,- "backrooms": 35.82,- "brick-toy": 38.88,- "paper-popup": 26.6,- "tilt-shift": 22.8,- "lowpoly-island": 21.2,- "glass-product": 19.2,- "midcentury-toon": 3.2,- "hologram-hud": 25.5,- "engraving": 34.0,- "silkscreen-poster": 34.0-}\ No newline at end of filediff --git a/docs/zh-CN/DIRECTOR.md b/docs/zh-CN/DIRECTOR.mddeleted file mode 100644index 10a9218..0000000--- a/docs/zh-CN/DIRECTOR.md+++ /dev/null@@ -1,124 +0,0 @@-# 导演方法--这是本库每一支片子背后的导演方法。配合某个风格的 `styles/<slug>/STYLE.md`(这个风格长什么样、听起来什么样)和 [技术方法](TECHNIQUE.md)(怎么做出来)一起用。English: [DIRECTOR.md](../../DIRECTOR.md)--你是导演,不是在做技术演示。评判顺序:**音效、节奏、镜头、导演能力**(表演、调度、情绪弧)。画面好看只是起点。--## 1. 接需求--用户给风格和主题,有时还会给时长、语言、声线、必须出现的镜头、品牌要求。没说的都由你决定。--开工前,先确认风格和主题都已明确,然后**只问一次,一条消息问完**(风格如果要问,也放在这条里):--- 你确实没法自己定的事(通常是主题本身的事实,以及有没有必须出现的名字、标志、产品);-- 用户有没有自己的素材要用:录好的配音或指定的声线、音乐、照片、标志、字体;-- 要不要在制作前先看分镜故事板(默认不看)。--用户的需求里已经说清的就不再问。等用户回复后,用几行话总结需求,然后开工,之后不再回头追问。默认值:--- 时长 **30–60 秒**,故事讲完就收,紧凑好过注水。-- 1920×1080,24 fps 输出。-- 旁白或对白用用户说话的语言(另有要求除外);烧录字幕,并导出 `.srt`。-- 响度 −14 LUFS。--## 2. 先找对标--动笔前选一两部参照作品(电影、片头、游戏、广告),用它来定这个风格和主题的水准。写清楚:--- **学什么**:构图、节奏、镜头语法、配色逻辑、配乐结构。-- **不学什么**:角色、造型、旋律、具体画面、标志、字体。--对标对质量的提升,比下面任何一条规则都大。每份 `STYLE.md` 都写了我们用的对标。--## 3. 故事--- **一个主体、一个目标、一次转折**。一个角色(或一个物件、产品、想法)想要一样东西,发生变化,结局和开头不一样。-- **开场 3 秒内抓人**,不要先放慢吞吞的标志。-- **结尾有回响**:首尾呼应、尺度揭示,或者角色第二次做对了。-- **一个原生招式**:只有这种媒介做得到的时刻(折纸的一折变成转场、墨滴洇开成下一场、网格一合拢成为标志),放在情绪最高点。每份 `STYLE.md` §2 都有建议。-- **做减法**:一个缩略图上看得懂的笑点,好过三个看不懂的。需要解释的段落就删掉。--## 4. 写导演方案--画任何东西之前,先写 `TREATMENT.md`:--1. **一句话故事和情绪弧**:铺垫 → 转折 → 结局。-2. **对标**:学什么 / 不学什么。-3. **镜头表**:每个镜头的景别(远 / 全 / 中 / 近 / 特写)、角度、运动(推、拉、摇、移、升降、变焦)、时长,以及**为什么这样拍**。-4. **分镜节拍表**,按秒。-5. **cue map**:速度、小节网格、每段配器,以及每个剪辑点、关键动作、字幕落在哪一拍。-6. **声音设计表**:每段的环境底、主要拟音、音乐状态。-7. **字幕和片名设计**:字体排版也是风格的一部分。--## 5. 定画面--- **有角色**:画角色设定表(转面、3–4 个表情、2–3 个关键姿势、配色)和 2 张风格帧。-- **没有角色**:3 张片中的风格帧,其中一张是签名镜头。--用真正的绘制代码渲出来,不要做示意图,并自己对照 `STYLE.md` 检查一遍再往下走。--### 分镜故事板(仅在用户要求时)--用真正的绘制代码渲 6–9 个关键镜头,拼成一张分镜故事板(`core/render/sheet.py`),每格下面写镜头号、景别、时长和台词或节拍。连同一句话故事和你最没把握的地方一起发给用户,**等确认**。在这里改方向花几分钟;全片渲完再改要花几小时。--用户没要分镜,就不要停,直接做完成片。--## 6. 声音是片子的一半--- **画面上每个动作都有声音**:落地、翻页、刀刻、墨滴、按钮、布料。按材质做(纸、木、金属、墨、玻璃的声音都不一样)。-- **三层**:环境底(房间音、风、雨、城市)、拟音(跟动作)、音乐。对白和关键拟音出现时,音乐要让路。-- **至少两处真正的静音**或近乎静音,放在转折前或情绪最高点前。静音后的第一个声音,要是全片最重要的声音之一。-- **用声音做转场**至少两次:下一场的声音提前进来(J-cut),或上一场的声音延续过剪辑点(L-cut)。-- **不要通用的"钢琴 + 弦乐"**。用这个风格自己的编制:橡皮管卡通用大乐队,浮世绘用太鼓和三味线,默片用影院立式钢琴。--## 7. 节奏:先有音乐网格--- 先写 cue map 再做动画。画面卡在网格上,并用脚本核对每个卡点(见技术方法 §3)。-- **节奏要有变化**:快慢交替,有一次明显的加速或减速,留一处让观众"呼吸"(长镜头或停顿)。全片匀速就是失败。-- 一个动作 = 一个声音 = 一个剪辑点,但不要每拍都切,要留出看清的时间。-- **节奏以观众为准,不以时长为准**:- - 每句字幕至少停 1.8 秒,且不短于语音 + 0.6 秒。- - 文字动画结束后,英文按(字母数 ÷ 15 + 1.5)秒停留,中文按(字数 ÷ 4.5 + 1.5)秒停留。- - 标题页至少停 4 秒。- - 失败和笑点镜头给足看懂的时间。- - 可以快,但要靠每屏更少的字来快,不要靠观众没读完就切走。--## 8. 镜头:每个镜头都要有理由--- 全片至少用 **4 种不同的镜头运动**,并有真正的景别变化。2D 也有摄影机:推拉、视差、焦点转移、画中画框。-- **一个让人记住的签名镜头**:一镜到底、尺度揭示,或用媒介本身做的转场。-- **转场在媒介里设计**(翻页、刻线长出、墨迹洇开),全片统一一套语法,不要默认的淡入淡出或硬切。-- 关键时刻主体至少占画面高度的 1/3,站位清楚,剪影读得出。--## 9. 表演--- 每个有意义的动作都有**预备、动作、跟随**。角色要有情绪变化,不能只是平移。-- **动作连贯**,代码骨骼角色尤其要注意:- - 姿势一律用关键帧缓动混合,不要在 `if` 分支里切姿势。唯一的例外是刻意的一帧笑点。- - 开拍前画一张大尺寸动作测试表(前伸、举手、跑、跪),看肩膀和手臂。- - 手持道具**夹在两掌之间**,深度在两条手臂之间;交接从一个掌心插值到另一个掌心;滚动的东西旋转角 = 路程 ÷ 半径。- - 关键动作按 0.2 秒抽帧放大看。-- 每个表情都在最终尺寸下检查,尤其眉毛方向:“担心”和“生气”只差一个翻转。--## 10. 最常见的问题--- 主体太小、太远,或贴在画框边上。-- 太暗看不清,或同色叠加(红底上画红色)。-- 字幕挡住主体。-- 笑点或失败镜头太快,看不懂。-- 转场出现空白帧。-- 跟着主体走的效果(光圈、推镜、跟拍)在机位移动后没对准。写一个世界坐标 → 画面坐标的函数,所有地方都用它,不要手填画面坐标。--## 11. 交付前自检--- 全速完整看一遍,再看缩略图总览(每 1–2 秒一帧)和关键动作的 0.2 秒抽帧。-- 配音:每句都能被语音识别正确转写回来。-- 响度约 −14 LUFS;无黑帧、无 NaN 帧;字幕同步且不挡关键动作。-- 声音设计表里的每一项都真的在混音里。-- **交付**:`<名字>.mp4`、`<名字>.srt`、`poster.jpg`、`TREATMENT.md`,以及可一键重建的源码和 `build.sh`。--## 12. 版权红线--- 对标只学语法,不抄角色、造型、旋律、画面、标志、字体设计。-- 片中不出现现有作品、游戏、品牌、赛事,除非用户拥有或有权使用。-- 素材只用 CC0、CC BY、OFL,每一条都写进 `CREDITS` 并注明来源和授权。diff --git a/docs/zh-CN/TECHNIQUE.md b/docs/zh-CN/TECHNIQUE.mddeleted file mode 100644index 4bc842c..0000000--- a/docs/zh-CN/TECHNIQUE.md+++ /dev/null@@ -1,138 +0,0 @@-# 技术方法:片子是怎么做出来的--本库每一支片子都是用代码做的:不用视频生成,不用素材库画面。这一页讲清楚整条管线,你可以用 `core/` 里的现成工具,也可以在自己的技术栈里重做。配合 [导演方法](DIRECTOR.md) 和某个风格的 `styles/<slug>/STYLE.md` 一起用。English: [TECHNIQUE.md](../../TECHNIQUE.md)--```-时间线(唯一的数据来源)- ├─► 画面:网页暴露 render(t) ──► 无头 Chrome 逐帧截图 ──► video.mp4- ├─► 配音:逐句 TTS ──► 语音识别校对 ──► 逐词时间戳- ├─► 配乐:按同一时间线写谱(采样 + 合成)──► 分轨- ├─► 音效:在事件时间点程序化生成拟音- └─► 字幕:.srt + 烧录字幕-混音(让路、压缩、配平)──► ffmpeg 合成,两遍 loudnorm 到 −14 LUFS ──► 成片.mp4-```--## 1. 环境--| 工具 | 用途 |-|---|---|-| Node 20+ | 渲染页面:`npm install` 安装 `playwright-core` 和 `three`,再用 `npx playwright-core install chromium-headless-shell` 下载无头浏览器 |-| ffmpeg | 编码、合成、响度、黑帧检查 |-| Python 3.11+(我们用 [uv](https://docs.astral.sh/uv/)) | `uv venv && uv pip install -r requirements.txt`(numpy、scipy、soundfile、soxr、librosa、pillow、kokoro-onnx、edge-tts、faster-whisper) |--大文件不在 git 里,用到哪一步再下载:--```sh-sh tools/fetch.sh voice # Kokoro 配音模型(约 340 MB)→ core/tts/-sh tools/fetch.sh instruments # CC0 / CC BY 采样库(约 1.35 GB)→ core/audio/instruments/-sh tools/fetch.sh hdri # 3D 风格用的 Poly Haven 环境光 → core/assets/polyhaven/-```--## 2. 画面是时间的函数--每支片子是一个静态网页,暴露:--```js-window.DUR = 54.2; // 总时长(秒)-window.render = (t) => { ... }; // 画出第 t 秒,确定性-window.READY = true; // 字体、图片加载完后设置-window.EV = [{t, type, ...}]; // 可选:给混音用的音效 / 卡点事件-```--让它可靠的几条规则:--- **确定性**:不用 `Date.now()`,随机数一律带种子(`core/lib.js` 有 `mulberry`、`hash`),不依赖上一帧的状态。任何一帧都能单独、按任意顺序、由任意 worker 渲出来。-- **引擎**:大多数 2D 风格用 Canvas 2D;3D 用 three.js(`core/three/post.js`:物理景深、GTAO、辉光、调色、2× 超采样);后期用 WebGL2 着色器(胶片老化、CRT、墨线重画)。-- **按风格需要做"一拍二"**(定格、像素、赛璐璐用 12 fps 步进),但机位和光每帧都要平滑。机位也步进,会被看成卡顿。-- **只用一个世界坐标 → 画面坐标的函数**。所有跟着主体走的效果(光圈、推镜、追光)都经过它,不要手填画面坐标。--截图渲染(`core/render/`):--```sh-node core/render/still.mjs <demo> 1.5 12 --range 0:50:2 # 审片静帧;页面报错立即退出-node core/render/video.mjs <demo> --fps 24 --workers 3 # 渲全部帧 → out/video24.mp4-node core/render/events.mjs <demo> # 导出 DUR + EV → events.json-node core/render/readcheck.mjs <demo> # 画面上每段文字都停够阅读时间-```--`video.mjs` 整机最多同时渲 3 支片,多了自动排队;分段文件放在 `--out` 旁边,所以同一个 demo 可以并行再渲一个版本。换内容渲另一版时把参数传给页面:`--q 'content=content_alt.json'`(`events.mjs` 同样支持,配合 `--out` 另存,不覆盖主片的事件表)。--提速的关键:**截图用 JPEG**(比 PNG 快约 8 倍);**每个 worker 各开一个浏览器**(共用一个浏览器几乎不并行);**胶片颗粒在 ffmpeg 里加**,不要画在页面里,否则每一帧都压缩不动,很慢。--## 3. 一条时间线驱动一切--段落、速度、拍子、卡点都写在一个文件里(`timeline.js`),导出成 JSON,配乐、混音、字幕和检查脚本都读同一套数字:--```js-export const SECS = [{ id: 'chase', t: 12.0, bpm: 144, beats: 12 }, ...];-export const HIT = { pratfall: ['chase', 6], ... }; // 段落 + 第几拍-```--用一个小脚本(好几支样片里的 `tools/cuecheck.py`)比对每个画面卡点和它应该落上的音乐 cue,目标偏差 0 毫秒。--## 4. 配音--- **TTS 只是默认素材**。用户给了录音或指定了声线,就用用户的。否则:- - **英文**:[Kokoro](https://github.com/thewh1teagle/kokoro-onnx) 在本地运行,声线好(`af_heart`、`bm_george`、`am_michael` 等)。`core/tts/tts.py lines.json out/` 每句输出一个 WAV 和时长表。- - **中文**:[edge-tts](https://github.com/rany2/edge-tts),用微软的神经网络声线(`zh-CN-XiaoxiaoNeural`、`zh-CN-YunxiNeural` 等),需要联网。逐句语速和去首尾静音的写法见 `styles/paper-lantern/demo/tts.py`。音频要商用前,先看微软的使用条款。-- 数字在 TTS 文本里拼写成单词,字幕里写阿拉伯数字。-- **逐句校对**:`core/tts/asr_check.py` 用 faster-whisper 转写每个 WAV 并和脚本比对,不通过就重新生成,直到全部通过。它同时输出逐词时间戳,用来摆放台词和字幕。-- **混音前**:TTS 峰均比很高,先压缩人声,再按 RMS 配平,人声比音乐高约 10 dB。--## 5. 配乐--按 cue map 写原创配乐。不要随手用通用的钢琴加弦乐;每个风格有自己的编制(见 `STYLE.md` §6)。--- **采样**:`core/audio/sampler.py` 用免费采样库演奏真乐器:[VSCO 2 CE](https://github.com/sgossner/VSCO-2-CE) 和 [VCSL](https://github.com/sgossner/VCSL)(CC0)、[FreePats](https://freepats.zenvoid.org)(CC0)、[Karoryfer](https://github.com/sfzinstruments)(CC0)、Salamander 三角钢琴(CC BY 3.0)、MuldjordKit 鼓组(CC BY 4.0)。谱子写成事件 `(时间, 乐器, 音高, 时值, 力度, 声像)`;长音无缝延长,多采样轮换避免"机关枪"感。完整清单见 `core/audio/INSTRUMENTS.md`。-- **拨弦和民族弦乐**(古琴、琵琶、三味线、班卓琴……):`core/audio/pluck.py`,物理建模(Karplus–Strong),支持滑音和揉弦。-- **合成**:芯片音乐、铺底、效果音用 numpy 合成。-- **控制低频**:合成配乐很容易低频过重。混完按频段算能量,20–120 Hz 相对其余频段保持在 −3 dB 左右;铺底跳过 MIDI 48 以下的音;贝斯加二、三次谐波,小喇叭上也听得见。--## 6. 音效与混音--- `core/audio/sfx.py` 程序化合成拟音(click、whoosh、thump、ding、纸张、噪声底……),带滤波、包络和 `add(buffer, sound, at, gain, pan)`。用 `window.EV` 驱动,每个声音都精确落在它那一帧上。-- 三层:环境底、拟音、音乐。人声和关键拟音出现时,音乐让路。静音要事先设计。-- **母带**:`sh core/render/mux.sh video.mp4 mix.wav out.mp4 24 [grain]` 合成音画,两遍 loudnorm 到 −14 LUFS 并限制真峰值,在 ffmpeg 里加颗粒,最后打印实测响度。浅色底的片子颗粒要少一些。-- 画面里自带颗粒的片子压缩效率很差,用 `-tune grain` 和更高的 CRF 重新编码。--## 7. 字幕--- 用 `core/render/srt.py cues.json out.srt` 导出 `.srt`(cues = `[{t0, t1, text}]`),样式化的字幕直接画在页面里:字幕设计也是风格的一部分。-- 时长规则见导演方法 §7(至少 1.8 秒,且不短于语音 + 0.6 秒)。--## 8. 审片流程--1. 缩略图总览:用 `still.mjs --range` 每 1–2 秒渲一帧,再用 `core/render/sheet.py` 拼图。至少完整看两轮。-2. 每个关键动作按 0.2 秒抽帧:交接、摔倒、撞击。-3. 成片文件上:`ffmpeg -af ebur128`(响度)、`blackdetect`(空白帧);有人声的话,对最终混音再跑一次 whisper。-4. 带声音、全速完整看一遍。--## 9. 3D 要点--- three.js r170 通过 WebGL2 在 GPU 上无头渲染;物理景深和 GTAO 用 `core/three/post.js`,按 2 倍分辨率渲染再缩小。-- 光:柔光面光源加低强度的 Poly Haven 环境光,比明亮的环境光更"真"。-- 正交相机做深度效果要用 `orthographicDepthToViewZ`(用透视版本,景深会悄悄失效)。--## 10. 代码画的角色--- 2.5D 骨骼(躯干、头、四肢逐帧求解)足够做哑剧表演。姿势用关键帧加缓动混合。-- 肩关节先外展、再前屈;顺序反过来,举起的双臂会交叉成 X。-- 抬手时肩带要上提、前移;手臂压在躯干上的那段不要描轮廓线。那条线正是关节看起来像木偶接缝的原因。-- 做镜头动画前,先画一张大尺寸动作测试表(前伸、举手、跑、跪)。--## 11. 素材与署名--只用 CC0、CC BY、OFL 素材,每条都写进片子的 `CREDITS`,注明来源和授权。`core/audio/sampler.py` 的 `credits(names)` 会按你用到的乐器生成必须写的署名行。字体用 Google Fonts(OFL),放进项目自托管,中日韩字体按用到的字做子集。--## 12. 去哪个样片里找参考--| 你需要…… | 看这里 |-|---|---|-| 2D 角色动画和口型 | `styles/scifi-toon/`、`styles/cel-anime-80s/` |-| 时间线驱动的配乐和卡点检查 | `styles/microgame/`、`styles/silent-film/` |-| 画面转墨线重画和胶片老化后期 | `styles/silent-film/demo/engine/` |-| 笔刷 / 笔触引擎 | `styles/watercolor/`、`styles/ink-wash/`、`styles/impasto/` |-| 带景深和真实材质的 3D | `styles/brick-toy/`、`styles/paper-popup/` |-| CRT / 录像带质感 | `core/post/crt.js`、`styles/ascii-crt/`、`styles/backrooms/` |--每个风格 `STYLE.md` 的 §9 记录了这支样片是怎么做的。我们的样片是参考实现:读它们,看某个技法怎么实现,再写你自己的片子。它们不是用来重建我们原片的套件。diff --git a/package-lock.json b/package-lock.jsonindex 9940935..99a2be6 100644--- a/package-lock.json+++ b/package-lock.json@@ -11,6 +11,9 @@"dependencies": {"playwright-core": "^1.63.0","three": "^0.170.0"+ },+ "engines": {+ "node": ">=20"}},"node_modules/playwright-core": {diff --git a/package.json b/package.jsonindex 6673cd9..2756609 100644--- a/package.json+++ b/package.json@@ -3,7 +3,8 @@"version": "0.1.0","private": true,"type": "module",- "description": "30–60s style demos directed by Claude Opus 5.5 — each style ships a prompt, a toolkit and a code-rendered film.",+ "description": "Film styles for coding agents: each style ships a prompt and a demo film made entirely in code, on a shared toolkit.",+ "engines": { "node": ">=20" },"license": "MIT","dependencies": {"playwright-core": "^1.63.0",diff --git a/plugin/.claude-plugin/plugin.json b/plugin/.claude-plugin/plugin.jsonindex 13dbd90..6a92c2a 100644--- a/plugin/.claude-plugin/plugin.json+++ b/plugin/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "lemo-opuscar",- "description": "Make a film in one of 43 code-rendered styles: your agent directs, draws, scores and mixes it.",+ "description": "Make a film in one of the library's code-rendered styles: your agent directs, draws, scores and mixes it.","author": { "name": "Lemomo", "url": "https://github.com/lemomo-ai" },"homepage": "https://lemomo-ai.github.io/lemo-opuscar/","repository": "https://github.com/lemomo-ai/lemo-opuscar",diff --git a/plugin/skills/lemo-opuscar/SKILL.md b/plugin/skills/lemo-opuscar/SKILL.mdindex 7e6775b..3736005 100644--- a/plugin/skills/lemo-opuscar/SKILL.md+++ b/plugin/skills/lemo-opuscar/SKILL.md@@ -1,44 +1,24 @@---name: lemo-opuscar-description: Direct and produce a short film made entirely in code, in one of the 43 styles of the Lemo-Opuscar library (e.g. Impasto Oil Painting 油画厚涂, Watercolor Brush 水彩笔刷, Chinese Ink Wash 中国水墨, Ukiyo-e 浮世绘, Whiteboard Explainer 白板讲解). Use when the user asks for a video, film, short, promo or animation (视频、短片、动画、宣传片) in a named style, or asks which film styles there are.+description: Direct and produce a short film made entirely in code, in one of the styles of the Lemo-Opuscar library (e.g. Impasto Oil Painting 油画厚涂, Watercolor Brush 水彩笔刷, Chinese Ink Wash 中国水墨, Ukiyo-e 浮世绘, Whiteboard Explainer 白板讲解). Use when the user asks for a video, film, short, promo, explainer or animation (视频、短片、动画、宣传片) in a named style; when they want a film made about their own topic and haven't chosen a style (help them choose); or when they ask which film styles there are. Not for editing or converting existing video files.---# Lemo-Opuscar-The styles, the directing and building guides, and the tools live in the Lemo-Opuscar library, a local copy of github.com/lemomo-ai/lemo-opuscar. This skill finds that library and hands you over to it.+The styles, guides and tools live in the Lemo-Opuscar library (github.com/lemomo-ai/lemo-opuscar). This skill fetches it and hands you over to it.-## 1. Get the library--Run the setup script from this skill's base directory:--```sh-sh "<skill base directory>/scripts/setup.sh"-```--On the first run it downloads the library (about 60 MB: guides, `core/` tools, every `STYLE.md`) to `~/lemo-opuscar`; later runs update it. If the user is standing in a clone of the repo, that clone is used. `LEMO_OPUSCAR_HOME` overrides the location. The last line prints `LIB=<path>`.--Then start `sh "<skill base directory>/scripts/setup.sh" deps` at once, in the background if you can. It installs the Node and Python packages and the headless browser the renderer uses, and takes a few minutes the first time, so it runs while you talk with the user. If either run reports missing system tools (Node 20+, ffmpeg, Python 3.11+), tell the user in your one round of questions. Don't install system software yourself.--## 2. Follow the library's instructions--Read `$LIB/AGENTS.md` and do what it says. It has the full workflow:--- finding the style in `styles/README.md`;-- reading `DIRECTOR.md`, `TECHNIQUE.md` and the chosen `STYLE.md`;-- the one round of questions before you start;-- the optional storyboard.+1. **Get the library.** Run `sh "<skill base directory>/scripts/setup.sh"`. It clones or updates the library (default `~/lemo-opuscar`; a clone the user is standing in is used as it is) and prints `LIB=<path>` on its last line.+2. **Install the core tools early.** Start `sh "<skill base directory>/scripts/setup.sh" deps` right away, in the background if you can: it takes a few minutes the first time. Add `deps voice` or `deps music` later, only if the film needs them (`$LIB/TECHNIQUE.md` §1). Report missing system tools in your one round of questions; don't install system software yourself.+3. **Follow the library.** Read `$LIB/AGENTS.md` and do what it says: finding the style, the one round of questions, the treatment, production and delivery.What changes in skill mode:-- **The project lives in the user's folder.** Make `<name>/` in the folder where the user started. Use lowercase letters, digits and hyphens for the name (`orange-cat`); `#` or `%` in the path breaks ffmpeg. If that name is already taken by something else, pick another. Everything goes there: code, audio, stills, `build.sh`, and the finished `<name>.mp4`, `.srt` and `poster.jpg`. Wherever the library's docs say `films/<name>/`, read this folder.-- **Running tools.** Run the library's tools from `$LIB` and give them the project's absolute path. For example:- - `cd "$LIB" && node core/render/still.mjs "<project>" 1.5 3`- - `"$LIB/.venv/bin/python" "$LIB/core/tts/tts.py" "<project>/lines.json" "<project>/voices"`+| | |+|---|---|+| Project folder | `<name>/` in the folder the user started from (lowercase letters, digits, hyphens; avoid `#` and `?` in the path). Wherever the guides say `films/<name>/`, read this folder |+| Running tools | from `$LIB`, with the project's absolute path: `cd "$LIB" && node core/render/still.mjs "<project>" 1.5 3` |+| Library files in pages | absolute URLs: `/core/lib.js`, `/node_modules/three/…` (the project is served at `/@film/`) |+| Library files in scripts and `build.sh` | `$LIB/…`, with `LIB=<path>` at the top of `build.sh`; never `../..` |+| Demo source | not downloaded. `sh "<skill base directory>/scripts/setup.sh" demo <slug>`, only after your `TREATMENT.md` is written, to read its techniques; it is not meant to be rendered |- The render server serves the project at `/@film/` and the library at `/`.-- **Reaching library files.**- - In pages, use absolute URLs: `/core/lib.js`, `/node_modules/three/...`, `/styles/<slug>/demo/...`.- - In Python and Node scripts and in `build.sh`, use `$LIB/...` paths. Never use `../..`, because the project is not inside the library.- - Put `LIB=<path>` at the top of `build.sh`.-- **Demo source.** A style's demo source isn't downloaded by default. When its `STYLE.md` §9 points to a file you want to study or import, run `sh "<skill base directory>/scripts/setup.sh" demo <slug>`. The demo is a reference implementation: learn and reuse its techniques, but don't rebuild it or copy its story.-- **Delivery.** Tell the user the path of the project folder and the finished film.+Deliver what `$LIB/DIRECTOR.md` §11 lists, in the project folder, and tell the user where it is.diff --git a/plugin/skills/lemo-opuscar/scripts/setup.sh b/plugin/skills/lemo-opuscar/scripts/setup.shindex 25bf3d9..16b9f00 100644--- a/plugin/skills/lemo-opuscar/scripts/setup.sh+++ b/plugin/skills/lemo-opuscar/scripts/setup.sh@@ -1,12 +1,14 @@#!/bin/sh# Lemo-Opuscar skill: find or install the style library, then print its path.-# sh setup.sh library ready? (clone on first run, update later) → prints LIB=<path>-# sh setup.sh deps also install Node and Python packages and the headless browser-# sh setup.sh demo <slug> add one style's demo source to the library (reference only)-# The library is a sparse clone of github.com/lemomo-ai/lemo-opuscar: guides, core/ tools and-# every STYLE.md (~60 MB). Demo sources come one style at a time; big assets via tools/fetch.sh.+# sh setup.sh library ready? (clone on first run, update later) → prints LIB=<path>+# sh setup.sh deps [voice] [music]+# install packages: core = Node packages, headless browser, Python core tier;+# voice = TTS and speech check (+ the English voice model); music = pluck.py (numba)+# sh setup.sh demo <slug> add one style's demo source and poster to the library (reference only)+# The library is a sparse clone of the main branch: guides, core/ tools and every STYLE.md. Big assets: tools/fetch.sh.+# LEMO_OPUSCAR_HOME = where the library lives (default: the clone you stand in, else ~/lemo-opuscar).set -e-REPO=https://github.com/lemomo-ai/lemo-opuscar.git+REPO=${LEMO_OPUSCAR_REPO:-https://github.com/lemomo-ai/lemo-opuscar.git}# 1. Which library: $LEMO_OPUSCAR_HOME, else the clone we are standing in, else ~/lemo-opuscaris_lib() { [ -f "$1/AGENTS.md" ] && [ -d "$1/core/render" ]; }@@ -16,51 +18,78 @@ else LIB=$HOME/lemo-opuscarficase "$LIB" in /*) ;; *) LIB=$(pwd)/$LIB ;; esac+# Our clone skips demo sources, the gallery and big images; what `setup.sh demo` added stays.+# git < 2.35 has no --no-cone: then the whole library is checked out.+apply_sparse() {+ set -- '/*' '!/styles/*/demo/' '!/styleboard/' '!/docs/frames/' '!/docs/cover.jpg' '!/docs/opuscar98.jpg' '!/styles/*/poster.jpg' \+ $(git -C "$LIB" sparse-checkout list 2>/dev/null | grep -E '^/styles/[^/*]+/(demo/|poster\.jpg)$' || true)+ git -C "$LIB" sparse-checkout set --no-cone "$@" 2>/dev/null || git -C "$LIB" sparse-checkout disable || true+}+if [ "$(git -C "$LIB" config --get lemo.managed 2>/dev/null)" = true ]; then- # our own clone: keep it current (nothing of the user's lives in it)- if [ -n "$(git -C "$LIB" status --porcelain --untracked-files=no 2>/dev/null)" ]; then- echo "! $LIB has local edits, so it was not updated"- else- git -C "$LIB" pull --quiet --ff-only 2>/dev/null || echo "! could not update $LIB (offline?); using the local copy"- fi+ # our own clone (nothing of the user's lives in it): match main, whatever happened upstream+ [ "$(git -C "$LIB" remote get-url origin 2>/dev/null)" = "$REPO" ] || git -C "$LIB" remote set-url origin "$REPO"+ if err=$(git -C "$LIB" fetch --quiet --depth 1 origin main 2>&1 && git -C "$LIB" reset --quiet --hard FETCH_HEAD 2>&1); then apply_sparse+ else echo "! could not update $LIB (offline?); using the local copy. git: $err" | head -3; fielif ! is_lib "$LIB"; then[ -e "$LIB" ] && [ -n "$(ls -A "$LIB" 2>/dev/null)" ] && { echo "✗ $LIB exists but is not the Lemo-Opuscar library. Set LEMO_OPUSCAR_HOME to another folder."; exit 1; }command -v git >/dev/null || { echo "✗ git is needed to download the library"; exit 1; }echo "↓ downloading the style library into $LIB"- git clone --quiet --depth 1 --filter=blob:none --sparse "$REPO" "$LIB" || { rm -rf "$LIB"; echo "✗ download failed (offline?)"; exit 1; }- # git < 2.35 has no --no-cone: fall back to the full checkout- git -C "$LIB" sparse-checkout set --no-cone '/*' '!/styles/*/demo/' '!/styleboard/' 2>/dev/null \- || git -C "$LIB" sparse-checkout disable+ git clone --quiet --depth 1 --filter=blob:none --sparse --branch main "$REPO" "$LIB" || { rm -rf "$LIB"; echo "✗ download failed (offline?)"; exit 1; }+ apply_sparsegit -C "$LIB" config lemo.managed truefiLIB=$(cd "$LIB" && pwd -P)-node_ok() { [ -f "$LIB/node_modules/.lemo-ok" ]; }-py_ok() { [ -f "$LIB/.venv/.lemo-ok" ]; }+# Installed packages are tracked by content: a marker holds a checksum of the files they came from (and the Python+# version), so a changed package.json or requirements file triggers a reinstall.+sig() { cat "$@" 2>/dev/null | cksum | cut -d' ' -f1; }+pysig() { echo "$(sig "$1")-$("$LIB/.venv/bin/python" -V 2>&1 | cut -d. -f1,2)"; }+req() { [ "$1" = core ] && echo "$LIB/requirements.txt" || echo "$LIB/requirements-$1.txt"; }+node_ok() { [ "$(cat "$LIB/node_modules/.lemo-ok" 2>/dev/null)" = "$(sig "$LIB/package.json" "$LIB/package-lock.json")" ]; }+py_ok() { [ "$(cat "$LIB/.venv/.lemo-$1" 2>/dev/null)" = "$(pysig "$(req "$1")")" ]; }+# a Python 3.11+ for the venv when uv is absent; kokoro-onnx (voice tier) needs < 3.14, so those come first+find_py() {+ for c in python3.12 python3.13 python3.11 python3; do+ "$c" -c 'import sys; sys.exit(sys.version_info < (3, 11))' 2>/dev/null && { echo "$c"; return 0; }+ done+ return 1+}case "$1" indeps)+ shift; tiers=core+ for t in "$@"; do case $t in voice|music) tiers="$tiers $t" ;; *) echo "usage: sh setup.sh deps [voice] [music]"; exit 1 ;; esac; donecd "$LIB"+ command -v npm >/dev/null || { echo "✗ npm not found: install Node 20+ first"; exit 1; }if ! node_ok; then- npm install --no-audit --no-fund --silent- node node_modules/playwright-core/cli.js install chromium-headless-shell # the renderer's browser- touch node_modules/.lemo-ok+ npm install --no-audit --no-fund --loglevel=error+ # npm may rewrite package-lock.json; in our own clone put it back, so the checksum stays the same+ [ "$(git config --get lemo.managed 2>/dev/null)" = true ] && git checkout -q -- package.json package-lock.json 2>/dev/null || true+ sig package.json package-lock.json > node_modules/.lemo-okfi- if ! py_ok; then- if command -v uv >/dev/null; then uv venv --quiet --allow-existing --python 3.12 && uv pip install --quiet -r requirements.txt- else- python3 -c 'import sys; sys.exit(sys.version_info < (3, 11))' || { echo "✗ Python 3.11+ is needed (or install uv, which fetches it)"; exit 1; }- python3 -m venv .venv && .venv/bin/pip install --quiet -r requirements.txt- fi- touch .venv/.lemo-ok+ node node_modules/playwright-core/cli.js install chromium-headless-shell # the renderer's browser (a no-op when present)+ # a venv whose Python is gone (after a Python upgrade) can't be repaired in place: make it again+ [ ! -e .venv ] || .venv/bin/python -c pass 2>/dev/null || { echo "! $LIB/.venv is broken; making it again"; rm -rf .venv; }+ if [ ! -x .venv/bin/python ]; then+ if command -v uv >/dev/null; then uv venv --quiet --python 3.12 .venv+ else py=$(find_py) || { echo "✗ Python 3.11+ is needed (or install uv, which fetches it)"; exit 1; }; "$py" -m venv .venv; fifi+ for t in $tiers; do+ py_ok "$t" && continue+ if command -v uv >/dev/null; then uv pip install --quiet --python .venv/bin/python -r "$(req "$t")"+ else .venv/bin/python -m pip install --quiet --disable-pip-version-check -r "$(req "$t")"; fi+ pysig "$(req "$t")" > ".venv/.lemo-$t"+ done+ case " $tiers " in *" voice "*) [ -f core/tts/kokoro-v1.0.onnx ] && [ -f core/tts/voices-v1.0.bin ] || sh tools/fetch.sh voice ;; esac;;demo)[ -n "$2" ] && [ -f "$LIB/styles/$2/STYLE.md" ] || { echo "usage: sh setup.sh demo <slug> (slugs: $LIB/styles/README.md)"; exit 1; }- if git -C "$LIB" sparse-checkout list >/dev/null 2>&1 && [ ! -d "$LIB/styles/$2/demo" ]; then- git -C "$LIB" sparse-checkout add "/styles/$2/demo/"+ if git -C "$LIB" sparse-checkout list >/dev/null 2>&1 && ! git -C "$LIB" sparse-checkout list | grep -qx "/styles/$2/demo/"; then+ git -C "$LIB" sparse-checkout add "/styles/$2/demo/" "/styles/$2/poster.jpg"fiecho "demo source: $LIB/styles/$2/demo"+ echo "demo poster: $LIB/styles/$2/poster.jpg";;esac@@ -70,7 +99,7 @@ if command -v node >/dev/null; then[ "$(node -p 'process.versions.node.split(".")[0]')" -ge 20 ] || miss="$miss node20+(found $(node -v))"else miss="$miss node20+"; ficommand -v ffmpeg >/dev/null || miss="$miss ffmpeg"-command -v uv >/dev/null || python3 -c 'import sys; sys.exit(sys.version_info < (3, 11))' 2>/dev/null || miss="$miss python3.11+(or uv)"+command -v uv >/dev/null || find_py >/dev/null || miss="$miss python3.11+(or uv)"[ -n "$miss" ] && echo "! missing:$miss"-node_ok && py_ok || echo "! packages not installed yet: run 'sh setup.sh deps' (a few minutes) before the first render"+node_ok && py_ok core || echo "! packages not installed yet: run 'sh setup.sh deps' (a few minutes) before the first render"echo "LIB=$LIB"diff --git a/requirements-dev.txt b/requirements-dev.txtnew file mode 100644index 0000000..9d3068f--- /dev/null+++ b/requirements-dev.txt@@ -0,0 +1,2 @@+# Maintainers only: rebuilding core/audio/instruments/index.json (sampler.build_index) uses librosa.+librosadiff --git a/requirements-music.txt b/requirements-music.txtnew file mode 100644index 0000000..95503f0--- /dev/null+++ b/requirements-music.txt@@ -0,0 +1,3 @@+# Music tier: core/audio/pluck.py (numba). core/audio/sampler.py needs only the core tier plus its sample libraries+# (sh tools/fetch.sh instruments <lib>). Install: sh plugin/skills/lemo-opuscar/scripts/setup.sh deps music+numbadiff --git a/requirements-voice.txt b/requirements-voice.txtnew file mode 100644index 0000000..7401136--- /dev/null+++ b/requirements-voice.txt@@ -0,0 +1,5 @@+# Voice tier: core/tts/tts.py (Kokoro, offline), tts_zh.py (edge-tts, online), asr_check.py (Whisper).+# Install: sh plugin/skills/lemo-opuscar/scripts/setup.sh deps voice (kokoro-onnx needs Python 3.11-3.13)+kokoro-onnx+edge-tts+faster-whisperdiff --git a/requirements.txt b/requirements.txtindex 1b05449..ed7ec9b 100644--- a/requirements.txt+++ b/requirements.txt@@ -1,10 +1,7 @@-# Python tools in core/ (audio, voice, review). Install: uv venv && uv pip install -r requirements.txt+# Core tier: sound effects, the mix, subtitles, contact sheets. Install: sh plugin/skills/lemo-opuscar/scripts/setup.sh deps+# More tiers: requirements-voice.txt (deps voice), requirements-music.txt (deps music), requirements-dev.txt (maintainers).numpyscipysoundfilesoxr-librosapillow-kokoro-onnx-edge-tts-faster-whisperdiff --git a/styleboard/build.py b/styleboard/build.pyindex c00216c..9dd96d8 100644--- a/styleboard/build.py+++ b/styleboard/build.py@@ -1,60 +1,85 @@-# Lemo-Opuscar 风格影展:STYLES.md + cards.json → catalog.json → index.html(并刷新 README 里的风格清单)-# 本地:python3 styleboard/build.py GitHub Pages:python3 styleboard/build.py --site _site+# Lemo-Opuscar gallery: styles/*/style.json → catalog.json, index.html, and the generated parts of README.md, styles/README.md, AGENTS.md+# Local: python3 styleboard/build.py (also refreshes each style.json "dur" from its mp4)+# GitHub Pages: python3 styleboard/build.py --site _site+# README frames: python3 styleboard/build.py --frames <slug>… (docs/frames/<slug>.jpg at the style's frame_sec)import argparse, json, re, html, os, glob, shutil, subprocessHERE = os.path.dirname(os.path.abspath(__file__))-cards = json.load(open(os.path.join(HERE, 'cards.json'), encoding='utf-8')) # 卡片文案:英文片名、一句话故事、适用场景--CN = {'pixel-rpg': '16-bit 像素 RPG', 'brick-toy': '积木玩具', 'paper-popup': '纸片立体书', 'halftone-dossier': '复古半调案卷',- 'game-show': '综艺节奏扁平', 'editorial-minimal': '东方杂志排版', 'dark-keynote': '暗色科技发布', 'living-screencast': '活体实机录屏', 'watercolor': '水彩笔刷',- 'photo-parallax': '照片视差纪念片', 'crayon-book': '蜡笔儿童绘本', 'risograph': 'Risograph 丝网印刷', 'rubber-hose': '1930s 橡皮管卡通',- 'ink-wash': '中国水墨', 'shadow-puppet': '皮影戏', 'ukiyoe': '浮世绘', 'felt-knit': '毛毡针织', 'felt-knit-2d': '毛毡针织 · 2D 版',- 'tilt-shift': '移轴微缩', 'lowpoly-island': '低多边形等距', 'film-noir': '黑色电影', 'glass-product': '玻璃质感产品',- 'origami': '折纸', 'backrooms': '后室 / 新怪谈', 'blueprint': '蓝图 / 工程制图', 'microgame': '微游戏快闪(瓦里奥制造式)', 'synthwave': '霓虹合成波', 'swiss-motion': '瑞士动态排版', 'voxel': '体素', 'gameboy': 'Game Boy 四色',- 'cardboard': '瓦楞纸板', 'dunhuang': '敦煌壁画', 'papercut-red': '红色窗花剪纸', 'impasto': '油画厚涂', 'one-line': '一笔画',- 'stained-glass': '彩色玻璃窗', 'silent-film': '1920s 默片', 'spy-titles': '60s 间谍片头', 'ascii-crt': 'ASCII / CRT 终端',- 'dataviz': '数据叙事', 'whiteboard': '白板讲解', 'iso-infographic': '等距信息图', 'hd-2d': 'HD-2D', 'urban-sketch': '钢笔淡彩', 'cel-anime-80s': '80 年代赛璐璐动画', 'scifi-toon': '科幻情景喜剧卡通', 'art-deco': '装饰艺术', 'woodcut': '木刻版画', 'pop-art': '波普漫画', 'paper-lantern': '纸雕灯影', 'pictogram-motion': '象形运动图形', 'midcentury-toon': '50s 扁平卡通', 'hologram-hud': '科幻全息界面', 'engraving': '铜版画', 'silkscreen-poster': '丝印旅行海报'}--REPO = 'lemomo-ai/lemo-opuscar' # GitHub 仓库-FILMS_URL = f'https://github.com/{REPO}/releases/download/films' # 成片放在 Release「films」里,文件名 <slug>.mp4-BLOB_URL = f'https://github.com/{REPO}/blob/main'ROOT = os.path.join(HERE, '..')-CATALOG = os.path.join(HERE, 'catalog.json') # 公开的风格目录(STYLES.md 不进仓库,CI 和 README 都读它)---def parse_styles_md():- """本地维护:从 STYLES.md + cards.json 生成风格目录(带成片时长)。"""- md = open(os.path.join(ROOT, 'STYLES.md'), encoding='utf-8').read()- out, cat, cat_en = [], '', ''- for block in re.split(r'\n(?=##+ )', md):- head = block.split('\n', 1)[0]- mb = re.match(r'## (.+?) · (.+)', head)- if mb: cat, cat_en = mb.group(1).strip(), mb.group(2).strip(); continue- m = re.match(r'### \[(x)\] (\d+[A-Z]?) · (.+?) · `([\w-]+)`', head)- if not m: continue- _, num, en, slug = m.groups()- c = cards.get(slug, {})- s = dict(slug=slug, num=num, en=en, cn=CN.get(slug, en), cat=cat, cat_en=cat_en,- film=c.get('film', ''), line=c.get('line', ''), line_cn=c.get('line_cn', ''), uses=c.get('uses', []), dur=0)+CATALOG = os.path.join(HERE, 'catalog.json') # generated; CI and tools/release.py read it++REPO = 'lemomo-ai/lemo-opuscar'+FILMS_URL = f'https://github.com/{REPO}/releases/download/films' # full films live on the "films" release as <slug>.mp4+BLOB_URL = f'https://github.com/{REPO}/blob/main'++# The nine categories, in gallery order. A style.json must name one of them (both languages, exactly).+CATEGORIES = [('手绘与绘画', 'Hand-drawn & Painting'), ('东方传统', 'East Asian Traditions'), ('印刷与版画', 'Print & Printmaking'),+ ('图形与排版', 'Graphic & Type'), ('信息与发布', 'Information & Keynote'), ('卡通与动画', 'Cartoon & Anime'),+ ('游戏', 'Games'), ('电影与时代', 'Cinema & Eras'), ('材质与 3D', 'Materials & 3D')]+FIELDS = ('slug', 'num', 'en', 'cn', 'category_en', 'category_cn', 'film', 'line', 'line_cn', 'uses', 'frame_sec', 'dur')+++def film_seconds(mp4):+ """Length of a film in seconds, or None when ffprobe can't read it (a half-rendered file, no ffprobe installed)."""+ try:+ d = float(subprocess.run(['ffprobe', '-v', 'error', '-show_entries', 'format=duration', '-of', 'csv=p=0', mp4], capture_output=True, text=True).stdout)+ except (ValueError, OSError): return None+ return d if d > 0 else None+++def load_styles(refresh_dur):+ """Every styles/<slug>/style.json (folders starting with _ are templates). Fails loudly on a missing field or an unknown category.+ With refresh_dur, "dur" is re-read from styles/<slug>/<slug>.mp4 and written back when it changed; without the mp4+ (another machine, CI) or when ffprobe can't read it, the stored value is kept, never zeroed (0 = no video in the gallery)."""+ out, bad = [], []+ for p in sorted(glob.glob(os.path.join(ROOT, 'styles', '*', 'style.json'))):+ slug = os.path.basename(os.path.dirname(p))+ if slug.startswith('_'): continue+ j = json.load(open(p, encoding='utf-8'))+ miss = [f for f in FIELDS if f not in j]+ if miss: bad.append(f'styles/{slug}/style.json: missing {", ".join(miss)}'); continue+ if j['slug'] != slug: bad.append(f'styles/{slug}/style.json: slug is "{j["slug"]}", folder is "{slug}"')+ if (j['category_cn'], j['category_en']) not in CATEGORIES:+ bad.append(f'styles/{slug}/style.json: unknown category "{j["category_en"]} / {j["category_cn"]}" (see CATEGORIES in styleboard/build.py)')mp4 = os.path.join(ROOT, 'styles', slug, slug + '.mp4')- if os.path.exists(mp4):- try: s['dur'] = round(float(subprocess.run(['ffprobe', '-v', 'error', '-show_entries', 'format=duration', '-of', 'csv=p=0', mp4], capture_output=True, text=True).stdout), 1)- except ValueError: pass- out.append(s)+ if refresh_dur and os.path.exists(mp4):+ d = film_seconds(mp4)+ if d is None:+ print(f'WARNING: styles/{slug}/{slug}.mp4 exists but ffprobe cannot read its duration (half-rendered? no ffprobe?); keeping dur={j["dur"]}')+ elif round(d, 1) != j['dur']:+ j['dur'] = round(d, 1)+ open(p, 'w', encoding='utf-8').write(json.dumps(j, ensure_ascii=False, indent=1) + '\n')+ out.append(dict(slug=slug, num=j['num'], en=j['en'], cn=j['cn'], cat=j['category_cn'], cat_en=j['category_en'],+ film=j['film'], line=j['line'], line_cn=j['line_cn'], uses=j['uses'], dur=j['dur'], frame_sec=j['frame_sec']))+ if bad: raise SystemExit('styleboard/build.py:\n ' + '\n '.join(bad))+ order = {c: i for i, c in enumerate(CATEGORIES)}+ out.sort(key=lambda s: (order.get((s['cat'], s['cat_en']), 99), int(re.match(r'\d+', s['num']).group()), s['num']))return out+def grab_frames(styles, slugs):+ """docs/frames/<slug>.jpg for the README grid: one frame of the film at the style's frame_sec."""+ by = {s['slug']: s for s in styles}+ os.makedirs(os.path.join(ROOT, 'docs', 'frames'), exist_ok=True)+ for slug in slugs:+ s = by.get(slug) or exit(f'no style "{slug}"')+ mp4 = os.path.join(ROOT, 'styles', slug, slug + '.mp4')+ subprocess.run(['ffmpeg', '-v', 'error', '-y', '-ss', str(s['frame_sec']), '-i', mp4, '-frames:v', '1', '-vf', 'scale=800:450', '-q:v', '3',+ os.path.join(ROOT, 'docs', 'frames', slug + '.jpg')], check=True)+ print(f'docs/frames/{slug}.jpg ← {slug}.mp4 @ {s["frame_sec"]}s')++ap = argparse.ArgumentParser()ap.add_argument('--site', help='build the GitHub Pages site into this folder (films from Releases)')+ap.add_argument('--frames', nargs='+', metavar='SLUG', help='only re-grab docs/frames/<slug>.jpg from the film at frame_sec, then stop')args = ap.parse_args()+site = args.site-if os.path.exists(os.path.join(ROOT, 'STYLES.md')):- styles = parse_styles_md()- json.dump(styles, open(CATALOG, 'w', encoding='utf-8'), ensure_ascii=False, indent=1)-else:- styles = json.load(open(CATALOG, encoding='utf-8'))+styles = load_styles(refresh_dur=not site and not args.frames)+if args.frames: grab_frames(styles, args.frames); raise SystemExit+if not site:+ json.dump([{k: v for k, v in s.items() if k != 'frame_sec'} for s in styles], open(CATALOG, 'w', encoding='utf-8'), ensure_ascii=False, indent=1)-site = args.site-if site: # 公开的图鉴只收有 STYLE.md 的(做完的)风格+if site: # the public gallery only lists finished styles (with a STYLE.md)styles = [s for s in styles if os.path.exists(os.path.join(ROOT, 'styles', s['slug'], 'STYLE.md'))]for s in styles:slug = s['slug']@@ -74,7 +99,7 @@ for s in styles:esc = lambda t: html.escape(t or '')def laurel_symbol():- # 月桂:左右两枝,每枝 9 片叶子沿圆弧排列+ # laurel: two branches, 9 leaves each along an arcimport mathleaves = []for side in (-1, 1):@@ -109,7 +134,7 @@ def card(s):f' <nav class="links">{"".join(links)}</nav>\n'f' </div>\n</article>')-cats = list(dict.fromkeys((s['cat'], s['cat_en']) for s in styles))+cats = [c for c in CATEGORIES if any((s['cat'], s['cat_en']) == c for s in styles)]sections, tabs = [], []for i, (cn, en) in enumerate(cats, 1):group = [s for s in styles if s['cat'] == cn]@@ -137,7 +162,7 @@ for k, v in {'{{LAUREL}}': laurel_symbol(), '{{SECTIONS}}': '\n'.join(sections),out_dir = site or HEREos.makedirs(out_dir, exist_ok=True)open(os.path.join(out_dir, 'index.html'), 'w', encoding='utf-8').write(page)-if site: # Pages 站点:页面 + 风格帧 + 海报+if site: # Pages site: page + style frames + postersshutil.copytree(os.path.join(HERE, 'img'), os.path.join(site, 'img'), dirs_exist_ok=True)os.makedirs(os.path.join(site, 'posters'), exist_ok=True)for s in styles:@@ -145,7 +170,7 @@ if site: # Pages 站点:页面 + 风格帧 + 海报def readme_grid():- """README 里 <!-- styles:start --> … <!-- styles:end --> 之间:按类别的图片网格(docs/frames/<slug>.jpg),中英双语。"""+ """README, between <!-- styles:start --> and <!-- styles:end -->: image grid by category (docs/frames/<slug>.jpg), both languages."""out = []for cn, en in cats:group = [x for x in styles if x['cat'] == cn and x['stylemd']]@@ -168,13 +193,15 @@ for fn in ('README.md',):if not os.path.exists(p) or site: continuet = open(p, encoding='utf-8').read()t2 = re.sub(r'(<!-- styles:start -->\n).*?(<!-- styles:end -->)', lambda m: m.group(1) + readme_grid() + m.group(2), t, flags=re.S)+ t2 = re.sub(r'<!--n-->\d+<!--/n-->', f'<!--n-->{sum(1 for x in styles if x["stylemd"])}<!--/n-->', t2) # the headline countif t2 != t: open(p, 'w', encoding='utf-8').write(t2)+def style_index():- """styles/README.md:风格名(英文 / 中文)→ 文件夹。agent 按用户说的风格名在这里查到对应的 STYLE.md。"""+ """styles/README.md: style name (English / Chinese) → folder. Agents look up the STYLE.md for the name a user gives here."""out = ['# Style index · 风格索引', '','Users may name a style in English, in Chinese, or by its folder. Find it here, then read `styles/<folder>/STYLE.md`.',- '用户可能用英文名、中文名或文件夹名来指定风格。在这里查到文件夹,再读 `styles/<文件夹>/STYLE.md`。', '<!-- generated by styleboard/build.py from styleboard/catalog.json; do not edit by hand -->', '']+ '用户可能用英文名、中文名或文件夹名来指定风格。在这里查到文件夹,再读 `styles/<文件夹>/STYLE.md`。', '<!-- generated by styleboard/build.py from styles/*/style.json; do not edit by hand -->', '']for cn, en in cats:group = [x for x in styles if x['cat'] == cn and x['stylemd']]if not group: continue@@ -185,7 +212,7 @@ def style_index():def style_list():- """AGENTS.md 里 <!-- style-list:start --> … <!-- style-list:end --> 之间:用户没选风格时,agent 原样给用户看的完整清单。"""+ """AGENTS.md, between <!-- style-list:start --> and <!-- style-list:end -->: the full list an agent shows a user who has not picked a style."""out = [f'All {sum(1 for x in styles if x["stylemd"])} styles · 全部风格:', '']for cn, en in cats:group = [x for x in styles if x['cat'] == cn and x['stylemd']]@@ -205,4 +232,4 @@ if not site:print(f'{len(styles)} styles ({n_vid} with film, {minutes:.0f} min) → {os.path.relpath(os.path.join(out_dir, "index.html"), ROOT)}')for s in styles:if not s['imgs']: print(' no image:', s['slug'])- if not s.get('line'): print(' no card copy (cards.json):', s['slug'])+ if not s.get('line'): print(' no card copy (style.json line):', s['slug'])diff --git a/styleboard/cards.json b/styleboard/cards.jsondeleted file mode 100644index 5a68e30..0000000--- a/styleboard/cards.json+++ /dev/null@@ -1,443 +0,0 @@-{- "_about": "Gallery copy for styleboard/index.html (English first, Chinese second). film = demo title; line/line_cn = one-sentence story; uses = what the style is good for.",- "crayon-book": {- "film": "The Moon Can't Sleep",- "line": "The moon can't sleep, so a little girl climbs onto the roof to sing it a lullaby.",- "line_cn": "月亮失眠了,小女孩爬上屋顶给它唱摇篮曲。",- "uses": [- "Picture books",- "Bedtime stories",- "Kids' learning"- ]- },- "watercolor": {- "film": "Follow the Rain",- "line": "Follow the rain from Australia's red desert heart to its green coast in one unbroken painted walk.",- "line_cn": "跟着降雨从澳洲红色腹地一路画到绿色海岸,一镜到底。",- "uses": [- "Nature documentary",- "Travel",- "Science explainers"- ]- },- "ink-wash": {- "film": "The Swordsman and the River",- "line": "A swordsman crosses the river on the water and splits the current with a single stroke.",- "line_cn": "侠客踏水过江,一剑断流。",- "uses": [- "Wuxia",- "Cultural brands",- "Poetry"- ]- },- "impasto": {- "film": "The Colour of Rain",- "line": "In a grey, rainy square one red umbrella opens, and a waltz paints the whole plaza in colour.",- "line_cn": "灰色雨中广场,第一把红伞撑开,圆舞曲把整个广场刷上颜色。",- "uses": [- "Music videos",- "Art & culture",- "Emotional ads"- ]- },- "one-line": {- "film": "The Line That Never Lifted",- "line": "One unbroken line draws a whole life, then the pen passes to a child.",- "line_cn": "一根不离纸的线画完一个人的一生,再把笔交给孩子。",- "uses": [- "Brand stories",- "Life milestones",- "Minimal ads"- ]- },- "whiteboard": {- "film": "Einstein in Your Pocket",- "line": "How your phone knows where you are: GPS, atomic clocks, and the 38 microseconds relativity adds every day.",- "line_cn": "手机怎么知道你在哪:GPS、原子钟,和相对论每天多出的 38 微秒。",- "uses": [- "Explainers",- "Online courses",- "Science"- ]- },- "urban-sketch": {- "film": "Where the Wind Went",- "line": "A park that is only a pen sketch; wherever the wind carries her straw hat, colour follows.",- "line_cn": "公园只是一张钢笔速写,风把草帽吹到哪里,哪里才有颜色。",- "uses": [- "City & travel",- "Architecture",- "Lifestyle brands"- ]- },- "shadow-puppet": {- "film": "Hou Yi Shoots the Suns",- "line": "Ten suns scorch the earth until the archer Hou Yi draws his bow, told with leather puppets on a lit screen.",- "line_cn": "十日炙烤大地,后羿张弓射日。",- "uses": [- "Myths & folklore",- "Heritage",- "Festivals"- ]- },- "ukiyoe": {- "film": "A Journey Toward the Mountain",- "line": "A traveller walks toward a distant mountain; every shot is a woodblock print, ending in a great wave.",- "line_cn": "旅人走向远山,每个镜头都是一幅版画,最后迎来一道巨浪。",- "uses": [- "Travel",- "Japanese culture",- "Poetry"- ]- },- "papercut-red": {- "film": "Nian Comes to Town",- "line": "On New Year's Eve the beast Nian comes to town, and one girl's giant paper-cut lights up the village to scare it off.",- "line_cn": "除夕年兽进村,小女孩剪出的大窗花照亮全村,把它吓跑。",- "uses": [- "Lunar New Year",- "Festive greetings",- "Folk tales"- ]- },- "paper-lantern": {- "film": "A Mooncake's Longing",- "line": "A single mooncake tells the Mid-Autumn story of reunion and longing inside a glowing paper-cut lightbox.",- "line_cn": "一枚月饼讲中秋的团圆与思念,纸雕灯箱层层透光。",- "uses": [- "Festivals",- "Gift brands",- "Cultural stories"- ]- },- "risograph": {- "film": "Sunday Ride",- "line": "A Sunday-morning bike ride through the city — bakery, park, riverside — in two misregistered inks.",- "line_cn": "周日早晨骑车穿过城市:面包店、公园、河边。",- "uses": [- "Indie brands",- "Zines",- "Lifestyle"- ]- },- "halftone-dossier": {- "film": "Case File: Chubby",- "line": "A chubby orange cat stands trial for testing gravity and 4 a.m. parkour, and walks free.",- "line_cn": "橘猫胖橘被立案审查:测试重力、凌晨跑酷,最后无罪释放。",- "uses": [- "Humour",- "Pet content",- "Social shorts"- ]- },- "pop-art": {- "film": "The Call That Never Came",- "line": "She waits all day for the phone to ring, in melodramatic Ben-Day dots, until she finds it was never plugged in.",- "line_cn": "她等了一整天电话,最后发现电话线根本没插。",- "uses": [- "Comedy ads",- "Fashion",- "Social shorts"- ]- },- "woodcut": {- "film": "The Bell Founder",- "line": "A village spends a whole winter casting one bell; the first time it rings, the snow stops.",- "line_cn": "村子用一整个冬天铸一口钟,钟声第一次响起,雪停了。",- "uses": [- "Folk tales",- "Craft brands",- "Book trailers"- ]- },- "swiss-motion": {- "film": "Five Rules for a Poster",- "line": "A concert poster lays itself out by five Swiss design rules; the fifth is to break just one.",- "line_cn": "一张音乐会海报按瑞士设计的五条规则自己排版,第五条是只打破一条。",- "uses": [- "Brand identity",- "Events",- "Design education"- ]- },- "spy-titles": {- "film": "The Velvet Cipher",- "line": "Opening titles for an imaginary 1964 spy film: a chase for a stolen key until the shapes lock into the title.",- "line_cn": "虚构 1964 年间谍片的片头:追一把被偷的钥匙,几何碎片最后拼成片名。",- "uses": [- "Title sequences",- "Event openers",- "Trailers"- ]- },- "art-deco": {- "film": "Midnight at the Starlight Hotel",- "line": "A grand hotel, 1930: a bellboy races lifts and revolving doors to deliver one letter before midnight.",- "line_cn": "1930 年的大饭店,门童赶在午夜前把一封信送上顶楼。",- "uses": [- "Luxury & hospitality",- "Galas",- "Invitations"- ]- },- "blueprint": {- "film": "Patent Pending: The Cloud Catcher",- "line": "An inventor's blueprint draws, explodes and assembles a cloud-catching machine, and its revision cloud starts to rain.",- "line_cn": "发明家的蓝图自己画出一台接云机器,修订云线变成了真的雨云。",- "uses": [- "Engineering",- "Hardware launches",- "Tech explainers"- ]- },- "stained-glass": {- "film": "The Dragon of the East Window",- "line": "Sunlight crosses a cathedral window from dawn to dusk, waking each pane of a knight-and-dragon tale.",- "line_cn": "阳光从清晨移到黄昏,照到哪一格花窗,哪一格的故事就动起来。",- "uses": [- "Legends",- "Heritage",- "Holiday stories"- ]- },- "pictogram-motion": {- "film": "Aichi-Nagoya 2026 — All 43 Sports",- "line": "All 43 sports of the 2026 Asian Games as beat-locked geometric pictograms.",- "line_cn": "2026 亚运会 43 个大项,几何象形人卡着节拍快闪。",- "uses": [- "Sports events",- "Visual identity",- "Event openers"- ]- },- "ascii-crt": {- "film": "Tranquility.log",- "line": "A moon-base AI wakes after forty years to a signal from Earth, and replies by drawing “home” in characters.",- "line_cn": "月球基地的 AI 沉睡 40 年后被唤醒,用字符画出“家”来回复。",- "uses": [- "Developer tools",- "Sci-fi",- "Tech brands"- ]- },- "dataviz": {- "film": "A Hundred Summers",- "line": "A hundred years of summer temperatures, where the chart itself tells the story.",- "line_cn": "一百年的夏季气温,图表本身就是故事。",- "uses": [- "Data journalism",- "Reports",- "Climate & science"- ]- },- "iso-infographic": {- "film": "From Bean to Cup",- "line": "A coffee's journey from the plantation to your hands, across one isometric world.",- "line_cn": "一杯咖啡从种植园到你手里的旅程。",- "uses": [- "Process explainers",- "Supply chains",- "Annual reports"- ]- },- "dark-keynote": {- "film": "Room to Think",- "line": "Launch film for Tidy, a fictional app: one buried cursor snaps hundreds of windows back into place.",- "line_cn": "虚构 app Tidy 的发布片:被埋掉的光标一键把几百个窗口归位。",- "uses": [- "Product launches",- "SaaS",- "Keynotes"- ]- },- "rubber-hose": {- "film": "Coffee Cup Chase",- "line": "A coffee cup chases a runaway sugar cube around the kitchen, 1930s-cartoon style.",- "line_cn": "一只咖啡杯满厨房追一块逃跑的方糖。",- "uses": [- "Food & drink",- "Retro ads",- "Kids"- ]- },- "cel-anime-80s": {- "film": "City Lights, 1987",- "line": "A courier girl rides through a rain-soaked neon city to deliver a tape before the dawn launch.",- "line_cn": "快递少女骑车穿过雨后霓虹都市,赶在黎明发射前送到一盘磁带。",- "uses": [- "Music videos",- "Game trailers",- "Nostalgia"- ]- },- "scifi-toon": {- "film": "Coffee Run",- "line": "A jaded genius opens a portal just to buy coffee and tumbles through ever-stranger universes.",- "line_cn": "厌世天才开传送门只想买杯咖啡,却穿过越来越离谱的平行宇宙。",- "uses": [- "Comedy",- "Tech brands",- "Social shorts"- ]- },- "pixel-rpg": {- "film": "The Last Save Point",- "line": "At the final boss door a hero saves the game, and the save screen replays the whole journey.",- "line_cn": "勇士在最终 Boss 门前存档,存档画面闪回一路冒险。",- "uses": [- "Game trailers",- "Recaps",- "Nostalgia"- ]- },- "hd-2d": {- "film": "The Lampbearer",- "line": "The lighthouse goes dark; a girl carries the last flame through a night forest and up the storm cliffs.",- "line_cn": "灯塔熄灭,孙女提着最后一簇火穿过夜林、爬上风暴悬崖。",- "uses": [- "Game trailers",- "Fantasy",- "Story films"- ]- },- "microgame": {- "film": "Five-Second Astronaut",- "line": "A clumsy cadet survives a five-second boot camp, faster and faster, until the boss: landing home.",- "line_cn": "见习宇航员闯五秒训练营,越来越快,Boss 关亲手降落回地球。",- "uses": [- "Game trailers",- "Onboarding",- "Social shorts"- ]- },- "game-show": {- "film": "Rhythm of AI, 1997 → 2026",- "line": "The history of AI as a rhythm game: models take the stage on the beat, and a report card closes the show.",- "line_cn": "把 AI 发展史做成一局节奏游戏,模型踩着拍登场,最后发成绩单。",- "uses": [- "Tech timelines",- "Year in review",- "Variety shows"- ]- },- "silent-film": {- "film": "The Runaway Loaf",- "line": "A baker's boy chases a runaway loaf downhill, then breaks it in half for a hungry girl.",- "line_cn": "面包店学徒追一个滚走的面包,最后掰成两半分给饿肚子的小女孩。",- "uses": [- "Comedy",- "Retro brands",- "Silent storytelling"- ]- },- "backrooms": {- "film": "Night Shift Orientation",- "line": "A new night-shift hire films their first night in an endless yellow office, following the rules on the wall.",- "line_cn": "新夜班员工拍下入职第一晚:无尽的黄色办公空间,和墙上的员工守则。",- "uses": [- "Horror",- "Mystery & ARG",- "Game teasers"- ]- },- "brick-toy": {- "film": "Rocket from Spare Parts",- "line": "A brick astronaut builds a rocket from spare parts and flies to a brick moon.",- "line_cn": "积木宇航员用零件拼出火箭,飞向积木月亮。",- "uses": [- "Toys & kids",- "Product builds",- "Space"- ]- },- "paper-popup": {- "film": "Pip's Paper Adventure",- "line": "A pop-up book opens on a desk; a sprite named Pip adventures through paper worlds and jumps out into ours.",- "line_cn": "立体书在书桌上打开,小精灵 Pip 在纸片世界冒险,最后跳出书外。",- "uses": [- "Children's books",- "Game trailers",- "Story films"- ]- },- "tilt-shift": {- "film": "Toy Town Rush Hour",- "line": "Morning rush hour in a town that looks like a model: traffic, trains and tiny people.",- "line_cn": "玩具城的早高峰,一切都像模型。",- "uses": [- "City promos",- "Real estate",- "Transport"- ]- },- "lowpoly-island": {- "film": "The Island That Grew",- "line": "An island and its village grow tile by tile from an empty sea, each tile a note, into a starry night.",- "line_cn": "空海里一格格长出小岛和村庄,每放一块响一个音符,直到星空。",- "uses": [- "Game trailers",- "World building",- "Calm content"- ]- },- "glass-product": {- "film": "Aura — Hear the Light",- "line": "Unboxing and close-ups of Aura, fictional glass earbuds, in strip-light sweeps and caustics.",- "line_cn": "虚构玻璃耳机 Aura 的开箱与特写。",- "uses": [- "Product launches",- "Consumer tech",- "Beauty"- ]- },- "living-screencast": {- "film": "Clawd Moves In",- "line": "Clawd, the Claude Code pixel mascot, hops out of the terminal into the Claude app and acts out plan mode, diff comments and self-checks in a one-take screencast.",- "line_cn": "像素小人 Clawd 跳出终端、搬进 Claude 应用,在一镜到底的录屏里演示 Plan 模式、diff 评论和自检。",- "uses": [- "Product tutorials",- "Feature launches",- "Onboarding"- ]- },- "midcentury-toon": {- "film": "Meet Pip",- "line": "A robot vacuum set up in three steps, told like a 1950s classroom film: place the dock, connect the app, press start.",- "line_cn": "用 50 年代教育片的口吻,三步教你装好一台扫地机:放充电座、连 app、按开始。",- "uses": [- "Product set-up guides",- "Help-centre explainers",- "How-to steps"- ]- },- "hologram-hud": {- "film": "Volt · Spec Scan",- "line": "An e-bike is scanned into a hologram; target boxes lock onto the battery, motor and brakes, and each spec rolls into place.",- "line_cn": "一辆电助力车被扫描成全息线框,目标框依次锁定电池、电机、刹车,参数逐个滚到真值。",- "uses": [- "Product spec walkthroughs",- "Launch & crowdfunding videos",- "Trade-show screens"- ]- },- "engraving": {- "film": "The Honeybee, Plate VII",- "line": "A natural-history plate engraves itself: the burin cuts the copper, the bee builds up line by line, and a watercolour wash brings it to life.",- "line_cn": "一张博物志图版自己刻出来:雕刀推开铜版,蜜蜂一线线成形,最后手工水彩上色。",- "uses": [- "Museum labels",- "Science explainers",- "Brand heritage"- ]- },- "silkscreen-poster": {- "film": "Three Trails",- "line": "Three trail posters are screen-printed one ink at a time, then climbed in one long take from noon to dusk.",- "line_cn": "三条步道各一张丝印海报,一色一刮印出来,再沿山脊一镜到底从正午爬到黄昏。",- "uses": [- "Trail & destination guides",- "Tourism promos",- "Event posters"- ]- }-}\ No newline at end of filediff --git a/styles/README.md b/styles/README.mdindex 9b931d3..f7080bf 100644--- a/styles/README.md+++ b/styles/README.md@@ -2,7 +2,7 @@Users may name a style in English, in Chinese, or by its folder. Find it here, then read `styles/<folder>/STYLE.md`.用户可能用英文名、中文名或文件夹名来指定风格。在这里查到文件夹,再读 `styles/<文件夹>/STYLE.md`。-<!-- generated by styleboard/build.py from styleboard/catalog.json; do not edit by hand -->+<!-- generated by styleboard/build.py from styles/*/style.json; do not edit by hand -->## Hand-drawn & Painting · 手绘与绘画diff --git a/styles/_template/DEMO.md b/styles/_template/DEMO.mdnew file mode 100644index 0000000..8987b03--- /dev/null+++ b/styles/_template/DEMO.md@@ -0,0 +1,46 @@+# Style Name — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Title of the Demo Film* (NN s) · `<slug>.mp4` · source in [`demo/`](demo/)++<!--+How to fill this template (delete this comment):+- Everything specific to our film: the story and its arc, the shot table with times, the score structure,+ the demo palette and props, the end card, build notes, pitfalls of demo props, and for scene styles the content.json fields.+- Numbers go here as examples; the rule behind each one lives in STYLE.md.+-->++## Story & structure++Logline, the arc, why it fits the style, which native moves it spends where.++## Shots++The demo's camera route, opening and ending included.++| # | Time | Shot | Camera | Native move / note |+|---|---|---|---|---|++## Score structure++The score arc (section sequence), tempo, key, cue-by-cue structure, silences with times, how the mix was balanced for this film.++## Palette & props++The demo's actual colours, characters, objects and their design notes.++## End card++What our end card shows. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++File map of `demo/`, build order, commands (`sh demo/build.sh`), review steps, render times, and pitfalls tied to this demo's props.++## content.json fields (scene styles only)++| Field | Type | Allowed | If out of range |+|---|---|---|---|++Swapping this file and running `build.sh` checks that the engine re-flows; it is not how a user's film is made.diff --git a/styles/_template/STYLE.md b/styles/_template/STYLE.mdnew file mode 100644index 0000000..e497b98--- /dev/null+++ b/styles/_template/STYLE.md@@ -0,0 +1,76 @@+# Style Name — Style Prompt++> One or two sentences: what the medium is and what it does on screen. No demo title, no story.+> References (grammar only): films, artists or traditions to learn the grammar from, and what to take from each. Never copy their characters, layouts, typefaces or music, and never name them in the film.++<!--+How to fill this template (delete this comment):+- This file holds only what stays true for EVERY film in this style: look, material, colour logic, type, motion quality,+ camera vocabulary, sound palette, the medium's native moves and pitfalls. 6–11 KB.+- No story, arc, beat-by-beat shot table, prescribed opening or ending, score arc, BPM or key, demo durations, demo palette or props, end card or sign-off.+ All of that goes to DEMO.md.+- A number measured in the demo becomes a rule here ("the subject fills ≥ 1/3 of the frame"); the demo's actual value+ can stay as an example in DEMO.md.+- Write rules, not history. "Pitfalls" are pitfalls of the medium, not of one demo prop.+- Section numbers are fixed: other guides refer to them.+-->++## 1. Essence, and what it is not++What makes a frame read as this style in one glance (3–5 defining traits). Then the styles it is easily confused with and the line between them ("not a keynote, not a blueprint, not a product render").++## 2. Materials & rendering++The physical medium and how code imitates it: surfaces, marks, layers, edges, texture, light. Name the rendering model (layers, blend modes, noise, stepping of marks). Say which effects must be procedural and anchored to the world, and which live in screen space.++## 3. Colour logic++Rules, not a palette: how many hues, what the neutral ground is, what the accent is reserved for, how values are ordered, what may never be coloured. Give one example palette at most, marked as an example.++## 4. Type & subtitles++Typefaces (licence-free), roles (title, subtitle, micro data), sizes as ranges, how subtitles belong to the world of the style (inscription, caption, HUD plate…), reading-time rule: hold ≥ max(1.8 s, speech + 0.6 s).++## 5. Motion quality++Frame rate and stepping (on ones / twos, what boils), easing families, weight, jitter, how things appear and disappear. What never moves.++## 6. Camera grammar++A vocabulary, not a route: the moves this medium does well, what each expresses, and a few kinds of moment it can serve. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| e.g. slow lateral pan | … | a journey; a list; time passing |+| e.g. locked frame | … | a decision; a reveal; reading time |+| e.g. push-in | … | tension; the one detail that matters |++No row names the single move for an opening, a climax or an ending. If the demo's route is worth keeping, it goes to DEMO.md "Shots". Framing rules that always hold (subject size, safe areas, where text lives). Allowed and forbidden transitions.++## 7. Sound palette++Instruments and timbres, articulations, tuning or mode families, foley materials (what the style's matter sounds like), ambience, silence as a tool (what it may contain, how it is cut), mix character (ducking, loudness −14 LUFS), voice character. A technique may be written as one option ("divide the beat to accelerate instead of changing tempo"). No score arc, no section sequence, no BPM or key: those are the demo's and go to DEMO.md "Score structure".++## 8. Native moves++A menu of moments only this medium can do: use the ones your story needs. For each: what it is, how to build it, and **fits content like…** with three or more examples unlike the demo.++- **Move name.** What it does on screen. *Fits content like:* a …; a …; a ….++## 9. Pitfalls of the medium++Mistakes that come from the medium itself, each with its fix. Pitfalls tied to one demo prop go to DEMO.md.++## 10. Engine++Which files in `demo/` hold reusable recipes (engine, rig, compositor, sampler set-up), their main functions and parameters, and a minimal example that draws something that is not in the demo. Point to the code; don't restate it.++## 11. Variation space++What the agent decides for each film (structure, characters, opening, ending, camera path, pacing, palette within the colour logic). Then, one line each and all far from the demo: **three structures**, **three openings** and **three endings**, to show the range.++Scene styles (a practical scene whose demo reads its words from `demo/content.json`) add here their **use cases** as information-order grammar: for each job, the order in which information arrives and how long each layer stays on screen. Swapping `content.json` is a technical check of the engine, not a way to make a film.++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/_template/style.json b/styles/_template/style.jsonnew file mode 100644index 0000000..dad7d1c--- /dev/null+++ b/styles/_template/style.json@@ -0,0 +1,18 @@+{+ "slug": "my-style",+ "num": "99",+ "en": "My Style",+ "cn": "我的风格",+ "category_en": "Graphic & Type",+ "category_cn": "图形与排版",+ "film": "Title of the Demo Film",+ "line": "One sentence: what happens in the demo film.",+ "line_cn": "一句话:demo 片里发生了什么。",+ "uses": [+ "Use one",+ "Use two",+ "Use three"+ ],+ "frame_sec": 12.0,+ "dur": 0+}diff --git a/styles/art-deco/DEMO.md b/styles/art-deco/DEMO.mdnew file mode 100644index 0000000..10bf736--- /dev/null+++ b/styles/art-deco/DEMO.md@@ -0,0 +1,135 @@+# Art Deco — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Midnight at the Starlight Hotel* (58.4 s) · `art-deco.mp4` · source in [`demo/`](demo/)+++The original brief for the demo: a 40–60 second film in the Art Deco style; the director decides story, shots, score, sound and titles.++## Story & structure++A bellboy, Pip, must carry a sealed letter to the rooftop before midnight on New Year's Eve 1930. A small, urgent errand in a grand place. A mechanical obstacle (the elevator is OUT OF ORDER) turns panic into resolve. A rising middle with a tempo change (the stairs = Charleston). A true silence before the climax (the clock hits XII, the band stops, the letter tumbles). The climax is counted light: twelve strikes of midnight = the twelve letters of THE STARLIGHT lighting one by one.++**The music is the plot:** the letter holds the band's new song; the theme is only heard in fragments until the conductor opens it, and the 13th beat is the first full statement. Echo at the end: the hero who looked up at a dark sign now stands inside the lit one; a button gag closes the loop (the elevator dings IN SERVICE — too late).++How the style's native powers were spent in this story:++| Native power | Demo use |+|---|---|+| The centre axis | Every transition is a door: the title arch splits open, stair doors burst, kitchen swing doors bang, elevator doors close into the end card. |+| Counted light | The bulb sign lights letter by letter, one per bell. |+| Machine symmetry | A Busby Berkeley overhead: fans opening on eighth notes become a sunburst, then lock into a clock face. Used as the release after the climax. |+| Dials & numbers | Floor indicator, clock face, floor medallions, year badge: floor 30, 11:55, 1930 carry the plot without narration. |+| Period radio | An announcer as narrator, moved through acoustic spaces (street horn → desk radio → stairwell PA → live mic) so the audience hears the hero getting closer to the source. |++The recipe we used to adapt it (for this demo): find the threshold (doors), the deadline (a clock), the counted reveal (a sign, floor numbers), and the thing the finale unlocks (a song).++## Shots++| Beat | Camera |+|---|---|+| Opening (3 s hook) | A single gold point explodes into rays and stepped arches; slow 6 % push. Title bar blooms on the orchestra hit. |+| Transition grammar | **Symmetric split**: the outgoing frame becomes two door leaves hinged at the edges that swing open from the seam (arch, stair doors, kitchen doors). The revolving door is its rotary cousin (glass wings wipe). The film closes with elevator doors sliding shut over the live shot. |+| Establishing | Extreme low-angle Cassandre tilt from the dark sign at the top of the tower down to the tiny hero on the street: goal, difficulty and the dark sign (the setup of the ending) in one move. |+| Obstacle | Medium on the plaque dropping; a slow push on the face during the silence while he straightens his cap. |+| Signature 1 | The stairwell as an **architectural section**: rise with him, pull out until the whole tower is a cutaway and he is a red dot with speed lines, push back in on the "30" floor medallion, match-cut to a spinning silver tray in the kitchen. |+| Silence | Insert of the tower clock's minute hand clicking to XII; the letter tumbling in slow motion past the dark letters. |+| Climax | Twelve bells: catch (ECU glove) → conductor (tear the seal, insert of the score, baton up) → low oblique of the sign as letters light one per strike → close-up as the last T lights behind the hero, gold light across his face. |+| Signature 2 | **Busby Berkeley**: an oblique high angle as 8 dancers open their fans one per eighth note, then straight overhead, 8-way mirrored and slowly rotating; the fans lock into a clock face with two gold hands at XII. |+| Scale reveal | Pull back from the sign to the whole tower, the city and fireworks (echoes the opening tilt). |+| Ending | Elevator doors slide shut over the live shot; the end card plaque sits on the closed doors. |++Performance beats: the elevator button pressed three times (once, twice, mash); the throw has a wind-up, release and a near-fall over the railing; the cap knocked off by a tray lands back on his head one bar later while he doesn't even look. In the opening the gold lines grow at the speed of the clarinet glissando (slow → fast), landing on the downbeat hit. After all letters are lit, a 16th-note chase runs across the whole sign.++## Score structure++- **Score first**: `timeline.js` is the single source of truth (116 BPM foxtrot → 16 beats accelerating to 138 BPM Charleston → stop → 12 bells on the 116 grid → the song in D♭). `tools/cuecheck.py` checks 53 picture sync points against `music/score.json` (max offset 0.5 ms).+- **Orchestration as used**: piano lead (Salamander), clarinet (low trill + two-octave glissando curtain-raiser), strings (tremolo bed, upward rushes), muted trumpet commentary ("wah-wah" on the plaque), brushes → sticks in the Charleston, walking pizz bass, tubular bells (B♭) for midnight, harp/piano glissandi for each fan, trombone + sax for the final chorus.+- **Planting the theme**: title = piano bar 1; street = muted trumpet tries two bars and is cut off; kitchen = the hero whistles the first four notes; finale = the full song.+- **Distance automation**: the band plays on the 30th floor, so it is low-passed at 2.5 kHz on the street, 1.2 kHz in the lobby (through the floor), opens up as he climbs, full-range and dry on the roof.+- **Announcer in five spaces** (Kokoro `bm_fable`): street horn (band-pass 320–3.8 kHz, soft drive, slap echo) → desk radio → stairwell PA (long reverb) → kitchen radio → live mic (full range). Heavy horn distortion made "five minutes to midnight" unintelligible in the full mix, so the drive was reduced.+- **Foley as used**: brass button click, bronze plaque clang + chain rattle, iron stair treads on eighth notes, marble heels, silver trays, wooden swing doors + spring twang, paper flutter, glove slap, knife-switch "chunk" + filament hum per letter, relay ticks for the chase, firework whistles.+- **Silences**: after "Out of order?!" only the lobby clock ticks twice (next sound: the Charleston snare); after the tower clock clicks to XII only wind and the fluttering letter (next sound: the first bell, the most important sound in the film); one beat of held breath after bell 12 (next: tutti).+- **J/L-cuts**: radio tuning noise before the arch opens; the echo of "Out of order?!" rolls up the stairwell; the kitchen radio starts during the stairwell; rooftop wind enters a bar before the kitchen doors; bell 12's tail rings into the tutti.+- Mix: music ducked ≈ −9 dB under voice (−6 dB under the live announcer), beds −6 dB; −14 LUFS, grain 3.++## Palette & props++- Ground: warm black `#0d0b09`, lacquer `#060504`; night sky `#0a0e16` → horizon emerald `#10231f`.+- Gold: `#6F5220` (shadow) → `#C9A24B` (base) → `#F3D98B` (light) → `#FFF4D2` (specular).+- Accents: burgundy `#8E1B2E` (the hero's uniform, the only large saturated area), emerald `#1D6B57` (fans, door panels, night), ivory `#F2E8D5` (the letter, gloves, carpet).+- Scenes: the lobby in one-point perspective with a mode-7 floor; the rooftop sign in two-point perspective from below with a tiny pinhole camera.+- Pip: 7 heads tall, tapered streamline body, faceted lacquer planes; silhouette marks: tilted pillbox cap + chin strap, a V of brass buttons, the sealed letter always in hand.+- Other props: the OUT OF ORDER plaque, the tower clock, the bulb sign THE STARLIGHT, the conductor and the score, waiters with silver trays, 8 dancers with emerald fans, fireworks.++## Titles & end card++- Subtitle card speaker icons: a gold ribbon mic for the announcer, a burgundy pillbox cap for the hero.+- Title: MIDNIGHT / AT THE STARLIGHT HOTEL in a gold title bar over the stepped arch, a 1930 diamond year badge, NEW YEAR'S EVE label.+- End card: a lacquer plaque on the closed elevator doors: title, ART DECO, LEMO-OPUSCAR, "LemoLab × Claude Opus 5.5", asset credits. This sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/art-deco/demo/+ timeline.js tempo grid + all sync points (single source of truth) → tools/dump_timeline.mjs → timeline.json+ engine/ deco.js (palette, gold, gline, airbrush, motifs, drawShape) · type.js (title bar, digits, badges, dial, clock, subtitle card)+ bulbs.js (any text → bulb sign, lighting patterns) · cam.js (pinhole camera + card transforms)+ chars.js Pip (FK rig, 4 views, 8 faces, pose library, run cycles), conductor, waiters, dancers, the letter+ scenes/ lobby.js (one-point + mode-7 floor, doors, plaque) · roof.js (two-point sign) · tower.js · stairs.js+ shots_*.js one function per shot: shot(g, t) film.js shot list, transitions (split / revolve / close), subtitles+ frames.js model sheet, component kit, style frames, ?scene=frames.shotTest&shot=<name>+ music/score.py original score → score.wav + stems + score.json mix.py voices in 5 spaces + foley + beds + ducking+ tools/ cuecheck.py · subs.py · pitch.py · dump_timeline.mjs+```+1. Write the tempo grid and the cue table first; hand them to a music sub-agent and draw in parallel.+2. Build the engine and the hero model sheet, then one scene per location, then one function per shot. Review single shots with `?scene=frames.shotTest&shot=<name>`.+3. `sh demo/build.sh` rebuilds everything: timeline → TTS → pitch → whisper → score → cue check → mix → srt → render (≈15 s with 4 workers for 1401 frames) → mux (−14 LUFS, grain 3) → stills.+4. Review at 1 s intervals with `still.mjs --range 0:58:1` + `sheet.py`, then frame strips at 0.15–0.2 s for every key action.++Pitfalls tied to this demo's props:+- The first transition to the end card slid the elevator doors in over a flat brown "interior", which read as a blank frame; only the leaves are drawn now, closing over the live shot.+- The opening (one gold point on black) tripped `blackdetect`; the background sunburst wedges and glow were lifted.+- Pip at ¼ frame height in the bell shots was too small for the emotional peak; the last bell got a close-up.+- Three-digit hex turned the emerald fans blue-violet.++## Engine reference++All drawing is Canvas2D, deterministic in `t`. Import from `demo/engine/`.++**deco.js**+| Function | Purpose |+|---|---|+| `C` | palette (`ink black night gold0 gold1 gold2 goldHi ivory emerald burg plum skin bulb…`) |+| `goldGrad(g, x0,y0,x1,y1, {sheen, hot, tint})` | banded metal gradient; animate `sheen` −0.2→1.2 for a light sweep |+| `gline(g, pts, {w, part, closed, glow, double, sheen, alpha, color})` | the engraved gold keyline; `part` 0→1 draws it on; `color` = any hex for the one-colour exception |+| `airbrush(g, pts|Path2D, {base, dark, light, dir, rim})` | hard-edged airbrushed fill |+| `sunburst(g, cx, cy, {rays, r0, r1, mode:'lines'|'wedges', a0, a1, rot, part})` | radial backgrounds |+| `stepArchPts(cx, base, w, h, {steps, crown})` / `archFrame(g, cx, base, w, h, {rings, gap, fill, burst, part})` | ziggurat arches and arch frames |+| `fan`, `fishScale`, `chevrons`, `sparkle`, `speedLines`, `glow`, `beam`, `vignette` | motif library |+| `drawShape(g, pts, {color, halo, trail, glints, part})` | **any path in the deco manner**: airbrushed gold (or `color`) fill + gold keyline + optional sunburst halo, speed-line trail and glints |+| `starPts(cx, cy, r, k, rot, n)` | four-point star path |++**type.js**: `goldText(g, text, x, y, {size, font, track, sheen})` · `titleBar(g, text, cx, cy, {p, out, size, sub, wings})` (animated in/out) · `decoDigits(g, '11:59', x, y, size)` · `yearBadge(g, '1930', cx, cy, r, {p})` · `floorMedallion(g, '30', cx, cy, r, {sub})` · `dial(g, cx, cy, r, value, {labels})` (semicircle floor indicator, value 0..1) · `clockFace(g, cx, cy, r, {h, m, s, roman})` · `subtitleCard(g, text, {p, out, speaker:'radio'|'boy'})`.++**bulbs.js**: `buildSign(text, {font, size, spacing})` (any text → glyph skeleton → evenly spaced bulbs, cached) · `drawSign(g, sign, x, y, scale, {lit, channel, color})` · `litAll(v)` · `litSequence(t, times[], {flash, chaseFrom, chaseSpeed})` (letter i switches on at `times[i]`, then chases).++**cam.js**: `makeCam({x, y, z, f, yaw, pitch, roll})` → `{P(X,Y,Z), scaleAt(X,Y,Z)}` · `cardTransform(g, cam, TL, TR, BL, w, h)` (map a flat card onto a 3D quad).++**chars.js** (demo characters): `drawFigure(g, {x, y, s, view:'side'|'q'|'front'|'back', face, ...pose})` · `POSES`, `FRONT_POSES`, `lerpPose`, `runCycle(phase)`, `runFront(phase)` · `drawDancer`, `drawDancerTop`, `envelope`, `clef`.++**The one colour.** To keep one element in its own colour, pass `color` — it is used for the fill, keyline and glow while everything else stays gold:++```js+import * as D from './engine/deco.js';+import * as B from './engine/bulbs.js';++// a warm-orange four-point light with a short cursor tail, drawn the Art Deco way+D.sunburst(g, 960, 540, { rays: 72, r1: 1400, mode: 'wedges' });+D.drawShape(g, D.starPts(960, 540, 120, .22), { color: '#D97757', halo: 1, trail: { ang: Math.PI, len: 420, n: 4 } });++// a bulb sign that lights letter by letter, in the same orange+const sign = B.buildSign('LEMO', { size: 260, spacing: 20 });+B.drawSign(g, sign, 560, 700, 1, { lit: B.litSequence(t, [0, .5, 1, 1.5], { chaseFrom: 2.5 }), color: '#D97757' });+```diff --git a/styles/art-deco/STYLE.md b/styles/art-deco/STYLE.mdindex 1492236..3cd68b2 100644--- a/styles/art-deco/STYLE.md+++ b/styles/art-deco/STYLE.md@@ -1,151 +1,110 @@# Art Deco — Style Prompt-> Black lacquer, engraved gold line and airbrushed geometry: a 1930s grand-hotel poster that moves. Every composition has a centre axis, every transition opens or closes along it, and light arrives as bulbs switching on one by one.-> Demo: *Midnight at the Starlight Hotel* (58.4 s) · `art-deco.mp4` · source in `demo/`-> References (grammar only): **A. M. Cassandre** posters (giant geometry, steep perspective, airbrush gradients inside hard edges, speed lines); **Chrysler Building / Rockefeller Center ornament** (ziggurat setbacks, sunbursts, chevrons, fish-scale, fans); **Busby Berkeley** overhead numbers of the 1930s (mechanical symmetry, human kaleidoscopes); **The Great Gatsby (2013) title sequence** (gold line drawing itself on black, sheen sweeps); **Gershwin-era symphonic jazz** (clarinet glissando curtain-raiser, piano lead, muted-trumpet commentary). Never copy a poster layout, a real building, a character, a typeface design or a melody.+> Black lacquer, engraved gold line and airbrushed geometry: a 1930s poster that moves. Every composition has a centre axis, transitions open or close along it, and light arrives as bulbs switching on one by one.+> References (grammar only): **A. M. Cassandre** posters (giant geometry, steep perspective, airbrush inside hard edges); **Chrysler Building / Rockefeller Center ornament** (setbacks, sunbursts, chevrons); **Busby Berkeley** overhead numbers overheads (human kaleidoscopes); **The Great Gatsby (2013) title sequence** (gold line drawing itself on black); **Gershwin-era symphonic jazz** (clarinet, piano, muted trumpet). Never copy a poster layout, a real building, a character, a typeface design or a melody.-You are directing a 40–60 second film in the **Art Deco** style. The user gives you a topic. You decide everything else (story, shots, score, sound, titles) and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not----+A world built from **gold keylines on warm black**, filled with **airbrushed hard-edged volumes** (Cassandre, Lempicka), organised around **one vertical axis**. Ornament *is* the picture: sunbursts are backgrounds, stepped arches are frames, a dial is a progress bar, a bulb marquee is a reveal. Motion is **mechanical and symmetrical**: things unfold from the centre, doors split along the seam, lights switch on in counted order. Native register: glamour with a clock ticking (an event, a deadline, a launch).-## 1. What this style is+Not a gold-foil slideshow (things move and have volume), not Art Nouveau (no whiplash curves, no flowers), not a flat vector poster (volumes are airbrushed and rimmed), not a 60s spy title (no silhouettes on flat colour).-A world built from **gold keylines on warm black**, filled with **airbrushed hard-edged volumes** (Cassandre, Lempicka), organised around **one vertical axis**. Ornament is not decoration on top of the picture; it *is* the picture: sunbursts are backgrounds, stepped arches are frames, a floor indicator dial is a progress bar, a bulb marquee is the climax. Motion is **mechanical and symmetrical**: things unfold from the centre, doors split along the seam, lights switch on in counted order.+## 2. Materials & rendering-The emotional register is glamour with a clock ticking: an evening, an event, a deadline, a reveal.+- **Ground**: warm lacquer black, never neutral grey-black; a night sky may drift toward a deep emerald near the horizon.+- **Gold is a banded metal gradient** (dark – light – hot – light – dark); animate its `sheen` offset for a light sweep.+- **The signature stroke** (`gline`): a dark engraved underline ~1.6 px wider than the line, the gold gradient line, and a hairline highlight on top. Optional glow and a parallel twin (`double`). Nothing gets a black cartoon outline.+- **Volumes**: hard edge + airbrush (`airbrush`): a directional gradient from shade to light inside the shape, one consistent light direction (upper left by default), a thin gold rim on the lit side.+- **Motifs** (sunburst, stepped arch / ziggurat, fish-scale, chevrons, fan, four-point sparkle, speed lines, clock face, dial) are structural (a background, a frame, a transition), not stickers.+- **Perspective is real**: true one-point (mode-7 floors) and two-point perspective through a pinhole camera, so dolly, tilt and pan change perspective instead of scaling flats.+- **Characters are deco too**: about 7 heads tall, tapered streamline bodies, faceted lacquer planes (Lempicka), almond or arc eyes, a one-stroke nose, airbrush + gold rim. Give each lead one or two silhouette marks readable at a quarter of frame height.-## 2. Story: what fits this style+## 3. Colour logic-| Native power | Story use |-|---|---|-| **The centre axis** | Every transition is a door: title arch splits open, stair doors burst, kitchen swing doors bang, elevator doors close into the end card. A story with thresholds (a building, a journey upward, backstage → stage) fits naturally. |-| **Counted light** | A bulb sign lights letter by letter, so the audience can *count*. Tie it to something that also counts: twelve strikes of midnight = the twelve letters of THE STARLIGHT. |-| **Machine symmetry** | A Busby Berkeley overhead turns people into a pattern: fans opening on eighth notes become a sunburst, then lock into a clock face. Use it as the release after the climax. |-| **Dials & numbers** | Floor indicator, clock face, floor medallions, year badge: numbers carry the plot (floor 30, 11:55, 1930) without narration. |-| **Period radio** | An announcer is a natural narrator. Move him through acoustic spaces (street horn → desk radio → stairwell PA → live mic) so the audience *hears* the hero getting closer to the source. |+- Three constants: **warm black ground, gold line and metal, ivory** for paper, gloves, light and type.+- **One saturated accent reserved for the protagonist** (or the one object the story follows). It is the only large saturated area, so the eye finds it in any wide shot. A cooler jewel tone may carry secondary surfaces, never competing in area.+- **The one-colour exception**: any single element can be drawn in its own colour through the same fill + keyline + glow (`color` option) while everything else stays gold.+- Always expand hex to six digits in code (three-digit hex breaks colour mixing).+- Examples of the triad (accent / jewel / metal): burgundy / emerald / gold; coral / sapphire / pale gold; jade / plum / rose gold. Our demo's actual values are in DEMO.md.-**Story shape (proven in the demo):** a hero with a small, urgent errand in a grand place (a bellboy must carry a sealed letter to the rooftop before midnight). A mechanical obstacle (the elevator is OUT OF ORDER) turns panic into resolve. A rising middle with a tempo change (stairs = Charleston). A true silence before the climax (the clock hits XII, the band stops, the letter tumbles). The climax is counted light. **The music is the plot:** the letter holds the band's new song; the theme is only heard in fragments until the conductor opens it, and the 13th beat is the first full statement. Echo at the end: the hero who looked up at a dark sign now stands inside the lit one; a button gag closes the loop (the elevator dings IN SERVICE — too late).+## 4. Type & subtitles-Adapting any topic: find the threshold (doors), the deadline (a clock), the counted reveal (a sign, a scoreboard, floor numbers), and the thing that the finale unlocks (a song, a toast, a launch).+- **Type (OFL)**: Limelight (titles), Poiret One (numbers, sign skeletons, plaques), Josefin Sans (subtitles, labels), Italiana (numerals).+- **Titles are architecture**: a stepped gold title bar over an arch or sunburst, optional badge and wings; drawn on in gold, then a sheen sweep.+- **Subtitle card** (`subtitleCard`): a lacquer bar (~88 % black) with stepped ends like the title bar, double gold keyline, Josefin Sans SemiBold ~40–42 px ivory, an optional small speaker icon per voice. It **unfolds from the centre** like every other title, so titles, subtitles and transitions are one system. Hold ≥ max(1.8 s, speech + 0.6 s).+- Numbers carry plot without narration: dials, clock faces, floor medallions, badges.-## 3. Visual language+## 5. Motion quality-- **Ground**: warm black `#0d0b09`, lacquer `#060504`; night sky `#0a0e16` → horizon emerald `#10231f`.-- **Gold**: `#6F5220` (shadow) → `#C9A24B` (base) → `#F3D98B` (light) → `#FFF4D2` (specular). Gold is a **banded metal gradient** (dark–light–hot–light–dark) whose `sheen` offset can be animated as a sweep of light across a title.-- **The signature stroke** (`gline`): a dark engraved underline 1.6 px wider than the line, the gold gradient line, and a hairline highlight on top. Optional glow and a parallel twin (`double`). Nothing gets a black cartoon outline.-- **Volumes**: hard edge + airbrush (`airbrush`): a directional gradient from shade to light inside the shape, light from the upper left, a thin gold rim on the lit side.-- **Accents**, used sparingly: burgundy `#8E1B2E` (the hero's uniform — the only large saturated area, so the eye always finds him), emerald `#1D6B57` (fans, door panels, night), ivory `#F2E8D5` (the letter, gloves, carpet).-- **Motif library**: sunburst (lines or wedges), stepped arch / ziggurat, fish-scale, chevrons, fan, four-point sparkle, speed lines, clock face, semicircular floor dial.-- **Perspective**: scenes are drawn in true one-point (lobby with a mode-7 floor) and two-point perspective (the rooftop sign from below) with a tiny pinhole camera, so dolly/tilt/pan are real perspective changes, not scaled flats.-- **Type (OFL)**: Limelight (titles), Poiret One (numbers, sign skeletons, plaques), Josefin Sans (subtitles, labels), Italiana (roman numerals).-- **Characters**: 7 heads tall, tapered streamline bodies, faceted lacquer planes (Lempicka), almond or arc eyes, a one-stroke nose. Silhouette marks of the demo hero: tilted pillbox cap + chin strap, a V of brass buttons, the sealed letter always in hand.+- **Characters step on twos (12 fps)**; camera, light, bulbs, gold draw-on and sheen run on ones (24 fps). A stepped camera reads as stutter.+- **Everything unfolds from the centre**: a point → a hairline → bars open symmetrically → text rises → wings and sparkle.+- **Draw-on follows the music**: a gold line grows at the speed of the phrase under it and lands on the hit.+- **Bulbs have an ignition overshoot** (~1.6× flash settling in ~0.18 s) and a relay "chunk"; once a sign is lit, a fast chase may run across it.+- **Mechanical easing**: doors, dials and hands move with firm ease-in-out and a small settle, like machinery; nothing floats.+- **Performance beats get anticipation** and escalation in threes (once, twice, mash).+- What never moves: the centre axis of a composition. Symmetry may rotate or open, but it never drifts off-centre.-## 4. Motion language+## 6. Camera grammar-- **Characters step on twos (12 fps)**; camera, light, bulbs, gold draw-on and sheen run on ones (24 fps). A stepped camera reads as stutter.-- **Everything unfolds from the centre**: a title bar is a point → a hairline → bars open symmetrically → text rises → wings and sparkle. Subtitle cards and the end-card plaque use the same grammar, so titles, subs and transitions are one system.-- **Draw-on follows pitch**: in the opening the gold lines grow at the speed of the clarinet glissando (slow → fast), landing on the downbeat hit.-- **Bulbs have an ignition overshoot** (1.6× flash that settles in 0.18 s) and a relay "chunk"; after all letters are lit, a 16th-note chase runs across the whole sign.-- **Performance beats get anticipation**: the button pressed three times (once, twice, mash); the throw has a wind-up, release and a near-fall over the railing; the cap knocked off by a tray lands back on his head one bar later while he doesn't even look (calm = character growth).--## 5. Camera language--| Beat | Camera |-|---|---|-| Opening (3 s hook) | A single gold point explodes into rays and stepped arches; slow 6 % push. Title bar blooms on the orchestra hit. |-| Transition grammar | **Symmetric split**: the outgoing frame becomes two door leaves hinged at the edges that swing open from the seam (arch, stair doors, kitchen doors). The revolving door is its rotary cousin (glass wings wipe). The film closes with elevator doors sliding shut over the live shot. |-| Establishing | Extreme low angle Cassandre tilt from the dark sign at the top of the tower down to the tiny hero on the street: goal, difficulty and the dark sign (the setup of the ending) in one move. |-| Obstacle | Medium on the plaque dropping; a slow push on the face during the silence while he straightens his cap. |-| Signature 1 | The stairwell as an **architectural section**: rise with him, pull out until the whole tower is a cutaway and he is a red dot with speed lines, push back in on the "30" floor medallion, match-cut to a spinning silver tray in the kitchen. |-| Silence | Insert of the tower clock's minute hand clicking to XII; the letter tumbling in slow motion past the dark letters. |-| Climax | Twelve bells: catch (ECU glove) → conductor (tear the seal, insert of the score, baton up) → low oblique of the sign as letters light one per strike → close-up as the last T lights behind the hero, gold light across his face. |-| Signature 2 | **Busby Berkeley**: an oblique high angle as 8 dancers open their fans one per eighth note, then straight overhead, 8-way mirrored and slowly rotating, the fans lock into a clock face with two gold hands at XII. |-| Scale reveal | Pull back from the sign to the whole tower, the city and fireworks (echoes the opening tilt). |--## 6. Sound--- **Score first**: `timeline.js` is the single source of truth (116 BPM foxtrot → 16 beats accelerating to 138 BPM Charleston → stop → 12 bells on the 116 grid → the song in D♭). `tools/cuecheck.py` checks 53 picture sync points against `music/score.json` (max offset 0.5 ms).-- **Orchestration**: symphonic jazz, not a 60s big band. Piano lead (Salamander), clarinet (low trill + two-octave glissando built by time-varying resampling of a long note), strings (tremolo bed, upward rushes), muted trumpet commentary ("wah-wah" on the plaque), brushes → sticks in the Charleston, walking pizz bass, tubular bells (B♭) for midnight, harp/piano glissandi for each fan, trombone + sax for the final chorus.-- **Plant the theme**: title = piano bar 1; street = muted trumpet tries two bars and is cut off; kitchen = the hero whistles the first four notes; finale = the full song. The audience recognises it when it finally arrives.-- **Distance automation**: the band plays on the 30th floor, so it is low-passed at 2.5 kHz on the street, 1.2 kHz in the lobby (through the floor), opens up as he climbs, full-range and dry on the roof.-- **Announcer in five spaces** (Kokoro `bm_fable`): street horn (band-pass 320–3.8 kHz, soft drive, slap echo) → desk radio → stairwell PA (long reverb) → kitchen radio → live mic (full range). Keep drive gentle: heavy horn distortion made "five minutes to midnight" unintelligible in the full mix.-- **Foley by material**: brass button click, bronze plaque clang + chain rattle, iron stair treads on eighth notes, marble heels, silver trays, wooden swing doors + spring twang, paper flutter, glove slap, knife-switch "chunk" + filament hum per letter, relay ticks for the chase, firework whistles.-- **Silences**: after "Out of order?!" only the lobby clock ticks twice (next sound: the Charleston snare); after the tower clock clicks to XII only wind and the fluttering letter (next sound: the first bell, the most important sound in the film); one beat of held breath after bell 12 (next: tutti).-- **J/L-cuts**: radio tuning noise before the arch opens; the echo of "Out of order?!" rolls up the stairwell; the kitchen radio starts during the stairwell; rooftop wind enters a bar before the kitchen doors; bell 12's tail rings into the tutti.-- Duck music ≈ −9 dB under voice (−6 dB under the live announcer), beds −6 dB. Mix to −14 LUFS, grain 3.--## 7. Subtitles & titles--- **Subtitle card** (`subtitleCard`): a lacquer bar (88 % black) with stepped ends like the title bar, double gold keyline, Josefin Sans SemiBold 40–42 px ivory. Speaker icon: a gold ribbon mic for the announcer, a burgundy pillbox cap for the hero. It unfolds from the centre like every other title. Hold ≥ max(1.8 s, speech + 0.6 s).-- **Title**: MIDNIGHT / AT THE STARLIGHT HOTEL in a gold title bar over the stepped arch, a 1930 diamond year badge, NEW YEAR'S EVE label.-- **End card**: a lacquer plaque on the closed elevator doors: title, ART DECO, LEMO-OPUSCAR, LemoLab × Claude Opus 5.5, asset credits.--## 8. Pitfalls we hit--- Bulb signs from glyph skeletons break into fragments on curves (G, S, R): Zhang–Suen staircase pixels fool a neighbour-count junction test. Use the **crossing number** for ends/junctions and weld chain ends within 14 px.-- A generic cartoon hero in a deco world looks pasted in. The hero itself must be deco: 7 heads, tapered planes, airbrush + gold rim, one-stroke features.-- Fish-scale first read as brickwork: draw lower half-circles row by row with each row overlapping the previous one, plus an inner arc.-- Three-digit hex (`#fff`) broke colour mixing and turned the fans blue-violet: always expand hex.-- The first transition to the end card slid the doors in over a flat brown "interior", which read as a blank frame. Draw only the leaves and let them close over the live shot.-- The opening (one gold point on black) trips `blackdetect`; lift the background sunburst wedges and glow slightly so the first frames are not dead black.-- Pip at ¼ frame height in the bell shots is too small for the emotional peak — give the last bell a close-up.-- Heavy loudspeaker distortion on the announcer is period-correct but unintelligible under music; check every line on the final mix with whisper, not just the dry TTS.--## 9. Production recipe (this repo)--```-styles/art-deco/demo/- timeline.js tempo grid + all sync points (single source of truth) → tools/dump_timeline.mjs → timeline.json- engine/ deco.js (palette, gold, gline, airbrush, motifs, drawShape) · type.js (title bar, digits, badges, dial, clock, subtitle card)- bulbs.js (any text → bulb sign, lighting patterns) · cam.js (pinhole camera + card transforms)- chars.js Pip (FK rig, 4 views, 8 faces, pose library, run cycles), conductor, waiters, dancers, the letter- scenes/ lobby.js (one-point + mode-7 floor, doors, plaque) · roof.js (two-point sign) · tower.js · stairs.js- shots_*.js one function per shot: shot(g, t) film.js shot list, transitions (split / revolve / close), subtitles- frames.js model sheet, component kit, style frames, ?scene=frames.shotTest&shot=<name>- music/score.py original score → score.wav + stems + score.json mix.py voices in 5 spaces + foley + beds + ducking- tools/ cuecheck.py · subs.py · pitch.py · dump_timeline.mjs-```-1. Write the tempo grid and the cue table first; hand them to a music sub-agent and draw in parallel.-2. Build the engine and the hero model sheet, then one scene per location, then one function per shot. Review single shots with `?scene=frames.shotTest&shot=<name>`.-3. `sh demo/build.sh` rebuilds everything: timeline → TTS → pitch → whisper → score → cue check → mix → srt → render (≈15 s with 4 workers for 1401 frames) → mux (−14 LUFS, grain 3) → stills.-4. Review at 1 s intervals with `still.mjs --range 0:58:1` + `sheet.py`, then frame strips at 0.15–0.2 s for every key action.--## 10. Engine usage--All drawing is Canvas2D, deterministic in `t`. Import from `demo/engine/`.--**deco.js**-| Function | Purpose |-|---|---|-| `C` | palette (`ink black night gold0 gold1 gold2 goldHi ivory emerald burg plum skin bulb…`) |-| `goldGrad(g, x0,y0,x1,y1, {sheen, hot, tint})` | banded metal gradient; animate `sheen` −0.2→1.2 for a light sweep |-| `gline(g, pts, {w, part, closed, glow, double, sheen, alpha, color})` | the engraved gold keyline; `part` 0→1 draws it on; `color` = any hex for the one-colour exception |-| `airbrush(g, pts|Path2D, {base, dark, light, dir, rim})` | hard-edged airbrushed fill |-| `sunburst(g, cx, cy, {rays, r0, r1, mode:'lines'|'wedges', a0, a1, rot, part})` | radial backgrounds |-| `stepArchPts(cx, base, w, h, {steps, crown})` / `archFrame(g, cx, base, w, h, {rings, gap, fill, burst, part})` | ziggurat arches and arch frames |-| `fan`, `fishScale`, `chevrons`, `sparkle`, `speedLines`, `glow`, `beam`, `vignette` | motif library |-| `drawShape(g, pts, {color, halo, trail, glints, part})` | **any path in the deco manner**: airbrushed gold (or `color`) fill + gold keyline + optional sunburst halo, speed-line trail and glints |-| `starPts(cx, cy, r, k, rot, n)` | four-point star path |--**type.js**: `goldText(g, text, x, y, {size, font, track, sheen})` · `titleBar(g, text, cx, cy, {p, out, size, sub, wings})` (animated in/out) · `decoDigits(g, '11:59', x, y, size)` · `yearBadge(g, '1930', cx, cy, r, {p})` · `floorMedallion(g, '30', cx, cy, r, {sub})` · `dial(g, cx, cy, r, value, {labels})` (semicircle floor indicator, value 0..1) · `clockFace(g, cx, cy, r, {h, m, s, roman})` · `subtitleCard(g, text, {p, out, speaker:'radio'|'boy'})`.--**bulbs.js**: `buildSign(text, {font, size, spacing})` (any text → glyph skeleton → evenly spaced bulbs, cached) · `drawSign(g, sign, x, y, scale, {lit, channel, color})` · `litAll(v)` · `litSequence(t, times[], {flash, chaseFrom, chaseSpeed})` (letter i switches on at `times[i]`, then chases).--**cam.js**: `makeCam({x, y, z, f, yaw, pitch, roll})` → `{P(X,Y,Z), scaleAt(X,Y,Z)}` · `cardTransform(g, cam, TL, TR, BL, w, h)` (map a flat card onto a 3D quad).--**chars.js** (demo characters): `drawFigure(g, {x, y, s, view:'side'|'q'|'front'|'back', face, ...pose})` · `POSES`, `FRONT_POSES`, `lerpPose`, `runCycle(phase)`, `runFront(phase)` · `drawDancer`, `drawDancerTop`, `envelope`, `clef`.--**The one colour.** The palette is gold/black/ivory with burgundy reserved for the hero. To keep one element in its own colour, pass `color` — it is used for the fill, keyline and glow while everything else stays gold:--```js-import * as D from './engine/deco.js';-import * as B from './engine/bulbs.js';--// a warm-orange four-point light with a short cursor tail, drawn the Art Deco way-D.sunburst(g, 960, 540, { rays: 72, r1: 1400, mode: 'wedges' });-D.drawShape(g, D.starPts(960, 540, 120, .22), { color: '#D97757', halo: 1, trail: { ang: Math.PI, len: 420, n: 4 } });--// a bulb sign that lights letter by letter, in the same orange-const sign = B.buildSign('LEMO', { size: 260, spacing: 20 });-B.drawSign(g, sign, 560, 700, 1, { lit: B.litSequence(t, [0, .5, 1, 1.5], { chaseFrom: 2.5 }), color: '#D97757' });-```+A vocabulary, not a route. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Symmetric split (two door leaves hinged at the edges; or a revolving-door wipe) | a threshold crossed | a new place; a new chapter; a reveal behind a façade |+| Leaves sliding shut over the live shot | a door closing on a moment | leaving; a decision made; the end of an era |+| Extreme low-angle Cassandre tilt | scale and aspiration | a goal far above; a tower, a rocket, a monument |+| Architectural section (pull out to a cutaway of the whole building) | progress through a structure | climbing, descending, a process in stages; a company's floors |+| Busby Berkeley overhead, mirrored and rotating | people become pattern | a team, a release, a celebration, a system of parts |+| Push-in on a dial, medallion or clock | the number is the plot | a deadline; a count; a milestone |+| Match-cut on shape (circle → circle, ray → ray) | two places, one rhyme | jumping between departments, cities, eras |+| Low oblique along a sign or marquee | light travelling letter by letter | a name revealed; a launch; a score being counted |+| Pull back from detail to skyline | where the moment sits in the world | aftermath; a city-wide effect; scale |++Framing: the centre axis is sacred; an asymmetric frame must resolve to it within the shot. At an emotional peak the protagonist fills ≥ ~1/3 of frame height (smaller, the face reads as a prop in the ornament). Transitions: splits, revolves, arch openings, shape matches; never a generic dissolve or slide.++## 7. Sound palette++- **Symphonic jazz of the 1920s–30s, not a 60s big band.** Options: stride or concert piano, clarinet (trill; a glissando by time-varying resampling of a long note), strings (tremolo, rushes, pizzicato), muted trumpet commentary, trombone and sax section, walking pizz bass, brushes or sticks, tubular bells, harp glissandi, banjo, xylophone runs, celesta.+- Rhythm families to choose from: foxtrot, Charleston, tango, a slow torch-song ballad, a fanfare in the manner of a newsreel.+- **Techniques (options)**: one hit per unit of counted light; accelerate by dividing the beat; plant a theme in fragments so its full statement is a payoff; low-pass a band that is physically far away and open it as we approach; move a period narrator through acoustic spaces (horn, radio, PA, live mic) to make distance audible.+- **Foley by material**: brass clicks, bronze clang + chain, iron treads, marble heels, silver trays, wooden doors + spring twang, paper flutter, knife-switch "chunk" + filament hum, relay ticks, elevator ding, champagne cork.+- **Silence as a tool**: before the most important sound, drop to one small diegetic sound (a clock tick, wind) and cut back in with that sound alone.+- **J/L-cuts** carry architecture: the next room's sound enters a bar before its door opens.+- Mix: duck music ~−9 dB under voice (less under a period announcer who is part of the texture), beds −6 dB, −14 LUFS, light film grain.++## 8. Native moves++A menu: use the ones your story needs.++- **Counted light.** A bulb sign lights one letter per beat or per event, so the audience can count. *Fits content like:* the countdown to a product launch; the letters of a city name lighting as a train arrives; votes tallied into a winner.+- **Threshold doors.** Every scene change is a door split along the seam. *Fits content like:* the departments of a company; the rooms of a museum; stages of a career.+- **Machine kaleidoscope.** People or objects become a mirrored, rotating pattern that locks into a symbol. *Fits content like:* a team becoming a logo; gears of a supply chain; a choir becoming a clock.+- **Dials carry the plot.** A floor indicator, a clock or a gauge moves instead of narration. *Fits content like:* a funding thermometer; the altitude of a climb; a stock ticker at the opening bell.+- **The architectural cutaway.** Pull out until a building is a section and the protagonist a coloured dot with speed lines. *Fits content like:* data moving through a server stack; a letter through a post office; a skier down a resort.+- **Sheen sweep / draw-on.** Light crosses a gold object on a hit; a gold line engraves itself at the speed of a glissando. *Fits content like:* unveiling a trophy; a map route; a signature on a treaty.+- **The one colour.** One element keeps its own colour in a gold world. *Fits content like:* the one product among competitors; the patient among doctors; the new idea in an old firm.++## 9. Pitfalls of the medium++- Bulb signs from glyph skeletons break on curves (G, S, R): Zhang–Suen staircase pixels fool a neighbour-count junction test → use the **crossing number** and weld chain ends within ~14 px.+- A generic cartoon character looks pasted in → characters are deco (§2).+- Fish-scale reads as brickwork → lower half-circles row by row, each overlapping the previous row, plus an inner arc.+- Door leaves over a flat "interior" read as a blank frame → draw only the leaves, closing over the live shot.+- A gold point on pure black trips `blackdetect` → lift the background wedges and glow slightly.+- Period loudspeaker distortion is unintelligible under music → gentle drive; whisper-check every line on the final mix.++## 10. Engine++Canvas2D, deterministic in `t`, in `demo/engine/`: `deco.js` (gold gradient, `gline`, `airbrush`, motifs, `drawShape` for any path in the deco manner, `color` for the one-colour exception), `type.js` (title bar, digits, badges, dial, clock, `subtitleCard`), `bulbs.js` (any text → bulb sign, `litSequence`), `cam.js` (pinhole camera, `cardTransform`). `demo/frames.js` renders model sheets and style frames from the real engine. Signatures and a minimal example that draws something not in the demo: DEMO.md "Engine reference".++## 11. Variation space++You decide the structure, the characters (or none), the settings, the opening, the ending, the camera path, the pacing, the accent colour and what gets counted. All far from our demo:++- Structures: **the exhibition** (five pavilions of a world's fair, one idea of the topic behind each door); **the ocean liner** (three decks from engine room to ballroom, a horn per stage); **the trophy night** (nominees as sunburst panels, the winner revealed in light).+- Openings: **the machine room** (gold gears and pistons building to the first beat); **the engraved map** (a gold route crosses a continent before anyone appears); **the telegram** (ticker tape types the premise).+- Endings: **the lights go out** (letters switch off in reverse until one bulb remains); **the dawn** (lacquer black warms to a pale sky); **the poster** (the last shot flattens into a printed poster with a date).++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/art-deco/TREATMENT.md b/styles/art-deco/TREATMENT.mddeleted file mode 100644index f316184..0000000--- a/styles/art-deco/TREATMENT.md+++ /dev/null@@ -1,189 +0,0 @@-# TREATMENT · 18 Art Deco ·《Midnight at the Starlight Hotel》--> 2D | 目标时长约 56 s(说明建议 40–55 s,理由见第 11 节)| 1920×1080 · 24 fps 输出,角色 12 fps 步进(on twos),镜头 / 光 / 灯泡 / 金线全部 24 fps 平滑 | 旁白 Kokoro `bm_fable`(1930 年电台播音员),门童两句短台词 | grain 3-------## 1. 一句话故事与情绪弧--**1930 年除夕,星光大饭店。屋顶舞厅的乐队等着一首新歌——作曲家把它封在一只盖着金色高音谱号火漆的信封里,送到了楼下。十四岁的门童 Pip 要在午夜钟响前把信送上三十楼。电梯坏了。他从楼梯井一路冲上去,穿过后厨,在楼顶把信扔给乐队指挥——指挥接住信的那一刻,午夜第一声钟响;十二声钟,灯牌"THE STARLIGHT"一个字母一个字母亮起,最后一个字母在 Pip 身后亮起。第十三拍,乐队奏出信里的那首歌。**--- **主体**:Pip(唯一主角)。**目标**:午夜前把信送上屋顶。**转折**:电梯坏了("OUT OF ORDER"牌子砸下来),他在一拍静音里扶正帽子,改走楼梯。-- **情绪弧**:慌张(大堂,按三次按钮)→ 定神(静音里扶帽)→ 找到节奏(楼梯井里脚步踩上查尔斯顿的拍子)→ 从容(厨房里帽子被托盘撞飞,他看都不看,帽子落回头上)→ 屏息(屋顶,钟停了,信在空中翻转)→ 敬畏(十二声钟,灯追到他身边)→ 喜悦(全乐队)。-- **回响**:开场他在街上仰望一块**黑着的**灯牌;结尾他**站在灯牌里**,灯一盏盏亮到他身后。开场收音机里传来的播音员声音(隔着喇叭、失真)→ 结尾在屋顶就是现场、干净无滤波——他一路爬向了声音的源头。片尾按钮:大堂的电梯"叮"一声修好了、牌子翻成 IN SERVICE——晚了。-- **因果链**(每个奇观都有剧情原因):信里是歌 → 乐队等歌 → 钟敲十二下期间指挥拆信、举棒 → 第十三拍乐队奏新歌 = 全片配乐终于完整;灯牌逐字亮起是饭店午夜的仪式,而 Pip 恰好被困在灯牌的检修走道上——所以他站在灯里。--## 2. 对标:学什么 / 刻意不学什么--| 对标 | 学什么(语法) | 刻意不学 |-|---|---|---|-| **A. M. Cassandre 海报**(Normandie、Étoile du Nord、Nord Express) | 巨型几何主体 + 极端透视(仰角、两点透视,主体冲出画框);**喷枪渐变**填在硬边几何形里;放射线、平行速度线表达运动;字体是构图的一部分 | 不复刻任何海报的构图、船 / 火车造型、字体设计;不出现任何真实交通工具品牌 |-| **克莱斯勒大厦 / 洛克菲勒中心的装饰母题** | 阶梯退台(ziggurat)、太阳放射、V 形 / 人字纹、鱼鳞纹、扇形、金属镶线 | 不画任何可辨认的真实建筑(塔冠用自己设计的阶梯 + 扇形,不用克莱斯勒的三角窗弧冠) |-| **Busby Berkeley 歌舞片**(1930s:*42nd Street*、*Footlight Parade* 的俯拍段落) | 正俯拍、对称队形、画面像机械一样开合;镜像万花筒;群舞组成几何图形 | 不复刻任何具体队形、服装、镜头;舞者是原创的扇子舞者 |-| **《了不起的盖茨比》(2013) 片头** | 金线在黑底上自己画出来、层层对称展开、金属高光扫过、颗粒质感 | 不用它的具体图形、字体、配色顺序、音乐 |-| **格什温式交响爵士**(语法) | 单簧管滑音开场的"开幕感"、钢琴主奏 + 弦乐铺底 + 弱音小号点评、狐步 → 查尔斯顿切分 | **旋律全部原创**;不引用《蓝色狂想曲》任何动机或和声进行;不做 60 年代铜管大乐队(spy-titles 的地盘) |--与已完成风格的区分:**spy-titles** = 纸剪影 + 四色 + 爵士大乐队;**film-noir** = 3D 动物 + 黑白雨夜;**stained-glass / papercut** = 材质透光。本片 = **黑金喷枪几何 + 金线 + 灯泡**,节奏语言是 1930 年代狐步 / 查尔斯顿 / 电台。--## 3. 原生招式(只有装饰艺术能做)--| 招式 | 位置 | 怎么做 / 为什么只有这个风格能做 |-|---|---|---|-| **① 对称开合**(统一转场语法) | 全片 6 次 | 装饰艺术的构图永远有一条中轴。转场 = 画面沿中轴像**拱门 / 电梯门 / 双开弹簧门**一样开合:片名拱门劈开进街景;楼梯双开门撞开进楼梯井;厨房弹簧门撞开进屋顶;片尾电梯门合上成为片尾卡。旋转门是它的"旋转版"(四扇玻璃翼逐拍扫过)。每次开合都有金线先沿中轴亮起、门缝里透光。 |-| **② 十二声钟 = 十二个字母**(情绪最高点) | 35.9–41.6 s | "THE STARLIGHT" 恰好 12 个字母。每一声钟亮一个字母(灯泡先过冲闪一下再稳住),画面上观众能数:钟声 = 字母 = 剪辑点。最后一个 T 在 Pip 身后亮起,金光打上他的脸。钟声之间只有风声和余音——全片最"空"的 6 秒。 |-| **③ Busby Berkeley 俯拍万花筒** | 42.1–46.2 s | 第 13 拍全乐队一进,镜头跳到正俯拍:16 名扇子舞者围成圈,扇子按八分音符**逐个打开** = 放射太阳纹绽开;画面按 8 向对称镜像、缓慢旋转;第二小节队形收成**钟面**:12 人是刻度,4 人排成指针指向十二点。装饰艺术的放射母题 + 歌舞片的机械对称 = 同一个图形。 |-| **④ 灯泡灯牌** | 屋顶全段、片尾 | 任意文字 → 字形骨架 → 等距灯泡;逐盏点亮、追逐闪烁(十六分音符追灯卡着全乐队)。 |-| **⑤ 电梯指针 = 章节进度 + 时钟** | 大堂、楼梯井 HUD、片尾 | 大堂电梯上方的半圆指针卡在 L 不动(坏了);楼梯井里同一个指针变成角落的 HUD,跟着 Pip 往上爬;片尾它终于"叮"地转到 R——晚了。 |--## 4. 视觉语言--- **底色**:暖黑 `#0d0b09` / 漆黑 `#060504`;夜空黑蓝 `#0a0e16` → 地平线祖母绿 `#10231f`。-- **金**:渐变金 `#C9A24B → #F3D98B`,阴影金 `#6F5220`,高光 `#FFF4D2`。金线 = 暗金底线 + 金渐变主线 + 发丝高光(雕刻感);金属渐变是"条带式"(暗—亮—高光—亮—暗),sheen 参数可动画成一道扫光。-- **点缀**:勃艮第红 `#8E1B2E`(门童制服,全片唯一的大面积彩色 = 观众的视线锚点)、祖母绿 `#1D6B57`(扇子、夜色、门框填色)、象牙白 `#F2E8D5`(大堂地毯、信封、手套)。-- **体积**:Cassandre 式**硬边 + 喷枪渐变**,无黑描边;受光一侧一条细金边(rim)。光从左上来。-- **母题库**(engine 已实现):放射太阳纹、阶梯拱门、鱼鳞、V 形、扇形、平行速度线、四角闪光、钟面、半圆指针。-- **透视**:`engine/cam.js` 小针孔相机,场景按真实一点 / 两点透视画(大堂一点透视 + mode-7 地板;屋顶两点透视仰拍),所以推拉摇移都是真的透视变化,不是缩放平面。-- **字体(OFL)**:Limelight(片名 / 标题)、Poiret One(数字、灯牌字形骨架、标牌)、Josefin Sans(字幕、小标签)、Italiana(钟面罗马数字)。--## 5. 角色(关卡 1 设定表 `demo/stills/modelsheet_v1.jpg`)--- **PIP**,14 岁门童。约 5 头身;勃艮第红短款门童夹克,两排黄铜扣子收成 **V 形**(装饰艺术的 V),金色立领 + 肩章 + 人字下摆;深李子色长裤带金色侧条;白手套;**斜戴的圆筒帽 + 下颌带**;油亮的背头。-- **剪影标志**:斜圆筒帽、V 形扣、永远拿在手里的信(金色火漆 + 高音谱号 = 信里是歌)。-- **表情**:慌张 / 担心 / 决心 / 从容 / 使劲 / 敬畏(+ 喜悦)。换表情 = 换眼睑、眉、嘴的参数,12 fps 步进,关键表情前有 1 帧预备。-- **配角**:乐队指挥(高瘦、白礼服、白胡子、指挥棒,只有两个镜头)、侍者(一模一样的白外套,歌舞片式重复)、扇子舞者(只出现在俯拍,圆 + 裙 + 扇的几何体)、大堂宾客(金边剪影)。--## 6. 镜头表--| # | 时间 (s) | 景别 / 角度 | 运动 | 为什么这样拍 |-|---|---|---|---|---|-| 1 | 0.00–5.17 | 大特写 → 全(纯图形) | 缓推 1.0→1.06 | 开场 3 秒抓人:一粒金点从画面中心炸成放射线和阶梯拱门,线条长出的速度 = 单簧管滑音的音高。片名金条 2.07 s 在全乐队第一拍绽开 |-| 2 | 5.17–6.21 | — | **对称开合**:拱门沿中轴劈开 | 统一转场语法第一次亮相;门缝里先透出街灯的暖光和收音机杂音(J-cut) |-| 3 | 6.21–10.35 | 极端仰角 → 全景 | **升降 / 俯仰**:从塔顶黑灯牌一路下摇到街面的 Pip | Cassandre 式透视。一个镜头交代目标(顶上)、难度(三十层)和"灯是黑的"(结尾回响的伏笔) |-| 4 | 10.35–12.41 | 特写 insert | 静止 + 极慢推 | 看清麦高芬:信封上 ROOFTOP BALLROOM · BEFORE MIDNIGHT,火漆是金色高音谱号;钟琴一声"叮"对上火漆闪光 |-| 5 | 12.41–12.93 | 中景正面 | **旋转门扫屏**:四扇玻璃翼逐拍扫过(两拍) | 媒介内转场(旋转版的开合);动作连续:他推门进去 |-| 6 | 12.93–14.48 | 大全景一点透视 | 缓推 | 对称大堂 = 装饰艺术本体;他在中轴地毯上跑向电梯,渺小 |-| 7 | 14.48–15.52 | 中景侧面(电梯按钮) | 静止 | 按三次按钮(慌张的节奏:一下、两下、连按),指针不动 |-| 8 | 15.52–16.55 | 中景 | 小幅急俯跟随牌子落下 | "OUT OF ORDER" 铜牌砸下来晃荡,全乐队停,弱音小号"哇—哇";笑点给足 1 小节 |-| 9 | 16.55–18.10 | 近景正脸 → 3/4 | 慢推(静音里推) | "Out of order?!" → **静音**(只剩大堂钟嘀嗒两下)→ 他看信、看楼梯标牌、扶正帽子:慌张换成决心。全片第一个转折 |-| 10 | 18.10–18.62 | 中景 | **对称开合**:楼梯双开门被撞开 | 静音后的第一声 = 查尔斯顿军鼓"啪",门开 = 节奏开 |-| 11 | 18.62–26.20 | 中景 → 大远景 → 正俯拍 | **一镜到底**:升降跟拍 → 拉远(整座楼梯井像一根金弹簧)→ 推回 → 俯仰到正俯视 | **签名镜头之一**。螺旋楼梯画成金色螺旋线,楼层号从旁边掠过;BPM 116→138 加速,楼层掠过的频率跟着加速;结尾正俯拍 = 螺旋漩涡(给屋顶万花筒埋伏笔) |-| 12 | 26.20–31.42 | 中景侧面 | **匹配剪辑**(螺旋 → 俯拍旋转的银托盘)→ **横移跟拍**,前景挂着的铜锅做视差 | 速度感;厨师剁刀卡二、四拍;侍者一排托盘齐过头顶,Pip 滑铲钻过去,帽子被撞飞——一小节后落回头上(他看都不看 = 从容) |-| 13 | 30.55–31.42 | 中景 | **对称开合**:弹簧门撞开 | 风声提前一小节进来(J-cut),门开 = 屋顶 |-| 14 | 31.42–33.16 | 全景仰拍两点透视(风格帧构图) | **摇**:跟着 Pip 沿检修走道跑 | 巨大的黑灯牌压在他头上 |-| 15 | 33.16–33.40 | 大特写 insert | 静止 | 塔钟分针"咔哒"跳到 XII——乐队齐停。**静音 2.7 s 开始** |-| 16 | 33.40–34.40 | 中近景 | 静止 | "Special delivery!" + 投掷:预备(后仰、手臂拉到脑后)→ 出手 → 跟随(差点翻出栏杆,抓住) |-| 17 | 34.40–35.86 | 跟拍信封 | **下摇**:慢动作跟着翻转的信封掠过黑色字母,落向露台 | 静音里只有风和纸翻动;观众屏住呼吸 |-| 18 | 35.86–36.38 | 大特写 | 静止 | 白手套接住信 = **第一声钟**(静音后的第一个声音 = 全片最重要的声音) |-| 19 | 36.38–37.93 | 中景 → 特写 insert | 静止 | 钟 2–4:拆火漆、抽出乐谱(insert:乐谱标题就是片名,上面的音符是配乐主题的真实音高)、举起指挥棒;身后灯牌的光一拍比一拍亮 |-| 20 | 37.93–41.55 | 全景仰拍 | 极慢推 | 钟 5–11:字母一个一个亮,走向 Pip;观众数得清 |-| 21 | 41.55–42.07 | 近景 | 静止 | 钟 12:最后一个 T 在他身后亮起,金光扫过脸;一拍屏息 |-| 22 | 42.07–46.21 | 正俯拍 | **旋转**(画面缓慢自转)+ 万花筒镜像 | **Busby Berkeley 签名镜头**:扇子逐个打开 = 太阳纹;第二小节收成钟面,指针指向十二 |-| 23 | 46.21–50.34 | 全景 → 大远景 | **拉远**(尺度揭示):从灯牌里的 Pip 拉到整座塔、城市、烟花 | 回响开场的仰拍;播音员现场声(无滤波)"Right on time…";灯牌十六分音符追灯 |-| 24 | 50.34–51.38 | 特写 | 静止 | 大堂电梯指针"叮"地转到 R,牌子翻成 IN SERVICE——晚了(片尾按钮) |-| 25 | 51.38–56.0 | — | **对称开合(合)**:电梯门合上 | 门上浮出片尾卡 |--**镜头运动统计**:推、拉、升降 / 俯仰、摇、横移跟拍、旋转、对称开合转场、匹配剪辑、一镜到底——远多于 4 种;景别从大特写到大远景,含正俯拍与极端仰拍。--## 7. 分镜节拍表(116 BPM 4/4:1 拍 = 0.517 s,1 小节 = 2.069 s;楼梯井 16 拍线性加速到 138 BPM;厨房 / 屋顶跑 138 BPM;钟声回到 116 BPM 网格)--| 段 | 时间 (s) | 小节 | 画面 | 声音 |-|---|---|---|---|---|-| **T 片名** | 0.00–6.21 | 1–3 | 0.0 金点;0–2.07 金线随单簧管滑音长出放射线与三层阶梯拱门;**2.07** 片名金条绽开 *MIDNIGHT AT THE STARLIGHT HOTEL* + 年份徽章 1930;5.17 拱门沿中轴劈开 | 0.0 单簧管低音颤音 → 滑音上行;2.07 全乐队 hit + 镲;主题前两小节(钢琴);5.17 弦乐刷上行 + 收音机调台杂音(J-cut) |-| **S 街景** | 6.21–12.41 | 4–6 | 6.21–10.35 从塔顶黑灯牌下摇到街面(塔钟 11:55),Pip 背影仰望;10.35 信封特写 | 城市底(风、远处汽车喇叭、人群);音乐变远(低通 2.5 kHz + 混响 = "乐队在三十楼上");**L1**(街头喇叭滤波)6.55;10.86 钟琴"叮" |-| **L 大堂** | 12.41–18.62 | 7–9 | 12.41 / 12.93 旋转门两扇扫过;大堂大全景,Pip 沿地毯跑;14.48 / 15.00 / 15.26 按钮三下;**15.52 牌子砸下**;16.55 近景 "Out of order?!";17.07–18.10 静音、扶帽;18.10 楼梯门撞开 | 大理石混响房间音、宾客低语、酒杯;音乐隔着楼板(低通 1.2 kHz);**L2**(前台收音机)13.1;15.52 铜牌"哐"+ 链条 + 全乐队停 + 弱音小号"哇—哇";**B1** 16.6;**静音**(大堂钟嘀嗒 17.07 / 17.59);**18.10 军鼓"啪"** |-| **C 楼梯井** | 18.62–26.20 | 10–13(加速) | 一镜到底:C1 中景螺旋,楼层 2–5;C2 拉远成整根金弹簧,Pip 成一个红点 + 速度线,HUD 指针 6→24;C3 推回、正俯拍漩涡 | 查尔斯顿:钢琴切分、刷子鼓变鼓棒、行走贝斯、单簧管主题动机缩短成切分句;音乐低通逐渐打开(越爬越近);脚步每个八分音符;楼层掠过 = 踩镲 / 木块;**L3**(楼梯间喇叭,长混响)18.9;C2 军鼓滚奏渐强 + 单簧管半音阶上行;**L4** J-cut 25.5 |-| **K 厨房** | 26.20–31.42 | 14–16 | 匹配剪辑银托盘 → 横移;厨师剁刀二、四拍;27.94 侍者一排托盘过头顶,Pip 滑铲,28.37 帽子被撞飞;29.68 帽子落回头上;30.55 弹簧门撞开 | 厨房底(抽油烟、油锅滋滋、盘子叮当);剁刀 = 反拍;滑铲"吱—";托盘撞帽"叮";帽子旋转"呜呜";29.68 落帽 = 镲"叮"+ 乐队 hit;29.68 风声 J-cut |-| **R1 屋顶跑** | 31.42–33.16 | 17 | 两点透视仰拍,黑灯牌,Pip 沿检修走道跑 | 乐队全开、无滤波(到了源头);风 |-| **R2 投掷** | 33.16–35.86 | — | 33.16 塔钟分针跳到 XII;**B2** "Special delivery!";34.35 出手;慢动作跟信封下落 | **33.16 塔钟机械"咔哒"→ 全乐队停,真静音**:只有高空风 + 远处人群"嘘——"+ 纸翻动 |-| **R3 十二声钟** | 35.86–42.07 | 钟 1–12 | 1 接信;2–4 拆信 / 乐谱 insert / 举棒;5–11 灯牌全景逐字亮;12 最后一个 T 在 Pip 身后亮;一拍屏息 | 管钟(降 B)每拍一声,余音叠在一起;每个字母亮起 = 大闸刀"咔嗵"+ 灯丝"嗡";钟与钟之间只有风 |-| **R4 全乐队** | 42.07–46.21 | 18–19 | 正俯拍万花筒:扇子逐个打开;收成钟面 | **第 13 拍全乐队齐奏 = 信里的那首歌**(主题完整一遍,D♭ 大调);扇子开 = 竖琴 / 钢琴刮奏每八分音符一个 |-| **R5 拉远** | 46.21–50.34 | 20–21 | 灯牌十六分音符追灯,Pip 挥帽;拉远到整座塔 + 烟花金色放射 | 主题后半 + 铜管;烟花 = 升空哨音 + 闷响 + 镲;**L5**(现场、无滤波)46.6;50.34 终止和弦 |-| **E 片尾** | 50.34–56.0 | — | 大堂电梯指针转到 R"叮"、牌子翻成 IN SERVICE;电梯门合上;片尾卡 | 电梯"叮"(和第 7 镜按钮没响的那一声是同一个音);门合上"咚";钢琴 + 单簧管两小节尾巴(button) |--### 台词(旁白 = 1930 年电台播音员,`bm_fable`;试音时长为实测)--| id | 起点 | 谁 / 声源 | 文本 | 试音 |-|---|---|---|---|---|-| L1 | 6.55 | 播音员 · 街头喇叭(重滤波 + 楼宇回声) | Good evening, America! Live from the Starlight Hotel, it's five minutes to midnight. | 4.54 s |-| L2 | 13.1 | 播音员 · 前台收音机(中滤波) | The band is ready, folks. All they need now is the song. | 3.07 s |-| B1 | 16.6 | Pip | Out of order?! | ~0.8 s |-| L3 | 18.9 | 播音员 · 楼梯间广播喇叭(长混响) | Word is, the elevator's out. Somebody's taking the stairs! | 3.83 s |-| L4 | 25.5 | 播音员 · 厨房收音机(轻滤波) | Thirty seconds to midnight! | 1.59 s |-| B2 | 33.5 | Pip | Special delivery! | ~0.95 s |-| L5 | 46.6 | 播音员 · 现场(无滤波) | Right on time. Happy New Year, from the Starlight Hotel. | 3.07 s |--## 8. Cue map(原创交响爵士,**钢琴主奏 + 单簧管 + 弦乐 + 弱音小号 + 刷子鼓**;采样库 READY)--**配器**:`piano`(主奏:狐步跨步低音 + 旋律;CC BY 署名)、`clarinet` / `clarinet_stac`(开场颤音 + 滑音、楼梯井半音跑句)、`violins` `violas` `cellos`(长音铺底、上行刷弦)、`jazz_bass`(拨弦行走贝斯)、`trumpet_mute`(点评、"哇—哇")、`trombone`(终曲和声)、`alto_sax`(终曲副旋律,可选)、`tubular_bells`(午夜十二声,降 B)、`glockenspiel`(火漆闪光)、`harp`(扇子刮奏)、`snare2:taps` + numpy 合成刷子扫(刷子鼓)、`hihat`、`sus_cymbal`、`timpani`(滚奏)。**不用**大乐队齐奏铜管 stab 墙(那是 spy-titles)。--**主题**:原创 8 小节歌曲 *Midnight at the Starlight*(一个上行六度开头、带蓝调降三音的狐步旋律),全片只露碎片,**直到第 13 拍才完整奏出**——观众第一次听全它,正是乐队拿到信的时候。--| Cue | 时间 (s) | 速度 / 调 | 配器 | 情绪 | 卡点 |-|---|---|---|---|---|---|-| C0 开幕 | 0.00–2.07 | 自由 → 116 · B♭ | 单簧管低音颤音 → 两个八度滑音;弦乐震音铺底 | 好奇、开幕 | 滑音顶点落在 2.07 |-| C1 片名 | 2.07–6.21 | 116 · B♭ | 全乐队 hit;钢琴奏主题前 2 小节;刷子鼓 | 华丽 | 2.07 hit + 镲;5.17 弦乐刷上行(拱门开) |-| C2 街景 | 6.21–12.41 | 116 · B♭ | 狐步 vamp:钢琴跨步、拨弦贝斯、刷子;弱音小号吹主题动机一句 | 远、夜 | 整体低通 2.5 kHz + 混响(在三十楼上);L1 下闪避;10.86 钟琴 |-| C3 大堂 | 12.41–15.52 | 116 · B♭ | 同 vamp,低通 1.2 kHz(隔着楼板) | 慌 | 12.41 / 12.93 旋转门刷子扫;14.48 / 15.00 / 15.26 按钮 |-| C4 坏了 | 15.52–18.10 | 116 | **乐队停**;弱音小号"哇—哇—"(15.52 / 15.78 / 16.03 下行)→ **静音** | 慌 → 静 | 15.52 铜牌落;17.07–18.10 只有钟嘀嗒 |-| C5 查尔斯顿 | 18.10–26.20 | 116→138 · C(升全音) | 18.10 军鼓 + 钢琴查尔斯顿节奏开;行走贝斯;单簧管动机切分;弦乐拨奏;低通从 1.2 kHz 打开到全频 | 找到节奏 → 冲 | 每拍一层楼(C1);C2 军鼓滚奏渐强 + 单簧管半音阶上行 + 定音鼓;25.5 L4 下闪避 |-| C6 厨房 | 26.20–31.42 | 138 · C | 查尔斯顿全开:钢琴、贝斯、鼓棒、弱音小号 riff | 从容、好玩 | 剁刀二、四拍;28.37 帽飞(小号上滑);29.68 帽落 = 乐队 hit + 镲 |-| C7 屋顶跑 | 31.42–33.16 | 138 · C | 同上,最满、无滤波 | 冲 | **33.16 塔钟"咔哒"= 全停** |-| C8 静 | 33.16–35.86 | — | **无音乐** | 屏息 | — |-| C9 十二声钟 | 35.86–42.07 | 116 网格 | 管钟 B♭ 每拍一声;最后两声下加弦乐极弱长音(D♭ 属音)预示 | 敬畏 | 12 声对 12 个字母;41.55 → 42.07 一拍屏息 |-| C10 那首歌 | 42.07–50.34 | 116 · D♭ | **全乐队**:弦乐 + 钢琴奏主题完整一遍,长号 + 萨克斯和声,刷子换鼓棒,竖琴刮奏每八分音符(扇子) | 喜悦、释放 | 42.07 downbeat;45.69 钟面合拢 = 镲;烟花每两拍;50.34 终止 |-| C11 尾巴 | 50.34–56.0 | 116 · D♭ | 电梯"叮"(钟琴 F)→ 钢琴 + 单簧管两小节 button,最后一个和弦自然衰减 | 会心一笑 | 50.34 叮;51.38 门合"咚" |--旁白 / 台词期间音乐闪避约 −9 dB(L5 在全乐队中闪避 −6 dB 并抬高人声);重拍避开词头。--## 9. 声音设计表--| 段落 | 环境底 | 主要拟音(材质) | 音乐状态 |-|---|---|---|---|-| T 片名 | 无(黑场),只有金线"嘶"的极细高频 | 金线画出 = 细金属刮擦;拱门劈开 = 大铜门滑轨"轰—"+ 门缝气流 | 全频、华丽 |-| S 街景 | 城市夜:风、远处汽车喇叭(合成 klaxon)、人群、偶尔的电车铃 | 街头喇叭里的播音(带回声);信封特写 = 纸擦、钟琴闪光 | 远(低通 2.5 k + 大混响) |-| L 大堂 | 大理石长混响房间音、宾客低语、酒杯轻碰、前台收音机杂音 | 旋转门:玻璃翼"唰"+ 橡胶封条"嗒";皮鞋在大理石上的脚步;按钮 = 黄铜"咔"(第三下拖长);**铜牌砸下 = 金属"哐"+ 链条哗啦 + 余晃"吱呀"**;扶帽 = 布料轻擦 | 隔楼板(低通 1.2 k)→ 停 → **静音 + 钟嘀嗒** |-| C 楼梯井 | 竖井里的空洞风声、远处楼层门开关 | 脚步(硬底鞋踩铁楼梯,按八分音符,金属共鸣);扶手"铛";楼层掠过的"嗖";C2 远景只剩脚步的快速连击 | 查尔斯顿,低通逐渐打开 |-| K 厨房 | 抽油烟机、油锅滋滋、蒸汽"嘶"、盘碗叮当 | 剁刀 = 木砧"咚"(二、四拍);托盘 = 银器"叮";滑铲 = 皮鞋在瓷砖上"吱—";帽子旋转 = 气流"呜呜";弹簧门 = 木门"砰"+ 铰链弹簧"嗡" | 查尔斯顿全开 |-| R 屋顶 | 高空风(低频 + 阵风)、露台人群低语 → "嘘——" | 塔钟机械"咔哒";投掷 = 衣袖"呼";信封翻转 = 纸"嗒嗒嗒"(慢);接信 = 手套"啪";**字母点亮 = 大闸刀"咔嗵"+ 灯丝"嗡"升起**;追灯 = 细碎的继电器"嗒嗒嗒";烟花 = 升空哨音 + 闷响 + 金属碎屑 | 乐队全开 → **静音 2.7 s** → 钟 → **全乐队** |-| E 片尾 | 大堂房间音回来一瞬 | 电梯"叮"、牌子翻转"嗒"、电梯门合"咚" | 尾巴 |--**静音**(BRIEF 要求 ≥ 2 处):① 16.6–18.10 大堂("Out of order?!"之后只剩大堂钟嘀嗒两下)→ 静音后第一声 = 查尔斯顿军鼓"啪"(全片节奏转折);② 33.16–35.86 屋顶(塔钟"咔哒"之后,只有风和纸)→ 静音后第一声 = **午夜第一声钟**(全片最重要的声音);③ 41.55–42.07 第 12 声钟之后的一拍屏息 → 全乐队。--**J-cut / L-cut**(≥ 2 处):① J:片名末尾收音机调台声 + 街声先进(5.17);② L:"Out of order?!"的回声延续进楼梯井第一拍;③ J:L4 厨房收音机在楼梯井俯拍里就先响(25.5);④ J:屋顶风声在厨房最后一小节先进(29.68);⑤ L:第 12 声钟的余音叠进全乐队。--**播音员声的空间旅程**(核心声音设计):L1 街头喇叭(窄带 400–3 kHz + 楼宇回声)→ L2 收音机(600–3.5 kHz + 轻失真)→ L3 楼梯广播(窄带 + 长混响)→ L4 厨房收音机 → L5 屋顶现场(全频、干)。观众听到声音越来越"近",就知道他在接近源头。配乐也做同样的距离自动化(低通从 1.2 k 打开到全频)。--## 10. 字幕设计--- **装饰字卡横条**(engine `subtitleCard`):漆黑半透明(88%)横条,两端阶梯式外凸(和片名金条同一套"阶梯端"),双层金线描边;字 Josefin Sans SemiBold 42 px 象牙白 `#F2E8D5`。-- **说话人图标**:播音员 = 小号金色丝带话筒;Pip = 勃艮第红小圆筒帽。-- **出入场**:和转场同一语法——先一条金发丝线从中心向两边画开,横条沿中轴上下展开,字最后淡入(约 0.3 s);退场反向合拢。-- **位置**:默认底部居中 y ≈ 985;镜头设计时把底部 1/5 留给字幕(屋顶仰拍镜头里字幕放在栏杆以下的楼体上,不压灯牌和 Pip)。-- **停留**:每句 ≥ max(1.8 s, 语音 + 0.6 s),两句不重叠。-- `.srt` 同步导出全部 7 句。--## 11. 与风格说明的差异及理由--1. **时长约 56 s(说明 40–55 s)**:十二声钟必须一拍一声(6.2 s),加上屋顶静音 2.7 s 和万花筒 4.1 s,这三段是全片的情绪核心,压缩会让"数钟声"和"屏息"失效;其余段落已按最短可读时间排。仍在 30–60 s 规格内。-2. **加了"信里是歌"的因果**:说明里信送到时钟响灯亮;我让信封里是乐队等的新歌(火漆是高音谱号),这样全片配乐本身成了剧情——主题只露碎片,直到指挥拆信后的第 13 拍才完整,声音和故事是同一件事。-3. **把除夕加进来**:午夜需要一个"为什么必须是午夜"的理由;1930 年除夕的电台直播(播音员)同时给了旁白一个剧中身份和"越爬越近"的声音设计。-4. **十二声钟 = 十二个字母**:"THE STARLIGHT"正好 12 个字母,所以灯牌逐字亮和钟声一一对应(说明是"灯一盏盏亮起",我把它收紧成可以数的节拍)。-5. **Busby Berkeley 放在钟声之后**:说明建议屋顶舞会俯拍、最后收成钟面;我把它放在全乐队第一拍,钟面在第二小节合拢——"十二点"这个图形是在钟敲完之后由人组成的,作为庆祝的回声。-6. **片尾按钮(电梯修好了)**:不在说明里;给结尾一个会心的笑,同时让"电梯指针"这个章节道具闭环。--## 12. 技术方案--- 纯 Canvas2D。`demo/engine/`:`deco.js`(色板、金属金、金线、喷枪填色、放射线、阶梯拱门、鱼鳞、V 形、扇形、闪光、速度线、任意形状 `drawShape` + "唯一彩色")、`type.js`(金色标题条、数字 / 年份徽章 / 楼层章 / 钟面 / 电梯指针、字幕卡)、`bulbs.js`(任意文字 → Zhang-Suen 骨架 → 灯泡阵列,逐盏点亮 / 追灯)、`cam.js`(针孔相机 + 卡片仿射,用于真透视场景)。-- 场景只调用引擎:`scenes/lobby.js`(一点透视 + mode-7 地板)、`scenes/roof.js`(两点透视灯牌)、后续 `street.js` `stairs.js` `kitchen.js` `ballroom.js`。-- 角色 `chars.js`:Pip 2D 骨骼(FK),四个视角、8 种表情、命名姿势库。-- 时间网格 `timeline.js` 唯一真值 → 配乐子 agent(fork)按 cue map 写 `music/score.py`,与画面并行;`tools/cuecheck.py` 核对卡点。-- 声音:`mix.py` 按材质合成拟音(金属、纸、木、玻璃、灯丝),播音员五级空间滤波,音乐距离自动化与闪避;`mux.sh` grain 3,−14 LUFS。--## 13. 制作后记:与方案的差异--- **时长 58.4 s**(方案 56 s):钟声段与万花筒按 116 BPM 网格排满,片尾卡 4.4 s。-- **楼梯井**改为建筑剖面一镜到底:上升 → 拉远成整座塔的剖面(Pip = 红点 + 速度线)→ 推回 "30" 楼层章 → 匹配剪辑到厨房银托盘。原来的"金弹簧 + 正俯拍漩涡"在 2D 里深度排序读不清。-- **万花筒**改为斜俯拍(8 人逐个开扇、镜头升起)+ 正俯拍(8 向对称、收成钟面 + 两根金指针指向 XII),16 人太密会糊成花纹。-- **钟 5–11** 改斜角低机位(灯牌字母向 Pip 走来),钟 12 为近景。-- **主题动机埋伏**:片名钢琴第 1 小节、街景弱音小号试奏两小节被掐断、厨房口哨前四音、终曲完整。-- **片尾**:电梯指针转到 R、牌子翻成 IN SERVICE,门扇直接合在这个镜头上成为片尾卡。diff --git a/styles/art-deco/style.json b/styles/art-deco/style.jsonnew file mode 100644index 0000000..c5affab--- /dev/null+++ b/styles/art-deco/style.json@@ -0,0 +1,18 @@+{+ "slug": "art-deco",+ "num": "18",+ "en": "Art Deco",+ "cn": "装饰艺术",+ "category_en": "Graphic & Type",+ "category_cn": "图形与排版",+ "film": "Midnight at the Starlight Hotel",+ "line": "A grand hotel, 1930: a bellboy races lifts and revolving doors to deliver one letter before midnight.",+ "line_cn": "1930 年的大饭店,门童赶在午夜前把一封信送上顶楼。",+ "uses": [+ "Luxury & hospitality",+ "Galas",+ "Invitations"+ ],+ "frame_sec": 17.52,+ "dur": 58.4+}diff --git a/styles/ascii-crt/DEMO.md b/styles/ascii-crt/DEMO.mdnew file mode 100644index 0000000..e9d69ab--- /dev/null+++ b/styles/ascii-crt/DEMO.md@@ -0,0 +1,110 @@+# ASCII / CRT Terminal — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *TRANQUILITY.LOG* (59.8 s) · `ascii-crt.mp4` · source in [`demo/`](demo/)+++Brief the demo was made to: a 30–60 second film in the ASCII / CRT Terminal style.++## Story & structure++A machine left on the Moon has logged `NO SIGNAL` for 40 years. A message arrives; it replies `I AM STILL HERE.`, and the letters of that reply become an earthrise. We picked a story where **text is the only way the character can act**: a machine, a remote operator, a message across distance or time. How the native powers were used:++| Native power | Story use |+|---|---|+| **The picture is made of words** | The climax *is* a sentence turning into an image. The reply `I AM STILL HERE.` breaks apart and its letters, sorted by ink density, become an earthrise. The image contains **only the letters of that sentence**. |+| **Font size = camera** | Push in until one character fills the screen. That character is itself made of smaller text, which reveals scale and meaning. One `M` is made of 40 years of `NO SIGNAL` logs. |+| **Typing rhythm = editing rhythm** | Machine typing is even and fast. Human typing is uneven, with pauses and bursts. A cursor blinking three times is the most important performance in the film. |+| **CRT physics** | The screen powers on as a dot, then a line, then the full frame, and powers off by collapsing to a dot. Used for the opening and the ending. |+| **A single color change** | Blue-white `#BFE4FF` for Earth, the only non-amber thing, is the emotional peak. Switched on a musical downbeat. |++Adapting ideas we noted while writing it (examples, not rules): a product launch becomes a spec sheet that assembles into the product's silhouette; a love letter becomes its own words raining into a face; a history lesson becomes a log file whose dates zoom out into a map.++**Emotional arc (59.8 s):** dark and a cursor, then waking (boot log, a date jumping), then disturbance (handshake noise, a line of text), then holding breath (cursor blinks), then setback (`NOT FOUND` ×3 on three beats), then decision (typing the reply), then **near-silence for 1–1.5 s**, then the climax (letters become the image, the one color appears), then the scale reveal, then waiting, then a tiny reply, then an echo (pull out of the screen, power off to a dot).++## Shots++| Beat | Camera |+|---|---|+| Opening | CRT off, then a dot, a line and the full frame. A giant cursor blinks 3× in empty space. |+| Title | The title is the file the machine opens, typed at 20 columns. It then **pulls out** to 80 columns as it becomes line 1 of the boot log. |+| Suspense | Static 80-column terminal. The only motion is text and the cursor. Hold on blinks. |+| Decision | **Push in** from 21 px to 80 px cells around the prompt. The reply is typed huge and centered. |+| Climax | The grid shrinks while falling (80 px letters become 8 px cells). Hold on the finished picture, and switch color on the downbeat. |+| Scale reveal | Push into one glyph until it becomes its own sub-grid of text, then snap back. |+| Ending | The **only** shot outside the screen: pull back until the screen image sits inside a character-drawn terminal in a dark room. Next to it is a large porthole showing the real Earth (18–20 rows tall). Only two things glow: the tiny reply and the planet. Then power off to a dot. |++Why this route, for this story: the title typed as a file the machine opens made the machine the narrator; the push-in on the reply made the decision intimate; the only shot outside the screen came last, so the room and the real Earth were a reveal. Each of these is one choice from STYLE.md §6, not the style's default opening or ending.++### The letter fall (the demo's climax, step by step)++1. Hold the sentence for 1.5 s with the cursor blinking.+2. At the split, letters jitter and throw a ghost copy.+3. Each target cell spawns a particle from a random point inside a matching source letter (only letters of the sentence exist in the ramp). The particle starts at 18 px, shrinks to the grid size and fades in over 0.2 s so particles never stack into a bright bar. Its path eases smoothly in x, with y = u·(0.6 + 0.4u).+4. Ground lands bottom to top.+5. Earth letters first all fall *behind the horizon*, then rise into place from bottom to top, so the planet literally rises.+6. Source letters dim as they are used up.+7. The landing flash is 1.9× brightness decaying over 0.12 s.++**Fractal push-in**: push to a framing where the whole `M` is clear and **hold 1 s**, then push further until the log text is readable (cell 450 px, sub-text about 28 px). Text inside the glyph is at full brightness, text outside is at 3–6%, and neighbor glyphs are at 20%.++**Typing speeds used**: boot lines 12 ms/char, commands 38 ms, title and reply 120–150 ms (sixteenth notes at 100 BPM). Human typing uses hand-timed offsets with pauses.++## Score structure++- **Music**: an original Carpenter-style analog synth score, rendered in numpy and numba.+ - **Sound sources**: PolyBLEP saw and square oscillators, a resonant 4-pole ladder filter with moving cutoff, and filter envelopes. Add slow tape wow (±3 cents), a long reverb on the pad and gated reverb on the hits.+ - **Grid and key**: D minor at 100 BPM, with every cut on a bar or beat.+ - **Cue shape**: silence under boot, then a drone and a square-wave 16th sequencer while the machine wakes.+ - **The hard cut**: on the handshake the whole score drops to digital zero, reverb tails included, for five seconds.+ - **Climax**: a single saw arpeggio grows as the letters fall and opens into Bbmaj7 on the color change. **The only major chord** (D major) lands on the reply.+ - **Never chiptune.**+- **Silence is the main instrument.** Handshake, message and cursor blinks play over room tone only, and there are 1.5 s of silence before the picture forms.+- **Foley** (all synthesized):+ - **Relay and degauss**: relay click, degauss hum (60 Hz plus harmonics decaying over 0.35 s, with a thump).+ - **Keys**: buckling-spring keys (plastic click, a 3.4 kHz spring ping, key-cap thock). The space bar is duller and Enter heavier. Remote characters get a dry teletype tick.+ - **Modem**: an original handshake (2100 Hz answer tone with two phase reversals, a dual tone, 1200/2400 FSK, scrambled band noise, all band-limited to a phone line).+ - **Beeps**: a square-wave error beep, a lower one for the final error, and a 1 kHz BEL for the reply.+ - **Particles**: particle landings as clusters of tiny 2–6 kHz ticks.+ - **Room tone**: a fan bed with 120 Hz hum and a **very quiet** 15.7 kHz flyback whine (about −50 dBFS before loudness normalization).+- **Voice**: the machine's log, read by Kokoro `am_echo` at speed 0.8. Process it with 16% ring modulation at 52 Hz, a 6 ms comb (0.22), a 140–7000 Hz band-pass and soft saturation. Whisper still reads it 5/5. Use 4–6 short lines. Under the voice the music is ducked about −8 dB. The master is −14 LUFS with no grain (the noise lives in the picture).++## Palette & props++- **Font and grids**: VT323 atlas prerendered at 160 px with a 2.2 px stroke. Grids used: title 20 columns (cell width 84 px), terminal 80 columns (21 px), picture 240 columns (8 px), room 213 columns (9 px), fractal push-in up to a 450 px cell with a 40-column sub-grid inside each cell.+- **Ramp values**: attributes dim / normal / bold = 0.42 / 0.7 / 1.0; dither amplitude 0.7; cells with luminance < 0.05 stay blank. Negative sampled 3×6 per cell: R = amber luminance, G = second-color luminance, B = a flag such as "night side". Rooms get a 3×3 local-contrast boost.+- **Earth that reads as Earth**: continent polygons in lon/lat (rasterized once to an equirectangular mask) rather than noise. Ocean albedo 0.14 (sparse dim glyphs), land 0.96 (dense bold glyphs), clouds 0.5 (mid-density swirls). A narrow terminator (smoothstep −0.03…0.10) and the night side as sparse `.` only. Angle with a clear silhouette: Africa and Europe.+- **Lunar ground**: far ground darker and sparser (×0.3), near ground brighter and denser. The horizon gets a thin bright rim (10 px falloff). Craters: the left inner wall is in black shadow, the right inner wall is lit, the rim lip is bright. A few big defined foreground craters.+- **CRT post** (`demo/crt.js`): R maps to amber: dim `#FF6605`, mid `#FFB000`, overexposed toward `#FFEBB8`. G maps to `#B8E0FF`. Four-level bloom at 0.55 plus a halo at 0.22. 3 px scanlines at 0.3; barrel curvature 0.045; unlit glass `#090604`; faint top-left reflection, 1.2% HV flicker.+- **Afterglow**: τ = 0.12 s; one extra trail sample at t − 35 ms × 0.3.+- **LOG strip**: dim dashed separator, inverse-video `LOG` tag, `> ` and the line in uppercase VT323 at 45 px; holds 1.4 s after the line is complete; idle states `TRANSMIT [#####.....] 40%`, `SENT … AWAITING REPLY`.+- **Title**: the filename, typed with key clicks, plus a small dim sub-line.++## End card++Typed over the final room shot (`ASCII / CRT TERMINAL`, `LemoLab × Claude Opus 5.5`), followed by the CRT power-off. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/ascii-crt/demo/+ term.js glyph atlas, grid drawing, density ramps, image → cells+ art.js continent texture, earth shading, lunar ground, craters+ crt.js monochrome phosphor CRT post (WebGL2)+ main.js the whole timeline: boot, handshake, message, reply, letter fall, fractal, room, end card, EV, SUBS+ voice_fx.py AI voice processing mix.py synthesized foley + ducking + score+ music/score.py original analog-synth score tools/subs.mjs export window.SUBS+```++1. `node core/render/still.mjs styles/ascii-crt/demo --range 33.4:37.4:0.2` renders frames of any section; `?frame=earth|fractal|base|poster` renders single tests; `?nosub=1` renders without the LOG strip.+2. `sh styles/ascii-crt/demo/build.sh` goes from zero to the finished film: TTS, voice FX, whisper, score, events, mix, SRT, render (1435 frames in about 50 s with 3 workers), mux, styleframe, poster.++Pitfalls tied to this demo's props:++- **Offscreen negative drift** showed up as doubled stars and misaligned crater edges across 200 columns.+- **A noise-textured Earth reads as a textured ball.** Use continent silhouettes, a dark sparse ocean and a dot-only night side.+- **Particles bursting from 13 letter centers stack into a glowing bar.**+- **Earth letters rising through the still-visible sentence look messy.** Send them all behind the horizon first, then rise.+- **The thick (stroked) atlas glyph closes the gaps of `M`.** For the fractal mask, sample a separate *thin* (fill-only) glyph bitmap.+- **Lazily built data**: without building the particle schedule first, the foley for the fall was silent.diff --git a/styles/ascii-crt/STYLE.md b/styles/ascii-crt/STYLE.mdindex de2186d..396825b 100644--- a/styles/ascii-crt/STYLE.md+++ b/styles/ascii-crt/STYLE.md@@ -1,127 +1,113 @@# ASCII / CRT Terminal: Style Prompt> Everything on screen is a real character on a monospace grid, lit by the phosphor of an old monochrome CRT.-> Demo: *TRANQUILITY.LOG* (59.8s) · `ascii-crt.mp4` · source in `demo/`+> References (grammar only): 1970s–80s monochrome terminals and teletype logs (typed output, cursor, status lines); ASCII art and demoscene text-mode pictures (images from glyph density); analog-synth film scores of the early 1980s (cold pulse, patient drones). Copy no film's interface text, fonts or logos, and use no real agency names.-You are directing a 30–60 second film in the **ASCII / CRT Terminal** style. The user gives you a topic. You decide everything else: story, shots, timing, sound. Then you deliver a finished film. Follow this guide.+## 1. Essence, and what it is not++A single monochrome terminal screen: **P3 amber** (or P1 green) phosphor glowing on dark glass, curved at the edges, with scanlines. Every image, including title, landscape, face, room and subtitles, is made of **real glyphs placed on a character grid** and chosen by ink density. The film has one camera, the screen itself. It moves only by changing the **font size of the grid**: bigger characters push in, smaller characters pull out.++The mood is cold, patient and machine-calm: typed text, a blinking cursor as suspense, and one warm surprise.++**Never** fake it with an image plus an "ASCII filter". Characters must be drawn as characters on a grid. Not a hacker-movie green rain, not a pixel-art game (no sprites, no free pixels), not a sci-fi HUD (no vector lines, no free-floating panels).++## 2. Materials & rendering++- **Font**: one monospace bitmap-style font (VT323, OFL); cell 0.4 em × 0.8 em (1:2). A large prerendered glyph atlas with a stroke for beam spread, scaled with `drawImage`, keeps zooms continuous and sharp.+- **Grids**: column count per shot (title ~20, terminal 80, picture 200+); a push-in can go until one cell holds a sub-grid of its own.+- **Density ramp**: each glyph's measured ink coverage × dim / normal / bold → about 20 levels, near-duplicates dropped; a small ordered-plus-hash dither per cell; cells below a threshold stay blank. **Negative space makes ASCII art readable.**+- **Picture pipeline**: paint grayscale into an offscreen "negative" aligned exactly to the grid (several samples per cell; channels for phosphor, second colour, a flag), average per cell, pick a glyph. Interiors get local contrast (`m + 0.9·(m − mean)`) to keep outlines.+- **Recognisable subjects**: silhouettes, not noise (real coastline polygons, a face from a few planes); dark = sparse dim glyphs, bright = dense bold, shadow sides sparse `.` only; an angle with a clear silhouette.+- **Depth on a grid**: far = darker and sparser, near = brighter and denser; a thin bright rim separates planes.+- **CRT post** (WebGL, adapted from `core/post/crt.js`):+ - **Phosphor colour**: luminance maps along the phosphor's ramp (dim deep orange → amber → overexposed near-white for P3).+ - **Glow**: multi-level bloom plus a faint halo.+ - **Glass**: fine scanlines (narrower on bright areas), slight barrel curvature, rounded mask, warm near-black unlit glass, faint reflection, ~1 % flicker, fine noise. **No RGB grille: monochrome tubes have none.**+- **Afterglow**: text that disappears decays with τ ≈ 0.1 s, computed analytically so every frame is deterministic. Moving glyphs get one faint trail sample.++## 3. Colour logic++- **One phosphor** carries everything: amber, green or white, in its own brightness ramp. No second hue for decoration.+- **At most one soft second colour**, used for one thing only (the emotional object), switched on at a single moment, on a downbeat, and never taken back casually.+- Examples: amber screen with an ice blue-white for something far away; green screen with a warm pink for a living thing; white P4 screen with a pale gold for a memory.+- Brightness is the only other tool: dim / normal / bold and inverse video.++## 4. Type & subtitles++- **Subtitles are terminal output.** A reserved **LOG strip** at the bottom: a dim separator, an inverse-video tag, then a prompt and the line in uppercase at ~45 px. It is **typed word by word in sync with the voice** (whisper word timestamps) and holds ≥ max(1.8 s, speech + 0.6 s). It lives outside the zooming grid, like a status line, with the same scanlines and glow. When nobody speaks it can show system state (a progress bar, a waiting message).+- **On-screen text that the story shows** is picture, not subtitle; in the `.srt` it appears as `[SCREEN] …`.+- **Titles** are typed with key clicks, as a filename, a command or a header.++## 5. Motion quality++- **Characters never move off-grid, except in a declared transformation moment.** Typing, scrolling and counters jump from cell to cell. A roller flips digits discretely, fast then slowing.+- **Only three things move continuously**: grid scale (the camera), CRT physics, and particles in a transformation.+- **Typing speed is performance**: machine output is even and fast (~10–40 ms/char); dramatic lines slow to note values of the score; human typing is hand-timed, uneven, with pauses and bursts.+- **Particles** spawn from random points inside source glyphs, start small, fade in, ease to their cell, and flash briefly on landing, so they never stack into bright bars.+- **Push to a character**: hold where the whole glyph reads, then push until its inner text reads; inner text full brightness, outside text a few percent, neighbours dimmed, so the shape reads before the text.++## 6. Camera grammar++The only camera is the grid scale, plus CRT power states and one possible shot outside the screen.++| Move | What it expresses | Can serve |+|---|---|---|+| Static 80-column terminal | Waiting, procedure, machine time | a countdown; a queue; a log being read |+| Push in (cells grow) | Attention, intimacy | one line of dialogue; a name; a decision typed |+| Pull out (cells shrink) | Context, scale | a title becoming line 1 of a list; one entry among thousands |+| Push into a single glyph | Hidden depth; what a symbol is made of | a letter made of messages; a pixel made of people |+| Scroll (the buffer moves) | Accumulation, time passing | years of records; a changelog; a feed |+| Clear screen / hard redraw | A cut; a new state | a reboot; a new chapter; a crash |+| Text becomes image (grid shrinks as glyphs fall) | Words turning into world | a letter becoming a face; data becoming a map |+| Power on / off, degauss | Birth, death, sleep, shock | a machine waking; an ending; a jolt |+| Pull back off the glass into a drawn room | The screen is an object in a world | who is reading; where the machine is |++Opening and ending come from the topic. Framing: text stays in the safe area inside the curvature; keep the LOG strip clear. Transitions happen on the screen (clear, redraw, scroll, power), never a crossfade between two screens.++## 7. Sound palette++- **Music**: an original analog-synth score, rendered in code (numpy / numba): PolyBLEP saw and square oscillators, a resonant 4-pole ladder filter with moving cutoff, filter envelopes, square-wave sequencers, slow tape wow (± a few cents), long reverb on pads, gated reverb on hits; options also a sub-bass drone, sample-and-hold noise, a detuned unison lead. **Never chiptune.**+- **Technique options**: grow a single arpeggio as an image forms; hold the only major chord for one moment; drop everything, reverb tails included, to digital zero on a shock; open a chord on the colour change.+- **Silence is the main instrument**: room tone alone under typing and blinking cursors; a short near-silence before a transformation.+- **Foley** (all synthesised): relay click and degauss hum (mains hum plus harmonics with a thump); buckling-spring keys (plastic click, spring ping, key-cap thock; duller space bar, heavier Enter); teletype ticks for remote text; modem and phone-line tones (answer tone, FSK, band-limited noise); square-wave error beeps and BEL; clusters of tiny high ticks for particles; a dot-matrix printer or tape drive as options; room tone (fan, low hum, a **very quiet** flyback whine).+- **Mix**: music ducked about −8 dB under the voice; master −14 LUFS with no grain in the mux (the noise lives in the picture).+- **Voice**: when a machine speaks, process it (light ring modulation, a short comb, a telephone-ish band-pass, soft saturation) and check that whisper still reads every line. Few short lines.++## 8. Native moves++A menu: use the ones your story needs.++- **The picture is made of words.** A sentence breaks apart and its letters, sorted by ink density, become an image containing only those letters. *Fits content like:* a manifesto becoming a crowd; a recipe becoming the dish; a poem becoming a landscape.+- **Font size = camera.** Push until one character fills the screen and is itself made of smaller text. *Fits content like:* a company name made of employee names; a year made of its headlines; a heart glyph made of messages.+- **Typing rhythm = editing rhythm.** Even machine typing against uneven human typing; a blinking cursor is a performance. *Fits content like:* a job application; an apology; a password remembered.+- **CRT physics.** Power on as dot → line → frame, off to a dot; afterglow, bloom, curved glass. *Fits content like:* a hospital monitor; a night shift ending; an old archive reopened.+- **A single colour change.** One soft second colour appears once. *Fits content like:* a first green leaf in a data log; a blood-orange sunset in a weather report; a child's drawing in a server room.+- **The log file.** Timestamps, error codes, progress bars tell the story. *Fits content like:* a product launch day; a rescue; a migration.++## 9. Pitfalls of the medium++- **Inverse video**: `destination-out` only changes alpha, which the upload ignores → opaque black canvas, cut letters with a *black* atlas.+- **Negative not aligned to the grid** drifts across hundreds of columns → map with cell width / samples exactly.+- **Wrong cell centre**: cells are 2·cw tall, so the centre is `(j + .5)·2cw`, not `(j + 1)·cw`.+- **Every dark pixel becomes a character** (`-+-+` walls) → threshold, gamma ≈ 1.25, local contrast.+- **Noise-textured subjects read as textured blobs** → silhouettes, a dark sparse background, a dot-only shadow side.+- **Particles from letter centres stack into bars** → random points inside the glyph, small, faded in.+- **Stroked atlas glyphs close their counters** (`M`, `B`) → sample a thin fill-only glyph bitmap for masks.+- **Lazily built data never reaches the exporter** → build particle schedules and their sound events before `window.EV` is exported.+- **A power-on parameter at 0 still draws the centre dot** → exposure 0 before power-on, multiply the dot term by exposure.++## 10. Engine++In `demo/`: `term.js` (glyph atlas, grid drawing, density ramps, image → cells), `art.js` (procedural grayscale scenes for the negative), `crt.js` (monochrome phosphor CRT post, WebGL2), `main.js` (timeline, events `EV`, subtitles `SUBS`), `voice_fx.py` (machine-voice processing), `mix.py` (synthesised foley + ducking), `music/score.py` (analog-synth score), `tools/subs.mjs` (export `window.SUBS`). File map and commands: [DEMO.md](DEMO.md#build-notes).++## 11. Variation space++You decide who types, what the screen is for, the grids, the opening, the ending, the camera (grid) path, the pacing and whether the second colour appears at all. All far from our demo:++- Structures: **a chat log** (two users typing to each other across one night, timestamps as scene headers); **a system manual** (chapter headers, diagrams in ASCII, one page going wrong); **a boot-to-shutdown day** (one machine's day as a sequence of scheduled jobs, each drawing a picture of what it does).+- Openings: **mid-scroll** (a buffer already racing past; it stops on one line); **a printout** (a dot-matrix sheet feeding up, then the screen takes over); **an error first** (a crash dump, then we rewind to what caused it).+- Endings: **the buffer fills** (the story's text scrolls up and away until only the prompt remains); **the screen saver** (after the last line, a slow drifting pattern takes over the idle screen); **the cursor stops blinking** (no power-off, just a final state held).----## 1. What this style is--A single monochrome terminal screen: **P3 amber** (or P1 green) phosphor glowing on dark glass, curved at the edges, with scanlines. Every image, including title, landscape, planet, room and subtitles, is made of **real glyphs placed on a character grid** and chosen by ink density. The film has one camera, the screen itself. It moves only by changing the **font size of the grid**: bigger characters push in, smaller characters pull out.--The mood is cold, patient and machine-calm: typed dialogue, a blinking cursor as suspense, and one warm surprise.--**Never** fake it with an image plus an "ASCII filter". Characters must be drawn as characters on a grid. Don't copy any film's interface text, fonts or logos, and don't use real space-agency names.--## 2. Story: what fits this style--Pick stories where **text is the only way the character can act**: a machine, a remote operator, a message across distance or time. The medium has five native powers. Use at least three.--| Native power | Story use |-|---|---|-| **The picture is made of words** | The climax *is* a sentence turning into an image. In the demo, the reply `I AM STILL HERE.` breaks apart and its letters, sorted by ink density, become an earthrise. The image contains **only the letters of that sentence**. |-| **Font size = camera** | Push in until one character fills the screen. That character is itself made of smaller text, which reveals scale and meaning. In the demo, one `M` is made of 40 years of `NO SIGNAL` logs. |-| **Typing rhythm = editing rhythm** | Machine typing is even and fast. Human typing is uneven, with pauses and bursts. A cursor blinking three times is the most important performance in the film. |-| **CRT physics** | The screen powers on as a dot, then a line, then the full frame, and powers off by collapsing to a dot. Phosphor afterglow, bloom, curved glass. Use them for the opening and the ending. |-| **A single color change** | The film is monochrome, so one soft second color (the demo uses blue-white `#BFE4FF` for Earth, the only non-amber thing) is the emotional peak. Switch it on a musical downbeat. |--**Adapting any topic:** find the message someone has to send, and make that message become the picture. A product launch becomes a spec sheet that assembles into the product's silhouette. A love letter becomes its own words raining into a face. A history lesson becomes a log file whose dates zoom out into a map.--**Emotional arc for 45–60s:** dark and a cursor, then waking (boot log, a date jumping), then disturbance (handshake noise, a line of text), then holding breath (cursor blinks), then setback (`NOT FOUND` ×3 on three beats), then decision (typing the reply), then **near-silence for 1–1.5 s**, then the climax (letters become the image, the one color appears), then the scale reveal, then waiting, then a tiny reply, then an echo (pull out of the screen, power off to a dot).--## 3. Visual language--- **Font**: VT323 (OFL), one font for everything. Cell = advance 0.4 em × height 0.8 em (1:2). Glyph atlas prerendered at 160 px with a 2.2 px stroke for beam spread, then scaled with `drawImage` to any cell size, so zooms are continuous and never blurry.-- **Grids used**: title 20 columns (cell width 84 px), terminal 80 columns (21 px), picture 240 columns (8 px), room 213 columns (9 px), fractal push-in up to a 450 px cell with a 40-column sub-grid inside each cell.-- **Density ramp**: measure each glyph's real ink coverage from the atlas and sort. Multiply by terminal attributes dim / normal / bold (0.42 / 0.7 / 1.0) to get about 20 levels, then drop near-duplicates. Choose per cell with a small ordered-plus-hash dither (amplitude 0.7). Cells with luminance < 0.05 stay blank. **Negative space is what makes ASCII art readable.**-- **Picture pipeline**: paint the scene as grayscale into an offscreen "negative" aligned exactly to the grid (3×6 samples per cell). R = amber luminance, G = second-color luminance, B = a flag such as "night side". Average per cell and pick a glyph. Rooms get a 3×3 local-contrast boost (`m + 0.9·(m − mean)`) so objects keep their outlines.-- **Earth that reads as Earth**: use continent polygons in lon/lat (rasterized once to an equirectangular mask) rather than noise. Ocean albedo 0.14 (sparse dim glyphs), land 0.96 (dense bold glyphs), clouds 0.5 (mid-density swirls). Put a narrow terminator (smoothstep −0.03…0.10) and render the night side as sparse `.` only. Pick an angle with a clear silhouette: Africa and Europe.-- **Lunar ground**: far ground darker and sparser (×0.3), near ground brighter and denser. The horizon gets a thin bright rim (10 px falloff). Craters: the left inner wall is in black shadow, the right inner wall is lit, the rim lip is bright. Include a few big defined foreground craters.-- **CRT post** (`demo/crt.js`, adapted from `core/post/crt.js`):- - **Phosphor color**: R maps to amber: dim `#FF6605`, mid `#FFB000`, overexposed toward `#FFEBB8`. G maps to `#B8E0FF`.- - **Glow**: four-level bloom at 0.55 plus a halo at 0.22.- - **Glass**: 3 px scanlines at 0.3, narrower on bright areas. Barrel curvature 0.045 with a rounded screen mask. Unlit glass is `#090604`, not black. Faint top-left reflection, 1.2% HV flicker, fine luminance noise. **No RGB grille, because monochrome tubes have none.**-- **Afterglow**: text that disappears decays with τ = 0.12 s, computed analytically so every frame is deterministic. Moving glyphs get one extra trail sample at t − 35 ms × 0.3.--## 4. Motion language--- **Characters never move off-grid, except in the climax.** Typing, scrolling and counters jump from cell to cell. A date "roller" flips digits discretely, fast then slowing.-- **Only three things move continuously**: grid scale (the camera), CRT physics, and the climax particles.-- **Typing speeds**: boot lines 12 ms/char, commands 38 ms, title and reply 120–150 ms (sixteenth notes at 100 BPM). Human typing uses hand-timed offsets with pauses.-- **The letter fall** (the demo's native move):- 1. Hold the sentence for 1.5 s with the cursor blinking.- 2. At the split, letters jitter and throw a ghost copy.- 3. Each target cell spawns a particle from a random point inside a matching source letter (only letters of the sentence exist in the ramp). The particle starts at 18 px, shrinks to the grid size and fades in over 0.2 s so particles never stack into a bright bar. Its path eases smoothly in x, with y = u·(0.6 + 0.4u).- 4. Ground lands bottom to top.- 5. Earth letters first all fall *behind the horizon*, then rise into place from bottom to top, so the planet literally rises.- 6. Source letters dim as they are used up.- 7. The landing flash is 1.9× brightness decaying over 0.12 s.-- **Fractal push-in**: push to a framing where the whole `M` is clear and **hold 1 s**, then push further until the log text is readable (cell 450 px, sub-text about 28 px). Text inside the glyph is at full brightness, text outside is at 3–6%, and neighbor glyphs are at 20%, so the letter shape reads first and the text second.--## 5. Camera language--| Beat | Camera |-|---|---|-| Opening | CRT off, then a dot, a line and the full frame. A giant cursor blinks 3× in empty space. |-| Title | The title is the file the machine opens, typed at 20 columns. It then **pulls out** to 80 columns as it becomes line 1 of the boot log. |-| Suspense | Static 80-column terminal. The only motion is text and the cursor. Hold on blinks. |-| Decision | **Push in** from 21 px to 80 px cells around the prompt. The reply is typed huge and centered. |-| Climax | The grid shrinks while falling (80 px letters become 8 px cells). Hold on the finished picture, and switch color on the downbeat. |-| Scale reveal | Push into one glyph until it becomes its own sub-grid of text, then snap back. |-| Ending | The **only** shot outside the screen: pull back until the screen image sits inside a character-drawn terminal in a dark room. Next to it is a large porthole showing the real Earth (18–20 rows tall). Only two things glow: the tiny reply and the planet. Then power off to a dot. |--## 6. Sound--- **Music**: an original Carpenter-style analog synth score, rendered in numpy and numba.- - **Sound sources**: PolyBLEP saw and square oscillators, a resonant 4-pole ladder filter with moving cutoff, and filter envelopes. Add slow tape wow (±3 cents), a long reverb on the pad and gated reverb on the hits.- - **Grid and key**: D minor at 100 BPM, with every cut on a bar or beat.- - **Cue shape**: silence under boot, then a drone and a square-wave 16th sequencer while the machine wakes.- - **The hard cut**: on the handshake the whole score drops to digital zero, reverb tails included, for five seconds.- - **Climax**: a single saw arpeggio grows as the letters fall and opens into Bbmaj7 on the color change. **The only major chord** (D major) lands on the reply.- - **Never chiptune.**-- **Silence is the main instrument.** Handshake, message and cursor blinks play over room tone only, and there are 1.5 s of silence before the picture forms.-- **Foley** (all synthesized):- - **Relay and degauss**: relay click, degauss hum (60 Hz plus harmonics decaying over 0.35 s, with a thump).- - **Keys**: buckling-spring keys (plastic click, a 3.4 kHz spring ping, key-cap thock). The space bar is duller and Enter heavier. Remote characters get a dry teletype tick.- - **Modem**: an original handshake (2100 Hz answer tone with two phase reversals, a dual tone, 1200/2400 FSK, scrambled band noise, all band-limited to a phone line).- - **Beeps**: a square-wave error beep, a lower one for the final error, and a 1 kHz BEL for the reply.- - **Particles**: particle landings as clusters of tiny 2–6 kHz ticks.- - **Room tone**: a fan bed with 120 Hz hum and a **very quiet** 15.7 kHz flyback whine (about −50 dBFS before loudness normalization).-- **Voice**: the machine's log, read by Kokoro `am_echo` at speed 0.8. Process it with 16% ring modulation at 52 Hz, a 6 ms comb (0.22), a 140–7000 Hz band-pass and soft saturation. Whisper still reads it 5/5. Use 4–6 short lines. Under the voice the music is ducked about −8 dB. The master is −14 LUFS with no grain (the noise lives in the picture).--## 7. Subtitles & titles--- **Subtitles are terminal output.** A reserved **LOG strip** sits at the bottom: a dim dashed separator, an inverse-video `LOG` tag, then `> ` and the line in uppercase VT323 at 45 px. It is **typed word by word in sync with the voice**, using whisper word timestamps, and holds 1.4 s after the line is complete. It lives outside the zooming grid, like a status line, but gets the same scanlines and glow. When nobody speaks it shows system state (`TRANSMIT [#####.....] 40%`, `SENT … AWAITING REPLY`).-- **On-screen text** such as the message, `NOT FOUND` and the reply is picture, not subtitle. In the `.srt` it appears as `[SCREEN] …`.-- **Title**: the filename, typed with key clicks, plus a small dim sub-line.-- **End card**: typed over the final room shot (`ASCII / CRT TERMINAL`, `LemoLab × Claude Opus 5.5`), followed by the CRT power-off.--## 8. Pitfalls we hit--- **Inverse video on an opaque canvas.** `destination-out` only changes alpha, and the texture upload ignores it. Keep the scene canvas opaque black and cut letters by drawing a *black* glyph atlas.-- **Offscreen negative not aligned to the grid.** Scaling by W / width drifts across 200 columns: stars doubled and crater edges misaligned. Map with cell width / samples exactly.-- **Wrong cell center.** Cells are 2·cw tall, so the center is `(j + .5)·2cw`, not `(j + 1)·cw`.-- **Every dark pixel becomes a character.** Walls fill with `-+-+` noise. Apply a luminance threshold, a gamma of about 1.25 and local contrast.-- **A noise-textured Earth reads as a textured ball.** Use continent silhouettes, a dark sparse ocean and a dot-only night side.-- **Particles bursting from 13 letter centers stack into a glowing bar.** Spawn from random points inside the glyph, start small, fade in and drop fast.-- **Earth letters rising through the still-visible sentence look messy.** Send them all behind the horizon first, then rise.-- **The thick (stroked) atlas glyph closes the gaps of `M`.** For the fractal mask, sample a separate *thin* (fill-only) glyph bitmap.-- **Lazily built data never reaches the exporter.** Particle schedules and their sound events must be built before `window.EV` is exported, or the foley for the fall is silent.-- **Power-on parameter at 0 still drew the center dot.** Set exposure to 0 before power-on and multiply the dot term by exposure.--## 9. Production recipe (this repo)--```-styles/ascii-crt/demo/- term.js glyph atlas, grid drawing, density ramps, image → cells- art.js continent texture, earth shading, lunar ground, craters- crt.js monochrome phosphor CRT post (WebGL2)- main.js the whole timeline: boot, handshake, message, reply, letter fall, fractal, room, end card, EV, SUBS- voice_fx.py AI voice processing mix.py synthesized foley + ducking + score- music/score.py original analog-synth score tools/subs.mjs export window.SUBS-```--1. `node core/render/still.mjs styles/ascii-crt/demo --range 33.4:37.4:0.2` renders frames of any section; `?frame=earth|fractal|base|poster` renders single tests; `?nosub=1` renders without the LOG strip.-2. `sh styles/ascii-crt/demo/build.sh` goes from zero to the finished film: TTS, voice FX, whisper, score, events, mix, SRT, render (1435 frames in about 50 s with 3 workers), mux, styleframe, poster.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/ascii-crt/TREATMENT.md b/styles/ascii-crt/TREATMENT.mddeleted file mode 100644index 89ceb59..0000000--- a/styles/ascii-crt/TREATMENT.md+++ /dev/null@@ -1,170 +0,0 @@-# ASCII / CRT Terminal · 导演方案(Treatment)--**片名** *TRANQUILITY.LOG*-**时长** 约 53 秒(22 小节 × 2.4 秒,100 BPM;含 3.5 秒片尾卡)| **画幅** 1920×1080 | **帧率** 24fps 输出;终端里的字符只能在字符网格上"跳格"(打字、滚屏都是离散的),只有网格本身的缩放(= 镜头推拉)和 CRT 物理(余晖、辉光、开关机)是连续的-**磷光** P3 琥珀(amber `#FFB000`)单色;全片唯一的第二种颜色是地球的柔和蓝白 `#BFE4FF`,只在地球完成的那一拍亮起-**一句话** 月面中继站的维护 AI 沉睡 40 年后被一条地球来的消息唤醒:"IS ANYONE THERE?"。它想拍一张照片证明自己还在,却发现自己没有摄像头;于是它把回信 `I AM STILL HERE.` 的每一个字母打散、按笔画浓淡重新排队,拼出一幅地平线上的地球升起。推近地球,每个字母又是由它 40 年里写下的日志组成的——每一条都写着 `NO SIGNAL`。发送。等待。回信只有两个字符:`:)`。--一个主体(AI,只闻其声、只见其字)、一个目标(让地球知道"我还在")、一次转折(没有眼睛 → 决定用字去"画")。-情绪弧:**沉睡(黑屏、光标)→ 苏醒(开机自检、日期跳 40 年)→ 惊动(握手声、一行字)→ 屏息(光标闪)→ 受挫(CAMERA NOT FOUND ×3)→ 决心(打出回信)→ 近乎无声的一秒 → 高点(字母落成地球,唯一的颜色亮起)→ 尺度揭示(字母里是 40 年的 NO SIGNAL)→ 发送、等待 → 回响(`:)`,第一条新日志 SIGNAL RECEIVED,退出屏幕看到孤零零的终端和窗外真正的地球)**。-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么 | 刻意不学 |-|---|---|---|-| 《Alien》(1979) 飞船电脑界面 | 磷光字在黑玻璃上的质感;逐字打出的对话,机器用平静、简短、全大写的口吻讲大事;屏幕是唯一的"脸" | 不复刻任何界面文字、版式、字体、系统名;不出现任何可辨认的电影元素 |-| 《WarGames》(1983) 终端节奏 | **打字声 + 光标就是悬念**:一行字打到一半停住,光标在闪,观众屏住呼吸;调制解调器握手声是"有人来了"的信号;用终端的节奏剪辑 | 不借用它的任何台词、对话桥段、游戏名单、机构 |-| ASCII 艺术 / demoscene / Vuk Ćosić 的 ASCII 电影 | 字符密度渐变(按每个字形的"墨量"选字)、字符即像素、字符动画;把一段文字直接变成一张图;字号 = 分辨率 = 镜头远近 | 不使用任何现成 ASCII 画作或 demo 片段;我们的密度表不是通用的 ` .:-=+*#%@`,而是只用回信 `I AM STILL HERE.` 自己的字母(见原生招式) |-| 《Moon》(2009) 的月球孤独感 | 只学气质:一个被留下的"人"、空荡的基地、窗外的地球、慢而克制的节奏 | 不做任何形象化的机器人脸(不做笑脸屏幕、不做表情符号式的 AI 形象);AI 没有形象,只有字和声音;片中 `:)` 是**地球那边**发来的回信,不是 AI 的脸 |-| 通用 | — | 片中不出现任何现实航天机构、任务名、国旗、徽章;基地叫 "LUNAR RELAY 7",AI 叫 "UNIT 7" |-------## 二、原生招式(只有 ASCII / CRT 能做到)--### 1. 画面就是文字:回信的字母落成地球(情绪最高点,31.2–36.0s)-- AI 打出回信 `I AM STILL HERE.`。近乎无声的一秒后,字母开始从句子里掉落,每掉过一行就分裂一次,像沙漏里的沙一样倾泻,按亮度落到自己的位置:先铺出月面地平线,再从地平线后面堆出地球。-- **密度表只用这句话自己的字母**:把 `I A M S T L H E R .` 按 VT323 字形的实际墨量(程序量出来的像素覆盖率)排序,得到这幅画唯一的调色板:` . I L T E R S A H M`,再乘以终端的"暗 / 亮"两级属性(VT100 就有的 dim / bold),一共 21 级。**整幅地球升起里没有一个不属于这句回信的字符**——"我还在"这句话本身就是这张照片。-- 地球堆好的那一拍(36.0s 小节重拍),地球从琥珀色切换成全片唯一的蓝白色,配乐的琶音同时展开成和弦。--### 2. 分形 ASCII 的尺度揭示:每个字母都是 40 年的日志(38.4–43.2s)-- 镜头推近(= 字符网格的字号从 12px 连续放大到 1000px 以上),推进地球亮边上的一个 `M`。放大到一定程度,这个 `M` 的笔画开始"分辨"成更小的字符:一行行日志 `2061.09.03 03:12 LINK CHECK ... NO SIGNAL`。字形是容器,日志是墨水。-- 旁白:"Forty years of logs. Every one of them says: no signal." ——这幅回信是用它 40 年的孤独写成的。-- 然后快速拉回全景,发送。--### 3. CRT 物理-- **开机"一线亮起"**(点 → 横线 → 全屏)配消磁的"嗡—咚";**关机收成一个点**,余辉慢慢熄灭——片头片尾首尾呼应。-- **磷光余辉**:P3 琥珀的慢衰减。光标熄灭、字符清屏、字母下落时都拖着短暂的尾迹(按时间解析计算,确定性,不依赖上一帧)。-- 辉光溢出、扫描线、曲面屏的桶形畸变 + 圆角暗角、轻微的高压闪烁、屏幕玻璃上极淡的反光。-- 字幕(旁白日志)也在这块玻璃上,吃同样的扫描线和辉光。--### 4. 字号 = 镜头-全片只有一个"机位":这块屏幕。推拉镜头全部靠字符网格本身换字号:片名是 20 列的大字,开机日志缩成 80 列,地球是 160 列,分形推进时放大到一个字符占满全屏。**只有一次**退到屏幕外(48.0s),看到终端机身和整个基地——那个镜头本身也是字符画,终端屏幕以画中画的方式显示着 `:)`。-------## 三、分镜节拍表(按秒;100 BPM,1 拍 = 0.6s,1 小节 = 2.4s)--| # | 时间 | 小节 | 网格 | 画面 / 表演 | 机位意图 | 声音 |-|---|---|---|---|---|---|---|-| 1 | 0.0–1.1 | 1 | — | 黑。0.25 继电器"咔";0.35 开机:一个亮点横拉成一条线,再纵向展开成满屏 | 开场 1 秒就是 CRT 的招牌动作:观众马上知道"我们在一块老屏幕里" | 继电器、消磁"嗡—咚"、高压啸叫轻轻爬升、风扇起转 |-| 2 | 1.1–3.0 | 1 | 巨大(字高 150px) | 空屏,一个块状光标闪 3 下(1.2 / 1.8 / 2.4 亮) | 停顿是这部片的第一句台词 | 只有风扇和极轻的高压啸叫 |-| 3 | 3.0–7.2 | 2–3 | 20 列 | 片名 `TRANQUILITY.LOG` 按十六分音符逐字打出(每字一声机械键),下面一行小字 `UNIT 7 · LUNAR RELAY 7 · MAINTENANCE`;停住读 | 片名是 AI 自己打开的文件名——片名卡也在戏里 | 键盘"咔哒 + 弹簧余音";4.8 起极低的 D 持续音 |-| 4 | 7.2–12.0 | 4–5 | 20 → 80 列(拉远) | 字号连续缩小 = 镜头拉远,片名缩成第一行,下面开机自检滚屏:内存计数、子系统 `[ OK ]`、`SOLAR ARRAY ... 11%`、`CREW ... 0`、`OPTICS ... SKIPPED`(伏笔)。9.6–11.4 日期滚轮:`2051.06.14` 的年份像里程表一样翻到 `2091.06.14`,`DORMANT 40Y 000D` | 用"缩字号"做第一次拉远,交代网格就是镜头;日期滚轮把 40 年变成一个动作 | 十六分音符的方波音序(滤波闭合);滚轮 = 棘轮声 + 上扬滤波扫频;11.4 落定一声"咚" |-| 5 | 12.0–15.6 | 6–7 | 80 列 | 清屏,只剩提示符。旁白 1 逐词打在底部日志栏 | 安静地交代身份:一台醒来的机器在写日志 | 贝斯八分音符脉冲 + 慢起的 Dm pad |-| 6 | 15.6–17.4 | 7 | 80 列 | **握手**:`CARRIER DETECT` 反白闪;成屏的乱码字节随握手声的起伏刷过屏幕,然后清空,只剩 `INCOMING · ORIGIN: EARTH` | 音乐硬切在拍点上,让握手声独占——"有人来了" | 原创合成的调制解调器握手(应答音 + 相位翻转 + 双音 + 扰码噪声) |-| 7 | 17.4–19.8 | 8 | 36 列 | `IS ANYONE THERE?` 在屏幕中央逐字出现,节奏不均匀(对面是人在打字:停顿、连击) | 人的节奏 vs 机器的节奏:这行字是全片唯一"犹豫"的打字 | 每来一个字符一声轻的电传"滴答" |-| 8 | 19.8–21.6 | 9 | 36 列 | 光标闪 3 下。什么也没发生 | **全片最重要的表演**:AI 在"屏住呼吸" | 几乎无声:风扇 + 高压啸叫 |-| 9 | 21.6–25.2 | 10–11 | 80 列 | 旁白 2。AI 快速打命令 `> ATTACH CAMERA_01`,结果一行行弹出:24.0 / 24.6 / 25.2 三拍各一个 `CAMERA_0n ...... NOT FOUND`(反白) | 三次法则 + 节拍:三个失败落在三个拍点上 | pad 回来(很轻);三声错误"嘟",音高和 pad 成小二度 |-| 10 | 25.2–27.6 | 11–12 | 80 列 | `NO OPTICAL DEVICES`。光标闪。旁白 3 | 转折:它没有眼睛 | pad 降到 Bb,贝斯停 |-| 11 | 27.6–30.0 | 12–13 | 20 列(推近) | 字号放大(推镜头),AI 在屏幕中央打出回信 `I AM STILL HERE.`(十六分音符,比片名更慢、更稳) | 推近到这句话:这是它的决定 | 机械键盘;pad 渐弱 |-| 12 | 30.0–31.2 | 13 | 20 列 | 近乎静止:这句话挂在屏幕上,光标闪一下 | 地球出现前 1.2 秒几乎静音 | 只剩风扇 |-| 13 | 31.2–36.0 | 14–15 | 20 → 160 列 | **原生招式 1**:字母掉落、分裂、倾泻,按密度落位:31.2–33.6 铺出月面地平线(环形山、碎石),33.6–36.0 地球从地平线后堆起 | 字号在下落中连续变小(拉远),同一批字母从"句子"变成"像素" | 琶音进入:单支锯齿波十六分音符琶音,滤波逐渐打开;每批字母落地 = 琶音的一个音 |-| 14 | 36.0–38.4 | 16 | 160 列 | 重拍:地球变成蓝白色(唯一的情绪色),地球在地平线上缓慢升起几行;停住让观众看 | 全片唯一的彩色瞬间,给足停留,不说话 | 琶音展开成和弦(Bbmaj7),加一记 80 年代门限混响的"咚" |-| 15 | 38.4–43.2 | 17–18 | 12px → 1200px(推进) | **原生招式 2**:推进地球亮边的一个 `M`,笔画分辨成日志行 `… NO SIGNAL`。旁白 4 | 尺度揭示:画是用孤独写的 | 和弦进行 F/A → Gm9;推进时高频慢慢收掉 |-| 16 | 43.2–45.6 | 19 | 快速拉回 160 列 | 拉回全景;底部 `> TRANSMIT` 进度条逐格走满,`SENT` | 把整幅画"寄出去" | 调制解调器数据声(上行)+ 滤波关闭 |-| 17 | 45.6–48.0 | 20 | 160 列 | 等待:光标闪 2 下……47.4 地球下方出现回信 `:)`(伴一声终端 BEL 提示音) | 回信只有两个字符——越短越重 | 音乐只剩一个悬置的长音;47.4 BEL + 一个温暖的 D 大三和弦(全片唯一的大调) |-| 18 | 48.0–50.4 | 21 | 退出屏幕 | 旁白 5;日志栏追加 40 年来第一条新日志 `2091.06.14 03:14 SIGNAL RECEIVED`。镜头**退出屏幕**:黑暗的基地里一台终端(字符画),屏幕画中画显示 `:)`,头顶舷窗外,真正的地球挂在地平线上——和它画的一样 | 唯一一次看到机身:孤独的尺度 + 首尾呼应(它画的地球是对的) | D 大和弦延音,开场的琶音动机以单音回来 |-| 19 | 50.4–53.4 | 22 | 字符 | 片尾卡:`ASCII / CRT TERMINAL` 与 `LemoLab × Claude Opus 5.5` 在基地画面上逐字打出;53.0 CRT 关机,收成一个点 | 开机一线亮起 ↔ 关机收成一点 | 最后一个音落在片尾卡;关机"噗"+ 下行啸叫 |--### 旁白(Kokoro `am_echo`,speed ≈ 0.86;轻度环调制 + 梳状共振,whisper 不稳就减弱)--| # | 约在 | 文本(屏幕日志栏同步逐词打出) |-|---|---|---|-| 1 | 12.3 | Log resumed. Forty years since the last entry. |-| 2 | 21.8 | A message from Earth. I should show them I am here. |-| 3 | 26.0 | I have no camera. Only words. |-| 4 | 39.2 | Forty years of logs. Every one of them says: no signal. |-| 5 | 48.2 | New entry. Signal received. |--屏幕上的非旁白文字(`IS ANYONE THERE?`、`CAMERA NOT FOUND`、`I AM STILL HERE.`、`:)`)本身就是画面,大到不需要字幕;SRT 里以 `[SCREEN] …` 收录,方便无障碍。-------## 四、Cue map(音乐先行;100 BPM,D 小调,Carpenter / 80 年代科幻式模拟合成器)--音色全部 numpy 自己合成:锯齿 / 方波振荡器 + 失谐 + 共振低通(numba 实现的 4 极点梯形滤波)+ ADSR 滤波包络 + 磁带式轻微音高漂移 + 门限混响 / 长混响。**不做 chiptune**(没有 8-bit 脉冲音色、没有快速琶音和弦模拟)。--| 小节 | 时间 | 画面 | 配器 | 情绪 | 卡点 |-|---|---|---|---|---|---|-| 1–2 | 0–4.8 | 开机、光标、片名 | **无音乐**:继电器、消磁、风扇、键盘 | 沉睡 → 苏醒 | 0.35 开机;片名每个字 = 一声键 |-| 3 | 4.8–7.2 | 片名停留 | 极低 D1 持续音(锯齿 + 闭合滤波)渐入 | 空旷 | 4.8 |-| 4–5 | 7.2–12.0 | 开机自检、日期滚轮 | + 方波十六分音符音序(D–A–F–A…),滤波缓慢打开;滚轮 = 上扬扫频 | 系统在醒来 | 7.2 音序进;11.4 滚轮落定"咚" |-| 6–7 | 12.0–15.6 | 旁白 1 | + 锯齿贝斯八分音符脉冲,Dm pad(6 支失谐锯齿,慢起) | 冷静、孤独 | 12.0 贝斯进 |-| 7–9 | 15.6–21.6 | 握手、消息、光标 | **全停** | 惊动、屏息 | 15.6 硬切(连混响一起清零) |-| 10–11 | 21.6–27.6 | 找摄像头、失败 | Dm pad 轻轻回来;三声错误嘟(24.0/24.6/25.2)与 pad 成小二度;25.2 后 pad 转 Bb、贝斯停 | 受挫 | 24.0、24.6、25.2 |-| 12–13 | 27.6–31.2 | 打回信、静默 | pad 渐弱到无 | 决心 → 屏息 | 30.0 起近乎静音 1.2s |-| 14–15 | 31.2–36.0 | 字母落成画 | **琶音**:单支锯齿十六分音符(D-F-A-C 上行),滤波逐小节打开;33.6 加贝斯 | 升起 | 字母落地卡十六分音符 |-| 16 | 36.0–38.4 | 地球变蓝 | 琶音展开成和弦:Bbmaj7 大 pad + 三个八度的琶音 + 门限混响的一记"咚" | 高点、温暖 | 36.0 重拍 |-| 17–18 | 38.4–43.2 | 分形推进、旁白 4 | F/A → Gm9,琶音降到中音区、滤波慢慢收(给旁白让位,闪避 −8dB) | 感伤 | 38.4、40.8 |-| 19 | 43.2–45.6 | 发送 | A7sus → A7,琶音滤波关闭 + 调制解调器上行数据声 | 期待 | 45.6 SENT |-| 20 | 45.6–48.0 | 等待 | 只剩一个悬置长音(A) | 悬念 | 47.4 `:)` = BEL + **D 大三和弦**(全片唯一的大调) |-| 21–22 | 48.0–53.4 | 退出屏幕、片尾卡 | D 大和弦延音;开场音序动机以单音、慢速回来 | 回响 | 50.4 片尾卡;53.0 关机 |-------## 五、声音设计(拟音跟"材质"走:继电器、塑料键帽、玻璃显像管、电话线)--- **CRT**:开机继电器"咔" + 消磁线圈的"嗡—咚"(60Hz 低频嗡声快速衰减);高压啸叫(15.7kHz 附近,极低电平 −42dB 左右,并随画面亮度微动,不能刺耳;最后做频谱检查);关机"噗" + 下行啸叫。-- **机器底噪**:风扇(粉噪低通 + 120Hz 轻微嗡声),全片不断,静默段就是它。-- **键盘**:机械键(弹簧屈曲式)= 短促的塑料"咔" + 3–4kHz 弹簧"叮"的余音 + 键帽回弹的低"嗒";每个键略有随机音高/电平;空格键更低更闷;回车键重一点。-- **对面来的字符**:电传式的轻"滴答"(更干、更小),节奏不均匀。-- **调制解调器握手**(原创合成,不采样):2100Hz 应答音(中途两次相位翻转)→ 双音呼叫 → 1200/2400Hz 交替 → 扰码"沙沙"数据噪声 → 静。发送段用上行版本(更短、更高)。-- **错误提示**:方波"嘟",有一点削波。-- **BEL**:终端提示音,柔和的 1kHz 正弦 + 短衰减。回信 `:)` 用它。-- **字母下落**:每颗落位是一声极轻的高频"嘀",数量大时汇成沙沙的"字符雨",音高随落位高度变化。-- 混音:旁白压缩后置前,音乐在旁白下闪避 −8dB;拟音干、近、窄(小屋子里的一台机器);最终 −14 LUFS,mux grain = 0(噪声在画面里)。-------## 六、字幕与标题设计(字幕也是终端输出)--- **字幕 = 屏幕最底部的"日志栏"**:两行保留行,上方一条暗色的 `-` 分隔线;左侧反白小标签 `LOG`,文本前缀 `> `,VT323 44px 琥珀色,**随旁白逐词打出**(按 whisper 的逐词时间戳),整句打完后再停留 ≥1.2s,整句总停留 ≥ 语音 + 0.6s 且 ≥ 1.8s。日志栏在字符网格之外,推拉镜头时不跟着缩放(它是"系统状态行")。它和画面一样吃扫描线、辉光和曲面畸变。-- **片名**:`TRANQUILITY.LOG` 就是 AI 打开的文件名,20 列大字逐字打出,下接一行小字。-- **片尾卡**:在基地字符画上逐字打出 `ASCII / CRT TERMINAL`(大)与 `LemoLab × Claude Opus 5.5`(小),最后 CRT 关机收成一个点。-- **SRT**:5 句旁白 + 4 条 `[SCREEN]` 屏幕文字。-------## 七、视觉规格--- **字体**:VT323(OFL),一个字体贯穿全片。字形图集预渲染成 256px 高的白色字形(再描一圈细边模拟电子束扩散),按任意字号缩放贴图——字号连续变化不会糊也不会跳。-- **网格**:所有字符严格落在网格上;网格有一个原点和一个字号,字号变化 = 推拉。每个格子有字符 + 亮度属性(dim / normal / bold)+ 颜色通道(琥珀 / 地球蓝)。-- **图像 → ASCII**:月面、地球、基地都先在离屏画布上用灰度画出来(球体光照、噪声大陆和云、环形山),再按格子取平均亮度 + 少量有序抖动,查密度表选字。-- **CRT 后期**:从 `core/post/crt.js` 复制改写成单色磷光版 `demo/crt.js`:R 通道 = 琥珀磷光强度,G 通道 = 地球蓝强度;琥珀按强度映射(暗处偏橙 `#FF7A00`、中间 `#FFB000`、过曝处偏白 `#FFE2A8`);多级辉光;扫描线;桶形畸变 + 圆角暗角;玻璃底色 `#0B0806`(不是纯黑);轻微高压闪烁;开关机。-- **余辉**:光标、打字、清屏用"消失时间"解析衰减(τ ≈ 0.12s);字母下落用 3 个过去时刻的叠加拖尾。-------## 八、对风格说明的调整(及理由)--1. **时长 40s → 约 53s**:5 句慢速的 AI 旁白(每句需要 ≥ 语音 + 0.6s)、3 段"表演用的停顿"(光标屏息、地球前的静默、等回信)和分形推进的阅读时间,40 秒装不下而不砍停留。按"节奏以观众为准"的规则放宽,仍在 30–60s 内。-2. **磷光选琥珀而不是绿色**:琥珀和地球的蓝白是互补色,地球亮起时最跳;琥珀也比绿色更"暖",贴近"平静、略带温度"的 AI 声线;绿色磷光更容易让人联想到现成电影的终端画面。-3. **密度表改成只用回信自己的字母**:原建议是通用 ` .:-=+*#%@`。改成用 `I AM STILL HERE.` 的字母按墨量排序,让"文字直接变成图像"不只是视觉效果,而是意义上的:这张图就是这句话。代价是只有 11 级字形,用 dim/bold 两级亮度补成 21 级。-4. **回信的内容由地球那边给**:`:)` 是地球发来的,不是 AI 的表情——避免做成"笑脸 AI"。-5. **结尾加一次退出屏幕**:导演建议允许 1–2 次。放在最后,让观众第一次看到这台机器有多孤独,也让它画的地球和窗外真正的地球对上。-------## 九、制作后的最终时间线(音乐先行,按 cue 对齐;与上文的暂定时间有出入处以此为准)--| 段落 | 时间 | 说明 |-|---|---|---|-| 开机 / 光标 ×3 / 片名 | 0–7.2 | 0.35 开机一线亮起;1.2/1.8/2.4 光标;3.0 起逐字打片名 |-| 拉远成开机自检 + 日期滚轮 | 7.2–11.4 | 右侧新增 LINK 面板:一条平的"波形" = 40 年无信号(伏笔) |-| 旁白 1 | 11.6–15.5 | |-| 握手(音乐硬切) | 16.2–17.45 | 乱码冲刷屏幕,LINK 面板 CARRIER DETECT |-| 消息 / 屏息 | 17.6–21.4 | 人的打字节奏;19.8/20.4/21.0 光标 |-| 旁白 2 + 找摄像头 | 21.4–26.4 | NOT FOUND ×3 在 24.6/25.2/25.8 三拍上;26.4 NO OPTICAL DEVICES |-| 旁白 3 | 26.6–29.5 | |-| 推近 + 打回信 + 静默 | 29.6–33.6 | 32.1–33.6 近乎无声 |-| 字母掉落成画 | 33.6–37.2 | 先铺月面(自下而上),地球的字母先全部落进地平线后,再自下而上"升起" |-| 变色 / 地球升起 | 37.2–40.2 | 37.2 小节重拍变蓝白 |-| 分形推进 + 旁白 4 | 40.2–47.6 | 41.6–42.6 停在"整个 M 清楚"的构图;再推到日志可读 |-| 发送 / 等待 / `:)` | 48.0–51.6 | 日志栏显示发送进度和 AWAITING REPLY |-| 旁白 5 + 退出屏幕 | 52.4–54.8 | |-| 片尾卡 / 关机 | 55.2–59.8 | 58.6 关机收成一点 |--关卡 1 意见的落实:地球改为经纬度大陆轮廓(非洲 + 欧洲),海洋稀疏暗字、陆地密亮字、云中间密度,清楚的明暗交界线、暗面只留点号;月面中景远稀暗、近密亮;分形推进里 M 内部满亮、外部压到 3–6%、邻居 20%,并停 1 秒;退出镜头删掉墙缝/管线/杯子/线缆,只留终端、空椅子剪影、放大的舷窗(地球约 19 行高)。diff --git a/styles/ascii-crt/demo/voices_raw/l1.wav b/styles/ascii-crt/demo/voices_raw/l1.wavdeleted file mode 100644index 71b05f9..0000000Binary files a/styles/ascii-crt/demo/voices_raw/l1.wav and /dev/null differdiff --git a/styles/ascii-crt/demo/voices_raw/l2.wav b/styles/ascii-crt/demo/voices_raw/l2.wavdeleted file mode 100644index 39cf0c4..0000000Binary files a/styles/ascii-crt/demo/voices_raw/l2.wav and /dev/null differdiff --git a/styles/ascii-crt/demo/voices_raw/l3.wav b/styles/ascii-crt/demo/voices_raw/l3.wavdeleted file mode 100644index eeb3db9..0000000Binary files a/styles/ascii-crt/demo/voices_raw/l3.wav and /dev/null differdiff --git a/styles/ascii-crt/demo/voices_raw/l4.wav b/styles/ascii-crt/demo/voices_raw/l4.wavdeleted file mode 100644index e2c469c..0000000Binary files a/styles/ascii-crt/demo/voices_raw/l4.wav and /dev/null differdiff --git a/styles/ascii-crt/demo/voices_raw/l5.wav b/styles/ascii-crt/demo/voices_raw/l5.wavdeleted file mode 100644index 17d7078..0000000Binary files a/styles/ascii-crt/demo/voices_raw/l5.wav and /dev/null differdiff --git a/styles/ascii-crt/style.json b/styles/ascii-crt/style.jsonnew file mode 100644index 0000000..eec6227--- /dev/null+++ b/styles/ascii-crt/style.json@@ -0,0 +1,18 @@+{+ "slug": "ascii-crt",+ "num": "22",+ "en": "ASCII / CRT Terminal",+ "cn": "ASCII / CRT 终端",+ "category_en": "Graphic & Type",+ "category_cn": "图形与排版",+ "film": "Tranquility.log",+ "line": "A moon-base AI wakes after forty years to a signal from Earth, and replies by drawing “home” in characters.",+ "line_cn": "月球基地的 AI 沉睡 40 年后被唤醒,用字符画出“家”来回复。",+ "uses": [+ "Developer tools",+ "Sci-fi",+ "Tech brands"+ ],+ "frame_sec": 50.23,+ "dur": 59.8+}diff --git a/styles/backrooms/DEMO.md b/styles/backrooms/DEMO.mdnew file mode 100644index 0000000..aca4d86--- /dev/null+++ b/styles/backrooms/DEMO.md@@ -0,0 +1,122 @@+# Liminal Found Footage — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Night Shift Orientation* (59.7 s) · `backrooms.mp4` · source in [`demo/`](demo/)+++## Story & structure++A new night-shift worker films his orientation walk through an endless office floor, following the printed rules and the PA. The original style notes, as written for this demo:++A single first-person **camcorder recording** (1990s VHS, 4:3) walking through an **empty, familiar-but-wrong interior**: mustard wallpaper, damp carpet, drop ceilings full of humming fluorescent panels, repeating forever. Nothing chases anyone. The dread comes from **emptiness, repetition, bureaucratic rules, and the camera's own machinery failing at the wrong moment**. The viewer should feel a chill on the back of the neck, not jump out of their seat.++**Never** use the word "Backrooms", wiki "Level" numbers, community entity names, or any existing organisation/logo inside the film. The genre name lives only in this file. Everything on screen — rules, forms, company voice, the "thing" — is original.++The recording medium is the storyteller. The demo used all five native powers and put the focus hunt at the emotional peak:++| Native power | How the demo used it |+|---|---|+| **Autofocus / auto-exposure hunting** | The camera "finds" something only while focus is correct. It is there on the first lock, gone on the second. AE lags after a blackout and the image pumps with gain noise. |+| **Tape tracking damage** | A tracking tear is a *cut the universe made*. Same framing afterwards, but the OSD clock jumped hours / the battery drained / one light is now dead. |+| **The OSD is plot** | REC dot, battery, date and time code are diegetic evidence. A camcorder title-generator can write the film's title over the first shot. |+| **Rules as text in frame** | Printed notices, PA announcements in a calm corporate voice. Rules start ordinary and drift wrong; two of them contradict each other; the last one addresses the viewer. |+| **Emptiness and repetition** | The same notice appears again in a different place; the same room with one detail changed; a corridor that runs into fog. Emptiness itself is the threat. |++How we framed the topic (the same trick works for others): turn the topic into **an orientation, a procedure, or a checklist** that someone records on tape — a new job's first shift, a building inspection, a moving-day walkthrough, a school's safety drill, a hotel's night audit. Write 5–6 rules. Let the medium betray the rules.++**Demo emotional arc (59.7 s):** boring normal (≈20 s of almost nothing) → a small wrongness (a contradiction, a repeated notice) → a rule is tested (lights flicker) → seeing / not seeing (focus hunt) → time removed (tracking tear) → a rule is broken (the exit) → the last rule turns to the audience → REC off. One subject (the camera operator — heard, never seen above the shoes), one goal (follow the procedure), one turn (the time code proves he is no longer in "normal").++## Shots++| Beat | Camera |+|---|---|+| Opening | Tape rolls in, AWB swings blue→yellow, AF finds a notice on a wall; camcorder title over it |+| Reveal of space | Slow pan off the notice to a corridor of partitions and lights receding into fog |+| Routine | Walking POV, glance down at shoes on damp carpet; no events for ~20 s |+| The contradiction | Crouch to a repeated notice; hold ≥4 s with nothing covering the text |+| Obeying a rule | Snap down to the shoes; let the light on the carpet change instead of showing the ceiling |+| Peak | Zoom + autofocus hunt down the corridor; the figure exists only in the ~0.5 s of correct focus |+| Time cut | Tracking tear, then the *identical* framing — only the OSD changed |+| Breaking a rule | Turn a corner to the red EXIT; hold still in total silence; push in; door opens on its own |+| Ending | Final notice in focus ≥3 s → REC off: freeze, tear, black |++**The "thing"** is never a close-up: a 2.4 m silhouette (a colleague who is wrong by 15–40 %: small head, long tilted neck, narrow high shoulders, arms to the knee), drawn as an organic Canvas2D silhouette on a camera-facing billboard, ~33 m away in a stretch of dead lights with only dim light far behind it. Slow small wave (3.6 s cycle). Target: *you can tell it is waving, you cannot count fingers.* Exclude the billboard from the GTAO pre-pass (`mesh.isPoints = true`) or it stamps a dark rectangle.++Demo motion numbers: 0.72 m stride, head bob 3 cm, sway 1.8 cm, roll ±0.8°, breathing 0.27 Hz, tremor at 1, 3.5 and 9 Hz; looking down at pitch ≈ −1.2 rad with the camera pushed 0.2 m forward; zoom FOV 52° → 27° with aperture ×5; three 0.1 s blackouts per flicker, AE lag ~0.45 s; doors open in 1.3 s. The original motion section:++- **One continuous handheld take.** Cuts happen only where the tape breaks: power-on roll-in, tracking tear, REC off.+- Handheld = walking gait (0.72 m stride, head bob 3 cm, sway 1.8 cm, roll ±0.8°) + breathing (0.27 Hz) + tremor noise at 1, 3.5 and 9 Hz whose amplitude rises with a **fear** curve. At the "held breath" moment **freeze all of it**.+- Looking down: pitch ≈ −1.2 rad, camera pushed 0.2 m forward — only the shoe toes and carpet in frame, never trouser legs.+- Autofocus is the DOF focus distance animated with overshoot: blur → lock → slip → lock. Blur comes from pulling focus *near* (a far target barely blurs when focus overshoots to infinity). Zoom narrows FOV 52°→27° and raises aperture ×5.+- Lights flicker as three 0.1 s blackouts; AE brightens with ~0.45 s lag afterwards.+- Doors open by themselves, slowly (1.3 s, eased).++## Score structure++There is no score. The sound design as built for the demo:++- **No score.** Only what the tape would have recorded.+- **Fluorescent bed**: 120 Hz + harmonics (1, .55, .42, .22, .16, .06 at ×1…×7), a buzzy band-passed square component, a faint ~9 kHz ballast whine, random bad-tube "zzz" bursts; gated by the same light curve as the picture; +3 dB closer in small rooms.+- **PA**: calm corporate voice (Kokoro `af_bella`, speed 0.82–0.84) through a "ceiling speaker": band-pass ~310–3500 Hz, cone resonance around 1.3 kHz, tanh saturation, room reverb — keep it dry enough for whisper to transcribe (too much reverb made "night shift" into "my church"). Original two-note chime (vibraphone E5→C5) before every rule; after the time jump both chime and voice drift flat with tape wow.+- **Operator**: 3–4 short lines (`am_michael`), low level, proximity bass, a breath/air layer following the voice envelope, compressed. Kokoro cannot truly whisper — "speaking quietly" is the goal. Close-mic breathing whose rate follows the fear curve; held breath then one long exhale.+- **Diegetic hold music**: an original easy-listening loop (here 88 BPM F major, vibraphone melody, clean-guitar comps on 2 & 4, finger bass), band-passed and drowned in reverb as if through walls, read with a slowing tape-speed curve (1.00 → 0.97 → 0.89) and growing wow. It cuts out during blackouts and dies at the silence, never to return.+- **Foley**: damp-carpet steps (60–85 Hz thud + small wet 0.9–2.6 kHz squelch), cloth rustles on turns, camcorder clack + motor on REC on/off, zoom servo whine, AF motor ticks, ballast "tink" + arc buzz on each flicker, a barely audible drag overhead, door latch + stick-slip hinge creak + air push.+- **Silence is the climax**: one full second of digital zero (including tails) when the exit appears; caption `[SILENCE]`. The only allowed scare is soft: all ballasts restriking at once with a low thunk when sound returns.+- Low drone (35–55 Hz brown noise + 41/43.5 Hz beating) rising from the time jump to the silence. Duck bed and music ≈ −8 dB under voices. Loudness −14 LUFS, grain 0 (the noise is in the picture).++## Palette & props++- **Frame**: 4:3 image pillarboxed in 1920×1080 (black side bars). Render the 3D at **720×540** and let the VHS pass upscale — low resolution is part of the look and hides CG cleanliness.+- **Space**: axis-aligned partition walls 0.16 m thick on a 2.4 m grid, random gaps and stubs, occasional square pillars; ceiling 2.70 m; drop-ceiling tiles 0.6×1.2 m; recessed troffers every 2.4 m (0.6×1.2 m prismatic panels). A hand-authored route (start room → long corridor → side corridor → one small room) inside procedurally filled offices so every doorway shows more empty rooms.+- **Lighting = thousands of lights, no shadows**: store every troffer's colour/intensity in a 128×128 float **DataTexture**; each fragment sums the nearest 5×5 panels (emitter cosine × Lambert / (d²+0.3)) plus a bounce term from the same neighbourhood. No occlusion — backrooms light is flat. Per-light variation: ±8 % warm/cool, +0–7 % green, 3.5 % dead, 2.5 % flickering. GTAO (radius ≈0.55 m) darkens wall/floor seams.+- **Fog follows local light**: fog colour × (local bounce light / average). Where lights are dead the haze is dark too, so a silhouette there reads as a *hole in the light*. Scene background = fog × 0.15, so corridors dissolve into darkness instead of a bright wall.+- **Palette** (albedo, sRGB): wallpaper `#d5bd66` with darker stripes `rgba(140,112,40,.7)` and a diamond column, every roll faded differently; baseboard `#4d3d26`; carpet `#8c763c` mottled, damp patches ×0.6 with faint specular; ceiling tile `#d9d3b8`, grid `#e6e1cf`; troffer diffuser `#fbfaf0` at emissive ×5; the **only saturated colour is the red EXIT sign** (`#ff2a1a`, emissive ×9 so it blooms).+- **Restrained decay** (clean is part of the style — never make it a ruin): water tide-marks at the foot of *some* wall runs, nicotine-yellow band under the ceiling, occasional peeling seam (≈7 % of rolls, pale paper-back triangle + shadow), rare small stains, ~4 % yellowed ceiling tiles, ~2 % return-air grilles, <1 % missing tiles (black holes), dead insects inside diffusers.+- **Notices**: office laser-print on yellowed paper: IBM Plex Sans Condensed headers ("FLOOR STAFF — PLEASE READ", "FORM NS-01 (REV. 9)"), numbered rules in Plex Sans 600, "Thank you for your cooperation. — Management". Pinned to cork or taped to wallpaper. For close-ups, **lower the camera so the lens is parallel to the page** — pitching down at a vertical sheet shears the words into fake italics.+- **VHS camcorder pass** (custom shader, *not* a CRT): per-line time-base jitter (small; low-frequency wobble ≤0.25 px or text skews), head-switching band on the bottom 8 lines, tracking tear on demand; barrel distortion 0.07 + vignette 0.42 applied to the image but **not** to the OSD; luma bandwidth limit (Gaussian σ≈1.25 px @720) + edge-enhancement ringing (sharp 0.9); chroma averaged over ±10 px and shifted 1.6 px right; bright lights smear to the right; AWB tint drifting; AGC noise (streaky, stronger in darks); 0–2 dropout lines per frame; black lift 0.045, soft highlight clip. Noise runs at 30 fps (tape rate) even though output is 24 fps. No scanlines, no RGB mask.+- **OSD**: a hand-made 5×7 bitmap font with a black outline: `● REC` top-left, battery top-right, `PM 11:58` / `SEP.27.1996` bottom-right. The title uses the same font ×2 like a camcorder title generator.++## Titles & subtitles++- **CEA-608-style closed captions**: IBM Plex Mono 600, 42 px, white on a solid black box per row, ≤32 characters per row, centred inside the 4:3 frame just above the OSD clock. They are not affected by tape noise (the TV decodes them).+- Speaker marks: `[PA]` prefix for announcements; italics for the operator (first line tagged `(whispering)`); SDH sound descriptions in brackets: `[FLUORESCENT LIGHTS HUMMING]`, `[LIGHTS FLICKER]`, `[TAPE NOISE]`, `[SILENCE]`.+- Rules on notices are *not* captioned — they are the picture. Keep text readable at 1080p and give each notice ≥3–4 s uncovered.+- Title: camcorder title-generator bitmap text typed over the first shot.++## End card++Black, bitmap-font title, style name, `LemoLab × Claude Opus 5.5`. This sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/backrooms/demo/+ story.js timeline (single source of truth), camera keyframes, focus/aperture/fear curves, OSD clock, time warp W()+ world.js layout (walls/pillars/route), light DataTexture, custom lighting/fog shaders, props (notices, EXIT, door, outlets)+ tex.js procedural textures (wallpaper, carpet, ceiling, troffer, notices, EXIT, cork, outlet)+ figures.js operator's shoes, the silhouette billboard thing2d.js organic silhouette drawing+ vhs.js VHS camcorder ShaderPass (pillarbox, jitter, tear, luma/chroma, AGC, dropouts)+ osd.js 5×7 bitmap font, REC/battery/clock, title generator subs.js 608 captions+ main.js renderer, post chain (core/three/post.js GTAO+DOF+bloom → VHS), handheld rig, events+ sheet.js silhouette design sheet (?sheet=1) music/muzak.py original hold music (sampler)+ mix.py all sound → mix.wav tools/mux.sh core mux with CRF parameter build.sh+```++1. `node core/render/still.mjs styles/backrooms/demo <t…> [--q nosub=1|raw=1|sheet=1]` — review stills.+2. `sh styles/backrooms/demo/build.sh` — TTS → whisper → music → events → mix → whisper on processed voices → render (1433 frames ≈ 80 s with 3 workers) → mux (−14 LUFS) → SRT → poster/styleframe.++### Pitfalls we hit++- A fully bright scene reads as a hospital corridor. Break walls into partitions with gaps; let far areas fall dark.+- Lights leak through walls (no occlusion) — a "dead zone" needs all lights within ±5 m across dead, and the corridor behind it dim too, or the figure is framed against a bright window.+- The scene background showed as a bright rectangle at the corridor's end — set background = fog × 0.15.+- A uniform fog colour lifts silhouettes to grey; make fog follow local light.+- Low-frequency line wobble in the VHS pass skews text; keep it ≤0.25 px. Camera pitched down at a notice made words look italic — lower the camera instead.+- Capsule-built figures read as toys / stick men. Draw the silhouette as organic curves on a billboard.+- Legs from primitives look like tubes; show only shoe toes (extruded footprint outline with bevel, lighter sole, laces).+- Emissive red at ×3 never reached the bloom threshold (luminance of pure red is low); use ×9.+- Normalising a filtered chime by the *pre-filter* peak blew the PA bus up by 16 dB — normalise by the processed signal.+- Heavy PA reverb destroys intelligibility; check every processed line with whisper and the full mix too.+- Time-compressing a finished timeline: write keyframes in "original" time and map them through one piecewise-linear warp `W()`; remember to warp any hard-coded times elsewhere.+- VHS noise makes files big: CRF 24 → ~47 MB for 60 s.diff --git a/styles/backrooms/STYLE.md b/styles/backrooms/STYLE.mdindex d468593..b2a3c98 100644--- a/styles/backrooms/STYLE.md+++ b/styles/backrooms/STYLE.md@@ -1,118 +1,123 @@# Liminal Found Footage — Style Prompt> Camcorder tapes recovered from empty, endless, fluorescent-lit spaces. Rules instead of monsters.-> Genre reference: "the Backrooms" internet folklore and new-weird / rule-horror. Demo: *Night Shift Orientation* (59.7 s) · `backrooms.mp4` · source in `demo/`+> Genre reference (grammar only): "the Backrooms" internet folklore and new-weird / rule-horror; 1990s consumer camcorder footage. **Never** use the word "Backrooms", wiki "Level" numbers, community entity names, or any existing organisation or logo inside the film. Everything on screen (rules, forms, company voice, any presence) is original.-You are directing a 45–60 second film in the **Liminal Found Footage** style. The user gives you a topic. You decide everything else — story, rules, route, sound, captions — and deliver a finished film. Follow this guide.+Suits films of 45–60 s.----+## 1. Essence, and what it is not-## 1. What this style is+- **One first-person camcorder recording** (1990s VHS, 4:3), handheld, continuous.+- **An empty, familiar-but-wrong interior** that repeats: an office, a hotel floor, a school, a mall, a parking level, a hospital wing. Humming fluorescent light, no people.+- **Dread from emptiness, repetition, bureaucratic rules, and the camera's own machinery failing at the wrong moment.** Nothing chases anyone. A chill on the back of the neck, not a jump.+- **The medium is the storyteller**: focus, exposure, tape damage and the on-screen display carry the plot.-A single first-person **camcorder recording** (1990s VHS, 4:3) walking through an **empty, familiar-but-wrong interior**: mustard wallpaper, damp carpet, drop ceilings full of humming fluorescent panels, repeating forever. Nothing chases anyone. The dread comes from **emptiness, repetition, bureaucratic rules, and the camera's own machinery failing at the wrong moment**. The viewer should feel a chill on the back of the neck, not jump out of their seat.+Not a horror film (no monster close-ups, no gore, no jump scares, no score stings), not an ASCII/CRT terminal piece (the artefacts are tape and lens, not phosphor and scanlines), not a ruin (clean is part of the style).-**Never** use the word "Backrooms", wiki "Level" numbers, community entity names, or any existing organisation/logo inside the film. The genre name lives only in this file. Everything on screen — rules, forms, company voice, the "thing" — is original.+## 2. Materials & rendering-## 2. Story: what fits this style+- **Frame**: 4:3 pillarboxed in 1920×1080. Render 3D at low resolution (e.g. 720×540) and let the VHS pass upscale; low resolution hides CG cleanliness.+- **Space**: axis-aligned partitions on a grid with random gaps and stubs, pillars, a drop ceiling of tiles with recessed light panels at regular intervals. A hand-authored route through procedurally filled space, so every doorway shows more emptiness.+- **Lighting = thousands of lights, no shadows**: store every panel's colour and intensity in a float texture; each fragment sums the nearest panels (emitter cosine × Lambert / (d² + ε)) plus a bounce term. No occlusion: this light is flat. Per-light variation (a few % warm/cool/green), a few % dead, a few % flickering. Ambient occlusion darkens seams.+- **Fog follows local light**: fog colour × (local light / average). Where lights are dead the haze is dark, so a silhouette there reads as a *hole in the light*. Background = fog × ~0.15, so corridors dissolve into darkness, never a bright wall.+- **Restrained decay**: tide-marks at the foot of some walls, a discoloured band under the ceiling, rare peeling seams, a few yellowed or missing tiles, dead insects in diffusers. Percentages in single digits.+- **Printed matter**: office laser-print on yellowed paper, condensed sans headers, form numbers and revisions, numbered rules, a polite closing line from "Management". Pinned or taped.+- **VHS camcorder pass** (not a CRT): small line jitter (≤ 0.25 px low-frequency wobble), a head-switching band, tracking tears on demand, barrel + vignette on the image but **not** the OSD, luma blur + edge ringing, chroma smeared right, light smear, drifting white balance, AGC noise in darks, dropouts, lifted blacks, soft clip. Noise at tape rate (30 fps). No scanlines, no RGB mask.+- **OSD**: a hand-made bitmap font with a black outline: REC dot, battery, time and date. A camcorder title generator uses the same font, larger.-The recording medium is the storyteller. Five native powers — use at least three, put the strongest at the emotional peak:+## 3. Colour logic-| Native power | Story use |-|---|---|-| **Autofocus / auto-exposure hunting** | The camera "finds" something only while focus is correct. It is there on the first lock, gone on the second. AE lags after a blackout and the image pumps with gain noise. |-| **Tape tracking damage** | A tracking tear is a *cut the universe made*. Same framing afterwards, but the OSD clock jumped hours / the battery drained / one light is now dead. |-| **The OSD is plot** | REC dot, battery, date and time code are diegetic evidence. A camcorder title-generator can write the film's title over the first shot. |-| **Rules as text in frame** | Printed notices, PA announcements in a calm corporate voice. Rules start ordinary and drift wrong; two of them contradict each other; the last one addresses the viewer. |-| **Emptiness and repetition** | The same notice appears again in a different place; the same room with one detail changed; a corridor that runs into fog. Emptiness itself is the threat. |+- **One dominant sickly hue** from the location's materials (mustard wallpaper, institutional green, hospital blue, beige laminate), with a darker trim and a mottled floor of the same family; ceiling and light panels near-white and slightly warm.+- **Exactly one saturated colour**: a signal such as a red alarm lamp, a green emergency sign, an amber warning light. It is the only thing that blooms (drive its emissive high enough to cross the bloom threshold).+- White balance drifts; colour is never graded clean.+- Example material palettes: wallpaper `#d5bd66`, trim `#4d3d26`, carpet `#8c763c`; pool tile `#9fc7c0`, grout `#e6ece6`, water `#5e8f96`; school corridor `#b9c49a`, lockers `#6f7f66`, linoleum `#a89a7d`.-Adapting any topic: turn the topic into **an orientation, a procedure, or a checklist** that someone records on tape — a new job's first shift, a building inspection, a moving-day walkthrough, a school's safety drill, a hotel's night audit. Write 5–6 rules. Let the medium betray the rules.+## 4. Type & subtitles-**Emotional arc for 45–60 s:** boring normal (≈20 s of almost nothing) → a small wrongness (a contradiction, a repeated notice) → a rule is tested (lights flicker) → seeing / not seeing (focus hunt) → time removed (tracking tear) → a rule is broken (the exit) → the last rule turns to the audience → REC off. One subject (the camera operator — heard, never seen above the shoes), one goal (follow the procedure), one turn (the time code proves he is no longer in "normal").+- **Closed captions (CEA-608 style)**: a monospace (e.g. IBM Plex Mono 600) ~42 px, white on a solid black box per row, ≤ 32 characters, centred inside the 4:3 frame above the OSD. Untouched by tape noise (the TV decodes them). Hold ≥ max(1.8 s, speech + 0.6 s).+- **Speaker marks**: `[PA]` for announcements, italics for the operator, SDH descriptions in brackets (`[LIGHTS FLICKER]`, `[TAPE NOISE]`, `[SILENCE]`).+- **Rules on notices are not captioned**: they are the picture. Readable at 1080p, ≥ 3–4 s uncovered. For close-ups **lower the camera so the lens is parallel to the page**; pitching down at a vertical sheet shears words into fake italics.+- The **title** is camcorder title-generator text over the first shot.-## 3. Visual language+## 5. Motion quality-- **Frame**: 4:3 image pillarboxed in 1920×1080 (black side bars). Render the 3D at **720×540** and let the VHS pass upscale — low resolution is part of the look and hides CG cleanliness.-- **Space**: axis-aligned partition walls 0.16 m thick on a 2.4 m grid, random gaps and stubs, occasional square pillars; ceiling 2.70 m; drop-ceiling tiles 0.6×1.2 m; recessed troffers every 2.4 m (0.6×1.2 m prismatic panels). A hand-authored route (start room → long corridor → side corridor → one small room) inside procedurally filled offices so every doorway shows more empty rooms.-- **Lighting = thousands of lights, no shadows**: store every troffer's colour/intensity in a 128×128 float **DataTexture**; each fragment sums the nearest 5×5 panels (emitter cosine × Lambert / (d²+0.3)) plus a bounce term from the same neighbourhood. No occlusion — backrooms light is flat. Per-light variation: ±8 % warm/cool, +0–7 % green, 3.5 % dead, 2.5 % flickering. GTAO (radius ≈0.55 m) darkens wall/floor seams.-- **Fog follows local light**: fog colour × (local bounce light / average). Where lights are dead the haze is dark too, so a silhouette there reads as a *hole in the light*. Scene background = fog × 0.15, so corridors dissolve into darkness instead of a bright wall.-- **Palette** (albedo, sRGB): wallpaper `#d5bd66` with darker stripes `rgba(140,112,40,.7)` and a diamond column, every roll faded differently; baseboard `#4d3d26`; carpet `#8c763c` mottled, damp patches ×0.6 with faint specular; ceiling tile `#d9d3b8`, grid `#e6e1cf`; troffer diffuser `#fbfaf0` at emissive ×5; the **only saturated colour is the red EXIT sign** (`#ff2a1a`, emissive ×9 so it blooms).-- **Restrained decay** (clean is part of the style — never make it a ruin): water tide-marks at the foot of *some* wall runs, nicotine-yellow band under the ceiling, occasional peeling seam (≈7 % of rolls, pale paper-back triangle + shadow), rare small stains, ~4 % yellowed ceiling tiles, ~2 % return-air grilles, <1 % missing tiles (black holes), dead insects inside diffusers.-- **Notices**: office laser-print on yellowed paper: IBM Plex Sans Condensed headers ("FLOOR STAFF — PLEASE READ", "FORM NS-01 (REV. 9)"), numbered rules in Plex Sans 600, "Thank you for your cooperation. — Management". Pinned to cork or taped to wallpaper. For close-ups, **lower the camera so the lens is parallel to the page** — pitching down at a vertical sheet shears the words into fake italics.-- **VHS camcorder pass** (custom shader, *not* a CRT): per-line time-base jitter (small; low-frequency wobble ≤0.25 px or text skews), head-switching band on the bottom 8 lines, tracking tear on demand; barrel distortion 0.07 + vignette 0.42 applied to the image but **not** to the OSD; luma bandwidth limit (Gaussian σ≈1.25 px @720) + edge-enhancement ringing (sharp 0.9); chroma averaged over ±10 px and shifted 1.6 px right; bright lights smear to the right; AWB tint drifting; AGC noise (streaky, stronger in darks); 0–2 dropout lines per frame; black lift 0.045, soft highlight clip. Noise runs at 30 fps (tape rate) even though output is 24 fps. No scanlines, no RGB mask.-- **OSD**: a hand-made 5×7 bitmap font with a black outline: `● REC` top-left, battery top-right, `PM 11:58` / `SEP.27.1996` bottom-right. The title uses the same font ×2 like a camcorder title generator.+- **One continuous handheld take.** Cuts happen only where the tape breaks: power-on roll-in, tracking tear, REC off.+- **Handheld** = walking gait (head bob a few cm, sway, small roll) + breathing (~0.27 Hz) + tremor noise at a few frequencies whose amplitude follows a **fear** curve. At a held breath, **freeze all of it**.+- **Looking down** shows only shoe toes and floor, never legs.+- **Autofocus** = focus distance animated with overshoot: blur → lock → slip → lock. Blur comes from pulling focus *near*. Zoom narrows the FOV and opens the aperture.+- **Lights flicker** as short blackouts (~0.1 s); auto-exposure catches up with a lag (~0.45 s) and gain noise pumps.+- Things move by themselves slowly (a door over >1 s, eased), never snap.++## 6. Camera grammar++A vocabulary, not a route. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Walking POV down a corridor | routine, the endless | establishing the space; time passing |+| Slow pan off a detail to the space | scale; the space goes on | a reveal; a first look |+| Glance down at the feet | obedience, avoidance | obeying a rule; not looking |+| Crouch and hold on printed text | reading; bureaucracy | a rule; a contradiction |+| Zoom + focus hunt into the distance | seeing / not seeing | a presence; a doubt |+| Identical framing after a tear, only the OSD changed | time removed | a jump; a loss |+| Turn a corner, hold still | a threshold | an exit; a choice |+| Slow push-in with no sound | the pull of something | a door; a sign |+| Backing away while filming | retreat, fear | leaving a room; a rule broken |+| Camera set down on a surface, static, recording alone | abandonment | the operator gone; a long wait |+| Whip toward a sound, then nothing | expectation denied | a noise with no source |++Framing: text readable and uncovered; any presence small, far, and in a region of dead lights. Transitions: tape events only.++## 7. Sound palette++- **No score.** Only what the tape would have recorded. Music exists only inside the world (hold music, a radio through walls, a tinny PA jingle), filtered and reverberant, possibly slowing with tape wow.+- **Fluorescent bed**: 120 Hz (or 100 Hz) + harmonics, a buzzy band-passed component, a faint ballast whine, bad-tube bursts; gated by the same light curve as the picture; closer in small rooms.+- **PA voice**: calm, corporate, through a ceiling speaker (band-pass ~300–3500 Hz, cone resonance, saturation, room reverb), dry enough to stay intelligible. A short original chime before announcements; after a time jump, chime and voice may drift flat.+- **Operator**: a few short, quiet lines with proximity bass and breath; breathing whose rate follows fear; a held breath and one long exhale.+- **Foley by material**: carpet steps (low thud + wet squelch) or hard-floor squeaks, cloth rustles, camcorder clack and motor, zoom servo, AF ticks, ballast tink on flickers, a stick-slip hinge, a drag overhead, a vending machine, a pipe.+- **Silence**: digital zero for a second or more (tails included), captioned `[SILENCE]`, is the strongest tool. A soft scare at most: everything restriking at once when sound returns.+- **Drone** options: a low brown-noise band with beating sines rising slowly; the room tone itself pitch-shifting; nothing.+- **Mix**: bed and in-world music ≈ −8 dB under voices. −14 LUFS; no added grain (the noise is in the picture).++## 8. Native moves++A menu: use the ones your story needs.++- **Autofocus / auto-exposure hunting.** Something is there only while focus is correct. *Fits content like:* a missing pet on a hotel floor; a figure in an empty stadium; a shape at the end of a hospital corridor.+- **Tape tracking damage.** A tear is a cut the universe made; same framing after, but the clock jumped, the battery drained, a light died. *Fits content like:* a night-watch log; a lost weekend in a mall; a house that ages between tapes.+- **The OSD is plot.** REC, battery, date and time code are evidence. *Fits content like:* an alibi; a countdown; a dated inspection.+- **Rules as text in frame.** Notices and PA announcements start ordinary, drift wrong, contradict each other, and finally address the viewer. *Fits content like:* a pool's safety rules; a school fire drill; a museum after hours.+- **Emptiness and repetition.** The same notice in a different place; the same room with one detail changed; a corridor into fog. *Fits content like:* a moving-day walkthrough; an airport at 4 a.m.; an office after layoffs.+- **The thing that is almost human.** A distant silhouette wrong by 15–40 % (small head, long neck, narrow high shoulders, long arms), drawn as organic curves on a billboard, moving slowly. *Fits content like:* a mannequin that is not; a night guard; a reflection that lags.++## 9. Pitfalls of the medium++- **A fully bright scene reads as a hospital corridor** → partitions with gaps; far areas fall dark.+- **Lights leak through walls** (no occlusion) → a dead zone needs every light within ~±5 m dead, and the space behind it dim.+- **Background shows as a bright rectangle** at a corridor's end → background = fog × ~0.15.+- **Uniform fog lifts silhouettes to grey** → fog follows local light.+- **Line wobble skews text; pitching down italicises it** → ≤ 0.25 px wobble; lower the camera.+- **Primitive-built figures read as toys**, primitive legs as tubes → organic silhouettes; show only shoe toes.+- **Pure red never blooms** at low emissive (low luminance) → drive it far higher.+- **Normalising a filtered signal by its pre-filter peak** blows up a bus → normalise the processed signal.+- **Heavy PA reverb destroys intelligibility** → ASR-check processed lines and the full mix.+- **Billboards stamp dark rectangles** in AO → exclude them.+- **Time-compressing a finished timeline** → keyframes in original time mapped through one warp function, including hard-coded times elsewhere.++## 10. Engine++`demo/world.js` (layout, light DataTexture, custom lighting and fog shaders, props), `demo/tex.js` (procedural wallpaper, carpet, ceiling, panels, notices, signs), `demo/vhs.js` (VHS camcorder ShaderPass), `demo/osd.js` (bitmap font, REC, battery, clock, title generator), `demo/subs.js` (608 captions), `demo/thing2d.js` (organic silhouette), `demo/story.js` (timeline, camera keyframes, focus / fear curves, time warp), `demo/main.js` (renderer, post chain GTAO + DOF + bloom → VHS, handheld rig). File map and build: [DEMO.md](DEMO.md#build-notes).++## 11. Variation space++You decide the location and its materials, the procedure or reason for filming, the rules, the route, the presence (or none), the signal colour, the opening, the ending and the length.++All far from our demo:++- Structures: **two tapes** (the same route filmed twice, a year apart; the second tape finds what changed); **a real-estate walkthrough** where every room is described cheerfully by the operator while the house keeps adding rooms; **a checklist read aloud** item by item, each item ticked on a clipboard in frame, until an item is not on the list.+- Openings: **mid-sentence** (the tape starts with the operator already talking, tracking still rolling in); **a test pattern** and a date slate before the camera is picked up; **the lens cap on**, sound only, until the cap comes off.+- Endings: **battery dies** (the icon blinks, the frame freezes on the dead cell); **the camera is set down** and keeps recording an empty room; **the tape loops** back to the first shot, now with the operator's shoes visible in it.-## 4. Motion language+----- **One continuous handheld take.** Cuts happen only where the tape breaks: power-on roll-in, tracking tear, REC off.-- Handheld = walking gait (0.72 m stride, head bob 3 cm, sway 1.8 cm, roll ±0.8°) + breathing (0.27 Hz) + tremor noise at 1, 3.5 and 9 Hz whose amplitude rises with a **fear** curve. At the "held breath" moment **freeze all of it**.-- Looking down: pitch ≈ −1.2 rad, camera pushed 0.2 m forward — only the shoe toes and carpet in frame, never trouser legs.-- Autofocus is the DOF focus distance animated with overshoot: blur → lock → slip → lock. Blur comes from pulling focus *near* (a far target barely blurs when focus overshoots to infinity). Zoom narrows FOV 52°→27° and raises aperture ×5.-- Lights flicker as three 0.1 s blackouts; AE brightens with ~0.45 s lag afterwards.-- Doors open by themselves, slowly (1.3 s, eased).--## 5. Camera language--| Beat | Camera |-|---|---|-| Opening | Tape rolls in, AWB swings blue→yellow, AF finds a notice on a wall; camcorder title over it |-| Reveal of space | Slow pan off the notice to a corridor of partitions and lights receding into fog |-| Routine | Walking POV, glance down at shoes on damp carpet; no events for ~20 s |-| The contradiction | Crouch to a repeated notice; hold ≥4 s with nothing covering the text |-| Obeying a rule | Snap down to the shoes; let the light on the carpet change instead of showing the ceiling |-| Peak | Zoom + autofocus hunt down the corridor; the figure exists only in the ~0.5 s of correct focus |-| Time cut | Tracking tear, then the *identical* framing — only the OSD changed |-| Breaking a rule | Turn a corner to the red EXIT; hold still in total silence; push in; door opens on its own |-| Ending | Final notice in focus ≥3 s → REC off: freeze, tear, black |--**The "thing"** is never a close-up: a 2.4 m silhouette (a colleague who is wrong by 15–40 %: small head, long tilted neck, narrow high shoulders, arms to the knee), drawn as an organic Canvas2D silhouette on a camera-facing billboard, ~33 m away in a stretch of dead lights with only dim light far behind it. Slow small wave (3.6 s cycle). Target: *you can tell it is waving, you cannot count fingers.* Exclude the billboard from the GTAO pre-pass (`mesh.isPoints = true`) or it stamps a dark rectangle.--## 6. Sound--- **No score.** Only what the tape would have recorded.-- **Fluorescent bed**: 120 Hz + harmonics (1, .55, .42, .22, .16, .06 at ×1…×7), a buzzy band-passed square component, a faint ~9 kHz ballast whine, random bad-tube "zzz" bursts; gated by the same light curve as the picture; +3 dB closer in small rooms.-- **PA**: calm corporate voice (Kokoro `af_bella`, speed 0.82–0.84) through a "ceiling speaker": band-pass ~310–3500 Hz, cone resonance around 1.3 kHz, tanh saturation, room reverb — keep it dry enough for whisper to transcribe (too much reverb made "night shift" into "my church"). Original two-note chime (vibraphone E5→C5) before every rule; after the time jump both chime and voice drift flat with tape wow.-- **Operator**: 3–4 short lines (`am_michael`), low level, proximity bass, a breath/air layer following the voice envelope, compressed. Kokoro cannot truly whisper — "speaking quietly" is the goal. Close-mic breathing whose rate follows the fear curve; held breath then one long exhale.-- **Diegetic hold music**: an original easy-listening loop (here 88 BPM F major, vibraphone melody, clean-guitar comps on 2 & 4, finger bass), band-passed and drowned in reverb as if through walls, read with a slowing tape-speed curve (1.00 → 0.97 → 0.89) and growing wow. It cuts out during blackouts and dies at the silence, never to return.-- **Foley**: damp-carpet steps (60–85 Hz thud + small wet 0.9–2.6 kHz squelch), cloth rustles on turns, camcorder clack + motor on REC on/off, zoom servo whine, AF motor ticks, ballast "tink" + arc buzz on each flicker, a barely audible drag overhead, door latch + stick-slip hinge creak + air push.-- **Silence is the climax**: one full second of digital zero (including tails) when the exit appears; caption `[SILENCE]`. The only allowed scare is soft: all ballasts restriking at once with a low thunk when sound returns.-- Low drone (35–55 Hz brown noise + 41/43.5 Hz beating) rising from the time jump to the silence. Duck bed and music ≈ −8 dB under voices. Loudness −14 LUFS, grain 0 (the noise is in the picture).--## 7. Subtitles & titles--- **CEA-608-style closed captions**: IBM Plex Mono 600, 42 px, white on a solid black box per row, ≤32 characters per row, centred inside the 4:3 frame just above the OSD clock. They are not affected by tape noise (the TV decodes them).-- Speaker marks: `[PA]` prefix for announcements; italics for the operator (first line tagged `(whispering)`); SDH sound descriptions in brackets: `[FLUORESCENT LIGHTS HUMMING]`, `[LIGHTS FLICKER]`, `[TAPE NOISE]`, `[SILENCE]`.-- Rules on notices are *not* captioned — they are the picture. Keep text readable at 1080p and give each notice ≥3–4 s uncovered.-- Title: camcorder title-generator bitmap text typed over the first shot. End card: black, bitmap-font title, style name, `LemoLab × Claude Opus 5.5`.--## 8. Pitfalls we hit--- A fully bright scene reads as a hospital corridor. Break walls into partitions with gaps; let far areas fall dark.-- Lights leak through walls (no occlusion) — a "dead zone" needs all lights within ±5 m across dead, and the corridor behind it dim too, or the figure is framed against a bright window.-- The scene background showed as a bright rectangle at the corridor's end — set background = fog × 0.15.-- A uniform fog colour lifts silhouettes to grey; make fog follow local light.-- Low-frequency line wobble in the VHS pass skews text; keep it ≤0.25 px. Camera pitched down at a notice made words look italic — lower the camera instead.-- Capsule-built figures read as toys / stick men. Draw the silhouette as organic curves on a billboard.-- Legs from primitives look like tubes; show only shoe toes (extruded footprint outline with bevel, lighter sole, laces).-- Emissive red at ×3 never reached the bloom threshold (luminance of pure red is low); use ×9.-- Normalising a filtered chime by the *pre-filter* peak blew the PA bus up by 16 dB — normalise by the processed signal.-- Heavy PA reverb destroys intelligibility; check every processed line with whisper and the full mix too.-- Time-compressing a finished timeline: write keyframes in "original" time and map them through one piecewise-linear warp `W()`; remember to warp any hard-coded times elsewhere.-- VHS noise makes files big: CRF 24 → ~47 MB for 60 s.--## 9. Production recipe (this repo)--```-styles/backrooms/demo/- story.js timeline (single source of truth), camera keyframes, focus/aperture/fear curves, OSD clock, time warp W()- world.js layout (walls/pillars/route), light DataTexture, custom lighting/fog shaders, props (notices, EXIT, door, outlets)- tex.js procedural textures (wallpaper, carpet, ceiling, troffer, notices, EXIT, cork, outlet)- figures.js operator's shoes, the silhouette billboard thing2d.js organic silhouette drawing- vhs.js VHS camcorder ShaderPass (pillarbox, jitter, tear, luma/chroma, AGC, dropouts)- osd.js 5×7 bitmap font, REC/battery/clock, title generator subs.js 608 captions- main.js renderer, post chain (core/three/post.js GTAO+DOF+bloom → VHS), handheld rig, events- sheet.js silhouette design sheet (?sheet=1) music/muzak.py original hold music (sampler)- mix.py all sound → mix.wav tools/mux.sh core mux with CRF parameter build.sh-```--1. `node core/render/still.mjs styles/backrooms/demo <t…> [--q nosub=1|raw=1|sheet=1]` — review stills.-2. `sh styles/backrooms/demo/build.sh` — TTS → whisper → music → events → mix → whisper on processed voices → render (1433 frames ≈ 80 s with 3 workers) → mux (−14 LUFS) → SRT → poster/styleframe.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/backrooms/TREATMENT.md b/styles/backrooms/TREATMENT.mddeleted file mode 100644index f459aa8..0000000--- a/styles/backrooms/TREATMENT.md+++ /dev/null@@ -1,126 +0,0 @@-# TREATMENT · 41 · Liminal Found Footage ·《Night Shift Orientation》--> 时长 60 s(含 2.5 s 片尾卡)| three.js 渲 720×540(4:3)→ VHS 摄像机着色器 → 1920×1080 左右黑边 | 24 fps 输出(带子噪声按 30 fps 走)-> 声音:**无配乐**,只有录在带子上的声音 —— 日光灯嗡鸣、广播、远处的电梯音乐、脚步与呼吸-> 声线:广播 `af_bella`(speed 0.82–0.84,温柔、平稳);摄像者 `am_michael`(4 句压低的气声)-> 字幕:录像带时代的隐藏式字幕(CEA-608 式等宽白字黑底块)-------## 1. 一句话故事--新来的夜班员工举着摄像机录下入职第一晚:一栋无尽的黄色办公层,天花板广播用温柔的声音一条条念《员工守则》。他照着做——灯闪三下时不看天花板;可守则第 2 条说"这层只有你一个员工",第 5 条却说"同事向你挥手,要挥手回应"。摄像机在走廊尽头拍到一个挥手的"同事",再对上焦时那里空了;一道磁带噪声之后,时间码跳过了三个小时,他还站在原地。最后他看见了不该存在的出口标志,推门进去——墙上是第 6 条守则:"Do not rewind this tape.",然后 REC 灯熄灭。--情绪弧:**无聊的平常 → 细小的不对劲 → 规则被验证(灯闪)→ 看见(又看不见)→ 时间被剪掉 → 违反规则 → 规则转身对观众说话**。-一个主体(摄像者,全程只闻其声、只见其脚)、一个目标(按守则完成第一晚的巡视)、一次转折(时间码跳了三小时——他已经不在"正常"里了)。--## 2. 对标:学什么 / 刻意不学什么--| 对标 | 学什么 | 刻意不学什么 |-|---|---|---|-| 后室原图(2019)的空间语言 | 单调的芥末黄墙纸 + 发潮的地毯 + 格栅吊顶与嵌入式日光灯;**空无一人本身就是恐怖**;"像某个你去过的地方"的熟悉感;墙体像随意摆放的隔板,视线穿过一个又一个空房间 | 原图的具体构图与视角;"Level"编号、社区设定、实体名称;片中不出现 "Backrooms" 一词 |-| Kane Pixels《The Backrooms (Found Footage)》(2022) | found-footage 语法:摄像机 POV、4:3 录像带、自动对焦/自动曝光在关键时刻"犯错";镜头里的"空"比怪物更可怕;**声音主导恐惧**(嗡鸣、脚步、呼吸,几乎没有配乐);少剪,靠带子本身的断点切 | 它的任何具体镜头、组织/公司设定、怪物造型、剧情线、UI;不做"被追逐"段落 |-| Remedy《Control》/ 中文网络"规则怪谈" | 官僚式超自然:**用公文口吻讲不可理喻的事**(表单编号 NS-01 REV. 9、"Thank you for your cooperation. — Management");守则一条条从平常走向不对劲、**守则之间互相矛盾**(2 vs 5)给观众留钩子;最后一条规则越过角色直接对观众说话 | 《Control》的局、物件、字体设计与美术;任何具体的规则怪谈文本 |--## 3. 原生招式(只有 found footage / 录像带这个媒介能做到)--1. **自动对焦找焦 = 看见又看不见(情绪高点 A,32.2–35.2 s)**:他推变焦看走廊尽头,摄像机的自动对焦来回拉:第一次拉到位(0.5 s)时,灭灯的缺口里站着一个过高的、在挥手的人影;对焦滑走、他低声"Hello?";第二次对上焦时,那里空了。**东西只在"焦点正确"的半秒里存在**——这是摄像机的机械缺陷在讲故事。-2. **磁带跟踪撕裂 = 时间被剪掉的证据(情绪高点 B,36.35 s)**:一道跟踪噪声横扫画面,之后构图一模一样,只有 OSD 时间码从 `PM 11:59` 变成 `AM 2:59`、电量从三格掉到一格并开始闪。没有任何特效,只有摄像机自己的读数"揭发"了丢失的三小时;他一句 "It was midnight a second ago." 把观众的眼睛引到时间码上。-3. **REC 灯熄灭 = 规则对观众说话(结尾)**:门后墙上是第 6 条 "Do not rewind this tape.";广播只念了"Rule six."就停了,剩下的由纸面替它说完——观众此刻正在看这盘带子。REC 熄灭,画面冻结、撕裂、黑。-4. 配套的媒介细节:开机时带子滚入 + **自动白平衡**从冷蓝漂到黄(摄像机"适应"了这里的日光灯);片名用**摄像机字幕机**的点阵字叠在告示上;灯闪时**自动曝光/AGC** 滞后提亮、噪点变多;变焦有伺服电机声;OSD 时间码就是剧情。--## 4. 分镜节拍表(按秒)--机位全部是摄像者手持 POV(呼吸起伏、走路颠簸、恐惧时手抖加剧),**全片一个长镜头**,只靠带子的断点(开机滚入、跟踪撕裂、REC 熄灭)"剪辑"。--| 时间 | 画面 / 表演 | 机位意图 | 声音 |-|---|---|---|---|-| 0.0–0.55 | 黑 | — | 带子咔嗒上机、马达转起 |-| 0.55–1.6 | 画面滚入(跟踪噪声、上下滚动),偏蓝 → 白平衡漂到黄;对焦从糊到清楚:黄墙上一块软木板,钉着告示 | 开场即"录像带":观众 1 秒内知道自己在看一盘带子 | 日光灯 120 Hz 嗡鸣 + 镇流器高频啸叫涌入;字幕 [FLUORESCENT LIGHTS HUMMING] |-| 1.1–4.6 | 摄像机字幕机片名 **NIGHT SHIFT / ORIENTATION** 逐字打出,叠在告示上 | 片名是摄像者自己按上去的——片名卡也在戏里 | 1.9 广播叮咚(原创两音);2.7 PA:"Good evening, and welcome to the night shift." |-| 5.55–7.3 | 气声 "Okay. First night.";向右摇开,露出无尽的黄色走廊 | 摇镜 = "揭开"空间的尺度:隔板墙、灯阵一路排进雾里 | 脚步开始(闷、湿) |-| 6.6–13.0 | 沿走廊走;前 20 秒几乎无事发生 | 让观众自己开始数灯、找东西、紧张 | 7.9 叮咚;8.7 "Rule one. The humming of the lights is normal."(嗡鸣此刻显得格外响) |-| 11.3–13.4 | 边走边低头:潮湿发暗的地毯、自己的黑色工作鞋 | 人的尺度与脆弱:唯一一次"看见自己" | 湿地毯脚步特写、衣服摩擦 |-| 13.0–16.2 | 抬头继续走,被左边墙上的什么吸引过去 | — | 13.0 叮咚;13.8 "Rule two. You are the only employee on this floor." |-| 16.2–21.2 | **同一张告示又出现了**——换了位置、直接用胶带贴在墙纸上。蹲低凑近,对焦找到纸面,读完 1–5 条(第 5 条:"If a coworker waves at you, wave back.") | 规则怪谈的钩子:观众刚听完"只有你一个员工",就读到第 5 条。停留 5 秒,留足阅读时间,没有字幕遮挡 | 只剩嗡鸣与远处的电梯音乐(第一次能听清) |-| 21.2–27.1 | 退后、转回走廊、继续走 | — | 21.6 叮咚;22.4 "Rule three. If the lights flicker three times, do not look at the ceiling." |-| 27.45 / 27.95 / 28.45 | **灯闪三下**(全黑 0.1 s ×3)| 观众跟着数 | 嗡鸣断 + 镇流器"叮"的重启声 ×3;字幕 [LIGHTS FLICKER] |-| 28.55–31.1 | 猛地低头盯着自己的鞋(遵守规则);呼吸急促、手抖。29.5–30.9 地毯上的光一盏盏被挡住又恢复——有什么从头顶经过 | **不看**比看更可怕:观众被迫和他一起盯着地毯 | 呼吸、极轻的头顶摩擦声(从远到近再远) |-| 31.1–32.3 | 慢慢抬头,面向长走廊 | — | 嗡鸣回来,略不稳 |-| 32.2–35.2 | **推变焦 + 自动对焦找焦**:糊 → 清楚(33.15–33.65:灭灯缺口里一个 2.4 m 的剪影在缓慢挥手)→ 滑焦 → 34.05 气声 "Hello?" → 35.15 再对上焦:空了 | **全片记忆点**。长焦压缩透视、景深变浅;东西只在焦点正确的半秒里存在 | 变焦伺服电机声、对焦马达的细碎咔嗒;嗡鸣之下低频开始升起 |-| 35.2–36.35 | 空走廊,停留 | 让"空"说话 | 静,只有嗡鸣与呼吸 |-| 36.35–37.0 | **跟踪撕裂**:噪声带横扫、画面错行、声音被撕碎 | 带子自己的"剪辑点" | 磁带噪声、音频断续;字幕 [TAPE NOISE] |-| 37.0–40.9 | 同一构图、同一站位;时间码 **AM 2:59**,电量一格在闪;他头顶那盏灯已经灭了 | 用"什么都没变"来揭示"三小时没了" | 37.7 气声 "It was midnight a second ago." 低频继续升 |-| 39.6–40.4 | 变焦拉回广角 | — | 伺服电机声 |-| 40.2–47.3 | 向前走,右转进一条短走廊;44.5 转身完成:走廊尽头暗处,门上一块**红色 EXIT**——全片唯一的饱和色 | 广播念到"If you see an exit sign"时,标志正好入画——画面与规则同步"撞上" | 40.2 叮咚(带子已经开始走调);41.0 "Rule four. There are no exits on this floor. If you see an exit sign, do not follow it." |-| 47.35–48.35 | **所有声音消失 1 秒**(包括嗡鸣、带子底噪);手持晃动也冻结 | 空间屏住呼吸,摄像者也屏住呼吸 | 数字静音;字幕 [SILENCE] |-| 48.35 | 声音回来:所有镇流器同时重启的一声闷"咚" | 全片唯一一处克制的声音惊吓 | — |-| 48.55–52.5 | 气声 "That's an exit.";走向门;门在他碰到之前自己慢慢向里打开,门后的黄光漏出来 | 违反规则的那几步:推近、呼吸加快 | 门闩、合页慢吱、气压的呼声 |-| 52.5–54.3 | 穿过门框;一个小房间,正对面墙上贴着一张新告示;对焦找到它 | — | 房间里的嗡鸣更近更干 |-| 54.35–57.7 | 告示:**"6. Do not rewind this tape."**("Your orientation is complete.")停留 3.3 s | 规则转向观众 | 54.35 PA 只说了 "Rule six.",然后没有下文 |-| 57.7–58.0 | **REC 熄灭**:画面冻结、撕裂、黑 | 录像结束 = 故事结束 | 摄像机停止的"咔哒"、马达停转 |-| 58.0–60.0 | 片尾卡:NIGHT SHIFT ORIENTATION / LIMINAL FOUND FOOTAGE / LemoLab × Claude Opus 5.5(摄像机点阵字) | — | 带子空白段的底噪 |--## 5. Cue map(声音先行;本片无配乐,"乐谱"是环境与带子)--| 段落 | 时间 | 层 | 速度 / 音高 | 情绪 | 卡点 |-|---|---|---|---|---|---|-| A 上机 | 0–2 | 带子马达 + 嗡鸣淡入 | 嗡鸣 120 Hz + 240/360 谐波;镇流器啸叫 ~9 kHz | 平常 | 0.55 画面滚入 = 嗡鸣涌入 |-| B 巡视 | 2–27 | 嗡鸣床 + 5 次叮咚 + 广播;远处电梯音乐 | 电梯音乐:原创 "Hold Music No. 9",**88 BPM F 大调**,颤音琴旋律 + 钢琴和弦 + 指弹电贝斯(sampler),天花板喇叭滤波、远距离混响,−28 dB;带速 1.00 → 0.98 | 无聊 → 隐约不安 | 每条广播前的叮咚都落在一个动作上(摇镜、低头、抬头、转向告示) |-| C 灯闪 | 27.45–31 | 嗡鸣 3 次断开 + 镇流器"叮";呼吸 | 电梯音乐在灯灭时一起断 | 惊 | 三次灯闪 = 三个卡点(字幕同时出) |-| D 看见 | 32.2–36.35 | 变焦伺服、对焦咔嗒、低频底噪升起(35–55 Hz 棕噪 + 41/43.5 Hz 拍频)| 电梯音乐带速 0.96、wow 加深 | 屏息 | 33.15 对上焦 = 对焦"咔";35.15 再对上 = 空 |-| E 断点 | 36.35–37 | 跟踪撕裂:全混音被切碎(20–40 ms 的断续门)+ 磁带噪声爆发 | — | 失序 | 撕裂结束 = 时间码已变 |-| F 走调 | 37–47.35 | 嗡鸣 + 低频继续升;电梯音乐带速 0.90(约 −1.8 半音)、wow 0.4 Hz 明显 | PA 叮咚也跟着走调 | 越来越不对 | "exit sign" 一词 = EXIT 入画 |-| G 屏息 | 47.35–48.35 | **全部为零** | — | 真空 | 1.00 s 数字静音 |-| H 违规 | 48.35–54.3 | 镇流器重启闷响 → 嗡鸣;门;呼吸 | 电梯音乐不再回来 | 决定 | 门开的吱声在 51.0 |-| I 规则六 | 54.35–57.7 | 房间嗡鸣 + PA "Rule six."(更近、更慢)| — | 冷 | 57.7 REC 熄灭 = 摄像机"咔哒" |-| J 片尾 | 58–60 | 空白带底噪,渐隐 | — | 回响 | — |--规则:**善用静音**——灯闪、撕裂、屏息三处是真断(连混响尾巴一起切)。人声(广播/气声)出现时,嗡鸣与电梯音乐自动避让约 −8 dB。--## 6. 声音设计--- **日光灯**:120 Hz 基频(北美 60 Hz 电网的磁致伸缩)+ 240/360/480 Hz 谐波、轻微不稳;镇流器高频啸叫(~9 kHz 窄带,很轻,灯闪时跳变);坏灯管的"滋滋"颤音跟画面里频闪的灯同步(按距离衰减)。-- **脚步**:潮湿短绒地毯——低频闷击(80–200 Hz)+ 一点湿黏的中高频"吧唧",没有硬质敲击;步点由画面步态相位导出(events.json),低头拍脚时更近更响。-- **摄像者**:近距离呼吸(带通噪声 + 包络,恐惧时加快变浅,屏息后一口长呼气)、衣服摩擦(转身、低头)、4 句 am_michael 气声(Kokoro 不会真的耳语:降速、压低电平、叠一层由人声包络调制的带通气流噪声、近讲低频提升;whisper 逐句校对)。-- **广播**:af_bella 经"天花板喇叭"链:带通 280–3800 Hz + 轻失真 + 纸盆共振峰 + 大空间混响;每个位置远近不同(开场远、门后房间最近最干);原创两音叮咚(颤音琴 E5→C5,同样过喇叭);撕裂之后叮咚和广播都跟着带子轻微走调。-- **电梯音乐**:原创轻音乐,sampler 颤音琴 + 钢琴 + 电贝斯,隔墙滤波;加磁带 wow/flutter,随时间越来越慢越低,到屏息时消失,之后再也不回来。-- **摄像机**:上机/停机的机械咔哒与马达、变焦伺服电机、对焦马达细碎咔嗒、带子底噪(全程极轻)、跟踪撕裂时的音频断续。-- **唯一的声音惊吓**:屏息 1 秒后,所有镇流器同时重启的一声闷"咚"。不做尖叫、不做突然的巨响。--## 7. 字幕设计--- **样式 = 录像带时代的隐藏式字幕**(CEA-608 式):等宽字(IBM Plex Mono 600,42 px),**每行一条纯黑底块**、白字,一行最多 32 字符,居中,位于 4:3 画幅下方、OSD 时间码之上。它是这个媒介真实存在的字幕格式——干净、和带子上的噪声形成对比(字幕是电视解码的,不吃磁带噪声)。-- 说话人:广播用 `[PA]` 前缀;摄像者的气声用斜体(第一句加 `(whispering)`);环境声按 SDH 习惯写在方括号里:`[FLUORESCENT LIGHTS HUMMING]`、`[LIGHTS FLICKER]`、`[TAPE NOISE]`,以及全片最安静的那一秒 **`[SILENCE]`**。-- 守则本身不加字幕——它们是画面里的告示(英文打印体),特写时停留足够长、没有字幕遮挡,要求在 1080p 下清楚可读。-- 节奏:每条 ≥1.9 s 且 ≥ 语音 + 0.65 s;长句按 whisper 词时间戳拆成两条。--## 8. 视觉规格--- **空间**:手工路线(开场房间 → 主走廊 → 出口走廊 → 门后小房间)+ 程序化填充的无尽格子间(2.4 m 网格上随机隔墙与柱子、合并共线段),吊顶 2.70 m,矿棉板 0.6×1.2 m、嵌入式日光灯板每 2.4 m 一盏,数千盏灯的颜色/亮度/坏灯由一张 128×128 浮点数据贴图驱动,自写着色器每个像素读周围 5×5 盏灯(无阴影、无遮挡——后室的光本来就"平")。-- **材质**:墙纸(暖黄底、宽窄相间的竖条 + 菱形列、每幅褪色不同、局部墙根潮痕、吊顶下烟黄、接缝暗线、踢脚线);地毯(芥末棕短绒 + 大块潮湿发暗区 + 湿处的微弱高光);吊顶(虫蛀孔、龙骨、个别板子的黄褐水渍环);灯板(棱镜扩散板 + 灯管 + 死虫影子)。-- **光与镜头**:全部来自日光灯,平、偏黄绿,远处经"跟随当地亮度的雾"变暗(灭灯的地方雾也暗,剪影才是"光里的一个洞");GTAO 压暗墙角;物理景深承担自动对焦;变焦 52°→27°。-- **VHS 摄像机后期**(自写,替代 CRT):4:3 左右黑边;逐行时基抖动 + 底部磁头切换条 + 跟踪撕裂;镜头桶形畸变与暗角(OSD 不畸变);亮度带宽限制 + 锐化振铃白边;色度宽窗糊开并向右滞后;高光向右拖尾;自动白平衡与曝光漂移、AGC 噪点(暗处更多);掉磁白线;黑电平抬升、高光软削。**不加扫描线和光栅**——这是被录下来的带子,不是在显像管上看。mux 颗粒 = 0。-- **OSD**:自制 5×7 点阵字:左上 `● REC`,右上电量,右下 `PM 11:58 / SEP.27.1996`(时间码是剧情)。--## 9. 相对风格说明的改动(及理由)--1. **"东西"= 一个挥手的"同事"**:说明里只要求"远处一瞬的剪影"。我让它回应第 5 条守则("同事向你挥手,要挥手回应"),与第 2 条("这层只有你一个员工")构成矛盾——剪影不只是吓人的东西,而是**矛盾本身被拍到了**;他没有挥手回应,而是说了 "Hello?",观众自己去想这算不算违规。-2. **字幕用 CEA-608 隐藏式字幕**而不是 OSD 或打印体:OSD 已经被时间码/REC/片名占用,再用点阵字会混;608 字幕是这个年代真实的字幕形态,干净、可读,还能写 `[SILENCE]`。守则本身仍是画面里的打印体告示。-3. **片名卡 = 摄像机字幕机**:满足"开场片名卡"的同时留在戏里。-4. **4:3 + 黑边**(说明允许 4:3 或 16:9):更像被转录的原始带子,也和 Kane Pixels 的语法一致。-5. 没有写配乐;"电梯音乐"作为唯一的旋律来源,是画内声(diegetic)并随带子走调,符合"无配乐"的要求。--## 10. 风险与对策--- Kokoro 做不出真耳语 → 后处理成气声 + whisper 校对;必要时改写成更短的句子。-- 剪影在 VHS 噪声里可能太清楚或太难看见 → 以"对上焦的 0.5 s 里一眼能认出是人在挥手、但看不清任何细节"为标准,逐帧调对焦曲线与雾。-- 声音全是合成的,我听不见 → 用频段能量、电平表、whisper 自检,嗡鸣与呼吸避免过响刺耳。--## 11. 关卡 1 之后的改动(成片以此为准)--- **时长 59.7 s**:节拍表里的秒数是压缩前的"原始时间"。成片用 `story.js` 的分段线性映射 `W()` 只压走路段:7.0–7.9 s 段 −0.3 s、39.6–40.2 s 段 −0.3 s、49.5–54.3 s(走向出口门并进屋)−0.7 s。因此 7.9 s 之后的事件整体提前 0.3 s,40.2 s 之后提前 0.6 s,54.3 s 之后提前 1.3 s(片尾卡 56.8–59.7 s,REC 熄灭 56.4 s)。片尾卡和 REC 熄灭前告示的停留没有压缩。-- **剪影更隐约**:站得更远(约 33 m),头顶和身后的灯都灭了,更远处只剩微光;挥手更慢更小(3.6 s 一个来回)。标准是认得出在挥手,但数不清手指。-- **气声 = 小声说话**:压低电平,加近讲低频和呼吸气流层,whisper 全部能识别。-- **低头镜头**:只露鞋尖和一截地毯。-- **克制的细节**:回风口、发黄/缺失的吊顶板、更明显的墙纸接缝和翘边、零星污渍,不做成废墟。diff --git a/styles/backrooms/demo/fonts/IBMPlexMono-500.woff2 b/styles/backrooms/demo/fonts/IBMPlexMono-500.woff2deleted file mode 100644index 3308bce..0000000Binary files a/styles/backrooms/demo/fonts/IBMPlexMono-500.woff2 and /dev/null differdiff --git a/styles/backrooms/demo/fonts/IBMPlexMono-600.woff2 b/styles/backrooms/demo/fonts/IBMPlexMono-600.woff2deleted file mode 100644index c6759ef..0000000Binary files a/styles/backrooms/demo/fonts/IBMPlexMono-600.woff2 and /dev/null differdiff --git a/styles/backrooms/demo/fonts/IBMPlexSans-400.woff2 b/styles/backrooms/demo/fonts/IBMPlexSans-400.woff2deleted file mode 100644index e5ebabb..0000000Binary files a/styles/backrooms/demo/fonts/IBMPlexSans-400.woff2 and /dev/null differdiff --git a/styles/backrooms/demo/fonts/IBMPlexSans-600.woff2 b/styles/backrooms/demo/fonts/IBMPlexSans-600.woff2deleted file mode 100644index e5ebabb..0000000Binary files a/styles/backrooms/demo/fonts/IBMPlexSans-600.woff2 and /dev/null differdiff --git a/styles/backrooms/demo/fonts/IBMPlexSans-700.woff2 b/styles/backrooms/demo/fonts/IBMPlexSans-700.woff2deleted file mode 100644index e5ebabb..0000000Binary files a/styles/backrooms/demo/fonts/IBMPlexSans-700.woff2 and /dev/null differdiff --git a/styles/backrooms/demo/fonts/IBMPlexSansCondensed-600.woff2 b/styles/backrooms/demo/fonts/IBMPlexSansCondensed-600.woff2deleted file mode 100644index 892ac35..0000000Binary files a/styles/backrooms/demo/fonts/IBMPlexSansCondensed-600.woff2 and /dev/null differdiff --git a/styles/backrooms/demo/fonts/IBMPlexSansCondensed-700.woff2 b/styles/backrooms/demo/fonts/IBMPlexSansCondensed-700.woff2deleted file mode 100644index a1d9894..0000000Binary files a/styles/backrooms/demo/fonts/IBMPlexSansCondensed-700.woff2 and /dev/null differdiff --git a/styles/backrooms/demo/voices_fx/p0.wav b/styles/backrooms/demo/voices_fx/p0.wavdeleted file mode 100644index 9caeadb..0000000Binary files a/styles/backrooms/demo/voices_fx/p0.wav and /dev/null differdiff --git a/styles/backrooms/demo/voices_fx/p1.wav b/styles/backrooms/demo/voices_fx/p1.wavdeleted file mode 100644index 13c6c32..0000000Binary files a/styles/backrooms/demo/voices_fx/p1.wav and /dev/null differdiff --git a/styles/backrooms/demo/voices_fx/p2.wav b/styles/backrooms/demo/voices_fx/p2.wavdeleted file mode 100644index 7597afa..0000000Binary files a/styles/backrooms/demo/voices_fx/p2.wav and /dev/null differdiff --git a/styles/backrooms/demo/voices_fx/p3.wav b/styles/backrooms/demo/voices_fx/p3.wavdeleted file mode 100644index 7053d7f..0000000Binary files a/styles/backrooms/demo/voices_fx/p3.wav and /dev/null differdiff --git a/styles/backrooms/demo/voices_fx/p4.wav b/styles/backrooms/demo/voices_fx/p4.wavdeleted file mode 100644index b8e6901..0000000Binary files a/styles/backrooms/demo/voices_fx/p4.wav and /dev/null differdiff --git a/styles/backrooms/demo/voices_fx/p6.wav b/styles/backrooms/demo/voices_fx/p6.wavdeleted file mode 100644index 15dda63..0000000Binary files a/styles/backrooms/demo/voices_fx/p6.wav and /dev/null differdiff --git a/styles/backrooms/demo/voices_fx/w1.wav b/styles/backrooms/demo/voices_fx/w1.wavdeleted file mode 100644index 804450b..0000000Binary files a/styles/backrooms/demo/voices_fx/w1.wav and /dev/null differdiff --git a/styles/backrooms/demo/voices_fx/w2.wav b/styles/backrooms/demo/voices_fx/w2.wavdeleted file mode 100644index 9f63598..0000000Binary files a/styles/backrooms/demo/voices_fx/w2.wav and /dev/null differdiff --git a/styles/backrooms/demo/voices_fx/w3.wav b/styles/backrooms/demo/voices_fx/w3.wavdeleted file mode 100644index a3bc1f7..0000000Binary files a/styles/backrooms/demo/voices_fx/w3.wav and /dev/null differdiff --git a/styles/backrooms/demo/voices_fx/w4.wav b/styles/backrooms/demo/voices_fx/w4.wavdeleted file mode 100644index e0dbc8a..0000000Binary files a/styles/backrooms/demo/voices_fx/w4.wav and /dev/null differdiff --git a/styles/backrooms/style.json b/styles/backrooms/style.jsonnew file mode 100644index 0000000..3817377--- /dev/null+++ b/styles/backrooms/style.json@@ -0,0 +1,18 @@+{+ "slug": "backrooms",+ "num": "36",+ "en": "Liminal Found Footage",+ "cn": "后室 / 新怪谈",+ "category_en": "Cinema & Eras",+ "category_cn": "电影与时代",+ "film": "Night Shift Orientation",+ "line": "A new night-shift hire films their first night in an endless yellow office, following the rules on the wall.",+ "line_cn": "新夜班员工拍下入职第一晚:无尽的黄色办公空间,和墙上的员工守则。",+ "uses": [+ "Horror",+ "Mystery & ARG",+ "Game teasers"+ ],+ "frame_sec": 35.82,+ "dur": 59.7+}diff --git a/styles/blueprint/DEMO.md b/styles/blueprint/DEMO.mdnew file mode 100644index 0000000..cb42233--- /dev/null+++ b/styles/blueprint/DEMO.md@@ -0,0 +1,146 @@+# Blueprint — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Patent Pending: The Cloud Catcher* (46.7 s) · `blueprint.mp4` · source in [`demo/`](demo/)+++## Story & structure++An inventor's patent drawing of a cloud-catching machine: it is drawn, exploded, runs perfectly, but there are no clouds; the hand revises the drawing, the revision cloud becomes a real rain cloud, it rains on the drawn garden and a flower grows. The original notes on the style's story powers, as written for this demo:++The whole film happens **on one sheet of blueprint paper** lying on a dark drafting table. Everything is white line work on uneven Prussian blue: centre lines, outlines, hatching, dimension lines, leader lines with numbered balloons, a title block and a notes column. The camera moves over the sheet like an eye reading a drawing. It is a **2D line-drawing language**. You may use orthographic and oblique/isometric projection, but **never 3D rendering**.++The charm is the tension between **rigorous engineering convention** and **whimsy**. The drawing is dry and exact. The notes carry the jokes ("10 · COUNTERWEIGHT (GRANDMOTHER'S IRON)"). And once per film, a drawing symbol breaks the rules and becomes real.++Learn grammar from, but never copy: the moving technical drawings in Prologue Films' *Iron Man* (2008) end credits, Leonardo's *Codex Atlanticus* pages, 19th-century US patent drawings (Fig. 1 / Fig. 2, part balloons, fine-line shading) and the automaton drawings in *Hugo* (2011). No Marvel elements, no real patents, no real inventor's machine or signature.++The machine (or object, or plan) **is the character**. Parts act: a boom lifts hopefully or droops, a weather vane perks up or sags, bellows breathe, a gauge needle twitches at zero. The inventor appears only as a **hand shadow with a pen tip**, or as a signature.++| Native power | How the demo used it |+|---|---|+| **Drafting order** | The object draws itself the way an engineer would: centre lines → outlines → gears/detail → hatching → dimensions → balloons → label. Each layer lands on a beat. |+| **Live annotations** | Dimension lines measure moving parts and the numbers change. Leader lines and balloons fly with exploded parts. A section line A–A sweeps across a housing and reveals the inside. |+| **Fig. numbers as transitions** | "FIG. 1" gets struck through and rewritten "FIG. 2 · EXPLODED VIEW", then "FIG. 3 · IN OPERATION". |+| **Projection is a camera** | Animate the oblique depth factor from 0 (flat elevation) to 0.5. The line drawing "turns" and gains thickness, with no 3D renderer. Exploded parts fly along the depth axis. |+| **Drawing symbols made real** (put this at the emotional peak) | A revision cloud becomes a real rain cloud. Other candidates: a dimension arrow becomes a real arrow, a hatch pattern becomes rain, a centre line becomes a road, a weld symbol sparks. Rule: **this one symbol is the only thing in the film that leaves the drawing language.** It gets soft volume, gradient, glow, and a shadow that falls across the drawing's lines. |+| **Cyanotype and water** | Rain on the sheet: each drop blooms deeper blue with a pale tide line, and white lines inside the stain go soft. A drop on the signature makes it bleed. |+| **The title block** | Title card = sheet header. Status field = the story's verdict (a red rubber stamp is the film's only non-blue colour). End card = the title block's last row being lettered in (STYLE / DRAWN BY). |++**How we adapted the topic** (and the same recipe for others): turn the topic into **something designed** and let the drawing find a flaw that only the drawing can fix. A product launch becomes Fig. 1, exploded view, operation, then a revision that adds the missing feature. A love story: two machines on one sheet, and a revision cloud draws the bridge. A history lesson: a city plan revised again and again (REV. 1, 2, 3).++**Demo emotional arc (46.7 s):** curiosity (blank sheet, the object is drawn) → pride (exploded view) → excitement (it runs, on the beat) → the flaw (it works perfectly but the world lacks something; music stops) → the hand revises the drawing → **the symbol becomes real** (suspended chord, no voice) → payoff → echo (stamp, signature, title block).++## Shots++| Beat | Camera |+|---|---|+| Opening | Whole sheet on the dark table. The roll snaps open, then the T-square. Establishing shot only. |+| Title | Push to the header lettering. |+| Drawing | Medium on Fig. 1, machine ~80% of frame height, empty sky on the right (subtitles live there). |+| Exploded view | Pull back so the machine is centre-left and the parts list peeks in on the right. |+| Operation (the memorable shot) | Cut to a 2× close-up of crank and gears, then **track along the drive chain** up the mast to the boom and follow the net's arc. The camera follows the path of force. |+| The flaw | Medium-wide with lots of empty sky. The emptiness is the joke. |+| Revision | Locked-off while the hand shadow draws. Hold one beat on the finished symbol. |+| Symbol comes alive | Slow push-in, no voice. |+| Payoff | Follow the object down to the target, push in on the result (the flower). |+| Ending | Pull back to the whole sheet (scale reveal). The stamp lands in the wide. Push to the title block for the end card. |++Keep storytelling shots close. Only the opening and closing establishing shots are full-sheet.++Demo motion numbers: exploded parts leave one every ~0.055 of the progress on eighth notes and come back one eighth note per group with a brass click; gears advance 7.5° (one tooth) per eighth note with a 0.35-beat ease-out; bellows breathe per beat; failure over ~1.5 s (gears slow, bellows deflate, boom sags, vane droops); joy = vane snaps upright, needle overshoots to 1. The original motion section:++- Line **draw-on** is truncated by arc length, with a small glowing nib at the head. Stagger items within a layer. Each layer starts on a beat.+- **Exploded view**: parts leave in sequence, one every ~0.055 of the progress, on eighth notes, with eased motion. The camera pulls back to make room. Parts come back **one eighth note per group with a brass click**.+- **Mechanisms step on the grid**: gears advance one tooth (7.5°) per eighth note with a 0.35-beat ease-out, like an escapement. Meshing phase is computed so teeth really interlock. Chain links move with the pinion. Bellows breathe per beat.+- **Machine acting**: boom angle, vane droop, bellows volume and gauge needle are the face. Failure means the gears slow, the bellows deflate, the boom sags and the vane droops over ~1.5 s. Joy means the vane snaps upright and the needle overshoots (back-ease) to 1.+- **Camera moves on ones (24 fps)**, continuous within a section, with hard cuts on downbeats between sections. Two tiny camera bumps: the paper slap and the stamp.++## Score structure++- **Music**: two-part **baroque invention** at 108 BPM in G major. Harpsichord theme (a one-bar sixteenth-note "gear" motive), bassoon staccato imitating two octaves below.+ - Operation adds violins and cellos spiccato eighths ("gears biting").+ - The flaw: instruments drop out with a written-out ritardando, then true digital silence.+ - The revision is silent except for a three-note questioning figure.+ - The miracle holds a Dsus4 string chord with two breathing swells, unresolved.+ - The catch resolves to G on the downbeat.+ - Rain uses harp and harpsichord arpeggios.+ - A short full cadence lands on the stamp, and the theme returns in augmentation for the end card.+ - Rendered with `core/audio/sampler.py`: VCSL harpsichord and harp, VSCO 2 CE bassoon, strings and spiccato.+- **Foley follows materials**:+ - Paper: roll unroll crackle and slap, T-square wood slide, technical pen scratch (2–6 kHz grain, length = stroke length), lettering (bursts of short strokes), compass squeak, hatching (13 strokes/s).+ - Brass and wood: part clicks (3.1 / 5.2 kHz resonances), escapement ticks, chain rattle, bellows breath, wind-down ticks that slow by ×1.35.+ - The magic moment: soft paper "puffs" on the two breaths, a noise swell, nothing else.+ - Water: soft damped pats per drop plus a light rain bed.+ - Rubber stamp thump, pen cap click at the very end.+- **Voice**: dry-humoured British engineer reading his own design notes, Kokoro `bm_daniel`, `lang en-gb`, speed 0.9. Five or six short lines. Keep the climax voiceless.+- **Mix**: music ducks to ~0.36 under voice and foley ducks by half. Whooshes low-passed at 2.5 kHz (they masked "bellows" in whisper). −14 LUFS. `mux.sh` grain 4 (the paper grain is in the image already).++## Palette & props++- **Sheet**: 3200 × 2200 units, folded in quarters. The blue is procedural in a WebGL fragment shader in *sheet coordinates*, so it stays crisp at any zoom. Low-frequency fbm between `#18336B` and `#2A58A6`, horizontal coating streaks, a slight left-to-right fade, fibre noise, sparse fibres, fold creases (bright edge, dark edge, worn whitening along the fold), irregular bleached edges and corners, small specks. Outside the sheet: dark drafting cloth `#0D1116` with a drop shadow.+- **Lines**: pale blue-white `#E7F0F9`, slightly soft (mipmap bleed), with a faint ink breakup driven by paper grain.+ - Weights in sheet units: outline 3.2, detail 2.0, thin 1.25, hair 0.9.+ - **Screen width = sheet width × zoom^0.65.** Close-ups do not turn into sausages and wides do not vanish.+ - Dashes: centre line `[34,7,6,7]`, hidden `[11,7]`, phantom (cutting plane) `[30,6,5,6,5,6]`, all scaled with zoom so the pattern stays on the paper.+- **Occlusion**: every solid is filled with "paper" (black in the ink buffer) before its outline is stroked, painter's order. Extrusion in oblique uses a sweep: stroke the outline at N depth steps at 2× width, then fill the same N steps with paper. What survives is a clean silhouette of half width. Front face and visible vertex connectors are drawn on top.+- **Composite**: the ink canvas is greyscale (white = exposed line). The fx canvas has R = shadow darkening, G = wetness, B = stamp ink, and is added with `lighter`. The overlay canvas holds subtitles. Shadows darken lines too, which is how a lifted object proves it has left the paper. To keep an object from being darkened by its own shadow, multiply its area by `rgb(0,255,255)` on the fx canvas.+- **Hatching** (fine-line shading) for sections, soil and the counterweight, at 45°, spacing 8–14 units.+- **The magic object** (climax only): union of circles (15 scallops plus 4 inner lobes).+ - Flat state: an outward-scalloped revision cloud.+ - Puffed state: one radial gradient across the whole union (top-left light) plus small highlights on the top lobes, a blurred white glow, engraved crescent shading on the lower right (mask = union minus the union shifted up-left), and a thicker outline on the shadow side.+ - It leaves a pale "unexposed imprint" where it was drawn. Its shadow offset grows with lift (up to ~240 units down).+- **Palette discipline**: blue and white only. One stamp red `#C23B2E`, used exactly once.+- **Typography** (all OFL):+ - Architects Daughter for hand lettering (header, labels, notes, subtitles).+ - B612 / B612 Bold for title-block fields and "PATENT PENDING".+ - Allura for the signature.+ - Text is written on left to right with a glowing nib.++## Titles & subtitles++- **Subtitles are drawing notes**: a light box (rgba(12,28,62,.58), 1.2 px outer and 0.8 px inner white rule, ~110–150 px tall), a "NOTE / n" cell in B612 Bold, the text in Architects Daughter 38 px written on in 0.35 s, and a small leader tick at the lower-left corner.+ - **Position per shot, in empty sky**, never fixed to the bottom. The bottom of the frame is where the ground line, base and title block live.+ - Wrap at ~880 px.+- Every subtitle is also lettered into the sheet's **GENERAL NOTES** column (under the fixed notes "ALL DIMENSIONS IN MILLIMETRES." and "DO NOT SCALE DRAWING."), so the final wide shows the whole voiceover as drawing notes.+- **Title**: the sheet header (Architects Daughter 132 units, letter-spaced, double underline), with PATENT PENDING and a subtitle line in B612.++## End card++**End card**: the title block. The last row is lettered in: STYLE: BLUEPRINT / DRAWN BY: LemoLab × Claude Opus 5.5. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/blueprint/demo/+ paper.js WebGL2 compositor: procedural cyanotype sheet, ink bleed, wet stains, shadows, stamp, roll+ draw.js drafting engine: camera, oblique projection, draw-on polylines, solids, hatching, dims, balloons, text+ machine.js the Cloud Catcher: parts, gear meshing, explode offsets and paths, garden and flower+ sheet.js border, header, title block, parts list, notes, revision cloud ↔ cloud, rain, hand shadow, stamp+ film.js the whole timeline (108 BPM grid): cameras, acting, subtitles, sound events+ main.js page entry (?frame=1|2|3 gate frames, ?nosub, ?poster)+ mix.py foley + voice + music ducking music/score.py original score (sampler)+ tools/ subs.mjs (SUBS → subs.json), check_mix.py (whisper on the final mix)+```++1. `node core/render/still.mjs styles/blueprint/demo --range 0:46:1.5` then `sheet.py` to review. Iterate per section.+2. `.venv/bin/python core/tts/tts.py lines.json voices`, then `asr_check.py` (6/6 OK).+3. `node core/render/events.mjs`, then `music/score.py`, then `mix.py`, then `tools/check_mix.py`.+4. `node core/render/video.mjs styles/blueprint/demo --fps 24 --workers 3` (1120 frames, Canvas2D + WebGL, ~30 s).+5. `sh core/render/mux.sh out/video24.mp4 mix.wav blueprint.mp4 24 4`. Or run everything with `sh styles/blueprint/demo/build.sh`.++### Pitfalls we hit++- **The machine near the sheet edge**: wide shots showed the desk. Put the main figure at least `960/zoom` from any sheet edge you will frame in a wide, or make the sheet bigger (we went 3200×2000 → 3200×2200 and moved the machine right).+- **Explosions that go up hit the header.** Explode mostly upward and sideways, and flatten the boom during the explode so the net extends sideways.+- **Subtitles on the ink canvas** vanish off-sheet and cannot occlude lines. Use a separate overlay texture composited last (premultiplied alpha).+- **The magic object darkened by its own shadow.** Multiply its area on the fx canvas with `rgb(0,255,255)` to zero the shadow channel only.+- **Per-lobe shading makes "grapes" or bubble wrap.** Use one gradient across the union, crescents from a union-minus-shifted-union mask, and arcs only on the upper inner lobes.+- **Overlapping additive circle fills make bubbles.** Fill a union as one path with `fill('nonzero')`.+- **Scallop arcs drawn the wrong way round look like a starburst.** Choose the arc direction that contains the lobe's outward angle.+- **The half-puffed cloud looked like a donut.** Grow the inner lobes early (`r × min(1, pf × 2.2)`).+- **The payoff must be big.** The first cut had the flower as a small clump in the lower third, which undersold the emotional return. Give the payoff object ~1/3 of frame height, centred, drawn stroke by stroke (stem → leaves → one petal per beat), with visible stains around it. Keep subtitles off it.+- **A caught object shows through the net.** Don't paint the net over it wholesale: fill the bag below the front rim with the object's body, then draw mesh and front rim on top, and skip the back rim.+- `sfx.thump()` is 0.35 s long: pad before adding to longer buffers.+- Whisper reads "Figure one" as "Figure 1": use an `asr` field in `lines.json`.+- **A stray file at the repo root**: always write with absolute paths inside your style dir.diff --git a/styles/blueprint/STYLE.md b/styles/blueprint/STYLE.mdindex 9138ed2..08c3301 100644--- a/styles/blueprint/STYLE.md+++ b/styles/blueprint/STYLE.md@@ -1,145 +1,118 @@# Blueprint — Style Prompt> Engineering drawings that come alive on a sheet of cyanotype paper: white technical line work on Prussian blue, drawn in drafting order, with annotations that move.-> Demo: *Patent Pending: The Cloud Catcher* (46.7 s) · `blueprint.mp4` · source in `demo/`+> References (grammar only, never copy): the moving technical drawings in Prologue Films' *Iron Man* (2008) end credits, Leonardo's *Codex Atlanticus* pages, 19th-century US patent drawings (Fig. 1 / Fig. 2, part balloons, fine-line shading), the automaton drawings in *Hugo* (2011). No Marvel elements, no real patents, no real inventor's machine or signature.-You are directing a 30–60 second film in the **Blueprint** style. The user gives you a topic. You decide story, shots, timing, music, sound and subtitles, and deliver a finished film. Follow this guide.+Suits films of 30–60 s.++## 1. Essence, and what it is not++- **The whole film happens on one sheet of blueprint paper** lying on a dark drafting table. The camera moves over it like an eye reading a drawing.+- **White line work on uneven Prussian blue**: centre lines, outlines, hatching, dimension lines, leader lines with numbered balloons, a title block, a notes column.+- **A 2D line-drawing language**: orthographic and oblique/isometric projection are allowed, **3D rendering never**.+- **Rigorous convention carries the tone**: the drawing is dry and exact; the notes can carry wit, warmth or gravity.+- **The designed thing is the character.** A machine, object, building or plan acts through its parts; people appear only as a hand shadow with a pen, or a signature.++Not Hologram HUD (no glowing wireframe, no 3D orbit), not Whiteboard (no marker on white), not Copperplate Engraving (no burin tonal hatching as the whole look).++## 2. Materials & rendering++- **Sheet**: procedural cyanotype in a shader in *sheet coordinates*, crisp at any zoom: fbm between two Prussian blues, coating streaks, fibres, fold creases (bright edge, dark edge, whitening), bleached edges, specks. Around it: dark drafting cloth with a drop shadow.+- **Lines**: pale blue-white, slightly soft (mipmap bleed), a faint ink breakup driven by paper grain. Four weights (outline, detail, thin, hair; e.g. 3.2 / 2.0 / 1.25 / 0.9 sheet units). **Screen width = sheet width × zoom^0.65**, so close-ups don't turn into sausages and wides don't vanish.+- **Dash conventions**: centre line (long-short), hidden (short dashes), phantom / cutting plane (long-short-short), scaled with zoom so the pattern stays on the paper.+- **Occlusion by painter's order**: every solid is filled with "paper" before its outline is stroked. Oblique extrusion: stroke the outline at N depth steps at 2× width, then fill the same steps with paper; a clean silhouette survives.+- **Composite in buffers**: ink (white = exposed line); fx (shadow, wetness, stamp ink as channels); a subtitle overlay last. Shadows darken lines too: that is how a lifted object proves it has left the paper.+- **Hatching** (fine-line shading) for sections, soil, weights, at 45°, spacing 8–14 units.+- **Cyanotype and water**: a drop blooms deeper blue with a pale tide line; white lines inside the stain go soft; ink signatures bleed.+- **The one real thing** (optional, at most once): a drawing symbol that leaves the drawing language gets soft volume, one gradient across its whole shape, glow, and a shadow falling across the lines. It leaves a pale unexposed imprint where it was drawn.++## 3. Colour logic++- **Blue and white only.** The blue varies in value (coating, stains, folds); the white varies in weight and softness, never in hue.+- **One non-blue colour, used exactly once**: a rubber-stamp ink (red is classic; a green APPROVED or black VOID work too). It carries the verdict.+- The "real" object at the climax may carry light (white glow, soft value), not a new hue.+- Example blues: `#18336B` → `#2A58A6` with lines `#E7F0F9` and table `#0D1116`; a faded sun-bleached sheet `#3A6DA8` → `#5B8CC4`; a deep over-exposed sheet `#0F2350` → `#1D3F80`.++## 4. Type & subtitles++- **Hand lettering** for header, labels, notes and subtitles (e.g. Architects Daughter); a technical sans for title-block fields (e.g. B612); a script only for the signature (e.g. Allura). All OFL.+- **Text is written on left to right** with a glowing nib, like everything else.+- **Subtitles are drawing notes**: a light translucent box with double white rules, a "NOTE / n" cell, the text lettered on in ~0.35 s, a small leader tick. **Placed per shot in empty sky**, never fixed to the bottom (the bottom of a drawing is ground line, base and title block). Wrap at ~880 px. Hold ≥ max(1.8 s, speech + 0.6 s).+- Every subtitle is also lettered into the sheet's **GENERAL NOTES** column, so the final wide shows the whole voiceover as drawing notes.+- The **title is the sheet header**; the **title block** holds status and verdict fields.++## 5. Motion quality++- **Camera and draw-on on ones (24 fps).** Continuous moves within a section, hard cuts on downbeats between sections; tiny camera bumps only for physical impacts (paper slap, stamp).+- **Draw-on** truncated by arc length with a glowing nib at the head; items staggered within a layer; each layer starts on a beat.+- **Drafting order**: centre lines → outlines → detail → hatching → dimensions → balloons → labels.+- **Exploded views**: parts leave in sequence on subdivisions of the beat, eased, and return one per beat-group with a click.+- **Mechanisms step on the grid** like an escapement: a gear advances one tooth per subdivision with a short ease-out; meshing phases computed so teeth really interlock; chains move with their sprockets.+- **Machine acting**: angles, droops, volumes and gauge needles are the face. Failure = slowing, sagging, winding down over ~1.5 s; joy = snapping upright, a needle overshooting (back-ease).++## 6. Camera grammar++A vocabulary, not a route. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Whole sheet on the table | scale, the document as an object | establishing; a verdict; a series of sheets |+| Medium on a figure, subject ~80 % of height, sky on one side | the design being drawn | drafting; explaining a part |+| Track along a path of force (chain, pipe, wire, beam) | cause and effect | how it works; a sequence of operations |+| 2× close-up cut on a downbeat | the mechanism's heart | gears meshing; a valve; a joint |+| Locked-off, hold a beat | deliberation | a hand revising; a decision |+| Oblique depth factor 0 → 0.5 | the flat drawing "turns" and gains thickness | from plan to object; a reveal of depth |+| Section line sweeping across | inside vs outside | a cutaway; hidden structure |+| Lateral pan across Fig. 1 → Fig. 2 → Fig. 3 | versions, steps, time | revisions; stages of construction |+| Slow push-in, no voice | wonder | the one real thing |++Keep storytelling shots close; full-sheet wides are rare. Keep the main figure at least `960/zoom` from any sheet edge you will frame. Transitions: cuts on downbeats, or fig-number rewrites on the sheet; no dissolves.++## 7. Sound palette++- **Contrapuntal, mechanical music**: harpsichord, bassoon, strings spiccato, harp, celesta, music box, clavichord, a small wind ensemble. Imitative lines (an invention, a canon, a fugato) feel like interlocking parts; a short repeated motive can be the "gear".+- **Foley follows materials**. Paper: roll crackle and slap, T-square wood slide, technical pen scratch (2–6 kHz grain, length = stroke length), lettering bursts, compass squeak, hatching strokes, eraser rub, tracing-paper rustle. Brass and wood: part clicks (resonances ~3–5 kHz), escapement ticks, chain rattle, spring twang, wind-down ticks that slow geometrically. Water: soft damped pats per drop, a light rain bed. Rubber stamp thump, pen cap click.+- **Options for the arc** (in any order, use what the story needs): instruments dropping out with a written-out ritardando into true silence; a single questioning figure alone; a suspended chord held without resolution under the magic; a full cadence on the stamp; the theme in augmentation for a close; adding a section per mechanism that joins.+- **Silence** may contain paper sounds only.+- **Voice**: dry, understated, reading design notes, a few short lines. Leave the most emotional moment voiceless.+- **Mix**: music ducks well under voice (~0.36 ×), foley by half; whooshes low-passed so they don't mask consonants. −14 LUFS. Little added grain (the paper already has it).++## 8. Native moves++A menu: use the ones your story needs.++- **Drafting order.** The object draws itself as an engineer would, a layer per beat. *Fits content like:* a bridge; a violin; a kitchen renovation.+- **Live annotations.** Dimensions measure moving parts and the numbers change; balloons fly with parts; a section line reveals the inside. *Fits content like:* a heart valve; a folding bicycle; a rocket stage separating.+- **Fig. numbers as transitions.** "FIG. 1" struck through and rewritten "FIG. 2 · EXPLODED VIEW". *Fits content like:* versions of a product; phases of a construction; a recipe's stages.+- **Projection as camera.** The oblique factor animates; exploded parts fly along the depth axis. *Fits content like:* a floor plan becoming a building; a circuit board; flat-pack furniture.+- **A symbol made real** (once, if at all). A convention leaves the drawing language: a dimension arrow flies, a hatch becomes rain, a centre line becomes a road, a weld symbol sparks. *Fits content like:* an invention finally working; a city plan becoming a street; a dream becoming a plan.+- **Cyanotype and water.** Drops bloom and soften lines. *Fits content like:* a flood-defence design; grief; a harbour wall.+- **The title block as story.** Status field = the verdict; revision rows = history. *Fits content like:* a rejected permit; REV. 1–5 of a city; an approval after years.++## 9. Pitfalls of the medium++- **Main figure near the sheet edge** → wides show the desk. Keep margins or enlarge the sheet.+- **Upward explosions hit the header** → explode sideways and flatten long parts during the explode.+- **Subtitles on the ink buffer** vanish off-sheet and can't occlude lines → separate overlay, premultiplied alpha.+- **An object darkened by its own shadow** → zero the shadow channel only in its area.+- **Per-lobe shading on a blobby shape reads as grapes** → one gradient across the union; crescents from a union-minus-shifted mask; fill unions as one path (`nonzero`) or overlapping fills make bubbles.+- **A small payoff undersells the return** → the payoff object ~⅓ of frame height, centred, drawn stroke by stroke, subtitles off it.+- **Line weights not scaled with zoom** → sausages in close-ups, vanishing wides.++## 10. Engine++`demo/paper.js` (WebGL2 compositor: procedural cyanotype, ink bleed, wet stains, shadows, stamp, roll), `demo/draw.js` (drafting engine: camera, oblique projection, draw-on polylines, solids with paper fill, hatching, dimensions, balloons, text), `demo/sheet.js` (border, header, title block, parts list, notes, revision cloud, rain, hand shadow, stamp), `demo/film.js` (timeline on a beat grid: cameras, acting, subtitles, sound events). A new machine goes in its own module like `demo/machine.js`. File map and build: [DEMO.md](DEMO.md#build-notes).++## 11. Variation space++You decide what is designed, its figures, the flaw or turn (if any), the voice, the one real thing (or none), the camera path, the opening, the ending and the length.++All far from our demo:++- Structures: **a city through revisions** (one site plan, REV. 1 to REV. 6, each revision a decade, the title block filling with dates); **two sheets, one table** (two designs drawn in parallel that turn out to fit together); **a teardown in reverse** (the sheet starts full and parts are erased one by one until only the centre line of the idea remains).+- Openings: **a single centre line** crossing an empty sheet on the first beat; **the stamp first** (REJECTED lands, then we see what was rejected); **tracing paper** lifted off a finished drawing to reveal a blank sheet underneath.+- Endings: **the sheet folds up** along its creases into a pocket-sized square; **a coffee ring** lands on the title block and the tide line becomes the last circle of the design; **the lights go off** and the white lines glow faintly on the dark sheet.----## 1. What this style is--The whole film happens **on one sheet of blueprint paper** lying on a dark drafting table. Everything is white line work on uneven Prussian blue: centre lines, outlines, hatching, dimension lines, leader lines with numbered balloons, a title block and a notes column. The camera moves over the sheet like an eye reading a drawing. It is a **2D line-drawing language**. You may use orthographic and oblique/isometric projection, but **never 3D rendering**.--The charm is the tension between **rigorous engineering convention** and **whimsy**. The drawing is dry and exact. The notes carry the jokes ("10 · COUNTERWEIGHT (GRANDMOTHER'S IRON)"). And once per film, a drawing symbol breaks the rules and becomes real.--Learn grammar from, but never copy: the moving technical drawings in Prologue Films' *Iron Man* (2008) end credits, Leonardo's *Codex Atlanticus* pages, 19th-century US patent drawings (Fig. 1 / Fig. 2, part balloons, fine-line shading) and the automaton drawings in *Hugo* (2011). No Marvel elements, no real patents, no real inventor's machine or signature.--## 2. Story: what fits this style--The machine (or object, or plan) **is the character**. Parts act: a boom lifts hopefully or droops, a weather vane perks up or sags, bellows breathe, a gauge needle twitches at zero. The inventor appears only as a **hand shadow with a pen tip**, or as a signature.--| Native power | Story use |-|---|---|-| **Drafting order** | The object draws itself the way an engineer would: centre lines → outlines → gears/detail → hatching → dimensions → balloons → label. Each layer lands on a beat. |-| **Live annotations** | Dimension lines measure moving parts and the numbers change. Leader lines and balloons fly with exploded parts. A section line A–A sweeps across a housing and reveals the inside. |-| **Fig. numbers as transitions** | "FIG. 1" gets struck through and rewritten "FIG. 2 · EXPLODED VIEW", then "FIG. 3 · IN OPERATION". |-| **Projection is a camera** | Animate the oblique depth factor from 0 (flat elevation) to 0.5. The line drawing "turns" and gains thickness, with no 3D renderer. Exploded parts fly along the depth axis. |-| **Drawing symbols made real** (put this at the emotional peak) | A revision cloud becomes a real rain cloud. Other candidates: a dimension arrow becomes a real arrow, a hatch pattern becomes rain, a centre line becomes a road, a weld symbol sparks. Rule: **this one symbol is the only thing in the film that leaves the drawing language.** It gets soft volume, gradient, glow, and a shadow that falls across the drawing's lines. |-| **Cyanotype and water** | Rain on the sheet: each drop blooms deeper blue with a pale tide line, and white lines inside the stain go soft. A drop on the signature makes it bleed. |-| **The title block** | Title card = sheet header. Status field = the story's verdict (a red rubber stamp is the film's only non-blue colour). End card = the title block's last row being lettered in (STYLE / DRAWN BY). |--**Adapting any topic:** turn the topic into **something designed** and let the drawing find a flaw that only the drawing can fix. A product launch becomes Fig. 1, exploded view, operation, then a revision that adds the missing feature. A love story: two machines on one sheet, and a revision cloud draws the bridge. A history lesson: a city plan revised again and again (REV. 1, 2, 3).--**Emotional arc (40–50 s):** curiosity (blank sheet, the object is drawn) → pride (exploded view) → excitement (it runs, on the beat) → the flaw (it works perfectly but the world lacks something; music stops) → the hand revises the drawing → **the symbol becomes real** (suspended chord, no voice) → payoff → echo (stamp, signature, title block).--## 3. Visual language (exact numbers from the demo)--- **Sheet**: 3200 × 2200 units, folded in quarters. The blue is procedural in a WebGL fragment shader in *sheet coordinates*, so it stays crisp at any zoom. Low-frequency fbm between `#18336B` and `#2A58A6`, horizontal coating streaks, a slight left-to-right fade, fibre noise, sparse fibres, fold creases (bright edge, dark edge, worn whitening along the fold), irregular bleached edges and corners, small specks. Outside the sheet: dark drafting cloth `#0D1116` with a drop shadow.-- **Lines**: pale blue-white `#E7F0F9`, slightly soft (mipmap bleed), with a faint ink breakup driven by paper grain.- - Weights in sheet units: outline 3.2, detail 2.0, thin 1.25, hair 0.9.- - **Screen width = sheet width × zoom^0.65.** Close-ups do not turn into sausages and wides do not vanish.- - Dashes: centre line `[34,7,6,7]`, hidden `[11,7]`, phantom (cutting plane) `[30,6,5,6,5,6]`, all scaled with zoom so the pattern stays on the paper.-- **Occlusion**: every solid is filled with "paper" (black in the ink buffer) before its outline is stroked, painter's order. Extrusion in oblique uses a sweep: stroke the outline at N depth steps at 2× width, then fill the same N steps with paper. What survives is a clean silhouette of half width. Front face and visible vertex connectors are drawn on top.-- **Composite**: the ink canvas is greyscale (white = exposed line). The fx canvas has R = shadow darkening, G = wetness, B = stamp ink, and is added with `lighter`. The overlay canvas holds subtitles. Shadows darken lines too, which is how a lifted object proves it has left the paper. To keep an object from being darkened by its own shadow, multiply its area by `rgb(0,255,255)` on the fx canvas.-- **Hatching** (fine-line shading) for sections, soil and the counterweight, at 45°, spacing 8–14 units.-- **The magic object** (climax only): union of circles (15 scallops plus 4 inner lobes).- - Flat state: an outward-scalloped revision cloud.- - Puffed state: one radial gradient across the whole union (top-left light) plus small highlights on the top lobes, a blurred white glow, engraved crescent shading on the lower right (mask = union minus the union shifted up-left), and a thicker outline on the shadow side.- - It leaves a pale "unexposed imprint" where it was drawn. Its shadow offset grows with lift (up to ~240 units down).-- **Palette discipline**: blue and white only. One stamp red `#C23B2E`, used exactly once.-- **Typography** (all OFL):- - Architects Daughter for hand lettering (header, labels, notes, subtitles).- - B612 / B612 Bold for title-block fields and "PATENT PENDING".- - Allura for the signature.- - Text is written on left to right with a glowing nib.--## 4. Motion language--- Line **draw-on** is truncated by arc length, with a small glowing nib at the head. Stagger items within a layer. Each layer starts on a beat.-- **Exploded view**: parts leave in sequence, one every ~0.055 of the progress, on eighth notes, with eased motion. The camera pulls back to make room. Parts come back **one eighth note per group with a brass click**.-- **Mechanisms step on the grid**: gears advance one tooth (7.5°) per eighth note with a 0.35-beat ease-out, like an escapement. Meshing phase is computed so teeth really interlock. Chain links move with the pinion. Bellows breathe per beat.-- **Machine acting**: boom angle, vane droop, bellows volume and gauge needle are the face. Failure means the gears slow, the bellows deflate, the boom sags and the vane droops over ~1.5 s. Joy means the vane snaps upright and the needle overshoots (back-ease) to 1.-- **Camera moves on ones (24 fps)**, continuous within a section, with hard cuts on downbeats between sections. Two tiny camera bumps: the paper slap and the stamp.--## 5. Camera language--| Beat | Camera |-|---|---|-| Opening | Whole sheet on the dark table. The roll snaps open, then the T-square. Establishing shot only. |-| Title | Push to the header lettering. |-| Drawing | Medium on Fig. 1, machine ~80% of frame height, empty sky on the right (subtitles live there). |-| Exploded view | Pull back so the machine is centre-left and the parts list peeks in on the right. |-| Operation (the memorable shot) | Cut to a 2× close-up of crank and gears, then **track along the drive chain** up the mast to the boom and follow the net's arc. The camera follows the path of force. |-| The flaw | Medium-wide with lots of empty sky. The emptiness is the joke. |-| Revision | Locked-off while the hand shadow draws. Hold one beat on the finished symbol. |-| Symbol comes alive | Slow push-in, no voice. |-| Payoff | Follow the object down to the target, push in on the result (the flower). |-| Ending | Pull back to the whole sheet (scale reveal). The stamp lands in the wide. Push to the title block for the end card. |--Keep storytelling shots close. Only the opening and closing establishing shots are full-sheet.--## 6. Sound--- **Music**: two-part **baroque invention** at 108 BPM in G major. Harpsichord theme (a one-bar sixteenth-note "gear" motive), bassoon staccato imitating two octaves below.- - Operation adds violins and cellos spiccato eighths ("gears biting").- - The flaw: instruments drop out with a written-out ritardando, then true digital silence.- - The revision is silent except for a three-note questioning figure.- - The miracle holds a Dsus4 string chord with two breathing swells, unresolved.- - The catch resolves to G on the downbeat.- - Rain uses harp and harpsichord arpeggios.- - A short full cadence lands on the stamp, and the theme returns in augmentation for the end card.- - Rendered with `core/audio/sampler.py`: VCSL harpsichord and harp, VSCO 2 CE bassoon, strings and spiccato.-- **Foley follows materials**:- - Paper: roll unroll crackle and slap, T-square wood slide, technical pen scratch (2–6 kHz grain, length = stroke length), lettering (bursts of short strokes), compass squeak, hatching (13 strokes/s).- - Brass and wood: part clicks (3.1 / 5.2 kHz resonances), escapement ticks, chain rattle, bellows breath, wind-down ticks that slow by ×1.35.- - The magic moment: soft paper "puffs" on the two breaths, a noise swell, nothing else.- - Water: soft damped pats per drop plus a light rain bed.- - Rubber stamp thump, pen cap click at the very end.-- **Voice**: dry-humoured British engineer reading his own design notes, Kokoro `bm_daniel`, `lang en-gb`, speed 0.9. Five or six short lines. Keep the climax voiceless.-- **Mix**: music ducks to ~0.36 under voice and foley ducks by half. Whooshes low-passed at 2.5 kHz (they masked "bellows" in whisper). −14 LUFS. `mux.sh` grain 4 (the paper grain is in the image already).--## 7. Subtitles & titles--- **Subtitles are drawing notes**: a light box (rgba(12,28,62,.58), 1.2 px outer and 0.8 px inner white rule, ~110–150 px tall), a "NOTE / n" cell in B612 Bold, the text in Architects Daughter 38 px written on in 0.35 s, and a small leader tick at the lower-left corner.- - **Position per shot, in empty sky**, never fixed to the bottom. The bottom of the frame is where the ground line, base and title block live.- - Wrap at ~880 px.-- Every subtitle is also lettered into the sheet's **GENERAL NOTES** column (under the fixed notes "ALL DIMENSIONS IN MILLIMETRES." and "DO NOT SCALE DRAWING."), so the final wide shows the whole voiceover as drawing notes.-- **Title**: the sheet header (Architects Daughter 132 units, letter-spaced, double underline), with PATENT PENDING and a subtitle line in B612.-- **End card**: the title block. The last row is lettered in: STYLE: BLUEPRINT / DRAWN BY: LemoLab × Claude Opus 5.5.--## 8. Pitfalls we hit--- **The machine near the sheet edge**: wide shots showed the desk. Put the main figure at least `960/zoom` from any sheet edge you will frame in a wide, or make the sheet bigger (we went 3200×2000 → 3200×2200 and moved the machine right).-- **Explosions that go up hit the header.** Explode mostly upward and sideways, and flatten the boom during the explode so the net extends sideways.-- **Subtitles on the ink canvas** vanish off-sheet and cannot occlude lines. Use a separate overlay texture composited last (premultiplied alpha).-- **The magic object darkened by its own shadow.** Multiply its area on the fx canvas with `rgb(0,255,255)` to zero the shadow channel only.-- **Per-lobe shading makes "grapes" or bubble wrap.** Use one gradient across the union, crescents from a union-minus-shifted-union mask, and arcs only on the upper inner lobes.-- **Overlapping additive circle fills make bubbles.** Fill a union as one path with `fill('nonzero')`.-- **Scallop arcs drawn the wrong way round look like a starburst.** Choose the arc direction that contains the lobe's outward angle.-- **The half-puffed cloud looked like a donut.** Grow the inner lobes early (`r × min(1, pf × 2.2)`).-- **The payoff must be big.** The first cut had the flower as a small clump in the lower third, which undersold the emotional return. Give the payoff object ~1/3 of frame height, centred, drawn stroke by stroke (stem → leaves → one petal per beat), with visible stains around it. Keep subtitles off it.-- **A caught object shows through the net.** Don't paint the net over it wholesale: fill the bag below the front rim with the object's body, then draw mesh and front rim on top, and skip the back rim.-- `sfx.thump()` is 0.35 s long: pad before adding to longer buffers.-- Whisper reads "Figure one" as "Figure 1": use an `asr` field in `lines.json`.-- **A stray file at the repo root**: always write with absolute paths inside your style dir.--## 9. Production recipe (this repo)--```-styles/blueprint/demo/- paper.js WebGL2 compositor: procedural cyanotype sheet, ink bleed, wet stains, shadows, stamp, roll- draw.js drafting engine: camera, oblique projection, draw-on polylines, solids, hatching, dims, balloons, text- machine.js the Cloud Catcher: parts, gear meshing, explode offsets and paths, garden and flower- sheet.js border, header, title block, parts list, notes, revision cloud ↔ cloud, rain, hand shadow, stamp- film.js the whole timeline (108 BPM grid): cameras, acting, subtitles, sound events- main.js page entry (?frame=1|2|3 gate frames, ?nosub, ?poster)- mix.py foley + voice + music ducking music/score.py original score (sampler)- tools/ subs.mjs (SUBS → subs.json), check_mix.py (whisper on the final mix)-```--1. `node core/render/still.mjs styles/blueprint/demo --range 0:46:1.5` then `sheet.py` to review. Iterate per section.-2. `.venv/bin/python core/tts/tts.py lines.json voices`, then `asr_check.py` (6/6 OK).-3. `node core/render/events.mjs`, then `music/score.py`, then `mix.py`, then `tools/check_mix.py`.-4. `node core/render/video.mjs styles/blueprint/demo --fps 24 --workers 3` (1120 frames, Canvas2D + WebGL, ~30 s).-5. `sh core/render/mux.sh out/video24.mp4 mix.wav blueprint.mp4 24 4`. Or run everything with `sh styles/blueprint/demo/build.sh`.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/blueprint/TREATMENT.md b/styles/blueprint/TREATMENT.mddeleted file mode 100644index d8494e0..0000000--- a/styles/blueprint/TREATMENT.md+++ /dev/null@@ -1,160 +0,0 @@-# Blueprint · 导演方案(Treatment)--**片名** *Patent Pending: The Cloud Catcher*(片内标题:THE CLOUD CATCHER / PATENT PENDING)-**时长** 46.7 秒(21 小节 × 2.222 s,108 BPM)| **画幅** 1920×1080 | **帧率** 24fps 输出;线条"画出"、零件飞行、镜头全部逐帧平滑;齿轮按八分音符**步进**转动(擒纵式"一格一格"咬合,本身就是节奏)-**一句话** 一位老发明家的晒图纸上,一台"接云浇花机"自己画了出来、爆炸拆解、装配、运转——可这张图纸上根本没有云。发明家的手伸进来,在空白的天空处画了一个"修订云线"。这个工程符号鼓了起来、离开纸面,变成一朵真的雨云,雨落在图纸上,蓝色洇开,一朵白线画的花从水渍里长了出来。-**主题** 图纸是对世界的承诺;修订,是承认世界还缺一样东西。-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么(语法) | 刻意不学 |-|---|---|---|-| **《Iron Man》(2008) 片尾字幕(Prologue Films)** | 技术线稿在运动中爆炸拆解;引线标注跟着零件飞;线条在黑/蓝底上发光地"被画出来";镜头沿机械结构滑行;投影方式本身在变(平面 → 有纵深) | 不出现任何钢铁侠/漫威元素(装甲、反应堆、红金配色、HUD 字体);不做发光科幻 HUD,本片是纸上的墨线 |-| **达·芬奇手稿(Codex Atlanticus)** | 机器、手写注释、剖面同在一页的"思考的痕迹";注释本身是叙事(我们的注释里藏着干幽默:配重是"祖母的熨斗") | 不复刻任何达·芬奇的具体机器、镜像字、棕色纸 |-| **19 世纪美国专利图** | Fig. 1 / Fig. 2 编号、零件号圆圈(balloon)、细线阴影法(hatching)、斜二测(cabinet oblique)投影——正面保持真形所以齿轮永远是正圆、一加纵深就有体积 | 不复刻任何真实专利的图面、编号、签名 |-| **《Hugo》(2011) 的自动人偶图纸** | "机器等于角色":图纸里的机器有性格和心事;机械运转的喜悦 | 不借用自动人偶造型 |-| **真实晒图(cyanotype / blueprint)** | 普鲁士蓝不均匀褪色、纸纹、折痕、边缘发白、白线略软微晕;**水会让氰版洇开**(蓝变深、边缘留浅色水痕线) | 不做成数码干净的"蓝底白线矢量图"——所有质感在一个纸张着色器里模拟 |-------## 二、为什么这个媒介讲这个故事(原生能力 → 故事用法)--| 蓝图的原生能力 | 故事里怎么用 |-|---|---|-| **绘图顺序**:先中心线(点划线)、再轮廓(粗线)、再细节、再剖面线、最后尺寸和标注 | 开场的"画出来"严格按制图顺序走,每一层落在一个拍点上:观众看到的是一个工程师的思路 |-| **标注是活的**(原生招式 1) | 爆炸视图里:引线 + 零件号跟着零件飞;尺寸线实时测量零件间距,数字跟着变(0 → 480);剖切线 A–A 扫过齿轮箱,扫过之处外壳消失、露出内部齿轮和剖面阴影线 |-| **Fig. 编号** | 转场 = 编号改写:"FIG. 1" 的 1 被划掉写成 2(爆炸视图),再改成 3(运转) |-| **投影方式** | 爆炸时图纸"转身":正立面(深度 0)→ 斜二测(深度系数 0.5),线稿第一次有了厚度,零件沿纵深轴飞出——不用 3D 渲染,只改投影公式 |-| **修订云线(revision cloud)**(原生招式 2,情绪高点) | 制图里用来圈出"这里改了"的扇贝形云线符号——发明家在空白天空处圈了一个,写上"REV. 1 — ADD ONE (1) CLOUD"。音乐停在悬置和弦,符号的扇贝鼓成云团、长出阴影线体积、在纸上投下影子(它离开了纸面),然后被网接住、下雨。符号 = 云,这是本片的双关 |-| **氰版遇水洇开**(原生招式 3) | 雨滴落在纸上:每一滴都晕开一圈更深的蓝和一道浅色水痕;水渍里的白线被泡软;一朵白线花从最大的水渍里画出来。结尾一滴雨落在签名上,签名洇开 |-| **标题栏** | 片名卡、状态(STATUS: PATENT PENDING → 红色印章 WORKS)、片尾卡都在同一个标题栏里:片尾卡 = 标题栏最后一行被写上 "STYLE: BLUEPRINT / DRAWN: LemoLab × Claude Opus 5.5" |--**情绪弧**:好奇(空白纸 → 机器被画出)→ 骄傲(爆炸视图,发明家在炫耀)→ 兴奋(运转,齿轮按节拍咬合)→ 落空(网扫过空白的天空,什么也没有;机器泄气、吊臂垂下、风向标耷拉;音乐停)→ 灵机一动(手伸进来画修订云线)→ **奇迹**(符号变成云,悬置和弦)→ 满足(接住、下雨、花长出来)→ 回响(印章 WORKS、签名被雨洇开、"Slightly damp.")。--一个主体(这台机器 / 发明家的执念)、一个目标(让干旱的小花园下雨)、一次转折(机器完美但世界里没有云 → 改的不是机器,而是图纸本身)。-开场 3 秒钩子:黑暗里一卷晒图纸"啪"地甩开铺满画面,丁字尺滑过,第一根白线被拉出来。-结尾回响:开场第一根线来自丁字尺,结尾最后一笔是标题栏里的署名行;开场"PATENT PENDING",结尾被印章改成"WORKS"。-------## 三、主角:接云机(机器 = 角色)--正立面图,比例 1:12(纸面约 1000 单位高)。**性格靠零件表演**:--| 号 | 零件 | 角色功能 |-|---|---|---|-| 1 | BASE PLATE 底板(4 螺栓、两只小脚轮) | 站姿 |-| 2 | GEAR HOUSING 齿轮箱(正面外露齿轮组:大齿轮 48T、惰轮 24T、小齿轮 12T) | 心脏;按节拍步进转动 |-| 3 | CRANK 手摇柄 | 运转的起点 |-| 4 | CLOUD GAUGE 云量表(表盘 + 指针,刻度 0–1) | "眼睛":失败时指针停在 0 抖一下;接到云后跳到 1 |-| 5 | BELLOWS 风箱(齿轮箱左侧) | "呼吸":运转时一张一合,泄气时瘪下去 |-| 6 | MAST 桁架桅杆(三角斜撑) | 脊梁 |-| 7 | DRIVE CHAIN 传动链(沿桅杆上行,链轮上下各一) | 镜头跟拍的"传动链" |-| 8 | HEAD 顶部链轮箱 | 肩膀 |-| 9 | BOOM 桁架吊臂 | 手臂:满怀希望地抬起 / 失望地垂下 |-| 10 | COUNTERWEIGHT 配重(标注:GRANDMOTHER'S IRON) | 干幽默 |-| 11 | NET HOOP & NET 网圈与网兜 | "手":一个巨大的捕虫网 |-| 12 | WEATHER VANE 风向标(小三角旗) | 表情:高兴时竖起,失望时耷拉 |-| 13 | GARDEN (DRY) 小花坛(土壤阴影线 + 一朵低垂的花) | 目标 |-------## 四、分镜节拍表(108 BPM;1 拍 = 0.556 s,1 小节 = 2.222 s;动作落拍)--| # | 时间 | 小节 | 镜头 | 画面 / 表演 | 机位意图 |-|---|---|---|---|---|---|-| 1 | 0.00–2.22 | 1 | **全纸俯视** | 黑色绘图桌。0.08 一卷晒图纸从左向右甩开(卷筒 + 卷曲阴影),0.55 "啪"地落平(镜头轻震);0.7 丁字尺从下方滑入,沿尺边拉出第一根横线;1.2–2.2 图框四边、分区刻度依次画出 | 开场 3 秒抓人:先看"纸"这个物件本身;丁字尺 = 工程师的仪式 |-| 2 | 2.22–4.44 | 2 | **全纸,缓推向页眉** | 2.22 下拍:页眉大字 THE CLOUD CATCHER 被逐字"写"出(字帖尺的节奏),下一行 PATENT PENDING · APPARATUS FOR THE CAPTURE OF CLOUDS;标题栏格线画出 | 片名卡就是图纸页眉,不另做片头 |-| 3 | 4.44–11.11 | 3–5 | **滑到 Fig. 1,中景** | 严格按制图顺序:4.44 点划中心线(桅杆轴、齿轮轴、吊臂轴)一笔射出;5.56 轮廓粗线(底板、齿轮箱、桅杆桁架);6.67 齿轮(带齿)、吊臂、网;7.78 风箱、配重、剖面阴影线;8.89 尺寸线 + 数字 + 引线 + 零件号 + "FIG. 1";9.5 花坛与低垂的花、"13 GARDEN (DRY)" | 镜头从页眉"滑"到 Fig. 1(2D 图纸上的横摇);中景让机器占画面 80% 高 |-| 4 | 11.11–15.56 | 6–7 | **爆炸视图,缓慢拉远** | 11.11 "FIG. 1" 的 1 被划掉写成 2 + "EXPLODED VIEW";11.1–12.2 图纸"转身":投影从正立面变斜二测,线稿长出厚度;12.2–15.4 零件按八分音符依次沿各自装配轴飞出(点划装配线跟着画出),引线和零件号跟着飞,尺寸线实时测量桅杆与顶箱的间距(数字 0 → 480),剖切线 A–A 从左到右扫过齿轮箱,扫过处露出内部齿轮与剖面线;15.56 乐句句尾 = 爆炸停在最大 | **原生招式 1:标注是活的**。拉远是为了给飞散的零件留空间,也像观众后退一步欣赏 |-| 5 | 15.56–17.78 | 8 | **同机位** | 15.56–16.67 悬停,零件轻微漂浮;16.67–17.78 每个八分音符"咔"地装回一个零件(逆序),17.78 "FIG. 2" 改写成 "FIG. 3 — IN OPERATION" | 装配的咔哒声 = 节拍器,把观众带进运转段 |-| 6 | 17.78–22.22 | 9–10 | **跟拍传动链(记得住的镜头)** | 17.78 特写手摇柄与齿轮组,所有齿轮按八分音符一格一格咬合(跳弓弦乐进);19.0 镜头沿链条一路上摇,经过桁架斜撑、链节,到顶箱链轮;20.5 吊臂抬起,网兜划过天空一道大弧,镜头跟着网 | 镜头 = 动力的路径:从手摇柄到网,观众"跟着力走一遍" |-| 7 | 22.22–24.44 | 11 | **中景,网在空白天空里** | 网停在最高点:里面什么都没有。云量表指针停在 0,抖一下。机器泄气:齿轮减速停下、风箱瘪下去、吊臂缓缓垂下、风向标耷拉。天空里浮出一个小标注 "(NO CLOUDS ON SHEET)" | 留白构图:网在画面一角,画面大半是空的蓝纸——"空"就是笑点 |-| 8 | 24.44–28.89 | 12–13 | **中景,固定** | 静默(只有纸面环境声)。发明家的手的**影子**和笔尖从右下伸进来(本人只以影子 + 笔出现),25.0–27.4 一弧一弧地画出修订云线,圈住空白天空;27.4 修订三角 △1 + "REV. 1 — ADD ONE (1) CLOUD";手退出 | 固定机位 = 屏息看人写字;手是影子,所以它来自"纸外面的世界" |-| 9 | 28.89–31.11 | 14 | **缓推 + 轻微上浮(情绪高点)** | 音乐停在悬置和弦上(延长记号)。修订云线颤动,扇贝一个个鼓成圆团,长出内部轮廓线和下缘阴影线;纸上出现一块投影并慢慢错开——它离开了纸面;原位置留下一圈更浅的"曝光印子" | **原生招式 2:修订云线变成雨云**。缓推把观众拉近奇迹 |-| 10 | 31.11–33.33 | 15 | **中景** | 31.11 悬置和弦解决(下拍):机器一下子活过来,风向标竖起、吊臂抬起、网兜住云(云从网眼里鼓出来)、指针跳到 1;32.2 吊臂把云送到花坛上方 | 解决和弦 = 动作爆发,音乐和机器同时"醒来" |-| 11 | 33.33–37.78 | 16–17 | **中近景,缓推向花** | 云变暗(阴影线加密),下雨:白色短线落下,每一滴落纸都晕开一圈深蓝 + 浅色水痕,水渍连成片,白线被泡软;低垂的花抬头,一朵新花从最大的水渍里画出来(茎 → 叶 → 花瓣一片片展开) | **原生招式 3:氰版遇水洇开** |-| 12 | 37.78–40.00 | 18 | **一路拉远到全纸(尺度揭示)** | 整张图纸:页眉、Fig. 1 与它头顶的雨云、水渍与花、右侧的注释栏(每句字幕都已写在上面)、标题栏 | 回到开场的全纸机位:同一张纸,现在湿了、活了 |-| 13 | 40.00–42.22 | 19 | **推到标题栏** | 40.0 下拍:红色印章 WORKS 斜着砸在 "STATUS: PATENT PENDING" 上(全片唯一的非蓝白颜色),镜头一震;42.0 一滴雨落在签名上,签名洇开 | 印章 = 故事的句号;红色只留给这一下 |-| 14 | 42.22–46.67 | 20–21 | **片尾卡 = 标题栏** | 标题栏最后一行被写上:STYLE: BLUEPRINT / DRAWN: LemoLab × Claude Opus 5.5;45.5 笔帽"咔"一声 | 首尾呼应:片头是页眉,片尾是标题栏 |--**旁白(Kokoro `bm_daniel`,英式干幽默工程师,speed 0.9,lang en-gb;像发明家在念自己的设计说明)**--| # | 时间 | 时长 | 文本 |-|---|---|---|---|-| 1 | 5.20 | 2.9 s | Figure one. An apparatus for catching clouds. |-| 2 | 12.20 | 4.4 s | Figure two. Thirteen parts, one bellows, and a rather optimistic net. |-| 3 | 21.90 | 3.5 s | It works beautifully. Except, there are no clouds on this sheet. |-| 4 | 26.10 | 2.0 s | So, I issued a revision. |-| 5 | 33.70 | 3.4 s | It rained on the drawing. I'm told drawings don't do that. |-| 6 | 40.70 | 2.2 s | Status: works. Slightly damp. |--字幕停留:每句 ≥ 语音 + 0.6 s 且 ≥ 1.8 s;片名(2.2–5.0)与第一句字幕错开;情绪高点 28.9–33.3 无旁白、无字幕,让画面和音乐说话。-------## 五、Cue map(音乐先行;108 BPM,G 大调,二声部巴洛克创意曲)--主题:一个 1 小节的十六分音符动机(像齿轮:上行级进 + 分解和弦),在二声部间模仿。--| 小节 | 时间 | 画面 | 配器 | 情绪 | 卡点 |-|---|---|---|---|---|---|-| 1 | 0–2.22 | 纸甩开、丁字尺 | 无音乐:纸卷甩开、"啪"、丁字尺木头滑动、针管笔划纸 | 期待 | 0.55 啪;1.67 羽管键琴弱起(三个十六分音符) |-| 2–3 | 2.22–6.67 | 页眉、中心线 | **harpsichord** 主题独奏(右手声部) | 好奇、机灵 | 2.22 片名 = 主题第一个下拍;4.44 中心线 = 主题再起 |-| 4–5 | 6.67–11.11 | 轮廓、齿轮、尺寸 | + **bassoon_stac** 低声部模仿(二声部对位成型) | 专注、有条理 | 每个制图层落在小节/半小节 |-| 6–7 | 11.11–15.56 | 爆炸视图 | 二声部 + 低音八度加厚,模进上行 | 炫耀 | 11.11 转身;零件按八分音符飞出(每个一声纸面"嗖");15.56 句尾终止式 = 爆炸停在最大 |-| 8 | 15.56–17.78 | 悬停 → 装配 | 前半小节只剩一个延长音;后半八分音符和弦断奏 | 屏息 → 利落 | 16.67 起每个八分音符 = 一次装配咔哒 |-| 9–10 | 17.78–22.22 | 运转 + 跟拍 | 全体:+ **violins_spic** + **cellos_spic** 跳弓八分音符 = "齿轮咬合";bassoon 持续低音 | 兴奋、机械的喜悦 | 齿轮每个八分音符步进一格;20.5 吊臂抬起 = 小提琴上行音阶 |-| 11 | 22.22–24.44 | 网是空的 | 乐器逐个掉队,渐慢(ritardando),最后一个 bassoon 低音"噗" | 落空、泄气 | 22.22 网停;23.9 最后一个音 |-| 12–13 | 24.44–28.89 | 手画修订云线 | 静默;只有纸面环境声、笔尖划纸;27.4 羽管键琴轻轻三个音(疑问句) | 灵机一动 | 每一弧一声笔划 |-| 14 | 28.89–31.11 | **修订云线 → 云** | **悬置和弦**(Dsus4,弦乐长音 + 羽管键琴滚奏),渐强,延长记号,不解决 | 奇迹、屏息 | 28.89 悬置和弦进入 |-| 15 | 31.11–33.33 | 接住云 | 31.11 **解决到 G 大调**:全体回到主题一个小节 | 爆发、欣喜 | 31.11 解决 = 机器醒来 |-| 16–18 | 33.33–40.00 | 下雨、花、拉远 | **harp** + **harpsichord** 柔和分解和弦(G – Em – C – D),跳弓弦乐撤出 | 温柔、满足 | 35.5 花开 = 竖琴上行琶音顶点 |-| 19 | 40.00–42.22 | 印章 | 40.00 全体一个短促的终止和弦(印章同拍),然后羽管键琴单声部 | 句号 | 40.00 印章 |-| 20–21 | 42.22–46.67 | 片尾卡 | 主题动机最后一次(慢一倍),G 大调主和弦延音 | 余韵 | 42.22 最后一行开始书写;45.5 笔帽咔 |--配乐做法:`core/audio/sampler.py`(INSTRUMENTS.md 已 STATUS: READY)采样 `harpsichord`、`bassoon_stac`、`violins_spic`、`cellos_spic`、`harp`、弦乐长音;关卡 1 批准后 fork 一个子 agent 按本表写配乐(BPM 网格、每小节配器与卡点、旁白窗口作为契约)。-------## 六、声音设计(拟音跟材质走:纸 / 木 / 金属笔尖 / 黄铜齿轮 / 水)--- **纸**:纸卷甩开(高频沙沙 + 卷筒滚动)→ "啪"落平(低频闷拍 + 纸面脆响);纸面环境底噪(极轻的纸纤维摩擦 + 远处室内底噪)。-- **绘图工具**:丁字尺木头滑动(低通噪声 + 细小颤动);针管笔划纸(带通 2–6 kHz 颗粒噪声,笔画长短 = 声音长短,每层线条对应一簇);写字(短促的点划);圆规转动(画齿轮圆时,一圈金属"吱")。-- **机器**:零件飞出 = 纸面"嗖"(短带通 whoosh);装配 = 黄铜"咔"(瞬态 + 3.1/5.2 kHz 共振);齿轮步进 = 擒纵"嗒"(每八分音符一声,与跳弓弦乐重叠);风箱呼吸(低通噪声吸气/呼气);链条沙沙;失败时齿轮减速的"咔…咔……咔"。-- **修订云线变云**:纸面轻微"起鼓"声(低频膨胀 + 纸张轻响),无其它拟音,让悬置和弦独占。-- **雨**:雨滴落纸(每滴一个柔软的"嗒",纸面阻尼、无金属感)+ 雨床;水渍晕开无声。-- **印章**:木柄橡皮章砸下(低频 thump + 纸面拍击 + 极短的橡皮"噗")。-- **笔帽**:结尾一声塑料/金属笔帽"咔"。-- 混音:旁白压缩后置前,音乐在旁白下闪避约 −8 dB;拟音干、近(桌面距离);最终 −14 LUFS,mux grain = 4(轻;晒图纸颗粒在画面里做)。-------## 七、字幕与标题设计--- **字幕 = 图纸上的注释**:画面左下固定一个"NOTES"注释框(细白双线框,框角有一个小的引线折角),前缀 "NOTE 1." 用 B612 Bold 小号字,正文用 **Architects Daughter**(OFL 手写工程字)44 px 白色,出现时像被写出来一样从左到右逐字显现(0.3 s 内写完,保证阅读时间)。框底色是比纸略深的半透明蓝,保证在任何画面上可读。-- 同一句话同时被写进图纸右侧的 **GENERAL NOTES** 栏(第 12 镜全纸揭示时,观众看到全部旁白都成了图纸上的注释)。-- **片名**:页眉大字 THE CLOUD CATCHER(Architects Daughter,大写,加宽字距),下方 PATENT PENDING 与副标题(B612)。-- **片尾卡**:标题栏特写,最后一行写上 STYLE: BLUEPRINT / DRAWN: LemoLab × Claude Opus 5.5。-------## 八、视觉规格(摘要)--- 纸:普鲁士蓝在 #1F3F7A–#2A5CAA 之间低频不均匀褪色;纸纤维;两道折痕(十字折,亮边 + 暗边);边缘不规则发白;全在 WebGL 着色器里按纸面坐标程序生成(任意缩放都清晰)。-- 线:浅蓝白 #E6EEF8;线宽分级(轮廓 3.2 / 细节 2.0 / 尺寸与引线 1.2 / 点划中心线 1.2 / 虚线隐藏线 1.2,纸面单位;屏幕线宽 = 纸面线宽 × 缩放^0.65,特写不会糊成粗棒);白线轻微晕开、随纸纹有极轻的断墨。-- 遮挡:每个零件先用"纸色"填充再描边(画家算法),线稿自带消隐。-- 投影:正立面 → 斜二测(cabinet,45°,深度系数 0–0.5 可动画)。-- 唯一的强调色:印章红 #C23B2E。-- 影子(手、云):纸面变暗的柔和投影,不是黑色。-------## 九、对风格说明的调整(及理由)--1. **时长 40 s → 46.7 s**:六句旁白都要留足阅读时间,情绪高点(28.9–33.3)刻意无旁白,片尾卡需要约 3.5 s 读清署名;按"节奏以观众为准"加了 3 小节。-2. **爆炸视图同时"转身"成斜二测**:派单只说爆炸拆解;我把"投影方式改变"作为另一个只有工程图才有的语法,让线稿第一次有厚度,零件沿纵深轴飞出更像对标的爆炸视图。-3. **发明家的手只以影子 + 笔尖出现**:影子天然"来自纸外",和"符号变成真实"的主题一致,也避免在蓝图语言里混入写实的手。-4. **两个结尾建议都用了**:印章 WORKS + 雨滴洇开签名,再加一句干幽默的 "Slightly damp." 收尾;片尾卡直接做在标题栏里,风格名和署名成为图纸的一部分。diff --git a/styles/blueprint/style.json b/styles/blueprint/style.jsonnew file mode 100644index 0000000..937c253--- /dev/null+++ b/styles/blueprint/style.json@@ -0,0 +1,18 @@+{+ "slug": "blueprint",+ "num": "19",+ "en": "Blueprint",+ "cn": "蓝图 / 工程制图",+ "category_en": "Graphic & Type",+ "category_cn": "图形与排版",+ "film": "Patent Pending: The Cloud Catcher",+ "line": "An inventor's blueprint draws, explodes and assembles a cloud-catching machine, and its revision cloud starts to rain.",+ "line_cn": "发明家的蓝图自己画出一台接云机器,修订云线变成了真的雨云。",+ "uses": [+ "Engineering",+ "Hardware launches",+ "Tech explainers"+ ],+ "frame_sec": 33.62,+ "dur": 46.7+}diff --git a/styles/brick-toy/DEMO.md b/styles/brick-toy/DEMO.mdnew file mode 100644index 0000000..960d8ab--- /dev/null+++ b/styles/brick-toy/DEMO.md@@ -0,0 +1,74 @@+# Brick Toy — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Rocket from Spare Parts* (54 s) · `brick-toy.mp4` · source in [`demo/`](demo/) · asset credits [`demo/CREDITS`](demo/CREDITS)++## Story & structure++A brick astronaut builds a rocket; it collapses; he rebuilds it from the fallen parts and flies to the "moon" (a stack of books). Failure isn't the end, it's just spare parts. One character, one goal.++The old guide told agents to "turn the topic into something being built" and to use at least three of the four native powers; the demo used all four: snap-together building (open on one brick, end on one brick), break without harm (the collapse becomes the parts for a better rocket), toy on a real desk (a teapot is a mountain, a stack of books is the moon, the lamp is the sun), hand-made stop-motion (12 fps, even the flames and smoke are bricks). The old guide also listed adaptation examples: a product launch → the product is assembled brick by brick; a love story → two characters build a bridge between two books; a history lesson → an era is built, falls, is rebuilt.++Arc (45–60 s, as written for this film): curiosity → excitement → a setback (collapse) → a quiet beat → rebuilding → climax → a warm scale-reveal. Acts: opening 0:00–0:06 (one red brick, the first snap), act one 0:06–0:18 (fast building, pride), act two 0:18–0:30 (collapse, silence, picking up the parts), act three 0:30–0:50 (countdown, ignition, launch, landing on the moon), end card after.++## Shots++| Beat | Camera |+|---|---|+| Opening | Extreme macro on one brick, slow push, background blurred to real props |+| Building | Low angles make the tiny character heroic; cut every bar |+| Setback | Handheld shake on the collapse, then a **low, wide, lonely** frame with the character small |+| Emotional beat | Close-up from the front, character's hands and the brick in focus |+| Climax | Low angle following upward; then a **tracking shot** alongside the rocket with the moon (books) visible ahead |+| Ending | Slow pull-back to a high wide shot of the whole desk: the scale reveal |++Each of these is one choice from STYLE.md §6 made for this story, not the style's default opening or ending.++Lens settings as used: aperture ~500–700 for close-ups, ~800 for mediums, ~400 for the final wide. Snap overshoot 0.35 stud → 0 in ~0.17 s. Collapse gravity ~420 studs/s² (true would be 1225), restitution ~0.3.++## Score structure++Two Kevin MacLeod tracks (CC BY 4.0), edited to the picture by `demo/music/edit.py`: "Monkeys Spinning Monkeys" (playful, cut on bars) for building, the same theme returning quietly for the rebuild, "Heroic Age" as the orchestral swell for the climax. The edit makes the climax hit land on ignition and the final chord land on the end card (bar-aligned jumps, chroma similarity at the joins). `story.js` times are aligned to the music bars.++Silences: music cut dead on the collapse, leaving room tone and a ticking clock; music pulled out again before the climax, with a low heartbeat drum under the countdown.++Foley specific to this film: ignition boom and rocket roar; radio chatter with Quindar beeps.++Voice: warm British storyteller, Kokoro `bm_george`, speed ~0.9, 4–6 short lines; mission control is `am_adam` through a radio filter (band-pass 380–2800 Hz + soft saturation) with Quindar beeps. Every line verified with whisper. Voice compressed, music ducked ~40 % under voice, −14 LUFS.++## Palette & props++- Classic brick palette: red `#c91a09`, blue `#0055bf`, yellow `#f2cd37`, green `#237841`, white `#f2f2ee`, black `#1b2a34`, plus orange, light/dark grey, tan, azure. Bevel radius 0.06; baseplate matte green (it turned cyan with full clearcoat).+- Set: walnut desk (Poly Haven `american_walnut_veneer`), `photo_studio_loft_hall` HDRI, tea set (teapot mountain, cup), pencil, books (the moon), desk lamp (the sun). Key light `#fff4e8` from upper left; softboxes key front-left, cool rim behind, one over the finale set. GTAO radius ~3.5 studs, scale 2.5. Grade: contrast +0.26, saturation ×1.1, slightly cool.+- The astronaut: 1×1 columns for legs, a 2×2 brick torso, round-brick arms, a round 2×2 helmet with a curved visor panel.+- The rocket, fire (translucent orange/yellow round plates jittered every frame), smoke (white round bricks that grow and roll outward), the moon (grey round plates with crater tiles).+- Subtitles: a dark rounded pill `rgba(18,20,26,.62)` centred 150 px above the bottom, Fredoka 600 46 px white, a small yellow 2×1 brick icon on the left. Radio lines get a red brick icon and a "MISSION CONTROL" tag.+- Title: "Rocket from Spare Parts", Fredoka 700, popping in on 12 fps steps, with the yellow sub-line "A BRICK TOY FILM".++## End card++The darkened final wide, the title (Fredoka 700), a brick icon, "BRICK TOY · LEMO-OPUSCAR" in yellow, the "LemoLab × Claude Opus 5.5" line and the asset credits. That sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card (remove the line drawn in `main.js` if you adapt it).++## Build notes++```+styles/brick-toy/demo/+ bricks.js geometry + plastic materials rockets.js props, physics, fx+ actors.js brick-built character rig set.js desk, HDRI, real props, moon+ story.js timeline aligned to music bars main.js acting, cameras, subtitles, events+ lines.json voice script mix.py foley+voice+music music/edit.py score edit+```++1. `node core/render/still.mjs styles/brick-toy/demo <t…>`: review stills, iterate.+2. `.venv/bin/python core/tts/tts.py lines.json voices` → `core/tts/asr_check.py` to verify.+3. `node core/render/events.mjs styles/brick-toy/demo` → `python music/edit.py` → `python mix.py`.+4. `node core/render/video.mjs styles/brick-toy/demo --fps 24` (1296 frames with 2× SSAA + GTAO ≈ 65 s on an M4 Pro).+5. `core/render/mux.sh out/video24.mp4 mix.wav brick-toy.mp4 24`.++Pitfalls tied to this demo's props:+- The helmet visor made from a sphere segment disappeared inside the cylinder helmet; a curved open-cylinder panel fixed it.+- The rocket simply accelerating upward became a dot on a blank wall; a tracking shot aimed at the moon fixed it.+- The desk lamp, placed on the camera axis of a later shot, kept sneaking into the background.+- Stepping the camera at 12 fps too was tried and looked unsmooth; the camera moved to ones.+- Spare-parts piles kept blocking the lens at frame edges.diff --git a/styles/brick-toy/STYLE.md b/styles/brick-toy/STYLE.mdindex f838ef6..a93656c 100644--- a/styles/brick-toy/STYLE.md+++ b/styles/brick-toy/STYLE.md@@ -1,102 +1,112 @@# Brick Toy — Style Prompt-> Stop-motion toy-brick films shot like macro photography on a real desk.-> Demo: *Rocket from Spare Parts* (54s) · `brick-toy.mp4` · source in `demo/`+> Stop-motion toy-brick films shot like macro photography on a real desk: a world built from interlocking plastic bricks with round studs, animated a pose at a time.+> References (grammar only): brick-film stop-motion on a tabletop and the "brick movie" approach of stepping characters while the camera moves smoothly; macro toy photography (softboxes on glossy plastic, shallow focus, real objects as landscape). Copy none of their characters, sets or music, and never use a brand name.-You are directing a 30–60 second film in the **Brick Toy** style. The user gives you a topic (and maybe a story). You decide everything else — story, shots, timing, sound — and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not----+A brick world on a **real surface** (a wooden desk, a kitchen table, a windowsill), shot with a **macro lens** and animated **in stop-motion**. The charm is the tension between the toy world and the real room.-## 1. What this style is+One-glance traits: glossy ABS with clean rectangular highlights; studs on every top face; seams darkened by contact shadow; real objects out of focus behind; characters that move in held poses on twos.-A world built entirely from interlocking plastic bricks with round studs, sitting on a **real wooden desk**, shot with a **macro lens** and animated **in stop-motion**. The charm comes from the tension between the toy world and the real room around it.+**Never** use the LEGO name, logo or minifigure silhouette (trademarks). Characters are *built from bricks* (e.g. 1×1 columns for legs, a 2×2 brick for a torso, round bricks for arms, a round 2×2 helmet). Studs carry no lettering.-**Never** use the LEGO name, logo or minifigure silhouette (trademarks). Characters are *built from bricks* (1×1 columns for legs, 2×2 bricks for torso, round bricks for arms, a round 2×2 helmet). Studs carry no lettering.+Not a low-poly isometric island (no flat-shaded facets, no floating diorama), not a clay or felt stop-motion (no deformation: bricks are rigid), not a clean product render of a toy (this world is played with, handled, knocked over).-## 2. Story: what fits this style+## 2. Materials & rendering-Pick stories where the **medium itself does the storytelling**. Brick has four native powers — use at least three:+- **Plastic**: ABS with strong clearcoat (~0.85, clearcoat roughness ~0.07); a roughness map with faint fingerprints and scratches (base ~0.17, scratches up to ~0.65); a bevel so edges catch a highlight.+- **Geometry**: rounded box bodies (bevel ~0.045 stud), studs with a thin lip. Unit = 1 stud pitch (8 mm); brick height 1.2, plate 0.4. Large baseplates are **matte** (lower clearcoat than bricks), or they reflect softboxes as a coloured wash.+- **Set**: a real surface with a real texture and real props at true scale (1 m = 125 studs). Household objects become landscape. Light it with a **neutral daylight studio HDRI**, never a tungsten interior (white bricks turn orange).+- **Light**: a toy-photography setup. A directional key from one upper side, warm-white, casting shadows (fit its shadow frustum to each shot so shadows stay crisp); two or three **RectAreaLight softboxes** (key front, cool rim behind, one over any big set) so glossy plastic shows clean rectangular highlights; environment kept low (~0.45) for contrast. Add a soft contact-shadow blob where the key's shadow falls behind a hero object.+- **Ambient occlusion is mandatory**: GTAO (radius a few studs) darkens seams between stacked bricks, stud bases and contact points. Without it bricks look pasted on.+- **Supersample 2×** (render 3840×2160, deliver 1080p): thin stud edges and bevel highlights shimmer without it.+- **Lens**: physical depth of field (CoC ∝ |1/focus − 1/z|). Scale aperture with shot size: widest for close-ups, less for mediums, least for a wide (too much blurs the hero at mid distance). Focus is always on a character's head or the brick being placed.+- **Effects are bricks**: fire, smoke, water, light, weather, celestial bodies are all built from plates, round bricks and translucent pieces, jittered or rebuilt per drawing. Nothing is a particle system or a soft gradient.-| Native power | Story use |-|---|---|-| **Snap-together building** | The plot is an act of building. Open on one brick, end on one brick. |-| **Break without harm** | Things fall apart and become parts for something better. Failure → spare parts. |-| **Toy on a real desk** | Real objects become landscape: a teapot is a mountain, a stack of books is the moon, the lamp is the sun. |-| **Hand-made stop-motion** | 12 fps motion, tiny imperfections, even fire and smoke are made of bricks. |+## 3. Colour logic-Adapting any topic: turn the topic into **something being built**. A product launch → the product is assembled brick by brick. A love story → two characters build a bridge between two books. A history lesson → an era is built, falls, is rebuilt.+- A **toy palette**: a handful of saturated brick primaries plus white, black, greys, tan. Each built object has one dominant colour and at most one or two trim colours; characters and hero objects take the most saturated ones.+- The **real world stays natural and muted**: wood, paper, ceramic, daylight. The saturated colour belongs to the toys, which makes them pop against the room.+- **Whites must read white**: grade slightly cool so white bricks don't go cream from the room bounce; soft contrast, saturation lifted ~10 %.+- Translucent pieces (orange, yellow, clear, blue) are reserved for effects: fire, light, water, glass.+- Example palette (the classic brick primaries): red `#c91a09`, blue `#0055bf`, yellow `#f2cd37`, green `#237841`, white `#f2f2ee`, black `#1b2a34`. Others: pastels and tan; greys with one accent.-**Emotional arc for 45–60s:** curiosity → excitement → a setback (collapse) → a quiet beat → rebuilding → climax → a warm scale-reveal. Keep it to one character and one goal.+## 4. Type & subtitles-## 3. Visual language+- A rounded, friendly OFL face (e.g. Fredoka, in `core/fonts`) for titles and subtitles.+- Subtitles live on a **toy element**: a dark rounded pill low in the frame with a small brick icon beside the text, or a printed tile, or a sign built into the set. White on dark, ≤ 2 lines. A second speaker type (radio, device, narrator) gets its own icon colour or tag. Hold ≥ max(1.8 s, speech + 0.6 s).+- Titles pop in on 12 fps steps, like a piece being placed; a short sub-line in a brick colour.-- **Plastic**: ABS with strong clearcoat (0.85, clearcoat roughness 0.07); roughness map with faint fingerprints and scratches (base ~0.17, scratches up to ~0.65); bevel radius 0.06 so edges catch a highlight. Colors from the classic brick palette: red `#c91a09`, blue `#0055bf`, yellow `#f2cd37`, green `#237841`, white `#f2f2ee`, black `#1b2a34`, orange, light/dark gray, tan, azure.-- **Geometry**: rounded box bodies (bevel ~0.045 stud), studs with a thin lip. Unit = 1 stud pitch (8 mm); brick height 1.2, plate 0.4. Baseplate is matte green (lower clearcoat than bricks, or it turns cyan in studio reflections).-- **Set**: a real desk (walnut texture), real props at true scale (1 m = 125 studs): teapot, cup, pencil, books, lamp. A neutral daylight studio HDRI — **not** a tungsten interior (white bricks turn orange).-- **Light**: toy-photography setup. A directional key from upper-left (`#fff4e8`, casts shadows; fit its shadow frustum to each shot for crisp shadows), two or three **RectAreaLight softboxes** (key front-left, cool rim behind, one over the finale set) so glossy plastic shows clean rectangular highlights, environment kept low (~0.45) for contrast. Add a soft contact-shadow blob when the key's shadow falls behind a hero object.-- **Ambient occlusion is mandatory**: GTAO (radius ~3.5 studs, scale 2.5) darkens seams between stacked bricks, stud bases and contact points — without it bricks look pasted on.-- **Grade**: slight cool white balance so white bricks read pure white (the room bounce pushes them cream), soft contrast (+0.26), saturation ×1.1.-- **Supersample 2×** (render 3840×2160, deliver 1080p): thin stud edges and bevel highlights shimmer without it.-- **Lens**: physical depth of field (CoC ∝ |1/focus − 1/z|). Close-ups aperture ~500–700, mediums ~800, the final wide ~400. Focus is always on the character's head or the brick being placed.-- **Effects are bricks**: flames = translucent orange/yellow round plates, jittered every frame; smoke = white round bricks that grow and roll outward; the moon = gray round plates with crater tiles.--## 4. Motion language--- **Characters and bricks step at 12 fps** ("on twos"); **camera, focus, flames and vehicle flight move on ones** at 24 fps (the LEGO-Movie approach). Stepping the camera too reads as judder, not charm — we tried it and it looked unsmooth.-- Bricks **fly in on arcs** and **snap** with a tiny overshoot (0.35 stud → 0 in ~0.17 s). Every snap is a click on the soundtrack.-- Characters act with big readable poses: arms-up V for pride, arms flung up for alarm, sitting with head bowed for sadness, a hop for joy. Walk cycles swing legs ±0.55 rad with a small bob.-- Collapses use real physics: a rigid tip about the base edge, then independent bodies with gravity (~420 studs/s² reads better than true 1225), bounces (restitution ~0.3), friction, settling flat. Pre-simulate so every render is identical.--## 5. Camera language--| Beat | Camera |-|---|---|-| Opening | Extreme macro on one brick, slow push, background blurred to real props |-| Building | Low angles make the tiny character heroic; cut every bar |-| Setback | Handheld shake on the collapse, then a **low, wide, lonely** frame with the character small |-| Emotional beat | Close-up from the front, character's hands and the brick in focus |-| Climax | Low angle following upward; then a **tracking shot** alongside the moving object with the destination visible ahead |-| Ending | Slow pull-back to a high wide shot of the whole desk: the scale reveal |--Keep foreground clutter out of frame edges (spare-parts piles love to block the lens). Check every shot for headroom.--## 6. Sound--- **Music**: playful acoustic/ukulele for building (cut on bars), the same theme returning quietly for the rebuild, an orchestral swell for the climax. Edit so the climax hit lands on the key action and the final chord lands on the end card (bar-aligned jump, chroma similarity).-- **Silence is a tool**: cut music dead on the collapse; leave only room tone and a ticking clock. Pull music out again before the climax (a low heartbeat drum under a countdown).-- **Foley** (all synthesized): brick click (short transient + 2.9 kHz / 4.6 kHz resonances), clack on wood, crash (many clacks), whoosh on throws, plastic creak before a collapse, tiny plastic footsteps, a bell "ding" for discovery, ignition boom and rocket roar.-- **Voice**: a warm British storyteller (Kokoro `bm_george`, speed ~0.9). Secondary voices through a radio filter (band-pass 380–2800 Hz + soft saturation) with Quindar beeps. 4–6 short lines, each with room to breathe. Verify every line with whisper.-- Mix: voice compressed, music ducked ~40% under voice, loudness −14 LUFS.--## 7. Subtitles & titles--- Subtitles: a dark rounded pill (rgba(18,20,26,.62)) centered 150 px above the bottom, Fredoka 600 46 px white, with a small yellow 2×1 brick icon on the left. Radio lines get a red brick icon and a "MISSION CONTROL" tag.-- Title: Fredoka 700, popping in on 12 fps steps, with a small yellow sub-line ("A BRICK TOY FILM").-- End card: darkened final wide, title, brick icon, style name, credits.--## 8. Pitfalls we hit--- Tungsten HDRI → orange whites. Use a neutral studio HDRI.-- Helmet visor made from a sphere segment disappears inside a cylinder helmet; use a curved open-cylinder panel instead.-- Clearcoat on a large baseplate reflects softboxes as a cyan wash — make it matte.-- Too much aperture blurs the hero at mid distance; scale aperture with shot size.-- A rocket that simply accelerates upward becomes a dot on a blank wall — follow it with a tracking shot aimed at the destination.-- A prop (desk lamp) placed on the camera axis of a later shot keeps sneaking into the background; check props against every camera.-- Material index math on random jitter can go negative → undefined material crash. Clamp.-- First pass looked flat and slightly jagged: even light, no AO, single-sample rendering, stepped camera. Fixed with softboxes + low env, GTAO, 2× supersampling, cool grade, camera on ones.--## 9. Production recipe (this repo)--```-styles/brick-toy/demo/- bricks.js geometry + plastic materials rockets.js props, physics, fx- actors.js brick-built character rig set.js desk, HDRI, real props, moon- story.js timeline aligned to music bars main.js acting, cameras, subtitles, events- lines.json voice script mix.py foley+voice+music music/edit.py score edit-```--1. `node core/render/still.mjs styles/brick-toy/demo <t…>` — review stills, iterate.-2. `.venv/bin/python core/tts/tts.py lines.json voices` → `core/tts/asr_check.py` to verify.-3. `node core/render/events.mjs styles/brick-toy/demo` → `python music/edit.py` → `python mix.py`.-4. `node core/render/video.mjs styles/brick-toy/demo --fps 24` (1296 frames with 2× SSAA + GTAO ≈ 65 s on an M4 Pro).-5. `core/render/mux.sh out/video24.mp4 mix.wav brick-toy.mp4 24`.+## 5. Motion quality++- **Characters and bricks step at 12 fps** (on twos); **camera, focus, fire and flying vehicles move on ones** at 24 fps. Stepping the camera too reads as judder, not charm.+- Bricks **fly in on arcs** and **snap** with a tiny overshoot (a fraction of a stud → 0 in ~4 frames). Every snap is a click on the soundtrack.+- Characters act with **big readable poses** held for several drawings: a V of arms for pride, arms flung up for alarm, a bowed head for sadness, a hop for joy. Walk cycles swing legs about ±0.55 rad with a small bob. Arms and legs rotate at their joints; nothing bends.+- Collapses and falls use **real rigid-body physics**: tip about the base edge, then independent bodies with gravity (a lower-than-true value reads better at this scale), bounces (restitution ~0.3), friction, settling flat. Pre-simulate so every render is identical.+- Tiny imperfections are allowed. Bricks never stretch, squash or morph.++## 6. Camera grammar++A vocabulary, not a route. Opening and ending come from the topic.++| Move | Expresses | Can serve |+|---|---|---|+| Extreme macro on one brick or stud, real room blurred behind | The toy scale is the world | a beginning; a detail that matters; a single part |+| Low angle at minifig eye level | A tiny character made heroic | ambition; pride; standing up to something big |+| High wide over the whole surface | The scale reveal: it was a toy all along | a summing-up; irony; a finished build |+| Low, wide, lonely frame, character small in a corner | Smallness, failure | a setback; waiting; loss |+| Frontal close-up, hands and brick in focus | Intimacy, decision | a choice; a repair; a gift |+| Handheld shake on impact | Physical shock | a collapse; an arrival; a collision |+| Tracking alongside a moving object, destination ahead | Momentum toward a goal | a journey; a race; a launch |+| Top-down plan view | Order, layout, a map | a plan; sorting parts; a city from above |+| Rack focus from a real object to a brick (or back) | Two scales in one frame | "big world, small maker"; a comparison |+| Orbit around a finished build | Pride, inspection | a product; a monument; a result |++Framing: keep foreground clutter out of the frame edges (piles of parts love to block the lens); check headroom in every shot; check every real prop against every camera, because an object placed on one shot's axis sneaks into the background of another. Cut on beats or bars; a snap can be a cut point. No generic dissolves; transitions can be a hand-placed brick covering the lens, a whip along the desk, or a pull out of one set into the next.++## 7. Sound palette++- **Instruments**: small, acoustic, playful (glockenspiel, toy piano, pizzicato, ukulele, whistling, claps, melodica); a brass or orchestral swell for scale; a heartbeat drum for suspense. Licensed or original, edited to the picture (cut on bars, bar-aligned jumps, chroma similarity at joins) rather than looped under it.+- **Foley** (synthesizable): plastic creak before a failure, tiny plastic footsteps, a crash of many clacks, a brick click (short transient + resonances near 2.9 kHz and 4.6 kHz), clack on wood, rattle of a parts pile being stirred, whoosh on throws, a bell "ding" for discovery, bricks sliding over paper, motors and engines built from filtered noise.+- **Silence is a tool**: cut music dead at a failure or a surprise; leave only room tone and one small real-world sound (a ticking clock, a fridge hum, a distant bird). Music can also drop out before a big moment, leaving a pulse or a countdown.+- **Voice**: a warm storyteller, few short lines with room to breathe; secondary voices through a device filter (band-pass ~380–2800 Hz + soft saturation), optionally with beeps. Verify every line with whisper.+- Mix: voice compressed, music ducked ~40 % under voice, loudness −14 LUFS.++## 8. Native moves++A menu: use the ones your story needs.++- **Snap-together building.** The plot is an act of building; pieces fly in on arcs and click home. *Fits content like:* a company assembling its first product; a neighbourhood rising street by street; a recipe put together ingredient by ingredient.+- **Break without harm.** Things fall apart and the parts become something new; failure yields spare parts. *Fits content like:* a pivot after a failed plan; recycling; a team reshuffled into a better shape.+- **Toy on a real desk.** Real objects become landscape at toy scale. *Fits content like:* a laptop keyboard as a city grid; a houseplant as a jungle; a coffee spill as a flood.+- **Hand-made stop-motion.** 12 fps poses, tiny imperfections, even fire and water made of bricks. *Fits content like:* a weather report; a kitchen explained with brick flames; a science demo of a volcano.+- **Rebuild into something else.** The same pieces, rearranged on screen, become a different object. *Fits content like:* one career turning into another; a before/after renovation; a word re-spelled.+- **The scale reveal.** Pull back until the whole world is a toy on a table. *Fits content like:* a big ambition that is still small; a year in review; a child's imagination.++## 9. Pitfalls of the medium++- Tungsten HDRI → orange whites. Use a neutral studio HDRI and a slightly cool grade.+- Clearcoat on a large flat baseplate reflects softboxes as a coloured wash. Make it matte.+- Flat, slightly jagged first renders: even light, no AO, single-sample rendering, stepped camera. Fix: softboxes + low environment, GTAO, 2× supersampling, cool grade, camera on ones.+- Too much aperture blurs the hero at mid distance. Scale aperture with shot size.+- A fast-rising or fast-moving object becomes a dot on a blank wall. Track it and keep its destination in frame.+- Curved transparent parts made from a sphere segment vanish inside a cylindrical part. Use an open-cylinder panel.+- Real props on a later shot's camera axis sneak into the background. Check props against every camera.+- Random jitter used as a material or colour index can go negative → undefined material crash. Clamp.++## 10. Engine++In `demo/`: `bricks.js` (rounded brick/plate/round-brick geometry, studs, plastic materials with clearcoat and fingerprint roughness), `actors.js` (a brick-built character rig with pose objects and `walkPose`), `set.js` (desk, HDRI, real props at true scale, softboxes), `rockets.js` (props, pre-simulated rigid-body physics, brick fire and smoke), `main.js` (acting, cameras, DOF, subtitles, sound events), `mix.py` (synthesized foley + voice + music), `music/edit.py` (bar-aligned score edit). Minimal start: a brick lighthouse from `bricks.js` on a stack of books, lit by the `set.js` softboxes, one still via `core/render/still.mjs`.++## 11. Variation space++You decide the structure, the characters (or none), the surface and its props, the opening, the ending, the camera path, the pacing, the palette within the colour logic and the music. All far from our demo:++- Structures: **a catalogue** (one build per beat, each a different object answering the same question, lined up at the end); **two builders** on opposite sides of the table whose builds grow toward each other; **a disassembly** (a finished thing is taken apart piece by piece to explain what's inside).+- Openings: **a hand pours a bin of bricks** onto the table and the pile settles into the first shape; **a real object first** (a mug, a phone), then rack focus to the tiny world at its base; **plan view** of an empty baseplate filling in like a map.+- Endings: **one piece left over** held in close-up, the question it raises unanswered; **the lights go out** in the room and only a lit brick window glows; **a real hand** reaches in and picks the character up.++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/brick-toy/TREATMENT.md b/styles/brick-toy/TREATMENT.mddeleted file mode 100644index cf7e125..0000000--- a/styles/brick-toy/TREATMENT.md+++ /dev/null@@ -1,102 +0,0 @@-# Brick Toy · 导演方案(Treatment)--**片名** *Rocket from Spare Parts*-**时长** 约 54 秒 | **画幅** 1920×1080 | **帧率** 24fps 输出,动画按 12fps 步进(每张画面停两帧,和真实定格动画一样)-**一句话** 一个积木小宇航员搭火箭,塌了,用塌下来的零件重新搭,飞上了"月球"。-**主题** 失败不是结束,失败只是多出来的零件。-------## 一、为什么选这个内容--好的风格 demo 要讲**只有这种媒介才讲得好的故事**。积木这种媒介有四个天生的能力,这个故事把四个都用上了:--| 积木的媒介特性 | 故事里怎么用 |-|---|---|-| **拼装**:一块一块咔哒扣上 | 整个故事就是"搭":开场第一块砖,结尾又是一块砖 |-| **可拆可重组**:拆掉不会坏,只会变成零件 | 核心转折:火箭塌了,零件被重新拼成更好的火箭 |-| **尺度**:玩具世界放在真实桌面上 | 马克杯是山,一摞书是月球,台灯是太阳 |-| **定格动画的手作感**:12fps、微距、轻微抖动 | 全片按真实定格动画的规矩拍,连火焰和烟都是积木做的 |-------## 二、结构(三幕 + 首尾呼应)--| 幕 | 时间 | 情绪 | 发生什么 |-|---|---|---|---|-| 开场 | 0:00–0:06 | 好奇 | 一块红砖,扣下第一块 |-| 第一幕 | 0:06–0:18 | 兴奋 → 骄傲 | 快速拼装,火箭越搭越高 |-| 第二幕 | 0:18–0:30 | 失落 → 重新振作 | 火箭倒塌,静默,捡起零件重搭 |-| 第三幕 | 0:30–0:50 | 紧张 → 狂喜 → 温暖 | 倒计时、点火、升空、登上"月球" |-| 片尾 | 0:50–0:54 | — | 片名卡 |-------## 三、分镜--| # | 时间 | 景别 / 机位 | 画面 | 声音 |-|---|---|---|---|---|-| 1 | 0:00–0:04 | 大特写,微距贴桌面 | 胡桃木桌上只有一块红色 2×4 砖,台灯光斜扫过凸点,镜头极慢推近 | 室内底噪、远处钟声 · **VO1** "Every rocket starts with one brick." |-| 2 | 0:04–0:06 | 俯拍 | 宇航员走进画面,把红砖按在底板上。**咔哒**,片名弹出 | 咔哒声卡在剪辑点上,音乐第一拍进来 |-| 3 | 0:06–0:14 | 6 个快切:低角度、侧面、俯拍、特写 | 拼装蒙太奇:砖块飞进来扣上,火箭一层层长高,每一刀都卡在音乐节拍上 | 轻快配乐,每个咔哒对一拍 · **VO2** "Then another. And another." |-| 4 | 0:14–0:18 | 全景,低机位仰拍 | 火箭搭得又高又细,宇航员后退一步,得意地叉腰。塔尖开始晃 | 音乐推到最高点 |-| 5 | 0:18–0:22 | 中景,手持轻晃 | 嘎吱一声,火箭倒下,砖块在桌上弹跳散开 | **音乐突然切断**,只剩砖块哗啦声 |-| 6 | 0:22–0:26 | 低角度,宇航员很小 | 宇航员一个人坐在散落的零件中间。**留白两秒,什么都不发生** | 安静 · **VO3** "The first one fell apart." |-| 7 | 0:26–0:30 | 特写 → 中景 | 他捡起一块砖。找零件的连续小笑点:往身后扔轮子、扔小花,第三次找到了锥形头 | 音乐轻轻回来 · **VO4** "That's okay. Now we have spare parts." |-| 8 | 0:30–0:36 | 交叉剪辑:面罩特写、尾翼、底座 | 更宽、更稳、带尾翼的新火箭立在发射台上。倒计时 | 音乐停。**任务控制台对讲声**(带无线电滤波)"Three… two… one…",心跳般的低鼓 |-| 9 | 0:36–0:40 | 低角度 → 镜头上摇 | 点火:透明橙、黄圆片拼成的**积木火焰**,白色圆砖拼成的**积木烟雾**翻滚;火箭升空,镜头跟着上摇,掠过台灯的光晕 | 音乐爆发 |-| 9b | 0:40–0:42.5 | 后侧方跟拍 | 摄影机贴着火箭飞,远处书堆上的月球出现在前进方向上,越来越近 | 音乐持续 |-| 10 | 0:42.5–0:48 | 中景 | 火箭降落在桌子另一头一摞书顶上的灰色积木"月球"上。宇航员走出来,放下一块红砖 | **VO5** "And every moon base… starts with one brick." |-| 11 | 0:48–0:50 | 大全景,缓慢拉远 | 尺度揭示:整张书桌。远处是发射台和散落的零件,近处是书顶的月球,台灯像太阳 | 音乐收尾 |-| 12 | 0:50–0:54 | 片名卡 | *Rocket from Spare Parts* · Brick Toy · Lemo-Opuscar | 最后一声咔哒 |--**配音全文**(5 句,约 30 个英文词,每句都留足阅读时间)-1. Every rocket starts with one brick.-2. Then another. And another.-3. The first one fell apart.-4. That's okay. Now we have spare parts.-5. And every moon base… starts with one brick.--另有任务控制台倒计时:"Three… two… one…"-------## 四、导演手法清单(这支 demo 要展示的能力)--1. **细节开场,延迟揭示**:从一块砖的大特写开始,到结尾才拉成整张书桌的大全景,把"这只是桌上的玩具"留作最后的情绪落点。-2. **声画同步剪辑**:拼装蒙太奇每一刀都切在咔哒声和音乐节拍上。-3. **用静默制造情绪**:火箭倒塌时音乐直接切断;倒计时时音乐再次抽空,只留心跳般的鼓点,点火时才爆发。-4. **留白**:倒塌后给宇航员两秒什么都不做的镜头,观众会自己把情绪补上。-5. **三次法则的喜剧节奏**:扔轮子、扔小花、第三次找到锥形头。-6. **机位讲故事**:搭建时低机位仰拍,让小人显得有英雄感;倒塌后机位压低、人物缩小,显得孤独;结尾高机位大全景,让一切重新变小、变温柔。-7. **媒介原生特效**:火焰、烟、星星全部用积木件做,不用粒子,风格一致性就是导演的品味。-8. **焦点引导视线**:用跟焦在宇航员、火箭、面罩倒影之间转移注意力。-9. **首尾呼应**:开头"每个火箭都从一块砖开始",结尾"每个月球基地也从一块砖开始"。-10. **尊重媒介的规矩**:动画和机位运动都按 12fps 步进,就像真实定格动画用运动控制一格一格拍,不做"假定格"。-------## 五、声音设计--- **音乐**:Kevin MacLeod 的轻快冒险曲(CC BY)。按小节剪成三段:拼装段、重建段、升空段。两处停顿(倒塌、倒计时)用真静默。-- **拟音**(代码合成):积木咔哒(三种音高随机)、翻找零件的哗啦声、倒塌的连锁碰撞、脚步的塑料嗒嗒声、点火的轰鸣与嘶嘶声、着陆的"咚"。-- **环境**:室内底噪、钟表滴答,提醒观众这是真实的房间。-- **人声**:旁白用温暖的男声讲故事;倒计时是另一个声线,加无线电滤波。-------## 六、画面规格--- 延续风格帧:中性日光 HDRI、胡桃木桌面、ABS 塑料加清漆、自写景深。-- 新增道具:马克杯、铅笔、一摞书、台灯(Poly Haven 的 CC0 模型),加一个积木拼的灰色月球。-- 字幕:深色胶囊条,左边一块黄色小砖图标,与风格帧一致。-- 片尾署名:音乐、HDRI、模型来源逐条列出。--------## 制作后记(与方案的差异)--- 升空段拆成两镜:原方案火箭一路上升会在 40s 后缩成墙上的小点,改为 40–42.5s 的后侧方跟拍,目的地出现在画面里,旅程感更强。-- 片尾卡时间由配乐决定:Heroic Age 跳剪 10 小节后最后重音落在 51.71s,片尾卡与最后一声咔哒对齐到这里。-- 台灯挪离所有镜头的背景轴线,只在最后的大全景里出现。diff --git a/styles/brick-toy/brick-toy.srt b/styles/brick-toy/brick-toy.srtnew file mode 100644index 0000000..0d7729c--- /dev/null+++ b/styles/brick-toy/brick-toy.srt@@ -0,0 +1,31 @@+1+00:00:00,750 --> 00:00:03,762+Every rocket starts with one brick.++2+00:00:05,950 --> 00:00:08,365+Then another. And another.++3+00:00:22,550 --> 00:00:25,276+The first one fell apart.++4+00:00:25,550 --> 00:00:28,797+That's okay. Now we have spare parts.++5+00:00:33,250 --> 00:00:34,250+Three…++6+00:00:34,250 --> 00:00:35,250+Three… Two…++7+00:00:35,250 --> 00:00:36,500+Three… Two… One…++8+00:00:45,150 --> 00:00:48,843+And every moon base… starts with one brick.diff --git a/styles/brick-toy/style.json b/styles/brick-toy/style.jsonnew file mode 100644index 0000000..406ef14--- /dev/null+++ b/styles/brick-toy/style.json@@ -0,0 +1,18 @@+{+ "slug": "brick-toy",+ "num": "37",+ "en": "Brick Toy",+ "cn": "积木玩具",+ "category_en": "Materials & 3D",+ "category_cn": "材质与 3D",+ "film": "Rocket from Spare Parts",+ "line": "A brick astronaut builds a rocket from spare parts and flies to a brick moon.",+ "line_cn": "积木宇航员用零件拼出火箭,飞向积木月亮。",+ "uses": [+ "Toys & kids",+ "Product builds",+ "Space"+ ],+ "frame_sec": 38.88,+ "dur": 54.0+}diff --git a/styles/cel-anime-80s/DEMO.md b/styles/cel-anime-80s/DEMO.mdnew file mode 100644index 0000000..f6f893d--- /dev/null+++ b/styles/cel-anime-80s/DEMO.md@@ -0,0 +1,98 @@+# 80s Cel Anime — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *City Lights, 1987* (59 s) · `cel-anime-80s.mp4` · source in [`demo/`](demo/)+++## Story & structure++After the rain, a courier nicknamed "Nightbird" rides a white motorbike across a neon city to deliver a pilot's forgotten cassette to the launch pad before a dawn rocket launch. One hero, one goal, one deadline (sunrise).++Arc (59 s): cold open with a deadline → the hero sets off (title hit) → joyful momentum montage → an obstacle (a drawbridge rising) → one decisive move (the jump; the peak *freezes*) → release into a new light (night becomes dawn) → end card. The song on the tape is the score itself: when the cassette plays aboard, the score becomes diegetic.++How the old guide phrased the adaptation idea for this story (kept as one example, not a rule): turn a topic into a delivery, a race against a deadline or a launch; plant the goal early (the rocket on the horizon), block it in act two, reveal it in the light at the end. Other adaptations it listed: a product launch as a courier racing the product to the stage; a love story as two lights crossing a sleeping city; a history lesson as a pilot flying through eras painted as backgrounds.++Native powers spent: painted city vs flat cel (neon city, wet asphalt, dawn sky), limited animation (held close-ups, the jump as a painted still), backlit light (signs, tail lights, gauges, title), speed grammar (parallax, speed lines, impact frames), the theme song as a plot object (the cassette).++## Shots++| Beat | Camera |+|---|---|+| Cold open | **Multiplane crane-down** over a tall painted plate (sky → rooftops → neon → street), foreground layers faster; radio dispatch over rain |+| The object that matters | Tight insert on a gloved hand holding the cassette, soft bokeh behind, a highlight sliding over its plastic |+| Resolve | Extreme close-up on the eyes; they open in three 8 fps drawings on the line "Copy. I'll beat the sun." |+| Title | Backlit title card, letters flicker on at 12 fps, a light bar sweeps across, star glint, on the brass hit |+| Momentum | Side tracking with 4 parallax layers + tail-light trail; rear view into a neon canyon (pseudo-3D); held bust with neon light bands; wheel insert through a puddle; a wide elevated-highway shot that **plants the goal** (the rocket across the bay) |+| Obstacle | First-person approach to the rising drawbridge; glove twisting the throttle and the rev gauge in extreme close-up, cutting faster |+| Peak | Low front view on radial speed lines → one-beat freeze + white flash → impact frame → painted "harmony" still of the airborne bike with a slow pan → impact frame → landing with sparks and camera shake |+| Release | The same side-tracking composition as the night ride, repainted at dawn by the sea with the sky open |+| Handover | Two hands through a fence pass the tape; a finger presses PLAY on the cockpit cassette deck |+| Ending | The rocket lifts off (tilt up, delayed); warm close-up that answers the opening line ("Told you I'd beat the sun."), then the end card |++The rider's front view was tucked behind a tinted windscreen so only goggles and hair show, letting the headlight flare carry the shot. Cuts landed on bars (116 BPM, bar = 2.069 s).++## Score structure++Original city-pop / synth-funk "anime opening", synthesized in numpy (`demo/music/score.py`): 116 BPM, E♭ major, maj7/9 chords, the J-pop "royal road" progression (IVM7–V7–iii7–vi7). FM electric piano (DX7-style 1:1 carriers + a 14:1 bell transient), slap bass (thumb + octave pops), gated-reverb snare, synth brass stabs, chorus-y 16th-note guitar chanks, string pad, a singable lead hook, FM bell sparkle, and a **key change up a semitone** for the last chorus.++Written to the cut: intro under the cold open, a fill bar with space for engine revs, the title on a brass hit, verse under the montage, a pre-chorus build, **one beat of true silence** before the jump, the chorus on the painted still, an accent on the landing, and the final chord on the end card. Diegetic twist: when the tape plays in the cockpit, the score is band-passed to a cassette sound for one bar, then opens to full range with the key change as the rocket lifts.++Foley: engine from an RPM curve (harmonic saw stack + firing jitter + band-passed exhaust pulses, low-passed when airborne), rain bed + random drops, tire hiss on wet road, wind, bridge bells, radio squelch clicks, impact boom, metal scrape and sparks, cassette clicks, button + motor, rocket ignition and roar.++Voices: an English-dub feel, 8 short lines: the heroine (Kokoro `af_bella`) and a radio dispatcher (Kokoro `am_michael` through a band-pass 380–2800 Hz + saturation + squelch). Whisper misheard "Launch is at dawn", so it became "The launch is at dawn". Mix: voices balanced by RMS ~10 dB above the ducked music, music ducked ~9 dB under lines, engine and ambience ducked 3 dB, chorus 4–6 dB louder than the intro, two-pass loudnorm to −14 LUFS.++## Palette & props++- Night: indigo / deep violet / neon magenta / cyan / warm window gold. Dawn: periwinkle / rose / peach / pale gold. The hero's accent: a **coral scarf**, readable in both.+- Colour-model multipliers used: night lit ×[.78,.74,1.0], shadow ×[.58,.52,.92]; dawn lit ×[1.04,.9,.84]; a backlit silhouette set (dark purple with an orange rim) for the jump. Skin line ≈ `#5a2e2e`.+- Props: white motorbike, cassette labelled "SIDE A · CITY LIGHTS", headset and goggles (near-black, heavier lines), pinch-grip gloves, rev gauge, drawbridge with red warning lights, rocket on a floodlit pad across the bay, cockpit cassette deck with backlit level meters. Signs: BAR, CAFE, 喫茶, ホテル, カラオケ.+- The heroine, as built in `head80.js`: eyes at the vertical middle of the head, mouth at the upper third between nose base and chin; iris layered top-dark band → dark upper half → main colour → bright lower crescent, one large and one small highlight; 2–3 separate lashes in the flick; mouth set closed / set / talk / "oh" / pant / smile / open smile with a dark-red interior and a faint lower-lip stroke; profile with a small skull-back, small slightly upturned nose, neck leaning forward. Blinks hold the closed drawing 2–3 frames; brows carry resolve vs exhaustion; shoulders rise when panting; a star glint in the eye highlight on a musical accent.+- CRT numbers used: chroma blur ~7 px, Cr shift ~2 px; scanlines 3 px period, strength 0.18, gap `1 − a·ph·(1 − 0.6·L)`; grille ±0.06; phosphor glow 0.35; corners `1 − 0.28·(2u²v² + 0.25(u²+v²))`. Moiré check: at 720p the 3 px scanline becomes a clean 2-row alternation; 900p shows a faint 5-row pattern; below 480p it disappears. Film-only artefacts (gate weave, dust, scratches, misregistration) were tried in the treatment and removed: they contradict the tape conceit. The power-on opens the film with a thunk + line whine; tracking noise marks the tape beat with a short hiss/warble.++## End card++Darkened final dawn background, the title, the style name "80s Cel Anime", "LemoLab × Claude Opus 5.5", a one-line originality note and credits. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++Title card as used: "CITY LIGHTS" in heavy italic chrome with シティ・ライツ above (Dela Gothic One), a red "1987" and a spaced-out tagline. Subtitles: Barlow Semi Condensed 600, 54 px, cream-yellow `#fff0a0`, 9 px dark outline, 96 px above the bottom; radio lines cyan `#8ff4ff` with a boxed "● BASE" tag; each line up for max(duration + 0.6 s, 1.9 s).++## Rights & credits++- Original score, sound design, animation and all drawings: generated by code in this folder (numpy, Canvas 2D, WebGL). No samples, no stock art.+- Voices: Kokoro TTS (Apache 2.0), voices `af_bella`, `am_michael`.+- Fonts (SIL Open Font License 1.1, licence files in `demo/fonts/`): Dela Gothic One (artakana), Kanit (Cadson Demak), Barlow Semi Condensed (Jeremy Tribby).+- Inspired by 1980s Japanese cel animation; all characters, vehicles, places and the story are original.++## Build notes++```+styles/cel-anime-80s/demo/+ cel.js path / cel / ribbon / flutter helpers pal.js color models (day → night / dawn / backlit)+ rider.js side-view bike + rider, limbs, wheels head80.js 80s heroine head: 3 views × expressions, body/collar/scarf+ hands.js pinch-grip gloves bg.js painted plates (street, skyline, tall crane plates, reflections)+ fx.js rain, splashes, speed lines, flares, lamps, light trails+ post.js WebGL videotape + CRT pass (bloom, grade, chroma bleed, subtitles, scanlines, grille, glow, power-on, tracking noise)+ shots.js + scenes1–4.js one function per shot story.js bar-aligned timeline, lines, credits+ hud.js VHS-style subtitles main.js plates, shot dispatch, sound events+ lines.json voices mix.py music/score.py (original score) tools/ (still, sheet, srt, mux)+```++1. Treatment → `story.js` (116 BPM bar grid, shots, lines).+2. `node styles/cel-anime-80s/demo/tools/still.mjs styles/cel-anime-80s/demo --range 0.5:58.5:1 --out /tmp/cs` → `tools/sheet.py` contact sheet → look → fix. `?test=model|close|side` renders the model sheet / head close-up / rider; `?raw=1` bypasses the CRT pass; `?nosub=1` hides subtitles.+3. `.venv/bin/python core/tts/tts.py demo/lines.json demo/voices` → `core/tts/asr_check.py`.+4. `.venv/bin/python demo/music/score.py` (score + stems + cue times).+5. `node core/render/events.mjs demo` → `.venv/bin/python demo/mix.py`.+6. `node core/render/video.mjs demo --fps 24 --workers 4 --out demo/out/video24.mp4` (1416 frames ≈ 36 s on an M-series Mac).+7. `sh demo/tools/mux.sh demo/out/video24.mp4 demo/mix.wav cel-anime-80s.mp4 24`, `python demo/tools/srt.py`.++Encoding numbers: ffmpeg grain luma 4 + chroma 1 at CRF 22 gave ~32 MB/min; luma 5 + chroma 2 at CRF 18 was 270 MB; with the CRT pass CRF 22 went over 35 MB/min, CRF 23 with luma-only noise 2 lands at ~31 MB. Single-pass loudnorm landed at −13.5 LUFS; two-pass with `linear=true` lands at −14.0. A hot limiter squashed the chorus to the intro's loudness: normalize to the 99.99th percentile and let only rare peaks hit the limiter.++Pitfalls tied to this demo's props:+- Bloom threshold on the colour canvas turned the white bike and the jacket pink.+- The S-curve made a black hole in the headlight (clamp first).+- A rim offset of 6–8 px turned the thin hair ribbons completely pink.+- The first hair version looked like tentacles; bang tips over the eyes hid the lash line.+- The first face was a paper mask: a 3/4 body with a flattened front face (equal eyes, no cheekbone turn, V chin, long thin neck).+- Night faces went pink from the night tint + magenta rim + pink light sweeps; forehead patches showed between bang locks.+- In the rear canyon shot, points behind the camera flipped up into the sky.+- The rocket left the frame: follow it with a delayed tilt and a slower (quadratic) climb.diff --git a/styles/cel-anime-80s/STYLE.md b/styles/cel-anime-80s/STYLE.mdindex 1797406..bde19c4 100644--- a/styles/cel-anime-80s/STYLE.md+++ b/styles/cel-anime-80s/STYLE.md@@ -1,177 +1,117 @@# 80s Cel Anime — Style Prompt-> Hand-painted cel animation from the golden age of Japanese OVAs, re-created in code: flat two-tone cels over airbrushed backgrounds, backlit neon, limited-animation timing — played back as a 1987 videotape on a CRT television.-> Demo: *City Lights, 1987* (59 s) · `cel-anime-80s.mp4` · source in `demo/`+> Hand-painted cel animation from the golden age of Japanese OVAs, re-created in code: flat two-tone cels over airbrushed backgrounds, backlit neon, limited-animation timing, played back as a late-80s videotape on a CRT television.+> References (grammar only): 1980s Japanese OVA and TV cel animation in general (painted-background vs flat-cel contrast, backlit light, held drawings, speed grammar, city-pop openings). Borrow the era's craft, never a specific work's characters, mecha, logos, place names or signature shots.-You are directing a 30–60 second film in the **80s Cel Anime** style. The user gives you a topic (and maybe a story). You decide everything else (story, shots, timing, sound) and deliver a finished film. Follow this guide. The style is *inspired by 1980s Japanese cel animation*: borrow the era's craft, never a specific work's characters, mecha, logos, place names or signature shots.+## 1. Essence, and what it is not----+Four layers, and the contrast between them is the look:+- **Background painting**: soft airbrushed gradients, glowing windows, wet reflections; painted once at load (colour + emissive pair), then only slid.+- **Cel** (characters, vehicles, props): flat fills, **hard-edged** shadow and highlight shapes, **coloured** outlines, never pure black; stepped at 12 or 8 fps.+- **Light**: backlit cel (透過光): signs, lamps, title letters glowing *through* the frame; flares, halation.+- **Playback**: videotape on a CRT: chroma bleed, scanlines, grille, phosphor glow, darkened corners, faint noise.++If a frame looks like modern digital anime, one layer is missing. Not moe anime (round eyes, giant irises, hatched blush), not vector clip-art (uniform black lines, gradients in shapes), not a film-print pastiche (no gate weave or scratches: this is tape).++## 2. Materials & rendering++**Cel rendering.** Fill, then a **hard** shadow crescent, then a **hard** highlight crescent, then the coloured outline. No gradients inside a cel shape (exception: one "harmony" painted still at a peak). Automatic shading: clip to the shape and fill `shape − shape shifted toward the light` with the shadow colour (even-odd); the same shifted away for the highlight and for a saturated neon **rim light** (2–4 px). Add hand-placed cast shadows. Outlines ~2–3 px at 1080p, scaled down (0.45–0.8×) in extreme close-ups. **Colour models per lighting** (色指定): define each character in daylight, derive other sets by multiplying lit / shadow / line separately, plus a backlit silhouette set with a warm rim.++**People the 80s way.** Construct the head (sphere + jaw): long egg-shaped face, soft-point chin, far eye foreshortened with a cheekbone turn in 3/4. **Almond** eyes near the vertical middle of the head, a thick upper lash line flicking outward, a tall oval layered iris, two highlights, long thin brows. Nose = a shadow plane + one stroke; one faint blush layer, never hatched. Hair in overlapping locks with sharp uneven tips over a wider dark under-layer, a continuous "angel ring" highlight with a zigzag lower edge. Lines: skin thin warm dark brown, hair dark purple; only hard props near-black. Emotion lives in brows, lid height, iris size, mouth corners and shoulders. Build and approve a **model sheet** first; draw every shot from the same head function.++**Backgrounds.** Painted once at load: sky gradients, airbrushed clouds with lit undersides, buildings or landscape with painted light sources, and always a matching **emissive plate** that slides with the colour plate. Wet ground = a flipped, blurred, streaked copy of the plate darkened with ripple bands. Generic sign words only, never brands. Moving plates get a light horizontal smear (~16 px) against strobing.++**Light and lens.** Bloom strongly from the emissive canvas, weakly from the colour canvas above ~0.9; tint the widest bloom red-orange (halation). Flares: star-burst, anamorphic streak, hexagonal ghosts through frame centre. Stamp every cel's silhouette in black onto the emissive canvas so glow never bleeds through it.++**Videotape + CRT, restrained and deterministic:** chroma bleed (sharp luma, horizontally blurred and slightly shifted chroma), fine scanlines anchored to output pixels whose gap shrinks on brights, a faint RGB grille, phosphor glow, darkened corners without curved borders, faint signal noise. Subtitles are composited inside the pass after grading. Two optional accents: a **power-on** (dot → line → picture) and **tracking noise** (a few frames of tearing, rolling band, vertical hop). Check moiré on a 720p downscale. Frame: full 16:9 as a theatrical feature (4:3 pillarbox is valid for an OVA feel).++## 3. Colour logic-## 1. What this style is+- Painted plates carry gradients and atmosphere; cels are flat, few-colour, saturated. Each time of day gets its own colour model, never a filter over the frame.+- The protagonist has **one accent colour** that pops in every lighting set. Line colours are dark versions of their fill.+- Skin gets its own colour in every set; multiplying daylight skin by a tint turns faces pink under neon.+- Examples: night city (indigo, violet, neon magenta, cyan, window gold); seaside noon (cobalt, white cumulus, sand, coral); classroom dusk (amber, chalk green, brown wood, purple shadows).-Two materials stacked on top of each other, and the contrast between them is the look:+## 4. Type & subtitles-| Layer | Look | How we make it |+- Subtitles live on the tape, composited inside the CRT pass: a semi-condensed sans (e.g. Barlow Semi Condensed 600, ~50–56 px), cream-yellow with a thick dark outline and soft shadow, ~96 px above the bottom; a second speaker may take a second colour and a small boxed tag. Hold ≥ max(1.8 s, speech + 0.6 s); a line yields to the next.+- Titles: heavy italic Latin in a **chrome gradient** (sky → white horizon line → violet → pink → gold), dark + neon outlines, optional katakana line (e.g. Dela Gothic One), glowing through the emissive layer, flickering on at 12 fps with a light sweep and a star glint.++## 5. Motion quality++- **Characters on twos (12 fps)**; performance beats (blinks, eye openings, lip flaps, gestures) on threes (8 fps). Camera, light sweeps, flares and rain on ones (24 fps); a stepped camera judders.+- **Cycles**: hair and cloth as ribbons driven by a travelling sine, 4-drawing cycle (6 when calm); bounce = a 12 fps jitter of a few px.+- **Move light, not drawings**: coloured bands sweeping across a held cel (`source-atop`).+- **Impact frames**: 2 frames of an inverted or monochrome silhouette over radial lines, then the result.+- **Hold the peak**: a painted still with a slow pan, only cycles moving.+- Fast blinks (one 8 fps closed drawing); eye openings in three drawings; lip flaps of 3–4 shapes at 8 fps ending on a held expression.++## 6. Camera grammar++A vocabulary, not a route. Opening and ending come from the topic.++| Move | What it expresses | Can serve ||---|---|---|-| **Background painting** | soft, painterly, airbrushed gradients, glowing windows, wet reflections | painted once at load into large offscreen canvases (color + emissive pair), then only *slid* per frame |-| **Cel** (characters, vehicles, props) | flat fills, **hard-edged** shadow and highlight shapes, **colored** outlines (dark brown for skin, dark purple for hair, dark navy for a blue jacket, never pure black) | vector paths drawn per frame, stepped at 12 fps or 8 fps |-| **Light** | backlit cel (透過光): neon, lamps, title letters glowing *through* the frame; lens flares, halation | a separate emissive canvas that feeds a bloom + red halation pass |-| **Playback** | a videotape on a CRT: horizontal chroma bleed, fine scanlines, RGB aperture grille, phosphor glow, darkened corners, faint signal noise; power-on line at the start, tracking noise at story beats | WebGL post pass (deterministic per frame); only a whisper of noise in ffmpeg |--If a frame looks like modern digital anime, you are missing one of the four rows above.--## 2. Story: what fits this style--Pick stories the medium tells best. 80s cel anime has five native powers; use at least four:--| Native power | Story use |-|---|---|-| **Painted city vs flat cel** | Night cities, rain, neon, sunsets, space, the sea at dawn. Put a small flat-colored hero inside a huge painted world. |-| **Limited animation** | Moments that *stop*: a held close-up, a freeze on the climax, a pan across one big still. Stillness is drama, not a budget cut. |-| **Backlit light** | Anything that glows: signs, headlights, cockpit gauges, screens, lasers, stars, a title card. |-| **Speed grammar** | Vehicles, chases, flights, races, transformations: speed lines, looping backgrounds, impact frames. |-| **The theme song** | An era of city pop, synth funk and anime openings. A song can be a plot object (a tape, a radio broadcast, a concert). |--**Emotional arc for 45–60 s:** cold open with a deadline → the hero sets off (title hit) → joyful momentum montage → an obstacle → one decisive move (the climax *freezes*) → release into a new light (night becomes dawn, rain becomes clear sky) → end card. One hero, one goal, one deadline.--Adapting any topic: turn it into **a delivery, a race against a deadline, or a launch**. A product launch → a courier races the product across a neon city to the stage. A love story → two lights crossing a sleeping city. A history lesson → a pilot flies through eras painted as backgrounds. Plant the goal early (a rocket on the horizon, a clock tower), block it in act two, reveal it in the light at the end.--## 3. Visual language--**Cel rendering (the rules that make it read as a cel):**-- Fill, then **hard** shadow crescent, then **hard** highlight crescent, then colored outline. No gradients inside a cel shape, ever (exception: a single "harmony" painted still at the climax).-- Automatic shading trick: clip to the shape, fill the region `shape − shape shifted toward the light` with the shadow color (even-odd path). Same with a small shift away from the light for the highlight, and for a neon **rim light** in a saturated color. This gives consistent two-tone shading with one line of code per shape. Add hand-placed shadow shapes for cast shadows (bangs on forehead, chin on neck).-- Outlines ~2–3 px at 1080p for medium shots; scale the global line width down for extreme close-ups (0.45–0.8×) or lines turn into marker strokes.-- **Color models per time of day** (色指定): define the character once in daylight colors, then derive night and dawn sets by multiplying lit / shadow / line colors separately (night: lit ×[.78,.74,1.0], shadow ×[.58,.52,.92]; dawn: lit ×[1.04,.9,.84]). A backlit silhouette set (dark purple with an orange rim) for heroic moments against the sky.-- **Character design — how to draw an 80s heroine (rules that separate it from modern moe anime):**- - *Construction*: skull sphere + jaw. A long **egg-shaped** face (narrower than you think, lower face slightly long), chin a *soft point* — neither a V nor a U. In 3/4 view the far eye is foreshortened (~0.6 width), the far cheek contour shows the **cheekbone turn** (bulge under the eye, then in toward the mouth), the nose sits near the far contour. Neck of normal thickness, starting behind the chin; the throat line starts below the jaw angle. Profile: small skull-back, clean brow–nose–lips–chin line, small slightly upturned nose, neck leaning forward.- - *Proportions*: eyes centered near the vertical middle of the head (crown to chin), spaced about one eye-width apart; mouth at the upper third between nose base and chin.- - *Eyes*: almond-shaped (inner corner low, outer corner lifted), a **thick upper lash line** thickening outward into a flick with 2–3 separate lashes, a double-eyelid line, a **tall oval iris** layered top-dark band → dark upper half → main color → bright lower crescent, a pupil, one large and one small highlight; lower lashes only a faint short stroke at the outer corner; long thin eyebrows. Never round moe eyes with giant irises.- - *Nose & mouth*: the nose is a small shadow plane plus one stroke at the base; the mouth has lip shape, a dark-red interior with tongue/teeth, and a family of shapes (closed, set, talk, "oh", pant, smile, open smile) plus a faint lower-lip stroke. Blush is one faint layer — no hatched blush lines (that is a post-2000 mannerism).- - *Hair*: separate locks with thickness that overlap, with dark gaps between them (a dark under-layer wider than the locks); tips of uneven length and sharp; 2–3 stray strands; the signature **"angel ring" highlight** — one continuous band following the skull curve with a zigzag lower edge; rim-light edges when backlit. Lock outlines thin and close to the hair shadow color, or the hair turns into a tangle of lines.- - *Colored line art*: skin outlined in a **thin warm dark brown** (≈ #5a2e2e), hair in dark purple, lashes/brows near-black purple; only hard props (headset, goggles) keep near-black, slightly heavier lines. Uniform thick black lines read as modern vector art.- - *Shading*: one consistent light direction: two-tone cels with bangs casting a light shadow on the forehead (follow the lock edges, keep it pale), the chin casting onto the neck, a shadow plane under the far cheekbone and beside the nose. When the key light comes from the other side, switch to an automatic crescent on the near side plus a warm rim on the lit contour.- - *Acting*: blinks are fast — the closed drawing holds 2–3 frames (one drawing at 8 fps). Emotion lives in brows (inner end down = resolve; outer end down = exhaustion/worry), upper lid height, iris size (small when surprised) and mouth corners; add body (shoulders up when panting).- - *Night color model*: override skin separately (neutral light + cool purple shadow); multiplying daylight skin by a blue-purple night tint makes the whole face pink under neon.- - Build a **model sheet first** (3/4, profile, front × 4 expressions + a head close-up) and approve it before putting the face into shots; draw every shot from the same head function.-- **Palette:** night = indigo / deep violet / neon magenta / cyan / warm window gold; dawn = periwinkle / rose / peach / pale gold. Give the hero one accent color that pops in both (here: coral scarf).--**Backgrounds (the painted layer):**-- Build every plate at load: sky gradients, airbrushed clouds (blurred ellipses with a lit underside), skyline towers with window grids, facades with lit shop windows, neon signs with a tube stroke (white core + colored edge) and a colored spill on the wall.-- Always paint a matching **emissive plate** (only the light sources) and slide it with the color plate; it feeds the glow pass.-- **Wet asphalt**: a vertically flipped, blurred, streaked copy of the facade plate (color and emissive), darkened with horizontal ripple bands. This single trick sells "rain-soaked neon city".-- Text on signs: generic words only (BAR, CAFE, 喫茶, ホテル, カラオケ…), never real brands.-- Moving backgrounds get a light horizontal smear (~16 px) — enough to soften strobing, not enough to look like a photo.--**Light and lens:**-- Backlit cel: signs, lamps, gauges, title letters are drawn on the emissive canvas too. Bloom from the emissive canvas is strong; bloom from the color canvas only above a high threshold (0.9) and weak, or white cels wash out.-- Halation: the widest bloom levels tinted red-orange, added on top.-- Lens flares: star-burst, a long horizontal anamorphic streak, hexagonal ghosts along the line through frame center. Use them on headlights, the sun, a glint in the eye.-- **Occlude the glow**: when a cel passes in front of a lit background, stamp its silhouette in black onto the emissive canvas, otherwise neon bloom bleeds through the character.--**Videotape + CRT playback (restrained):** the conceit is "a 1987 OVA recorded on videotape, watched on a CRT". In the post shader, per frame and deterministic:-- *Chroma bleed*: convert to Y/Cb/Cr, keep luma sharp, box-blur chroma horizontally (~7 px at 1080p), shift the red-difference channel right ~2 px.-- *Scanlines*: 3 px period, strength ~0.18, a cosine profile; the dark gap shrinks on bright pixels (`1 − a·ph·(1 − 0.6·L)`). Anchor them to output pixels, not to the image, so they stay put when the picture jumps.-- *RGB aperture grille*: vertical R/G/B stripes, ±0.06.-- *Phosphor glow*: add a wide blur of the bright areas (~0.35).-- *Corners*: darken the corners (`1 − 0.28·(2u²v² + 0.25(u²+v²))`); no curved-screen black borders.-- *Noise*: faint per-pixel signal noise in the shader; in ffmpeg only `noise=c0s=2:allf=t` (the CRT texture already costs bits — keep CRF ≈ 23 to stay near 30 MB per minute).-- *Subtitles are on the tape*: composite them inside the shader after grading but before scanlines/grille, so they get the same TV texture without being color-graded.-- *Two accents*: a **power-on** at the first frame (a dot stretches into a bright horizontal line, then opens vertically, ~0.6 s, with a small "thunk" + line-whine sound), and **tracking noise** for 6–10 frames at a story beat that involves the tape (per-line horizontal tearing, one rolling noise band, a vertical hop, a head-switching strip at the bottom, with a short hiss/warble in the mix).-- Remove film-only artifacts (gate weave, dust, scratches, misregistration); they contradict the videotape conceit.-- *Moiré check*: export a frame, downscale to 1280×720 and inspect. A 3 px sinusoidal scanline becomes a clean 2-row alternation at 720p (no beat); 900p shows a faint 5-row pattern; below 480p it disappears.--**Frame:** full 16:9, treated as a theatrical feature. (A 4:3 pillarbox is valid for an OVA feel but wastes the showcase.)--## 4. Motion language--- **Characters step at 12 fps (on twos)**; performance beats (blink, eye opening, throttle twist, lip flaps) step at **8 fps (on threes)**. Camera pans, light sweeps, flares and rain move on ones (24 fps). Stepping the camera reads as judder.-- **Cycles** for secondary motion: hair and scarf are ribbons driven by a travelling sine wave with a 4-drawing cycle (6 drawings when the wind is calm). Vehicle bounce = a 12 fps random jitter of a few px.-- **Move light, not drawings**: a held cel with colored light bands sweeping across it (composite `source-atop` on the cel layer) is the cheapest way to make a close-up feel fast.-- **Impact frames**: 2 frames (1/12 s) of an inverted or monochrome silhouette over radial lines right on the hit, then cut to the result.-- **Hold the climax**: the biggest moment is a painted still (the "harmony" cel) with a slow pan and only the cycles moving.-- **Lip flaps**: 3–4 mouth shapes cycled at 8 fps while the line plays; end on a held expression.-- Eyes: blink/opening in three drawings (0.3 → 0.72 → 1.0 open), then narrow the upper lid for determination. A star glint in the highlight on a musical accent.--## 5. Camera language--| Beat | Camera |-|---|---|-| Cold open | **Multiplane crane-down** over a tall painted plate (sky → rooftops → neon → street), foreground layers faster |-| The object that matters | Tight insert on a hand holding it, soft bokeh behind, a highlight sliding over its plastic |-| Resolve | Extreme close-up on the eyes, eyes open on the line |-| Title | Backlit title card, letters flicker on at 12 fps, a light bar sweeps across, star glint |-| Momentum | Side tracking with 3–4 parallax layers + tail-light trail; rear view into a neon canyon (pseudo-3D); held bust with light bands; mechanical insert (wheel, gauge); a wide establishing shot that **plants the goal** |-| Obstacle | First-person approach to the obstacle; hands and gauges in extreme close-up, cutting faster |-| Climax | Low front view on radial speed lines → one-beat freeze + white flash → impact frame → painted still with slow pan → impact frame → landing with camera shake |-| Release | The same side-tracking composition as the night ride, repainted at dawn with the sky open |-| Ending | Warm close-up that answers the opening line, then the end card |--Cut on bars. Keep subtitles clear of the lower 120 px of important action.--## 6. Sound--- **Music**: an original city-pop / synth-funk "anime opening" is the best fit (we synthesized one in numpy — see `demo/music/score.py`): 110–120 BPM, a major key with maj7/9 chords, the J-pop "royal road" progression (IVM7–V7–iii7–vi7), FM electric piano (DX7-style 1:1 carriers + a 14:1 bell transient), slap bass (thumb + octave pops), gated-reverb snare, synth brass stabs, chorus-y 16th-note guitar chanks, string pad, a singable lead hook, FM bell sparkle, and a **key change up a semitone** for the last chorus.-- **Write the score to the cut**: intro under the cold open, a fill bar with space for engine revs, the title on a brass hit, verse under the montage, a pre-chorus build, **one beat of true silence** before the climax, the chorus on the climax, an accent on the landing, and the final chord on the end card.-- **Diegetic twist**: if the story has a song object (tape, radio), band-pass the score to a cassette/AM sound for one bar when it "plays", then open to full range with the key change.-- **Foley** (all synthesized): engine from an RPM curve (harmonic saw stack + firing jitter + band-passed exhaust pulses, low-passed when airborne), rain bed + random drops, tire hiss on wet road, wind, bells, radio squelch clicks, impact boom, metal scrape and sparks, cassette clicks, button + motor, rocket ignition and roar.-- **Voices**: an English-dub feel — a young heroine (Kokoro `af_bella`) and a radio dispatcher (Kokoro `am_michael` through a band-pass 380–2800 Hz + saturation + squelch). 6–8 short lines. Verify every line with whisper and rephrase anything it mishears (we changed "Launch is at dawn" → "The launch is at dawn").-- **Mix**: limit then compress the TTS, balance voices by RMS ~10 dB above the ducked music, duck music ~9 dB under lines, duck engine and ambience 3 dB, keep the chorus 4–6 dB louder than the intro, two-pass loudnorm to −14 LUFS.--## 7. Subtitles & titles--- Subtitles are part of the tape: draw them on an offscreen canvas and composite them inside the CRT pass (they get scanlines but no grading). Semi-condensed sans (Barlow Semi Condensed 600, 54 px), cream-yellow `#fff0a0` with a 9 px dark outline and a soft shadow, 96 px above the bottom. Radio lines in cyan `#8ff4ff` with a small boxed "● BASE" tag. A line stays up for max(duration + 0.6 s, 1.9 s) and yields when the next line starts.-- Title card: heavy italic Latin title with a **chrome gradient** (sky blue → white horizon line → violet → pink → gold), thick dark outline + neon outline, katakana line above (Dela Gothic One), a red year, a spaced-out tagline; glow through the emissive layer; flicker-on and a light sweep.-- End card: darkened final background, title, style name "80s Cel Anime", "LemoLab × Claude Opus 5.5", a one-line originality note and credits.--## 8. Pitfalls we hit--- **Bloom from white cels**: a threshold bloom on the color canvas turned the white bike and the jacket pink. Fix: bloom mostly from the emissive canvas; threshold 0.9 and weak on color.-- **Neon bleeding through the character**: the emissive plate is behind the cel but has no depth. Stamp every cel's silhouette in black onto the emissive canvas.-- **Black hole in the headlight**: the S-curve `c*c*(3-2c)` goes to zero above 1.0 — clamp before tone curves.-- **Rim light too thick**: the offset crescent must be 2–4 px, not 6–8, or thin hair ribbons turn completely pink.-- **Hair that looks like tentacles**: uniform tapering ribbons with round tips read as tentacles. Use wide, overlapping locks with sharp tips, a darker lock in between, and a solid hair mass behind them.-- **Bangs over the eyes**: keep lock tips above the upper lash line except one lock between the eyes.-- **Front-view faces are the hardest drawing**: tuck the rider behind a tinted windscreen so only goggles and hair show, and let the headlight flare carry the shot.-- **Pseudo-3D behind the camera**: points with z < near plane flip upward into the sky. Clamp z.-- **A rocket that leaves the frame**: follow it with a delayed tilt and a slower (quadratic) climb.-- **Fonts**: load every weight you draw with `document.fonts.load` before painting plates, or the canvas silently falls back to a serif.-- **Grain in ffmpeg makes files huge**: luma 4 + chroma 1 at CRF 22 gives ~32 MB/min; luma 5 + chroma 2 at CRF 18 was 270 MB.-- **Single-pass loudnorm** landed at −13.5 LUFS; two-pass with `linear=true` lands at −14.0.-- **Dynamics**: a hot limiter squashed the chorus to the same loudness as the intro. Normalize to the 99.99th percentile and let only rare peaks hit the limiter.--- **Face that looks like a paper mask** (first version): a 3/4 body with a flattened front face — equal eyes, no cheekbone turn, V chin, long thin neck. Fix by constructing the head (sphere + jaw), foreshortening the far eye and drawing a proper far contour.-- **Moe eyes in an 80s film**: round eyes with giant irises and hatched blush instantly date the drawing to the 2000s. Use almond eyes, thick lash line with a flick, faint blush.-- **Uniform black lines** make cels look like vector clip-art; colored, thinner skin lines fix it.-- **Pink faces at night**: multiplying the skin by the night tint plus magenta rim light and pink light sweeps washes the face pink. Give skin its own night colors and keep the pink sweep weaker on faces.-- **Forehead patches**: gaps between bang locks expose hard shadow shapes; widen the dark under-layer and lighten the forehead shadow.-- **File size with CRT**: scanlines + grille add fine detail; CRF 22 went over 35 MB/min, CRF 23 with luma-only noise 2 lands at ~31 MB.--## 9. Production recipe (this repo)--```-styles/cel-anime-80s/demo/- cel.js path / cel / ribbon / flutter helpers pal.js color models (day → night / dawn / backlit)- rider.js side-view bike + rider, limbs, wheels head80.js 80s heroine head: 3 views × expressions, body/collar/scarf- hands.js pinch-grip gloves bg.js painted plates (street, skyline, tall crane plates, reflections)- fx.js rain, splashes, speed lines, flares, lamps, light trails- post.js WebGL videotape + CRT pass (bloom, grade, chroma bleed, subtitles, scanlines, grille, glow, power-on, tracking noise)- shots.js + scenes1–4.js one function per shot story.js bar-aligned timeline, lines, credits- hud.js VHS-style subtitles main.js plates, shot dispatch, sound events- lines.json voices mix.py music/score.py (original score) tools/ (still, sheet, srt, mux)-```--1. Treatment → `story.js` (116 BPM bar grid, shots, lines).-2. `node styles/cel-anime-80s/demo/tools/still.mjs styles/cel-anime-80s/demo --range 0.5:58.5:1 --out /tmp/cs` → `tools/sheet.py` contact sheet → look → fix. `?test=model|close|side` renders the model sheet / head close-up / rider; `?raw=1` bypasses the CRT pass; `?nosub=1` hides subtitles.-3. `.venv/bin/python core/tts/tts.py demo/lines.json demo/voices` → `core/tts/asr_check.py`.-4. `.venv/bin/python demo/music/score.py` (score + stems + cue times).-5. `node core/render/events.mjs demo` → `.venv/bin/python demo/mix.py`.-6. `node core/render/video.mjs demo --fps 24 --workers 4 --out demo/out/video24.mp4` (1416 frames ≈ 36 s on an M-series Mac).-7. `sh demo/tools/mux.sh demo/out/video24.mp4 demo/mix.wav cel-anime-80s.mp4 24`, `python demo/tools/srt.py`.--## 10. Credits and licenses (demo)--- Original score, sound design, animation and all drawings: generated by code in this folder (numpy, Canvas 2D, WebGL). No samples, no stock art.-- Voices: Kokoro TTS (Apache 2.0), voices `af_bella`, `am_michael`.-- Fonts (SIL Open Font License 1.1, license files in `demo/fonts/`): Dela Gothic One (artakana), Kanit (Cadson Demak), Barlow Semi Condensed (Jeremy Tribby).-- Inspired by 1980s Japanese cel animation; all characters, vehicles, places and the story are original.+| Multiplane crane over a tall plate | a world revealed layer by layer | arriving; descending into a place; rising above it |+| Side tracking, 3–4 parallax layers | steady momentum | a journey; a chase; progress |+| Rear view into a pseudo-3D canyon | speed, pressure ahead | a race; a tunnel; a countdown |+| Held bust with light bands | speed or tension without animation | a drive; waiting; a decision |+| Insert with bokeh and a sliding highlight | this object matters | a letter; a key; a ticket |+| Extreme close-up on eyes | resolve, recognition | a choice; a promise |+| Slow pan across a painted still | awe, a held breath | a peak; a memory; a landscape |+| Radial speed lines + one-beat freeze | the instant before impact | a leap; a collision; a goal |+| Truck-in through a window or screen | entering another world | a flashback; a broadcast; a dream |+| Locked two-shot with lip flaps | conversation | banter; a confession; an argument |+| An earlier composition repainted | what changed | after a storm; years later |++Cut on bars. Framing: cels readable against the painted plate; keep the lower ~120 px clear for subtitles. Transitions: cuts, white flashes, impact frames, tracking noise at a tape-related beat; no digital dissolves or wipes.++## 7. Sound palette++- **Instruments** (city pop, synth funk, anime-opening pop): saxophone or synth-brass lead, FM electric piano with a bell transient, slap bass, chorus-y 16th guitar chanks, gated-reverb snare and big toms, drum machine, arpeggiated analog synth, string pad, FM bell sparkle. Extended jazz-pop harmony (maj7, 9ths).+- **Techniques, as options**: band-pass the score to cassette/AM when a diegetic source plays, then open it; a brass hit on a title; a drum fill left open for an effect; one beat of true silence before a peak; a semitone lift for a last chorus.+- **Foley** (synthesized): engines from an RPM curve, rain, tire hiss, wind, bells, radio squelch, impacts, sparks, cassette clicks, crowd murmur, door buzzers, footsteps on wet pavement; tape accents get their own thunk, whine, hiss.+- **Voice**: an English-dub feel, short lines; a second voice through a phone/radio band-pass (~380–2800 Hz). Verify every line with whisper.+- **Mix**: limit then compress TTS, voices ~10 dB over ducked music (duck ~9 dB), beds ducked ~3 dB, choruses louder than intros, two-pass loudnorm to −14 LUFS.++## 8. Native moves++A menu: use the ones your story needs.++- **Small flat hero in a huge painted world.** *Fits content like:* a first day in a big company; a child in a museum hall; a lone researcher at an observatory.+- **Stillness as drama** (held close-up or harmony still). *Fits content like:* an exam result; a goodbye at a gate; an unveiling.+- **Backlit light.** *Fits content like:* a lantern festival; a screen full of code; a lighthouse; stage lights.+- **Speed grammar** (speed lines, looping plates, impact frames). *Fits content like:* a sprint final; a data packet crossing the world; a kitchen rush.+- **Light-band sweep on a held cel.** *Fits content like:* a night train; a scanner reading a page; a heartbeat quickening.+- **A song as an object** (tape, radio, jukebox changes the score). *Fits content like:* a band's origin; a family memory; a call-in show.+- **Tape artefacts as punctuation.** *Fits content like:* found home video; a rewind to the past; an interrupted broadcast.+- **Colour-model change** (one place, another hour). *Fits content like:* a day in a shop; a farm's seasons; before/after a renovation.++## 9. Pitfalls of the medium++- White cels bloom pink → bloom from the emissive canvas; weak, high-threshold bloom on colour.+- Neon bleeds through characters → silhouettes stamped into the emissive canvas.+- Black holes in highlights → clamp before S-curves.+- Thick rim light swallows thin shapes → 2–4 px offsets.+- Hair like tentacles, a face like a paper mask, moe eyes, uniform black lines → the drawing rules in §2.+- Pink faces under coloured light → skin gets its own colour per set; weaker light sweeps on faces.+- Front views are the hardest drawing → hide them behind a visor, a windscreen or backlight when you can.+- Pseudo-3D points behind the camera flip into the sky → clamp z to the near plane.+- Canvas silently falls back to a serif → `document.fonts.load` every weight before painting.+- CRT detail inflates files → noise in the shader, only `noise=c0s=2:allf=t` in ffmpeg, CRF ≈ 23; loudnorm in two passes with `linear=true`; don't let a limiter flatten the dynamics.++## 10. Engine++In `demo/`: `cel.js` (path, cel, ribbon, flutter), `pal.js` (colour models), `head80.js` (80s head, 3 views × expressions), `hands.js`, `bg.js` (painted plates, crane plates, wet reflections), `fx.js` (rain, speed lines, flares, trails), `post.js` (WebGL tape + CRT pass: bloom, grade, subtitles, power-on, tracking noise), `hud.js`, `music/score.py` (numpy FM/slap/brass synthesis), `tools/`. `?test=model|close|side` draws model sheets, `?raw=1` skips the CRT pass. A minimal new use: a harbour sunset plate with its emissive pair, one cel boat shaded with `cel.js`, through `post.js`.++## 11. Variation space++You decide the structure, the characters, the world, the opening, the ending, the camera path, the pacing and the colour models. All far from our demo:++- Structures: **slice of life in four seasons** (one place, four colour models, a small change each time); **two-hander dialogue** (a locked two-shot comedy that breaks into one fantasy sequence); **the mock opening credits** (a character roster introduced one by one, each with a pose and a name card).+- Openings: **in the middle of a conversation** (lip flaps already moving, no establishing shot); **a TV being switched on** to an in-world broadcast; **a close-up of a drawing hand** in a classroom, then cut to the world it draws.+- Endings: **a freeze-frame** on a laugh with a "to be continued" card; **the tape runs out** into blue screen; **a slow pan up to a starry sky** from a quiet rooftop, no dialogue.++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/cel-anime-80s/TREATMENT.md b/styles/cel-anime-80s/TREATMENT.mddeleted file mode 100644index fb98dd6..0000000--- a/styles/cel-anime-80s/TREATMENT.md+++ /dev/null@@ -1,141 +0,0 @@-# 80s Cel Anime · 导演方案(Treatment)--**片名** *City Lights, 1987*(片内标题卡:CITY LIGHTS / シティ・ライツ / 1987)-**时长** 约 59 秒 | **画幅** 1920×1080(16:9,按"剧场版"宽银幕处理,不做 4:3 邮筒)| **帧率** 24fps 输出;角色按 12fps(on twos)步进,眨眼、拧油门、口型等表演按 8fps(on threes)步进;镜头平移、光效、雨按需要每帧平滑-**一句话** 雨后的霓虹夜,快递少女"夜鸟"骑着摩托穿城,要在黎明火箭发射前,把飞行员落下的一盘磁带送上发射台。-**主题** 赶在太阳之前——城市的最后一段夜路,送一首歌上天。-------## 一、为什么选这个内容--一个好的风格 demo 要讲**只有这种媒介才讲得好的故事**。80 年代赛璐璐动画有五种"天生的本事",这个故事全用上:--| 80s 赛璐璐的媒介特性 | 故事里怎么用 |-|---|---|-| **平涂角色 × 喷枪背景**:角色是硬边赛璐璐,背景是柔和的手绘喷枪 | 霓虹都市、湿柏油路倒影、黎明渐变天空全部是"画",少女和摩托是"赛璐璐",两种质感叠在一起 |-| **有限动画的导演智慧**:一张定格画 + 镜头平移、循环、冲击帧 | 飞越吊桥用"止め絵"(静止大画 + 慢速平移)+ 冲击帧;骑行用背景高速循环 + 头发围巾循环 |-| **透过光(backlit cel)**:光从画格背后透出来 | 霓虹招牌、尾灯光轨、车头灯、片名字、仪表盘,全部是会"溢光"的发光层 |-| **速度的语法**:速度线背景、多层视差、车身震动 | 摩托是天生的速度载体,冲刺段直接切进流线背景 |-| **城市流行乐的时代**:80 年代动画片头曲 = city pop / 合成器放克 | 磁带里装的就是这首歌:配乐在结尾变成"剧中音乐",从飞船里的卡带机播出来 |--**情绪弧线**:雨夜的紧迫(倒计时)→ 冲刺的快感 → 吊桥升起的阻碍 → 飞越的爆发 → 黎明的释放。一个角色、一个目标、一个死线(日出)。-------## 二、结构--| 幕 | 时间 | 小节(116 BPM) | 情绪 | 发生什么 |-|---|---|---|---|---|-| 冷开场 | 0:00–0:10.3 | 0–5 | 紧迫 | 雨夜俯冲下城市,无线电派单,少女睁眼:"I'll beat the sun." |-| 片头标题 | 0:10.3–0:14.5 | 5–7 | 点火 | 引擎轰鸣 + 铜管齐奏,透过光片名卡 |-| 第一幕 骑行 | 0:14.5–0:29.0 | 7–14 | 快感 | 霓虹城市蒙太奇:侧跟、背影、脸、车轮、高架大全景(远方火箭第一次出现) |-| 第二幕 阻碍 | 0:29.0–0:33.1 | 13–16 | 紧张 | 吊桥升起、"Turn back!",拧油门、冲上桥面,音乐抽空一拍 |-| 第三幕 爆发 | 0:33.1–0:39.3 | 16–19 | 爆发 | 冲击帧 → 飞越吊桥的止め絵大画 → 落地冲击 |-| 第四幕 黎明 | 0:39.3–0:53.8 | 19–26 | 释放 | 天亮了,交出磁带,卡带机按下 PLAY,火箭升空,少女在晨光里笑 |-| 片尾 | 0:53.8–0:59.0 | 26–28.5 | 余韵 | 片名卡 + 署名 |-------## 三、分镜--小节时间:bar n = n × 2.069 s(116 BPM,4/4)。--| # | 时间 | 景别 / 机位 | 画面 | 声音 |-|---|---|---|---|---|-| 1 | 0:00–0:04.1 | 大全景,**纵向长背景下摇**(密着マルチ) | 夜空细月、云层 → 摩天楼顶航空灯闪烁 → 霓虹招牌 → 湿漉漉的街面。前景雨丝和近处招牌层移动更快。街角霓虹下停着一辆白色摩托 | 雨声、远处车流、霓虹嗡嗡声;无线电底噪 · **D1** "Nightbird, come in. The launch is at dawn." |-| 2 | 0:04.1–0:07.2 | 特写 | 戴手套的手托着一盘磁带,手写标签 "SIDE A · CITY LIGHTS",塑料壳上滑过霓虹倒影;手把磁带塞进夹克内袋 | 雨声、磁带壳咔哒 · **D2** "The pilot won't fly without his tape." |-| 3 | 0:07.2–0:10.3 | 大特写(眼睛) | 闭眼 → 8fps 三张画睁开,瞳孔里映着粉色霓虹;最后一张眼神变锐利 | **G1** "Copy. I'll beat the sun." · 第 4.5 小节门限混响军鼓过门 + 引擎两次轰油 |-| 4 | 0:10.3–0:14.5 | 片名卡 | 深蓝底 + 横向光条扫过;"CITY LIGHTS" 以透过光逐字点亮(12fps 闪烁两下再稳定),片假名 シティ・ライツ 与红色 "1987";镜头光晕 | **铜管齐奏 + 吊镲**,全乐队进 |-| 5 | 0:14.5–0:18.6 | 侧面跟拍(主镜头) | 少女与摩托侧面,四层视差:远景天际线 / 中景霓虹店面 / 近景路灯呼啸而过 / 湿路面倒影。雨丝被速度拉斜,尾灯拖出光轨,头发和围巾 12fps 循环飘动,车身 12fps 震动 | 主歌律动:slap 贝斯、FM 电钢、合唱效果吉他;引擎持续 |-| 6 | 0:18.6–0:20.7 | 背后跟拍,透视纵深 | 从背后看她冲进霓虹峡谷,两侧招牌拉成光条,尾灯红光在湿路上拖出倒影 | 引擎、车流呼啸 |-| 7 | 0:20.7–0:22.8 | 近景(胸像 3/4) | 头发与围巾向后狂飘,**霓虹光带从脸上一条条扫过**(定格赛璐璐 + 移动光层) | 主歌旋律 |-| 8 | 0:22.8–0:24.8 | 大特写(车轮) | 前轮碾过积水,水花扇形溅起,辐条动态模糊,速度线 | 水花、胎噪 |-| 9 | 0:24.8–0:26.9 | 大全景(高架) | 高架路弯进城市,她只是一粒尾灯;海湾对岸,探照灯照着发射架上的火箭——**目的地第一次出现** | 音乐延续 |-| 10 | 0:26.9–0:29.0 | 全景 → 推 | 前方吊桥警示灯红闪(12fps),栏杆放下,两扇桥面开始升起 | 警铃 · **D3** "The drawbridge is going up! Turn back!" |-| 11 | 0:29.0–0:31.0 | 大特写(手 + 仪表) | 手套拧油门(8fps 三张),转速表指针甩向红区,仪表透过光 | 引擎咆哮 · **G2** "No time to go around." · 军鼓滚奏渐强 |-| 12 | 0:31.0–0:33.1 | 低角度正面 | 摩托冲上正在升起的桥面,**放射速度线背景**,车头灯光晕越来越大;第 4 拍全白闪 | 最后一拍**音乐完全抽空**,只剩引擎 |-| 13 | 0:33.1–0:37.2 | **止め絵** 大画 + 慢速平移 | 2 帧冲击帧(反色)→ 摩托腾空的剪影大画:背后是黎明前的巨大渐变天空与远方火箭,下方是两扇竖起的桥面和海湾灯火。整张画是"ハーモニー"式的绘画质感,只有头发与围巾还在飘 | **副歌爆发**:铜管 + 合唱吉他 + 全鼓组 |-| 14 | 0:37.2–0:39.3 | 中景 | 冲击帧(黑白)→ 落地,悬挂压缩、火花、水花,镜头震动 | 落地重击 + 吊镲 |-| 15 | 0:39.3–0:41.4 | 侧面跟拍(黎明版) | 同一侧面构图,天色变成粉橙,海边公路,太阳边缘出现,镜头光晕 | 副歌第二句 |-| 16 | 0:41.4–0:43.4 | 大特写(两只手) | 发射场铁丝网缝隙,她的手把磁带递进另一只工作手套里 | **G3** "Special delivery." |-| 17 | 0:43.4–0:45.5 | 大特写(卡带机) | 舱内卡带机,手指按下 PLAY,卷轴开始转,电平表透过光跳动 | 配乐变成"收音机/卡带音质"(带通滤波) · **D4** "Tape's aboard. He's playing it now." |-| 18 | 0:45.5–0:49.7 | 大全景 → 上摇 | 火箭在晨光中升空,喷焰与翻滚的喷枪烟云,太阳光晕 | 配乐从卡带音质**展开成全频**,并升调进入最后副歌;火箭轰鸣 |-| 19 | 0:49.7–0:53.8 | 近景(胸像,晨光) | 她把护目镜推上额头,暖光打在脸上,头发缓缓飘,天空里火箭尾迹;表情从喘息变成微笑(两张画) | **G4** "Told you I'd beat the sun." |-| 20 | 0:53.8–0:59.0 | 片尾卡 | 晨空 + 尾迹,片名、风格名、署名 | 最后和弦 + FM 钟声余韵 |--**配音全文**(8 句,英语配音腔;D = 无线电调度员,G = 少女"夜鸟")-1. D: Nightbird, come in. The launch is at dawn.-2. D: The pilot won't fly without his tape.-3. G: Copy. I'll beat the sun.-4. D: The drawbridge is going up! Turn back!-5. G: No time to go around.-6. G: Special delivery.-7. D: Tape's aboard. He's playing it now.-8. G: Told you I'd beat the sun.-------## 四、导演手法清单(这支 demo 要展示的能力)--1. **冷开场 + 片头曲点火**:80 年代 OVA 的经典结构——先用 10 秒交代死线,再用引擎轰鸣接铜管齐奏砸出片名。-2. **密着マルチ下摇**:开场一张纵向长画,多层以不同速度移动,一个镜头交代"城市—街道—她"。-3. **有限动画的节奏就是风格**:角色 12fps、眨眼和拧油门 8fps、镜头平移每帧平滑;动得少的地方用光来动(霓虹光带扫过定格的脸)。-4. **速度的四件套**:多层视差 + 高速循环背景 + 车身震动 + 尾灯光轨;冲刺时切进放射速度线背景。-5. **止め絵 + 冲击帧**:情绪最高点反而"停住"——一张绘画质感的大画慢慢平移,只让头发和围巾飘,前后各夹冲击帧。-6. **透过光与光晕**:所有光源都是单独的发光层,经辉光与红色晕染(halation)溢出到画面上。-7. **首尾呼应**:开场 "I'll beat the sun.",结尾 "Told you I'd beat the sun.";开场的雨夜蓝紫与结尾的晨光粉橙是同一条街的两种颜色。-8. **剧中音乐反转**:磁带里的歌就是配乐本身。卡带机按下 PLAY 时,配乐先变成卡带音质,火箭升空时再展开成全频并升调。-9. **声画卡点**:片名砸在铜管重音上;起跳前一拍音乐抽空;止め絵对准副歌第一拍;落地对准吊镲。-10. **胶片放映质感**:颗粒、片门晃动、色偏与套色错位、灰尘划痕、暗角——让整片像是从 35mm 拷贝翻出来的。-------## 五、声音设计--- **音乐**:numpy 原创合成的 city pop / 合成器放克,116 BPM,E♭ 大调,王道进行(IVM7–V7–iii7–vi7)。FM 电钢琴(DX7 式 1:1 + 14:1 铃音)、slap 贝斯(拇指击弦 + 八度勾弦)、门限混响军鼓、合成铜管齐奏、合唱效果切音吉他、弦乐垫、主旋律合成器。结构严格对齐分镜:- - 0–4 小节:前奏(垫子 + 电钢琴分解和弦 + 雨声)- - 第 4 小节:引擎轰油 + 门限混响嗵鼓过门- - 第 5–7 小节:片名铜管 riff- - 第 7–13 小节:主歌律动- - 第 13–16 小节:预副歌上行 + 军鼓渐强,第 15 小节第 4 拍全停- - 第 16–21 小节:副歌(止め絵、落地、黎明、交接)- - 第 21 小节:卡带音质(带通 + 轻微抖晃)- - 第 22–26 小节:升调最后副歌(火箭升空、微笑)- - 第 26 小节起:结束和弦 + 钟声余韵(片尾卡)-- **拟音**(代码合成):摩托引擎(按转速的谐波锯齿 + 排气爆裂,轰油时转速扫频)、雨声(粉噪 + 随机雨滴)、积水飞溅、警铃、落地重击与金属刮擦、磁带壳咔哒、卡带机按键与电机、火箭轰鸣、城市底噪。-- **人声**:少女用 Kokoro 美式女声(年轻、利落),调度员用美式男声 + 无线电滤波(带通 + 轻失真 + 底噪 + 按键嘀声)。每句 whisper 校对。-- **混音**:人声先压缩,音乐在人声下闪避约 5 dB,引擎按镜头远近自动增减,响度 −14 LUFS。-------## 六、画面规格--- **渲染方式**:Canvas 2D 画赛璐璐与背景(背景在加载时一次性画成缓存大图,逐帧只做平移——和真实动画的"背景 + 赛璐璐"一样);WebGL 做后期(辉光 / 红色晕染、套色错位、片门晃动、灰尘划痕、暗角、调色);颗粒放在 ffmpeg。-- **角色赛璐璐**:平涂底色 + 硬边阴影 + 硬边高光,描线用各部分底色的深色(皮肤用深红棕,头发用深紫,夹克用深蓝),夜景里加一侧霓虹色的轮廓光(rim light)。-- **人设**:少女"夜鸟"——深紫黑色长发、高马尾、耳麦、推到额头上的护目镜、钴蓝色骑行夹克带白条纹、珊瑚粉长围巾。摩托:珍珠白 80 年代跑车,青绿色涂装条纹,单圆大灯(原创,刻意避开红色)。-- **色板**:夜景 = 靛蓝 / 深紫 / 霓虹洋红 / 青色;黎明 = 粉 / 橙 / 淡金;角色的珊瑚粉围巾是两套色板里都跳出来的颜色。-- **字幕**:80 年代录像带字幕的味道——奶黄色半窄体字、深色描边加一点溢光;调度员台词用青色,前面带一个小的 "◉ BASE" 无线电标签。-- **片名卡**:英文粗斜体 + 片假名 + 红色年份,透过光点亮;片尾卡含片名、"80s Cel Anime"、"LemoLab × Claude Opus 5.5"、素材署名。-------## 制作后记(与方案的差异)--- **台词 1 改了一个词**:Kokoro 把 "Launch is at dawn" 连读成 "launches at dawn",whisper 校对不过。改成 "Nightbird, come in. **The** launch is at dawn." 后 8 句全部通过(成片音轨再转写一次也全部识别)。-- **第 15 镜(黎明侧跟)从"城市街道"改成"海边公路"**:第一版沿用夜景的街道立面换黎明色,天空被楼挡住,"天亮了"的释放感出不来。改为天空完全打开、太阳从海平面升起、远处发射塔就在前方,和夜里的侧跟构图形成同机位、两种光的对照。-- **第 12 镜"白闪一拍"改成"定格 + 白雾 + 车灯光晕"**:纯白画面停 0.5 秒太长、像坏帧。现在是前 2 帧全白,之后画面定格在冲刺的最后一张,留一层白雾和逐渐扩大的车灯光晕,音乐同时完全抽空,只剩引擎。-- **正面冲刺的人设改成"压低在风挡后"**:正面脸是最难画好看的角度,第一版看起来像戴帽子的男生。改成赛车式趴姿,只露出护目镜和被风吹散的头发,车灯光晕承担这一镜的冲击力,反而更有速度感。-- **手套重画了一次**:第一版手像连指手套。改成"捏握"结构(手指在磁带后、拇指压在正面、手背有指节护垫和缝线),磁带镜头和交接镜头共用同一套手。-- **增加的细节**:侧跟镜头里霓虹色光从车身上一条条扫过;睁眼后第二次轰油时瞳孔高光闪出星芒(キラッ);片名卡整体缓慢推近。-- **混音**:第一版限幅器压得太狠,副歌和前奏一样响。改为按 99.99% 分位配平,只让极少数峰值进限幅器,前奏约 −15.6 dB、副歌约 −11.5 dB;人声闪避加深到约 −9 dB;两遍 loudnorm 精确落在 −14.0 LUFS。-- 时长 59.0 秒,与方案一致;所有剪辑点仍在原来的小节上。--### 返修轮(女主重画 + 录像带 / CRT 质感)--- **女主的脸整张重画**(`demo/head80.js` 取代旧的 `face.js`):先出角色设定表(v1 → v2,3 个角度 × 4 个表情 + 头部大特写),批准后再换进镜头。改为颅骨球体 + 鹅蛋形下颌的构造;80 年代杏仁眼(粗上睫毛、外眼角挑出睫毛、双眼睑、四层虹膜);鼻子用阴影面、嘴有唇形和口型;暖棕细描线、深紫头发描线;"天使环"锯齿高光带;去掉斜线腮红。-- **第 3 镜(眼睛大特写)表演改了**:原来闭眼 0.5 秒再三张睁开,改为先垂眼听无线电 → 一次快速眨眼(闭眼只停 1 张 = 3 帧)→ 抬眼变锐利;台词 "Copy. I'll beat the sun." 有口型。景别从"只有眼睛"放宽到面部大特写,让新脸的鹅蛋形和口型都进画。-- **第 12 镜(正面冲刺)改回露脸**:新的正面脸成立了,于是让她的眼睛越过风挡盯着前方,不再藏在有色风挡后面。-- **第 19 镜(晨光结尾)**:先喘息(半眯眼、张嘴、汗滴)→ 说台词时口型开合 → 眨一下眼 → 开口笑;主光改成从右侧的朝阳,近侧自动阴影 + 右侧暖色轮廓光。-- **夜景肤色**:皮肤单独指定夜景色(中性亮部 + 冷紫阴影),胸像镜头里扫过脸的洋红光带减弱,不再整张脸发粉。-- **胶片质感 → 录像带 + CRT(克制版)**:整片设定成"一部录在录像带上、在 CRT 电视上播放的 1987 年 OVA",和故事里的磁带呼应。去掉片门晃动、灰尘划痕、套色错位;加色度水平渗色 + 红通道右移、3px 扫描线、RGB 光栅、荧光辉光、四角压暗、很轻的信号噪声。字幕也在 CRT 管线里合成(录在带子上)。两处加强:片头 CRT 开机亮线(配"嘣"一声和行输出尖啸),卡带机按下 PLAY 的瞬间 9 帧磁带跟踪噪声(配嘶声)。diff --git a/styles/cel-anime-80s/style.json b/styles/cel-anime-80s/style.jsonnew file mode 100644index 0000000..b8c4240--- /dev/null+++ b/styles/cel-anime-80s/style.json@@ -0,0 +1,18 @@+{+ "slug": "cel-anime-80s",+ "num": "27",+ "en": "80s Cel Anime",+ "cn": "80 年代赛璐璐动画",+ "category_en": "Cartoon & Anime",+ "category_cn": "卡通与动画",+ "film": "City Lights, 1987",+ "line": "A courier girl rides through a rain-soaked neon city to deliver a tape before the dawn launch.",+ "line_cn": "快递少女骑车穿过雨后霓虹都市,赶在黎明发射前送到一盘磁带。",+ "uses": [+ "Music videos",+ "Game trailers",+ "Nostalgia"+ ],+ "frame_sec": 17.7,+ "dur": 59.0+}diff --git a/styles/crayon-book/DEMO.md b/styles/crayon-book/DEMO.mdnew file mode 100644index 0000000..7244db1--- /dev/null+++ b/styles/crayon-book/DEMO.md@@ -0,0 +1,106 @@+# Crayon Picture Book — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *The Moon Can't Sleep* (52 s) · `crayon-book.mp4` · source in [`demo/`](demo/)+++## Story & structure++A bedtime story on one page: the moon can't sleep; she tries counting sheep and fails; a girl at a lit window sees her, climbs a ladder that draws itself rung by rung, and a sweep of watercolour reveals the stars that were drawn in white crayon all along. The moon is tucked in under a quilt; the camera pulls back to the book on a table and turns the page to "The End".++The demo was written for the rule "the act of drawing and colouring is the plot" and spent all six native moves, with the strongest (wax resist) at the emotional peak: the 250 white-wax stars were on the page from the first frame and were uncovered by the wash on the song.++Arc (45–55 s): blank page → a character is drawn and wakes up (hook in 3 s) → a small comic problem (failed sheep count) → a second character (the girl) → a small brave act (the ladder) → the wash reveal on the song (peak, no narration) → everyone sleeps → pull back to the book, page turn.++How the old guide mapped the native moves onto this story:++| Native move | How the demo used it |+|---|---|+| **Wax resist** | Hid the payoff (the stars) in plain sight from the first frame; a sweep of watercolour uncovered it at the climax. |+| **Drawn live** | Opened on a blank page; the ladder grew rungs under the girl's hands. |+| **Colouring is an action** | Pulling up a blanket = scribbling a quilt over the moon; night falling = the wash. |+| **Boil** | Calmed to half amplitude when the story went to sleep. |+| **Child logic** | A face on the moon; numbers written in the sky while counting sheep. |+| **It is a book** | Ended by pulling back to the physical book on a table, the crayons beside it, and turning to "The End". A one-take film over one page is explained by that reveal. |++The old guide's adaptation examples (a product drawn in outline and a wash revealing the hidden feature; a history page coloured in event by event; a thank-you film with names in white crayon) are now the "Fits content like" lines in STYLE.md §8.++## Shots++One continuous camera over one page (world 3200×1800; full page = scale 0.6).++| Beat | Camera |+|---|---|+| Opening | Locked full page, flat: the audience sees the paper before anything is drawn |+| Title leaves | Push toward the moon instead of fading the title (you can't fade crayon) |+| Comic beat | Locked medium close-up; substitution poses do the comedy (tossing = a scrunched face rotated 35°, on the beat) |+| Discovery | Tilt along the moon's gaze (the camera *is* the moon looking down) |+| Two-shot | The moon peeking in from the frame edge, the girl small in a lit window |+| Brave act | Tight follow tilt; the ladder draws itself just ahead of her; climbing alternates two key drawings per rung |+| Wash reveal | **Held wide.** The brush and the music do the motion. Small figure, huge sky |+| Resolution | Slow push-in on the moon falling asleep, then tilt to the girl |+| Ending | Pull out until the page becomes a book on a table; page turn; glide onto "The End" |++Why this route, for this story: a bedtime story wants one uninterrupted page; the locked blank page put paper before drawing; the held wide at the reveal let the material be the motion; the pull-back explained the one-take. Each of these is one choice from STYLE.md §6, not the style's default.++Sleep grammar used on the moon: eyelids come down as yellow scribbles, a nightcap is drawn on, a quilt is coloured up from below with the folded edge appearing first, a tiny hand tucks it in.++## Score structure++Music first, in **3/4 at 72 BPM** (bar = 2.5 s). Music box (lead), toy piano (comic waltz, one note per sheep / per rung), flute as the singing voice, clarinet for bass and humour, glockenspiel for every star the wash uncovers (driven by `glint` events). No strings, no grand piano. The lullaby theme appears in full exactly once, at the wash; the opening music-box motif is its first phrase. It ends with the music box **winding down** (ritardando + slight pitch droop).++Silences: a full beat of silence after the failed sheep count; a 0.3 s breath before the song.++Foley specific to this film: sheep landing = felt puff; tossing = blanket swish; page turn = lift / whoosh / flap. Night = very faint crickets; the desk = warm room tone and a distant clock.++Mix: music −7 dB under narration, +4 dB for the wordless song; music-box and glockenspiel stems +3 dB with a gentle 3–7 kHz lift.++Voice: Kokoro `af_heart`, speed 0.86–0.90 (v3 re-voice: `bf_emma` read too bright and hard), 6–8 short lines. Chain: high-pass 75 Hz → **compress first** (thr 0.2, 2.5:1, 8 ms / 140 ms) → low shelf +1.5 dB @220 Hz, −2 dB dip @3.2 kHz, **high shelf −4 dB @6 kHz** → split-band de-esser (4.8–10 kHz, 4:1) → per-line RMS match → warm near-field reverb (12 ms pre-delay, early reflections, 0.7 s low-passed tail, wet ~−17 dB). Music ducks ~7 dB and foley ~4 dB under it; voice ~7–10 dB over the bed. "Goodnight, Moon" was avoided as a famous-book phrase ("Night, night." instead).++## Palette & props++- Paper `#f4efe3`; tooth octaves 1.35 / 2.9 / 6.3 px plus fibre term (x/10, y/1.9), contrast `smoothstep(.16,.86)`; emboss strength ~0.55.+- Wax threshold `tooth > 1 − 1.22·pressure` (soft edge ±0.07); darkening ×(1−0.1·p²).+- Outline wobble ~1.7 px; outline width ~7 px on characters, 8 px on buildings, 4–5 px for refined objects. Hatching gap ~10.5 px, width ~11 px, pressure 0.72–1.14×, overshoot 0–7 px; cross-hatch at 40–50 %.+- Boil: offset ±0.8 px, wobble ±0.9 px; background lines ×0.6; after the characters fall asleep ×0.5.+- **12 crayons**: ink/indigo `#2d3263` (all outlines), yellow `#f5c63c`, orange `#ec8a3c`, red `#d4483c`, pink `#ee8ea4`, peach `#f4c7a4`, brown `#7a4b31`, ochre `#e7b867`, green `#62a24c`, sky `#79acd9`, violet `#6a5aa6`, white `#fbfaf4` (wax resist). One watercolour: ultramarine, transmission `(0.15, 0.19, 0.44)`. Wash resist `density × (1 − 0.93·smoothstep(.12,.55, waxCoverage))`.+- The girl: ≈2.6 heads tall, scalloped fringe, a yellow star hair-clip that echoes the stars. The moon: big eyes, eyelids, eye-bags, nightcap, patchwork quilt. The sheep. The house (gable + slanted side wall + big roof), a round tree with red dots, the ladder, 250 white-wax stars, 3 wash bands.++## End card++Title: hand-lettered on the page in two lines in a corner (Gaegu Bold), written on letter by letter while the colours are scribbled in. Subtitles: Patrick Hand 54 px, indigo crayon.++End card: the next page of the book — "The End" (Gaegu Bold), a small crescent doodle, the style name and credit in Patrick Hand. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/crayon-book/demo/+ gl.js WebGL2 compositor: paper, wax adhesion, knock-out, watercolour + resist, image pass, final emboss/vignette/lamp+ crayon.js stroke engine: line (ribbons, taper, streaks, boil), fill (zig-zag hatching, overshoot), text, shapes+ rig.js parts with occlusion + knock-out, limb tubes, curves+ chars.js the girl (views × expressions × poses), the sheep, the moon (expressions, nightcap, quilt, crescent face)+ world.js the page: house, tree, grass, ladder, 250 white-wax stars, 3 wash bands+ film.js timeline, one-take camera, events, subtitles end.js book on a crayon desk, page turn, The End+ sheet.js model sheets (?test=model&page=girl|moon) lines.json, mix.py, music/score.py, build.sh+```++1. `node core/render/still.mjs styles/crayon-book/demo 0.5 --q 'test=model&page=girl'` — model sheet first; iterate the character before any shot.+2. `core/tts/tts.py lines.json voices` → `asr_check.py` until all OK.+3. Build the timeline in `film.js`; review with `still.mjs --range 0.5:51.5:1` + `sheet.py` (two rounds minimum).+4. `node core/render/events.mjs` → `music/score.py` (cues on the 72 BPM grid, glockenspiel from `glint` events) → `mix.py`.+5. `node core/render/video.mjs styles/crayon-book/demo --fps 24 --workers 3` (1248 frames ≈ 80 s on an M-series Mac).+6. `CRF=26 sh demo/tools/mux.sh out/video24.mp4 mix.wav crayon-book.mp4 24 0` — no added grain (the paper is the grain); the local mux copy exposes CRF. `demo/build.sh` runs the whole chain from TTS to the finished film.++File size: screen-fixed tooth made the film 190 MB; anchoring the tooth, not boiling background fills, no extra grain and CRF 26 → 74 MB with no visible loss.++Pitfalls tied to this demo's props:++- **White gaps between wash bands** and a sky that stopped above the ground: the last band must reach down to the grass line; sky exists wherever there is paper.+- **Walls coloured at light pressure turned muddy blue under the wash.**+- **Titles and numbers written in the sky survived the wash** (the counted sheep numbers): the title went in a corner the wide shot won't show.+- **Outlines drawn over the girl's hair read as a headband.**+- **A blanket drawn as a flat violet half read as the moon's dark side.** It needed quilt features: patchwork squares, stitch lines, star appliqués, a light turned-down edge, a draped hem that spills past the disc, and a hand that pulls it up.+- **Double vignette/emboss at the book transition**: the desk's vignette, emboss and lamp light ramp in from 0.+- **The heroine disappeared into the night** because the wash sank into her colouring gaps; she is composited after the wash.diff --git a/styles/crayon-book/STYLE.md b/styles/crayon-book/STYLE.mdindex 201a263..d17e37c 100644--- a/styles/crayon-book/STYLE.md+++ b/styles/crayon-book/STYLE.md@@ -1,117 +1,107 @@# Crayon Picture Book — Style Prompt-> A bedtime picture book drawn live in wax crayon on toothy paper, with one watercolour wash that reveals what the crayon was hiding.-> Demo: *The Moon Can't Sleep* (52s) · `crayon-book.mp4` · source in `demo/`+> A picture-book page drawn live in wax crayon on toothy paper, with a watercolour wash that reveals what the crayon was hiding.+> References (grammar only): Raymond Briggs' *The Snowman* (1982) (hand-textured frames that breathe, wordless tenderness, a lyrical passage carried by one tune, still backgrounds with living figures). Copy none of its characters, song or imagery, and never name it in the film.-You are directing a 30–60 second film in the **Crayon Picture Book** style. The user gives you a topic. You decide everything else — story, shots, timing, sound — and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not++A children's picture book page **being drawn while you watch**: wax crayon on warm off-white paper, a limited box of crayons, child-logic perspective, colour that spills past the outline, and every line gently **boiling** because each frame is a fresh drawing. The tone is picture-book storytelling: tender, unhurried, music-led, a few lines of narration that are literally the words printed on the page. Any topic becomes **one page of a picture book that gets finished**: drawing and colouring are the plot.++It is not "cute vector art with a crayon filter": the look comes from **material physics** (wax sticks only to the peaks of the paper tooth, pressure decides how much of the tooth it reaches, watercolour is repelled by wax). Not a whiteboard explainer (no marker, no hand), not a watercolour painting (the wash is a guest, the crayon the host), not a chalkboard.++## 2. Materials & rendering++- **Paper**: warm off-white (around `#f4efe3`). The tooth is **anchored to the page** (it pans with the camera; on zoom two octaves cross-fade so grains stay ~1 px on screen), never screen-fixed: three octaves of value noise plus a horizontal fibre term. A final pass embosses it (lit top-left), less where wax filled the tooth. Low mottling ±2 %, warm vignette.+- **Wax adhesion (the core rule)**: every crayon layer is a canvas where RGB = colour and **A = pressure**; the shader deposits wax where `tooth > 1 − k·pressure` (soft edge). Light pressure = speckled peaks; heavy = almost solid, slightly darker.+- **Strokes**: ribbons with a low-frequency hand wobble (1–2 px), width ±15 %, tapered ends, a denser core and 1–2 thin streaks. Characters and buildings get the heaviest outline; refined "adult" objects about half.+- **Colouring**: back-and-forth zig-zag hatching with a visible gap, each pass at a slightly different pressure; **overshoot the outline by a few px**; a lighter cross-hatch pass on big areas.+- **Watercolour wash**: a separate density canvas multiplied over the page. Pigment pools at edges (density minus blurred density), granulates in the deepest pits, blooms with noise, and is **resisted by wax** (density × (1 − ~0.9·wax coverage)). Brush strokes are wide bands with bristle streaks and a darker wet leading edge while moving.+- **Occlusion**: a front part erases what is behind it inside its outline; characters "keep the paper white" behind them (a knock-out that restores paper and resets wax), the way a child draws the figure first and colours around it.+- **Characters**: a skilled adult imitating a child: round head (≈2.5 heads tall), dot eyes with a white-wax catchlight, pink cheeks, tube limbs, mitten hands, bold hair shapes; objects with faces get big eyes and eyelids. **Child perspective**: gable front + slanted side wall; people bigger than doors.++## 3. Colour logic++- **A box of about a dozen crayons, never more.** Outlines in one dark colour (indigo, dark brown, plum), **never black**. One white crayon reserved for wax resist.+- **At most one watercolour** per film, chosen for what it reveals (ultramarine for night, rose for dawn, sap green for rain). It never paints the characters.+- Saturated crayon on lots of bare paper; value comes from pressure, not extra hues. One accent on a character may echo the story.+- Example boxes: *seaside* — navy line, coral, sand, teal, turquoise, lemon, white; *orchard* — brown line, russet, apple red, mustard, olive, plum, cream, white.++## 4. Type & subtitles++- Subtitles are **the book's printed words**: a handwriting face (Patrick Hand, OFL), 50–56 px, in the outline colour, bottom-centre, each glyph tilted and offset, boiling on twos, written left→right in ~0.35 s, on a ragged knock-out patch of blank paper (never a dark box). Hold ≥ max(1.8 s, speech + 0.6 s); none during wordless music.+- Titles are hand-lettered on the page (Gaegu Bold or similar), written letter by letter. You can't fade crayon: a title leaves by the camera moving off it, a page turn or being coloured over.++## 5. Motion quality++- **Everything drawn steps at 12 fps** (lines, colouring, characters, boil seed); camera, the wash's leading edge and twinkles run at 24 fps.+- **Boil**: each stroke re-jitters offset (<1 px), wobble and hatching rows every 2 frames. Characters full, background lines ~0.6, background colouring still (it also halves the bitrate). Calm the boil to about half when the film goes quiet.+- **Drawing on**: lines reveal along their length in 0.4–0.9 s; colouring row by row; text letter by letter.+- **Acting**: substitution, a new drawing per pose on the beat; two key drawings alternate for a repeated action. Big simple poses; a child's drawing doesn't in-between.+- **Colouring is an action**: being coloured in *is* doing (a coat scribbled on = putting it on; pink scribble = blushing; a wash = night falling).++## 6. Camera grammar++The camera moves over a large page. A vocabulary, not a route; every move needs a reason. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Locked full page | Paper before drawing; the whole picture | a beginning from nothing; a tableau; a reveal that needs the page |+| Push toward a character | "This one" | a title giving way; a feeling arriving |+| Locked medium close-up | Substitution poses act | comedy; a decision; a small failure |+| Tilt along a gaze | We see what they see | discovery; longing; something huge |+| Tight follow | The world draws itself ahead of the subject | a brave act; a path; building |+| Held wide while the brush moves | The material is the motion | a wash reveal; weather; day or night falling |+| Slow truck across the page | Reading left to right | a list; a sequence; a family |+| Pull out past the page edge | The page is an object | a book on a table; a fridge drawing |+| Page turn | New chapter, time jump | before/after; the next day |++Key figures ≥ 1/4 of frame height in close shots; keep bare paper at the bottom for the printed words. Transitions: drawing on, colouring over, the wash, a pan or a page turn; never a dissolve.++## 7. Sound palette++- **Small wooden and metal-toothed instruments, no strings or grand piano**: ukulele or nylon guitar, clarinet or bassoon (bass, humour), music box (can wind down with a pitch droop), glockenspiel or celesta (a note per uncovered sparkle), toy piano (one note per counted thing), flute or recorder as the singing voice, shaker and woodblock. A simple lilt; one theme can be held back and heard in full once.+- **Silence is a beat**: a full beat of nothing after a failure; a short breath before a wordless passage.+- **Foley follows the material**: crayon = stick-slip band-passed noise whose grain follows stroke speed (colouring = rhythmic swishes); wet brush = soft low-passed noise with bristle grain, panned with the stroke; felt puffs, fabric swishes, a sharpener, a crayon set down, a page turn (lift / whoosh / flap). Ambience: faint crickets or birds, room tone, a distant clock.+- **Mix**: music under narration, rising for wordless passages; metal voices get a gentle high lift. −14 LUFS.+- **Voice**: a soft, warm storyteller, short lines with breaths. Compress before EQ, cut the highs, de-ess, a warm near-field reverb far under the dry voice; a few dB over the bed, never louder. Whisper-check every line, dry and on the final mix. Avoid famous-book phrases.++## 8. Native moves++A menu: use the ones your story needs.++- **Wax resist.** White crayon is invisible until a wash passes; hide the payoff in plain sight from the first frame. *Fits content like:* a farewell message; a product's hidden feature; roots under a garden.+- **Drawn live.** The world draws itself just ahead of the hero. *Fits content like:* a bridge plank by plank; a journey map; a company timeline.+- **Colouring is an action.** *Fits content like:* a town lighting up window by window; a team putting on kit; fruit ripening.+- **Boil.** A held frame is alive; calming it quiets the film. *Fits content like:* a pause for thought; grief; rest.+- **Child logic.** Wrong perspective, faces on objects, numbers in the sky. *Fits content like:* a launch countdown; a talking house on insulation; a sun that clocks out.+- **It is a book.** Pull back to the object; turn the page. *Fits content like:* a year in review; a "chapter two"; a thank-you card.++## 9. Pitfalls of the medium++- Gaps between wash bands leave white stripes → overlap bands and cover all intended paper.+- Wavy band edges and wide light streaks read as hills → small high-frequency waviness, thin faint streaks (α ≤ 0.12).+- Light-pressure colouring goes muddy under a wash → pressure ≥ 0.8 or cross-hatch wherever the wash crosses.+- Text where the wash passes survives it (wax resists) → place it elsewhere or accept it.+- Characters vanish under a wash → composite them *after* the wash.+- Outlines over hair read as a headband → outline hair masses on their outer edge only.+- Knock-out drawn into a plain layer shows as grey crayon → use a dummy canvas.+- Page turn from rectangle strips shows a staircase → an affine transform per strip.+- Double vignette/emboss at a page-to-object transition → page with vignette 0, ramp the outer scene's in.+- Screen-fixed tooth bloats the file → anchor it, don't boil background fills, no ffmpeg grain.+- Reverb IR from unit-variance noise is hugely loud → scale wet to ~18 dB under dry.++## 10. Engine++In `demo/`: `gl.js` (WebGL2 compositor: paper, wax adhesion, knock-out, watercolour + resist, emboss/vignette/lamp), `crayon.js` (`line` ribbons with taper, streaks, boil; `fill` hatching with overshoot; `text`; shapes), `rig.js` (occlusion + knock-out parts, limb tubes), `sheet.js` (model sheets, `?test=model&page=…`), `end.js` (page on a desk, page turn). Draw your own character's model sheet with them before any shot. File map and commands: [DEMO.md](DEMO.md#build-notes).++## 11. Variation space++You decide the structure, the characters (or none), the page, the opening, the ending, the camera path, the pacing, the crayon box and whether there is a wash. All far from our demo:++- Structures: **a colouring-book page** (all outlines there from frame one; each idea colours one area); **a flip through several pages** (one stage per page, joined by turns); **two children, one page** (two crayon colours argue, then combine).+- Openings: **a finished page rubbed out** to begin again; **a crayon tip in extreme close-up** mid-stroke, pulling back; **a crumpled page being flattened**.+- Endings: **the page taped to a fridge** among others; **a last scribble** filling the frame with one colour; **a stray splash of water** finding the white-wax message.----## 1. What this style is--A children's picture book page that is **being drawn while you watch**: wax crayon on warm off-white drawing paper, a limited box of crayons, child-logic perspective, colour that spills past the outline, and every line gently **boiling** because each frame is a fresh drawing. The tone is a bedtime story: tender, slow, music-led, with a few lines of narration that are literally the words printed on the page.--It is not "cute vector art with a crayon filter". The look comes from **material physics**: wax only sticks to the peaks of the paper tooth, pressure decides how much of the tooth it reaches, watercolour is repelled by wax. Reference for grammar only: Raymond Briggs' *The Snowman* (1982) — hand-textured frames that breathe, wordless tenderness, a lyrical passage where one song carries the film, a child at a lit window at night. Never copy its characters, song or imagery.--## 2. Story: what fits this style--Pick stories where **the act of drawing and colouring is the plot**. Crayon + watercolour have six native powers — use at least three, and put the strongest one at the emotional peak:--| Native power | Story use |-|---|---|-| **Wax resist** — white crayon is invisible on white paper until a wash is brushed over it | The reveal. Hide the payoff in plain sight from the first frame (stars, a message, a path, a hidden friend) and let a sweep of watercolour uncover it at the climax. |-| **Drawn live** — lines appear stroke by stroke, colour is scribbled in | Open on a blank page. The world helps the hero by drawing itself just ahead of them (a ladder that grows rungs under her hands, a bridge, a path). |-| **Colouring is an action** | A character "does" something by being coloured in: pulling up a blanket = scribbling a quilt over the moon; blushing = pink scribble; night falling = a wash. |-| **Boil** | Even a held frame is alive. Calm the boil (half amplitude) when the story goes to sleep. |-| **Child logic** | Wrong perspective, faces on the moon, numbers written in the sky while counting sheep. Things a child would draw are allowed to happen. |-| **It is a book** | End by pulling back to the physical book on a table, the crayons beside it; turn the page to "The End". A one-take film over one page is explained by that reveal. |--Adapting any topic: turn it into **one page of a picture book that gets finished**. A product launch → the product is drawn in outline, coloured, and a wash reveals the hidden feature. A history lesson → a page of events coloured in one by one. A thank-you film → names written in white crayon, revealed by the wash.--**Arc for 45–55s:** blank page → a character is drawn and wakes up (hook in 3s) → a small comic problem → a second character → a small brave act → the wash reveal on the song (peak, no narration) → everyone sleeps / resolves → pull back to the book, page turn.--## 3. Visual language--- **Paper**: warm off-white `#f4efe3`. The tooth is **anchored to the page** (it pans with the camera; on zoom, two octaves cross-fade so grains stay ~1 px on screen) — never screen-fixed. A procedural tooth height-field: three octaves of value noise at 1.35 / 2.9 / 6.3 px plus a horizontal fibre term (x/10, y/1.9), contrast `smoothstep(.16,.86)`. Final pass embosses the paper (gradient lit from top-left, strength ~0.55), less where wax has filled the tooth. Low-frequency mottling ±2%. Warm vignette.-- **Wax adhesion (the core rule)**: every crayon layer is a Canvas2D where RGB = crayon colour and **A = pressure**. The shader deposits wax where `tooth > 1 − 1.22·pressure` (soft edge ±0.07). Light pressure = only the peaks (speckled); heavy pressure = almost solid. Heavier wax also darkens the colour slightly (×(1−0.1·p²)).-- **Strokes**: outlines are ribbons with a hand wobble (low-frequency normal offset ~1.7 px), width variation ±15%, tapered ends, a denser inner core and 1–2 thin streaks along the stroke. Outline width ~7 px on characters, 8 px on buildings, 4–5 px for refined "adult" objects.-- **Colouring**: back-and-forth zig-zag hatching, gap ~10.5 px, width ~11 px, every pass at a slightly different pressure (0.72–1.14×) so individual strokes read; **overshoot the outline by 0–7 px** (children colour outside the lines); cross-hatch second pass on big areas at 40–50% pressure.-- **Palette** (12 crayons, never more): ink/indigo `#2d3263` (all outlines — never black), yellow `#f5c63c`, orange `#ec8a3c`, red `#d4483c`, pink `#ee8ea4`, peach `#f4c7a4`, brown `#7a4b31`, ochre `#e7b867`, green `#62a24c`, sky `#79acd9`, violet `#6a5aa6`, white `#fbfaf4` (wax resist). One watercolour: ultramarine, transmission `(0.15, 0.19, 0.44)`.-- **Watercolour wash**: a separate density canvas, multiplied over the page. Pigment pools at the edges (density − mip-blurred density → darker rim), granulates in the deepest tooth pits, blooms with low-frequency noise, and is **resisted by wax**: `density × (1 − 0.93·smoothstep(.12,.55, waxCoverage))`. Brush strokes are wide bands with bristle streaks (darker/lighter lines along the stroke) and a wet leading edge that is darker while moving.-- **Occlusion**: a front part erases the lines and colour of the parts behind it inside its outline, and characters "keep the paper white" behind them (a knock-out pass that restores paper and resets wax to 0), the way a child draws the figure first and colours the background around it.-- **Characters**: a skilled adult imitating a child: round head (≈2.6 heads tall), dot eyes with a white-wax catchlight, round pink cheeks, simple tube limbs with mitten hands, bold hair shapes with a scalloped fringe. One colour accent that echoes the story (her yellow star hair-clip = the stars). Objects with faces (the moon) get big readable eyes, eyelids, eye-bags.-- **Child perspective**: gable front + slanted side wall + a big roof plane; people bigger than doors; a round tree with red dots.--## 4. Motion language--- **Everything drawn steps at 12 fps** (on twos): characters, lines, colouring, boil seed. Camera moves, the wash's leading edge and star twinkles run at 24 fps.-- **Boil**: every stroke re-jitters its whole-stroke offset (±0.8 px), its wobble (±0.9 px) and its hatching rows every 2 frames. Characters ×1; background *lines* ×0.6; background *colouring* does not boil (a still painted background with living characters, as in *The Snowman* — and it halves the bitrate). After the characters fall asleep, ×0.5.-- **Drawing on**: lines reveal along their length (`draw` 0→1) in 0.4–0.9 s; colouring reveals row by row. Text is written letter by letter in 0.35 s.-- **Acting**: substitution animation — a new drawing per pose (tossing = a scrunched face rotated 35°, on the beat). Climbing alternates two key drawings per rung. Keep poses big and simple; a child's drawing doesn't in-between.-- **Sleep grammar**: eyelids come down as yellow scribbles, a nightcap is drawn on, a quilt is coloured up from below with the folded edge appearing first, a tiny hand tucks it in.--## 5. Camera language--The film is **one continuous camera over one page** (world 3200×1800; full page = scale 0.6). Every move needs a reason:--| Beat | Camera |-|---|---|-| Opening | Locked full page, flat: the audience must see the paper before anything is drawn |-| Title leaves | Push toward the character instead of fading the title (you can't fade crayon) |-| Comic beat | Locked medium close-up; let substitution poses do the comedy |-| Discovery | Tilt along a character's gaze (the camera *is* the moon looking down) |-| Two-shot | One character peeking in from the frame edge, the other small in a lit window |-| Brave act | Tight follow tilt; the world draws itself just ahead of the hero |-| Wash reveal | **Hold a wide.** Let the brush and the music do the motion. Small figure, huge sky |-| Resolution | Slow push-in on the face falling asleep, then tilt to the second sleeper |-| Ending | Pull out until the page becomes a book on a table; page turn; glide onto "The End" |--## 6. Sound--- **Music first, in 3/4 at 72 BPM** (bar = 2.5 s). Music box (lead, mechanical tines), toy piano (comic waltz, one note per sheep / per rung), flute as the singing voice (instrument replaces voice), clarinet for bass and humour, glockenspiel for every star the wash uncovers. No strings, no grand piano. The lullaby theme appears in full exactly once, at the wash; the opening music-box motif is its first phrase. End with the music box **winding down** (ritardando + slight pitch droop).-- **Silence**: a full beat of silence after the failed sheep-count; a 0.3 s breath before the song.-- **Foley follows the material**: crayon = stick-slip band-passed noise whose grain rate follows stroke speed (colouring = rhythmic back-and-forth swishes); wet brush = soft low-passed broadband with fine bristle grain, panned with the stroke; sheep landing = felt puff; tossing = blanket swish; page turn = lift / whoosh / flap. Night = very faint crickets; the desk = warm room tone and a distant clock.-- **Mix**: music −7 dB under narration, +4 dB for the wordless song; music-box and glockenspiel stems +3 dB with a gentle 3–7 kHz lift so the metal sparkles over flute and clarinet.-- **Voice**: a soft, warm bedtime storyteller (Kokoro `af_heart`, speed 0.86–0.90; v3 re-voice — `bf_emma` read too bright and hard), 6–8 short lines with a breath between them. Chain: high-pass 75 Hz → **compress first** (thr 0.2, 2.5:1, 8 ms / 140 ms) → low shelf +1.5 dB @220 Hz, −2 dB dip @3.2 kHz, **high shelf −4 dB @6 kHz** → split-band de-esser (4.8–10 kHz, 4:1) → per-line RMS match → warm near-field reverb (12 ms pre-delay, early reflections, 0.7 s low-passed tail, wet ~−17 dB). Music ducks ~7 dB and foley ~4 dB under it; voice sits ~7–10 dB over the bed, never louder. Verify every line with whisper — dry *and* cut from the final mix. Avoid famous-book phrases ("Goodnight, Moon" — use "Night, night.").--## 7. Subtitles & titles--- Subtitles are **the book's printed words**: Patrick Hand (OFL) 54 px, indigo crayon, bottom-centre, each glyph with its own small tilt and baseline offset, boiling on twos, written on left→right in 0.35 s. Behind them, a ragged blank patch of paper (a knock-out, not a dark box), as if the child left room for the words. Hold ≥1.8 s and ≥ voice + 0.6 s; none during the song.-- Title: hand-lettered on the page (Gaegu Bold) in two lines in a corner, written on letter by letter while the colours are scribbled in.-- End card: the next page of the book — "The End" (Gaegu Bold), a small crescent doodle, the style name and credit in Patrick Hand.--## 8. Pitfalls we hit--- **White gaps between wash bands** and a sky that stopped above the ground: wash bands must overlap and the last one must reach down to the grass line; sky exists wherever there is paper.-- **Low-frequency wavy band edges read as mountains** in the sky. Keep band edges' waviness small and high-frequency.-- **Wide light bristle streaks** looked like hills too; keep lighter streaks thin and faint (α ≤ 0.12).-- **Walls coloured at light pressure turn muddy blue under the wash** (the wash sinks into every gap). Anything the wash will cross needs heavier pressure (≥0.8) or cross-hatching.-- **Titles and numbers written in the sky survive the wash** (wax resists!). Put the title in a corner the wide shot won't show, or accept it as part of the page.-- **Outlines drawn over hair read as a headband**: outline only the visible part of the face; outline hair masses on their outer edge only.-- **A blanket drawn as a flat violet half reads as the moon's dark side.** Give it quilt features: patchwork squares, stitch lines, star appliqués, a light turned-down edge, a draped hem that spills past the disc, and a hand that pulls it up.-- **Knock-out layers must use a dummy canvas when drawing into a plain layer**, or the black mask gets drawn as grey crayon.-- **Page turn with rectangle strips** shows a staircase of page edges; map each strip with an affine transform so top and bottom edges stay continuous.-- **Double vignette/emboss at the book transition**: render the page texture with vignette 0 and ramp the desk's vignette, emboss and lamp light in from 0.-- **Screen-fixed paper tooth made the film 190 MB** (every pixel changes whenever the camera moves). Anchor the tooth to the page, don't boil background fills, no extra ffmpeg grain, CRF 26 → 74 MB with no visible loss.-- **The heroine disappeared into the night** because the wash sank into her colouring gaps. Composite the characters the story needs to read *after* the wash.-- **Reverb IR built from unit-variance noise** is enormously loud (energy = decay·SR). Scale the IR so the wet level sits ~18 dB under the dry voice.--## 9. Production recipe (this repo)--```-styles/crayon-book/demo/- gl.js WebGL2 compositor: paper, wax adhesion, knock-out, watercolour + resist, image pass, final emboss/vignette/lamp- crayon.js stroke engine: line (ribbons, taper, streaks, boil), fill (zig-zag hatching, overshoot), text, shapes- rig.js parts with occlusion + knock-out, limb tubes, curves- chars.js the girl (views × expressions × poses), the sheep, the moon (expressions, nightcap, quilt, crescent face)- world.js the page: house, tree, grass, ladder, 250 white-wax stars, 3 wash bands- film.js timeline, one-take camera, events, subtitles end.js book on a crayon desk, page turn, The End- sheet.js model sheets (?test=model&page=girl|moon) lines.json, mix.py, music/score.py, build.sh-```--1. `node core/render/still.mjs styles/crayon-book/demo 0.5 --q 'test=model&page=girl'` — model sheet first; iterate the character before any shot.-2. `core/tts/tts.py lines.json voices` → `asr_check.py` until all OK.-3. Build the timeline in `film.js`; review with `still.mjs --range 0.5:51.5:1` + `sheet.py` (two rounds minimum).-4. `node core/render/events.mjs` → `music/score.py` (cues on the 72 BPM grid, glockenspiel from `glint` events) → `mix.py`.-5. `node core/render/video.mjs styles/crayon-book/demo --fps 24 --workers 3` (1248 frames ≈ 80 s on an M-series Mac).-6. `CRF=26 sh demo/tools/mux.sh out/video24.mp4 mix.wav crayon-book.mp4 24 0` — no added grain (the paper is the grain); local mux copy exposes CRF. `demo/build.sh` runs the whole chain from TTS to the finished film.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/crayon-book/TREATMENT.md b/styles/crayon-book/TREATMENT.mddeleted file mode 100644index 06bec58..0000000--- a/styles/crayon-book/TREATMENT.md+++ /dev/null@@ -1,153 +0,0 @@-# Crayon Picture Book · 导演方案(Treatment)--**片名** *The Moon Can't Sleep*-**时长** 约 52 秒(风格说明建议 45 秒,理由见第八节)| **画幅** 1920×1080 | **帧率** 24fps 输出;角色、线条、涂色一律 12fps(on twos,每 2 帧重画一次笔触 = 线条沸腾);镜头运动、水彩刷子前沿、星星闪烁走 24fps-**一句话** 月亮失眠了;屋里一个也睡不着的小女孩爬上屋顶给它唱摇篮曲——她一开口,一把看不见的大刷子把"还没涂的夜空"刷成深蓝,藏在白纸上的蜡笔星星全浮了出来,月亮终于拉上被子,睡成一弯新月。-**主题** 夜空原来一直空着,是一首歌把它"涂"满的。-------## 一、对标:Raymond Briggs《The Snowman》(1982)--| 向它学 | 具体怎么用 |-|---|---|-| **蜡笔/彩铅的"手感"就是画面本身**:每一帧都像重画过,线条和纹理轻轻呼吸 | 全片线条 12fps 沸腾;涂色是看得见一趟一趟来回的排线;纸纹在每一帧里都在 |-| **无对白、音乐主导情绪**:飞行段一整首歌接管叙事,画面让位给音乐 | 唱歌段 10 秒(4 小节)**完全没有旁白**,旋律完整走一遍,画面只做一件事:刷夜空、显星星 |-| **夜空的抒情段落**:深蓝的夜 + 暖黄的窗 + 小小的人 | 冷暖对比贯穿:暖黄窗光 / 黄月亮 vs. 群青水彩夜空;人物永远小于天空 |-| **窗边的孩子**:孩子隔着窗看外面的奇迹 | 女孩第一次出场就在亮着灯的窗里,隔着窗和月亮对视、挥手 |-| **慢**:留白、停顿、不急着讲下一件事 | 每句旁白后都留一拍;数羊之后有一整拍静音;片尾音乐盒自己慢慢停 |--| 刻意不学 | 为什么 |-|---|---|-| Briggs 的写实彩铅素描(成人插画家的体积、光影、解剖) | 这个风格是"孩子现场画出来的":平面、孩子式透视、涂出边界,才是蜡笔绘本的辨识度 |-| 雪人、男孩的造型,《Walking in the Air》的旋律,飞越雪原的画面 | 版权红线;角色、旋律全部原创 |-| 伤感结尾(雪人融化) | 这是睡前故事,结尾是"安心"——两个都睡着了 |-| 完全无旁白 | 绘本本来就有文字;旁白 = 书页上的那几行字,极少(7 句),唱歌段让位给音乐 |-------## 二、为什么选这个讲法:蜡笔 + 水彩的"天生本事"--| 媒介能力 | 故事里怎么用 |-|---|---|-| **蜡笔防水(wax resist)**:白蜡笔画在白纸上几乎看不见,水彩一刷就显出来 | **情绪最高点**。开场夜空是白纸(孩子还没涂夜空),星星早就用白蜡笔画好了、只是看不见;女孩唱歌时三道大刷子扫过,星星一片片浮现 |-| **"现场画出来"**:线条一笔一笔出现,颜色一趟一趟涂进去 | 开场白纸上画出房子和月亮;梯子在她伸手之前一格一格画出来;数羊时孩子在天上歪歪扭扭写 1、2、3;她唱歌时蜡笔音符一个个画出来飘走 |-| **涂色就是动作** | 月亮"拉上被子"= 用紫蜡笔把月亮的一大半**涂**掉,剩下的一弯就是睡着的新月(月相 = 被子) |-| **线条沸腾(boil)** | 每 2 帧重画一次:静止的画面也是活的;睡着以后沸腾幅度减半,画面"安静下来" |-| **孩子式透视与涂出边界** | 房子正面山墙 + 斜着的侧墙侧屋顶(孩子画房子的典型"错误透视");颜色永远出一点边 |-| **它本来就是一本书** | 全片一镜到底在"同一张画"上移动,结尾拉出——原来是一本打开的绘本的一页,旁边放着蜡笔和一支还湿着的蓝色水彩刷;翻页收尾 |--**情绪弧**:好笑的失眠(翻身、数羊,越数越精神)→ 一个同样醒着的孩子(温柔)→ 爬上去(小小的勇敢)→ 唱歌 + 夜空显现(奇迹、情绪最高点)→ 月亮睡着、女孩也睡着(安心)→ 合上的故事(回响)。-**首尾呼应**:开场一张白纸画出一轮睁大眼睛的圆月 → 结尾同一张画已涂满夜色、月亮成了闭眼的弯月;开场第一笔是屋顶线 → 结尾女孩就睡在这条屋顶线上;片尾翻到下一页,又是一张白纸,写着 The End。-------## 三、角色--- **女孩(设定表里叫 Pip,片中不出现名字)**:约 2.6 头身,圆脸、点点眼、圆腮红;深棕蘑菇头 + 锯齿刘海 + 头顶一根小呆毛;**黄色星星发夹**(和星空呼应);粉色小圆点睡裙、浅蓝领子、蓝白条纹袜。随身抱着一只**小羊玩偶**(和"数羊"呼应:天上的羊数不睡月亮,她怀里的羊陪她睡着)。-- **月亮**:黄蜡笔圆盘 + 孩子画的脸:瞪得溜圆的眼睛 + 紫色黑眼圈(好几个星期没睡)、橙色环形山、橙腮红。表情:瞪眼 / 皱成一团翻身 / 眼珠跟着羊转 / 打哈欠 / 眼皮打架 / 闭眼。入睡时被紫色"被子"一点点涂上,变成侧脸睡着的弯月。-- **天上的羊**:白蜡笔身体、紫色脸,排队从月亮前跳过。-- 设定表:`demo/stills/modelsheet_v1.jpg`(女孩:四面转面、5 个表情、4 个关键姿势、12 支蜡笔色板)、`demo/stills/modelsheet_v1_moon.jpg`(月亮:5 个表情、入睡四步、蜡笔防水材质试样、天上的羊)。-------## 四、分镜节拍表(按秒)--**音乐网格**:3/4 拍摇篮曲,72 BPM,1 拍 = 0.833 s,1 小节 = 2.5 s。所有剪辑点、动作重音落在拍上。-**镜头总设计**:**全片一镜到底**,镜头只在"一张画纸"上推、摇、拉(画纸世界坐标 3200×2000)。为什么:这是一页绘本,本来就是一张画;最后拉出成书页时,观众才明白前面所有的"镜头"都是在同一页上移动——一镜到底被结尾解释。--画面布局(世界坐标):左下是孩子画的房子(正面山墙 + 斜侧墙 + 大片红屋顶 + 烟囱),侧墙上一扇亮着黄灯的窗 = 女孩的房间;房子左边一棵圆冠小树;底部一条草地;右上是月亮;左上是片名的位置;整片天空是白纸(上面早已用白蜡笔画满看不见的星星)。--| # | 时间 | 小节 | 机位 / 为什么这样拍 | 画面 | 声音 |-|---|---|---|---|---|---|-| 1 | 0:00–0:02.5 | 1 | **整页俯视,固定**。观众先看见"纸",才懂后面一切都是画 | 白纸 0.3 s → 靛蓝蜡笔一笔画出屋顶线、墙、窗(0.3–1.2)→ 一笔画出一个圆(0.9–1.6)→ **1.67 s(第 3 拍)圆里"啪"地睁开一双瞪圆的眼睛**:它是月亮,而且醒着。3 秒内的钩子 | 纸张轻响;蜡笔刮纸声跟着笔画走;音乐盒独奏动机第一句;睁眼 = 音乐盒高音 "叮" |-| 2 | 0:02.5–0:05 | 2 | 固定 | 片名 *The Moon Can't Sleep* 蜡笔手写出现在左上(2.6–4.2);同时颜色一趟趟涂进去:月亮黄、屋顶红、墙、窗的暖黄、草地(涂出边界);小树画出来 | 涂色的沙沙排线声(节奏跟拍);音乐盒继续,单簧管低音进 |-| 3 | 0:05–0:07.5 | 3 | **缓推向月亮**(5.6 起),片名从画面左边滑出 = 用运镜替代淡出 | 月亮瞪着眼,眨一下 | **N1** "The moon could not sleep."(5.5–7.2) |-| 4 | 0:07.5–0:10 | 4 | 月亮中近景,固定。喜剧要稳住机位让表演说话 | **翻身**:第 1 拍向左翻滚 35°(皱成一团),第 3 拍翻回来,下一小节第 1 拍再向右翻;每次翻身都换一张"画"(12fps 的重画感) | 玩具钢琴 + 单簧管断奏 "嘭–恰–恰" 圆舞曲;翻身 = 被子嗖声 · **N2** "It tossed, and it turned, and it counted sheep."(7.8–10.4) |-| 5 | 0:10–0:12.5 | 5 | 固定,羊从画左入、弧线跳过月亮前、画右出 | **数羊**:羊 1、2、3 分别在 10.0 / 10.83 / 11.67(每拍一只)跳过;每跳一只,天上就被歪歪扭扭写上 "1" "2" "3";月亮的眼珠跟着羊左右转 | 每只羊落在拍上:玩具钢琴上行音 + 软软的毡子落地声 + 很小的"咩" |-| 6 | 0:12.5–0:15 | 6 | 固定 | 羊 4、5(12.5 / 13.33),第 5 只绊了一下;数字写到 "5";月亮眼睛**反而更圆了**。13.9 起音乐停——**整整一拍静音**,月亮干瞪着 | 单簧管下行 "哇–哇"(13.3–13.9)→ 静音 + 一声蟋蟀 |-| 7 | 0:15–0:17.5 | 7 | **沿月亮的视线下摇**到房子侧墙的亮窗:镜头就是月亮的目光 | 暖黄窗里,女孩坐在被窝里,抱着小羊,也睁着眼 | 长笛独自进来,温柔的新乐句 · **N3** "Down below, someone else was awake, too."(15.3–17.8) |-| 8 | 0:17.5–0:20 | 8 | **双人镜头**:镜头稍拉开,左下窗里的女孩和右上角月亮同框(两人第一次对视) | 女孩抬头看见月亮,18.33(第 2 拍)挥手;月亮眼珠转下来,害羞地笑了一下 | 音乐盒 + 长笛对答;挥手 = 钟琴一个轻音 |-| 9 | 0:20–0:25 | 9–10 | **跟着她上摇**(让人记住的镜头):她从窗口爬出,侧墙边**梯子在她伸手之前一格一格画出来**,她每抓住一格镜头上移一点 | 背面爬梯,小羊背在身后;8 格梯子,一格一个八分音符(20.4–24.2);到屋檐时回头看一眼月亮 | 每画出一格 = 蜡笔"嚓"+ 玩具钢琴上行音阶一音(do→高 do)· **N4** "So she climbed up, up, up, onto the roof,"(20.4–22.8,"up, up, up" 压在音阶上) |-| 10 | 0:25–0:27.5 | 11 | **拉开成大全景**:小小的女孩坐在屋脊上,巨大的月亮在右上,天空一片空白。构图留出大片白纸 = 为下一段的"刷夜空"留画布 | 她坐好、把小羊放在腿上、吸一口气(27.0) | 渐慢、延长和弦;27.2–27.5 呼吸般的 0.3 s 空拍 · **N5** "and sang the softest song she knew."(25.2–27.3) |-| 11 | 0:27.5–0:30 | 12 | 大全景固定(**唱歌段不动机位**,像《雪人》飞行段那样让音乐接管) | 她张嘴唱:蜡笔音符一个个画出来、飘向天空。**第一刷**:27.9 起,一道看不见的大刷子从画左沿天顶扫到画右,刷过处白纸变群青,白蜡星星一颗颗浮出来 | **摇篮曲主旋律**(长笛领奏 + 音乐盒高八度重叠 + 单簧管副旋律);刷子 = 湿润的鬃毛擦纸声,声像跟刷子左→右;星星浮现 = 钟琴一粒粒 |-| 12 | 0:30–0:32.5 | 13 | 同上 | **第二刷**:中段夜空,从月亮身后绕过——月亮的黄蜡把水彩推开,边缘挂着小水珠,月亮在深蓝里亮起来 | 旋律第二句;钟琴更密 |-| 13 | 0:32.5–0:35 | 14 | 同上 | **第三刷**:低空一直刷到屋顶,红屋顶和女孩也是蜡笔画的,水彩只沉进纸纹缝里——整个夜晚完成,几百颗星 | 旋律第三句,全体乐器 |-| 14 | 0:35–0:37.5 | 15 | 同上,**全片最美的一帧停住** | 满天星、月亮、屋顶上的小女孩;几颗星轮流闪一下(24fps 小十字光) | 旋律收在长和弦上 + 钟琴琶音洒下来(情绪最高点) |-| 15 | 0:37.5–0:40 | 16 | **慢推近月亮** | 眼皮打架(37.5)→ 打个大哈欠(38.3)→ 眼睛合上(39.2) | 音乐盒独奏旋律尾句、更慢;哈欠 = 单簧管下滑音 |-| 16 | 0:40–0:42.5 | 17 | 月亮近景 | **"拉上被子"**:紫色蜡笔从左边一趟趟涂过月面,被涂住的部分就是被子(缝着几颗小黄星),剩下右边一弯,脸转成侧脸——睡着的新月,嘴角一点笑 | 终止式;一个音乐盒长音 · **N6** "And at last, the moon fell asleep."(40.2–42.5) |-| 17 | 0:42.5–0:45 | 18 | **从月亮下摇回屋顶** | 女孩打了个一模一样的哈欠(呼应月亮),躺倒在屋顶上,小羊趴在胸口,闭眼;画面里飘出一个小小的蜡笔 "z"。线条沸腾幅度减半 | 长笛短短一个"哈欠"滑音;音乐盒零星几个音 |-| 18 | 0:45–0:47.5 | 19 | **一路拉远**:画面缩成一本打开的绘本的右页,书躺在温暖台灯下的木桌上;左页印着最后一句 "And at last, the moon fell asleep.";书旁散着几支用短了的蜡笔(正是片里的那几种颜色)和一支笔头还湿着蓝色的平头刷 | 前面所有"镜头"都在这一页上:尺度揭示 | 音乐盒动机最后一句,**像发条快走完一样越来越慢、音高微微下沉**;房间里的安静底噪 |-| 19 | 0:47.5–0:52 | 20 | 固定俯视 | **翻页**(47.6–48.8):右页掀起、翻过去,下一页又是一张白纸,蜡笔手写 **The End**,下面一行小字 *Crayon Picture Book* 和 *LemoLab × Claude Opus 5.5* | 翻页纸声;**N7** "Goodnight."(49.0,轻声);音乐盒最后一个音余响到 52 |-------## 五、原生招式与情绪高点--1. **蜡笔防水显星(情绪最高点,27.5–37.5)**:技术上是真的"蜡笔防水":星星(白蜡)、月亮、屋顶、女孩都画在"蜡层"上;水彩着色器读每个像素的蜡覆盖率,蜡厚的地方水彩被推开,蜡笔跳过的纸纹缝里水彩渗进去——所以星星边缘是颗粒状的、蜡上还挂着小水珠。水彩本身有水痕边(颜料在边缘堆积)、颗粒沉积、浓淡渲开。-2. **世界替她画出来**:梯子一格一格在她手前出现。-3. **涂色即动作**:月亮的"被子"是一趟趟紫色排线涂出来的,月相就是被子。-4. **线条 12fps 沸腾**:所有线条、涂色每 2 帧重新抖动一次;入睡后幅度减半。-5. **书页揭示 + 翻页**:一镜到底被解释,工具(蜡笔、湿刷子)摆在旁边,暗示"那把看不见的刷子"是谁的。-------## 六、Cue map(原创配乐,3/4,72 BPM,F 大调)--配器:**音乐盒**(主角,梳齿金属音 + 机械咔哒)、**玩具钢琴**(金属棒击音、带一点不和谐泛音)、**长笛**(女孩的"歌声",器乐代人声)、**单簧管**(低音与幽默)、**钟琴**(星星)、极轻的木管和声垫。**不用弦乐和大钢琴。**--| Cue | 时间 | 小节 | 配器 | 情绪 / 速度 | 必须的卡点 |-|---|---|---|---|---|---|-| A · Page | 0–7.5 | 1–3 | 音乐盒独奏动机;第 2 小节单簧管低音 | 好奇、干净 | 1.67 睁眼(高音叮);5.0 推镜起点 |-| B · Insomnia | 7.5–15 | 4–6 | 玩具钢琴 + 单簧管断奏圆舞曲 "嘭恰恰" | 滑稽、有点烦躁 | 7.5 / 10.0 翻身重拍;10.0–13.33 五只羊每拍一个上行音;13.3–13.9 单簧管 "哇–哇" 下行;**13.9–15.0 全静音** |-| C · Someone else | 15–20 | 7–8 | 长笛独奏新乐句 + 音乐盒和声 | 温柔 | 18.33 挥手(钟琴一音) |-| D · Up, up, up | 20–27.5 | 9–11 | 玩具钢琴上行音阶(一格梯子一音)+ 单簧管 walking bass;第 11 小节渐慢、延长 | 小小的勇敢 | 8 格梯子 20.4–24.2;27.2–27.5 空拍(吸气) |-| E · Lullaby | 27.5–37.5 | 12–15 | **主旋律完整一遍**:长笛领奏 + 音乐盒高八度 + 单簧管副旋律 + 钟琴 | 抒情、情绪最高点 | 三道刷子起点 27.9 / 30.0 / 32.5;星星浮现跟着刷子前沿撒钟琴;35.0 长和弦 + 钟琴琶音 |-| F · Drowsy | 37.5–45 | 16–18 | 音乐盒独奏旋律尾句,更慢;单簧管/长笛各一个哈欠滑音 | 困、安心 | 38.3 月亮哈欠;42.5 终止式;43.2 女孩哈欠 |-| G · Winding down | 45–52 | 19–20 | 音乐盒动机最后一句,**发条走完**(渐慢 + 音高微降) | 回响 | 47.6 翻页;48.3 最后一个音余响到结尾 |-------## 七、声音设计--- **拟音跟着材质走**:蜡笔刮纸(粘滑摩擦的颗粒噪声,笔画越快越密,涂色是节奏性的来回"沙–沙");湿刷子(低通的柔软宽带噪声 + 鬃毛细颗粒,声像跟着刷子走);星星 = 钟琴粒子;羊落地 = 毡子"噗";翻身 = 被子嗖声;梯子一格 = 蜡笔"嚓";翻页 = 真纸张的掀起、翻过、落下三段。-- **夜的底色**:极轻的蟋蟀(只在第 6、7 段);最后书桌场景换成暖暖的室内底噪。-- **静音是工具**:数羊之后一整拍静音;唱歌前 0.3 s 空拍;片尾音乐盒自己停下。-- **旁白**:(v3 已换声为 Kokoro `af_heart`,更柔更暖,见 PRODUCTION_LOG「六」)原方案 Kokoro `bf_emma`(英式睡前故事女声),语速 0.82–0.88;轻压缩 + 一点小房间混响,贴着耳朵讲;音乐在旁白下闪避约 −7 dB。每句 whisper 校对(已试:6/7 通过,"Goodnight." 被听成 "A good night",改写为 "Good night." 再测)。-------## 八、字幕设计--- 字幕就是**书页上的字**:靛蓝蜡笔手写(Patrick Hand,OFL),54 px,底部居中;每个字母有自己的微小倾斜和上下错位,每 2 帧跟着沸腾一次;出现方式是 0.35 s 内从左到右"写出来"。-- 为了在草地、墙面上也能读:字的后面"留白"一块形状不规则的纸(像孩子画画时给字留出的空),不用深色底条。-- 停留:每句至少 1.8 s 且不短于语音 + 0.6 s;两句之间不重叠;唱歌段无字幕。-- 另交 `crayon-book.srt`(与烧录字幕同一份数据导出)。-------## 九、和风格说明的差异(导演决定)--1. **刷子不出镜**:说明里写"一把大刷子扫过"。我让刷子本身不出现,只看见湿润的刷痕、鬃毛条纹和前沿的水光——它像是被她的歌声推着走;**直到最后拉出成书页,桌上那支笔头还湿着蓝色的平头刷才揭晓答案**。这样奇迹保持在画里,结尾多一层回响。-2. **夜空一开始是白纸**:孩子画画常常不涂天空。白纸夜空让"白蜡星星完全看不见"成立,也给了月亮睡不着一个孩子式的理由——夜还没被涂上。-3. **月亮变新月 = 拉上被子**:用"涂色"这个媒介动作完成月相变化,而不是形状变形。-4. **女孩睡在屋顶上是仰躺**,小羊趴在胸口,和天上那一群"数不睡月亮的羊"对照。-5. **时长约 52 秒**:唱歌段要让旋律完整走完 4 小节(10 秒,不能砍),7 句旁白各自需要阅读时间,片尾书页揭示 + 翻页 + 片尾卡需要约 7 秒。压到 45 秒只能砍旋律或砍停留,违背"节奏以观众为准"。-------## 十、制作方案--- **引擎(demo/)**:Canvas2D 画"笔压层"(RGB = 蜡笔颜色,A = 笔压)→ WebGL2 合成:程序化纸纹高度场,**笔压 > 纸纹凹陷深度才附着**(蜡只挂在纸的凸起上);水彩层读下方的蜡覆盖率做防水、水痕边、颗粒沉积;终合成做纸纹浮雕和暖暗角。角色是参数化 rig(视角 × 表情 × 姿势),部件遮挡时擦掉后面的线并在身后"留白"。-- 文件:`gl.js`(合成器)、`crayon.js`(笔触引擎:线、之字排线涂色、手写字、形状工具)、`rig.js`(部件/肢体/遮挡)、`chars.js`(女孩、月亮、羊)、`pal.js`(12 支蜡笔 + 1 管水彩)、`sheet.js`(设定表)、后续 `world.js`(房子、梯子、星星、水彩刷痕)、`film.js`(时间线、镜头、字幕、事件)、`music/score.py`、`mix.py`、`build.sh`。-- 流程:配音(已生成试听)→ whisper 校对 → 时间线 → 画面 → 两轮缩略图审查 → 配乐(优先 core 采样乐器:音乐盒/钟琴/长笛/单簧管;未就绪则 numpy 合成,可能 fork 子 agent 写)→ 拟音 + 混音 → 渲染 → mux(grain 1–2)→ 自检。-------## 十一、关卡 1 之后的修改(按批注 + 审片)--1. **被子一眼读成被子**:拼布方块(紫 + 天蓝)、白色缝线格、黄星星贴花、浅粉翻折边(波浪缝线)、垂出圆盘的被角下摆;一只黄色连指小手捏着折边往上拉,最后拍两下掖好(41.6–42.3)。月亮入睡前**被画上一顶睡帽**(天蓝白条纹、白毛球,37.5 起一笔笔画出),然后躺倒约 57°,被子从下往上涂,折边先出现。设定表 `demo/stills/modelsheet_v2_moon.jpg`。-2. **结尾不切写实**:木桌、蜡笔、平头刷(笔头是真的水彩群青)、洗笔水都用同一个蜡笔引擎画(更细的线、更密的排线、圆柱明暗);书页是"真纸":中缝阴影、靠中缝的页面弧度、柔和投影、蓝色布面硬壳、书口页边;统一的台灯暖光。翻页用 64 条仿射条 + 纸的弯曲 + 透视放大 + 投在下一页上的影子。-3. **最后一句改为 "Night, night."**(避开著名绘本书名),whisper 通过。-4. **审片后的镜头修改**:双人镜头改成月亮从画面上沿探下头、窗里的女孩在左下;爬梯改成 1.7 倍紧跟;月亮睡着后给女孩一个 2 倍近景(打哈欠 43.2、躺下 44.0),再一路拉出成书页;数羊的羊放大 1.45 倍。-5. **女孩画在水彩之后**,夜里也读得清她的脸;背景涂色不沸腾(线条和角色沸腾)。diff --git a/styles/crayon-book/style.json b/styles/crayon-book/style.jsonnew file mode 100644index 0000000..09b2a02--- /dev/null+++ b/styles/crayon-book/style.json@@ -0,0 +1,18 @@+{+ "slug": "crayon-book",+ "num": "01",+ "en": "Crayon Picture Book",+ "cn": "蜡笔儿童绘本",+ "category_en": "Hand-drawn & Painting",+ "category_cn": "手绘与绘画",+ "film": "The Moon Can't Sleep",+ "line": "The moon can't sleep, so a little girl climbs onto the roof to sing it a lullaby.",+ "line_cn": "月亮失眠了,小女孩爬上屋顶给它唱摇篮曲。",+ "uses": [+ "Picture books",+ "Bedtime stories",+ "Kids' learning"+ ],+ "frame_sec": 43.68,+ "dur": 52.0+}diff --git a/styles/dark-keynote/DEMO.md b/styles/dark-keynote/DEMO.mdnew file mode 100644index 0000000..cbfae49--- /dev/null+++ b/styles/dark-keynote/DEMO.md@@ -0,0 +1,153 @@+# Dark Tech Keynote — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Room to Think* (42 s) · `dark-keynote.mp4` · source in [`demo/`](demo/) · a launch film for **Tidy**, a fictional app that sorts your desktop, photos and inbox in one press.+++## Story & structure++The brief we set ourselves: a 30–45 second launch film for a software product (topic → story, shots, sound, music, captions → finished film).++How the native moves were spent on this story:++| Native power | Story use in the demo |+|---|---|+| **UI can be generated without limit** | The problem as accumulation: notifications, files, tabs and photos spawning faster and faster, hundreds of them (264 elements). |+| **The snap grid** | The whole product promise as one motion: everything flies into a grid in one beat. The grid stayed invisible until that moment. |+| **The cursor is the only thing alive on a screen** | The cursor is the protagonist. It blinks on the beat, gets shoved by interruptions, hesitates, winds up and presses. It is also the Tidy brand mark, so the reveal pays off twice. |+| **Screens can pause** | Everything freezes mid-air and the sound cuts to digital silence. |+| **Dark stage + soft light** | The product is revealed by a band of light sweeping across it. |+| **Numbers roll out of glyph noise** | The one stat ("0.8") gets its own screen and scrambles into place digit by digit, one digit per sixteenth note. |++**Arc:** calm hook (a cursor types the title in silence) → interruption (first notification at 3 s) → accumulation in one continuous pull-back (each bar adds a layer) → overload inserts → **freeze + silence** → **the one action** (all layers realign into one chord) → light reveal of the product → the big number → a breath where the UI puts itself away and the music subtracts itself → echo (the cursor finishes the sentence it started).++**The core directing idea — sound and picture share one timeline.** Every UI element spawns *on a note* of the score. Two marimbas play the same 12-note pattern; the second slowly speeds up and drifts out of phase. Files and photos appear on the on-grid line, notifications on the drifting line, so the visual chaos *is* the audible phasing. At the press both lines realign into one chord. We wrote the note table first (`timeline.js`), then let the picture read it.++The recipe we followed for this topic: pick the one verb the product does (here: sort). Show its absence as generated UI noise tied to a phasing score. Give the cursor the action. Reveal with light. One number. Put everything away. End on the smallest thing on an empty screen. This is one route, not the style's shape.++## Shots++| Beat | Camera |+|---|---|+| Hook | Locked extreme close-up of the cursor and one line of text (text ~150 px). Barely perceptible push (×1.04). |+| Accumulation | **One continuous pull-back** from ×5 to ×1 over 4 bars, keyed per bar in log space with monotone interpolation (one "notch" per bar, continuous velocity). Foreground cards pass the lens blurred. From 10.5 s a 1–2° dutch angle and a handheld wobble build. |+| Overload | Three half-second **inserts**, each expanding out of its source position (UI expand transition): 999+ badge / 148 thin tabs / red storage bar. |+| Freeze | Silent push-in through the frozen mess onto the cursor (×0.8 → ×2.6, ease-in-out). |+| Press | **Whip pull-out** in one beat (×2.6 → ×0.78, cubic ease-out) so the audience sees both the press point and the whole grid landing. |+| Reveal | The window turns in from a 3/4 angle (−24° → 0°) over 4.5 s while light sweeps across. The camera barely moves: only light and product move. |+| Number | Dive into the status bar counter (log-zoom to ×16), then match cut to the full-screen number. Back out the same way. |+| Breath | Slow push (×1.08) while the UI puts itself away. |+| Echo | The exact framing of the first shot. The cursor sits in the same pixel. |++Every shot change is a UI expand / collapse; no fades, no blank frames.++### Motion numbers used in the demo++- **Spawn motions** (mess section): files drop 34 px with a 6 px bounce (0.22 s), photos fling in from off-screen with rotation (0.3 s), notifications slide 90 px from the right (0.24 s), windows pop 0.94 → 1.0 (0.22 s). Everything trembles ±2.4 px in the last second before the freeze.+- **The collapse (signature move of this demo)**: a ring expands from the cursor at 2600 px/s. As the ring front passes, each element launches **towards its own type's row** (files → Desktop rows, photos → Photos rows, notifications → Inbox rows) along a curved path; each type bends the same way, so the screen shows **three coloured streams**. Within a group, rows are filled by the elements' y order and x order, so paths don't cross. Flights last 0.26–0.40 s depending on distance, morph into uniform tiles in the first third, overshoot along their final tangent and settle. Light trails in the stream colour, 9 segments, additive. Grid slot outlines light up in the accent just behind the ring front.+- **Cursor acting**: blink = 0.5 s on / 0.5 s off (it is the metronome). Interrupted: 8 px shove + 10 % squash, 0.25 s decaying wobble, then it stays solid ("frozen"). Wind-up: height ×1.35, width ×0.8, ease-in over 12 frames (≥ 8). Press: 2 frames at height ×0.3, width ×2.4. Follow-through: spring back with overshoot over 0.6 s.+- **Light reveal**: the lit area trails the front by 700 px, a 360 px soft glint rides the front at 20 %, unlit areas stay at 7 %. It takes 1.3 s.+- **Number scramble**: glyphs cycle at 24 fps with a 3-copy vertical smear; digits lock right to left on sixteenth notes, each drops in with a small damped bounce.+- **Put-away**: one element retracts per beat (sidebar, status bar, title bar, headers), then the window rim lights in the accent, then the window collapses vertically like a CRT switching off (ease-in, 0.22 s) and shrinks into the cursor.++## Score structure++- **Music first**: `timeline.js` holds the tempo grid (**120 BPM**), the 12-note pattern and the note tables of all voices (phasing is computed there as a time warp). The picture spawns elements from the same tables. `tools/cuecheck.py` checks the key cues and that every spawned element sits on a score note.+- **Score (original, minimalist)**: marimba (voice 1, on grid) + hard-mallet vibraphone (voice 2, unison, then phasing ahead; slightly detuned and brighter at the peak) + glockenspiel (voice 3, drifting the other way) + a numpy pad (A drone that gains G#/D# dissonance and rises) + a low sine pulse (eighths → sixteenths) + a quiet noise shaker. At the press all voices land on **one A major 9 chord**, the bowed vibraphone carries it into the reveal (L-cut), then one clean pattern plays, and in the breath the pattern subtracts notes bar by bar until one quarter note is left. Samples: VCSL (CC0).+- **Sound families**: the mess sounds are scattered (every notification pitched ±45 cents off, random pans, a different timbre per source). Tidy's sounds are one family: felt ticks and glass taps, all in A major pentatonic, centred. The 264 landing taps form one in-key shimmer.+- **Layers**: ambience (quiet room + computer fan and a 6.8 kHz coil whine that grow through the mess, **held back until the last voice-over line ends**), foley (cursor tick, low-profile keys, return, notification glass, file plop, photo flick, window whoosh, glitch accents, storage buzz, stacking thumps, the press "doom" = felt mallet + 55→40 Hz sine drop, grid tick, felt ticks, light-sweep shimmer, digit grains, CRT-off), music.+- **Silences**: 15.0–16.0 s is **digital zero on every track** (the screen paused); the first sound after it is the press. 33.0–34.0 s is near-silence (−60 dB room); the first sound after it is the cursor tick, the same sound as frame 1.+- **J / L cuts**: a muffled crowd of notifications fades in under the close-up before the pull-back (J); the press chord rings into the reveal (L); the light shimmer starts 0.4 s before the light (J); the number chord rings into the breath (L).+- **Voice**: Kokoro `af_kore`, speed 0.95, confident and restrained: short declaratives. Music ducks −8 dB and foley −4 dB under voice.++## Palette & props++**Stage**: base `#0A0B0F`, radial lift to `#151822` at the upper centre, one large cool glow `#3B4CCA` at 8 % in the upper right, vignette 50–55 % at the corners. Hairline grid `rgba(255,255,255,.032)` every 48 px with every 4th line at `.06`. Grain: none (`mux.sh` grain 0).++| Role | Value |+|---|---|+| Window surface / raised / raised-2 | `#12151C` / `#1A1E28` / `#222734` |+| Border / inner top highlight | `rgba(255,255,255,.08)` / `rgba(255,255,255,.07)` (1 px) |+| Text / secondary / label | `#E8EAF0` / `#8A90A0` / `#5C6272` |+| **Brand accent (the one colour)** | lime `#B7F34A`, glow `rgba(183,243,74,.35)` — the cursor, the "Tidy up" pill, the checkmarks, "0.8" |+| Noise red (problem section only) | `#FF5A5F` badges. After the press, no red ever appears again |+| Three flow colours (collapse trails) | files `#C9D3E6`, photos `#F2A65A`, notifications `#7E95FF` |++**Props**: the Tidy brand mark (squircle + cursor) and wordmark; windows (radius 14, 40 px title bar); notification cards with "now"; folded-corner file icons with mono filenames (`final_FINAL_2.pdf`, `Untitled 38.txt`); procedural landscape photo thumbnails; inbox rows with unread dots; a tab strip that keeps splitting (148 tabs); a 999+ badge; a red storage bar; uniform snap tiles (60–64 px, radius 20 %). Product shots rotate up to 24°.++**Captions as used**: toast `rgba(12,14,19,.72)` pill (`.88` during the mess), 1 px `rgba(255,255,255,.09)` border, Inter 500 40 px `#E8EAF0`, 8 px accent dot, 12 px rise + fade in 0.16 s. The title and final line are typed by the cursor in frame (only in the .srt). The product window is lifted 25 px while captions are up.++## End card++**Title card** = the cursor typing the film title in the close-up, with a small mono overline `TIDY · A LAUNCH FILM`. **End card** = the typed tagline plus, left-aligned beneath it: film title, "a launch film for Tidy, a fictional app", style name, `Lemo-Opuscar`, `LemoLab × Claude Opus 5.5`, credits. Then everything fades except the cursor, which blinks twice and goes out.++The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Rights++Tidy is fictional. Every interface element is original and drawn in code; no real OS chrome, app layout, font, logo or melody from the reference films is used. Samples: VCSL (CC0); fonts OFL (see `demo/CREDITS`).++## Build notes++```+styles/dark-keynote/demo/+ engine.js the style engine (see Engine reference) timeline.js tempo grid + pattern + phasing note tables + key times+ world.js the mess: 264 elements generated from the note tables, spawn poses, freeze, type-row snap targets+ film.js scenes: mess / inserts / collapse / product reveal / number / breath / echo, captions, event list+ frames.js engine demo scene main.js / index.html page (window.render(t), window.EV)+ music/score.py original score (sub-agent), stems, score.json mix.py foley + voices + ducking + silences+ tools/ dump_timeline.mjs export.mjs cuecheck.py+```+1. Write `timeline.js` (grid, pattern, voices, key times) → `node tools/dump_timeline.mjs` → hand `timeline.json` + the cue map to a music sub-agent. Draw in parallel.+2. Build the engine and the product window first (they are the style frames), then the mess generator from the note tables, then the collapse.+3. `sh demo/build.sh` rebuilds everything: TTS → whisper → score → events → cue check → mix → srt → render → mux (−14 LUFS, grain 0).+4. Review with `node core/render/still.mjs demo --range 0.5:42:1` + `sheet.py` at least twice, plus frame strips of the collapse and the press.++Pitfalls tied to this demo's props:+- Nearest-slot snapping of the 264 elements looked like a flicker; sending each type to its own rows (Desktop / Photos / Inbox) along curved paths with trails fixed it.+- The first generator left holes in the grid; we trimmed or padded each group to exactly its slot count.+- The "window closes" first used a flat tinted rectangle; the real window is now squashed and tinted only in the last 45 %.+- Fan and coil whine (300 Hz–7 kHz) masked the voice; they are held down until the last line of the section ends.+- Caption toasts clipped the bottom of the product window; the product is lifted 25 px while captions are up.++## Engine reference++`demo/engine.js` is a plain ES module (Canvas 2D, no dependencies besides `core/lib.js`). All drawing functions take the context first. Coordinates are in pixels of whatever transform is active.++| Function | What it does |+|---|---|+| `setAccent(hex)` | Set the one brand colour (default `#B7F34A`). Everything accent-driven follows: cursor, toast dot, `litShape({accent:true})`, `trail`. |+| `bg(g, {lift, cool, dark})` | Near-black stage with radial lift and cool glow. |+| `grid(g, {ox, oy, scale, module, alpha, rect})` | Hairline grid that can follow a camera. |+| `glow(g, x, y, r, color, a)` · `vignette(g, a)` | Soft light pools, corner falloff. |+| `panel(g, x, y, w, h, {r, fill, shadow, cheap})` | Rounded UI surface: soft shadow, top-lit fill, 1 px border, inner highlight. `cheap` = offset shadow for hundreds of items. |+| `litShape(g, path2d, {accent, color, glowR, sweep, bbox})` | **Draw any shape in this style**: dark lit surface with rim light, or (with `accent`) a glowing accent fill; `sweep` 0..1 adds a moving light band. |+| `sparklePath(cx, cy, r, k, rot)` | A four-point star path (for sparkles, "new" marks). |+| `trail(g, pts, {color, width, caretH})` | A fading light trail along points, optionally ending in a cursor. |+| `caret(g, x, y, h, {sx, sy, on, glow, color})` | The cursor with squash/stretch and blink. |+| `tidyMark(g, x, y, s)` · `wordmark(g, x, y, px)` | Brand mark (squircle + cursor) and word + cursor. Rename for your product. |+| `windowBox` / `windowContent(kind)` / `notif` / `fileIcon` / `photo` / `badge` / `appIcon` / `storageBar` | The UI kit. `windowContent` kinds: note, inbox, browser, sheet, chat, viewer, code. |+| `flyPose(from, to, p)` · `motionBlur(p, span, n, draw)` | Snap flight with overshoot, spring rotation and morph; multi-sample motion blur. |+| `lightReveal(g, src, x, y, w, h, p, {base, soft, band, glint, angle})` | Light-sweep reveal of any canvas. |+| `perspective(g, src, cx, cy, w, h, rotY, {slices})` | Strip-rendered Y-rotation of a flat canvas; returns `map(u,v)` to screen. |+| `scramble(g, text, x, y, t, locks, {px, fam, color, tracking})` | Glyph-noise-to-number roll with per-character lock times. |+| `toast(g, text, a, {dense})` | The caption component. |+| `camera({x, y, zoom, rot, sx, sy})` | 2.5D camera: `.apply(g, z)` transforms to depth z; `.proj(x, y, z)` returns screen position and scale. |+| `buf(name, w, h)` · `rr(g, …)` · `font(px, wt, fam)` · `rgba` · `mix` | Helpers. |++**Minimal example: a warm orange four-point spark with a cursor tail, in this style.**+```js+import * as E from './engine.js';+const g = document.querySelector('canvas').getContext('2d');+E.setAccent('#D97757'); // the one colour+E.bg(g); E.grid(g, { ox: 960, oy: 540 });+const pts = []; for (let i = 0; i <= 40; i++) { const u = i / 40; pts.push([360 + u * 1100, 640 - Math.sin(u * Math.PI) * 260]); }+E.trail(g, pts, { width: 8 }); // the cursor's path as a fading light trail+E.litShape(g, E.sparklePath(1480, 380, 90, 0.2), { accent: true, glowR: 40, bbox: [1390, 290, 180, 180] });+E.caret(g, 1560, 380, 120); // a cursor riding the spark+const card = new Path2D(); card.roundRect(300, 200, 420, 160, 28);+E.litShape(g, card, { sweep: 0.5, bbox: [300, 200, 420, 160] }); // any shape as a lit dark UI surface+E.vignette(g);+```+Render it with `?scene=engineDemo` (see `frames.js`). To keep a single element in colour in an otherwise neutral frame, draw everything with default `litShape` and only that element with `{accent: true}`.diff --git a/styles/dark-keynote/STYLE.md b/styles/dark-keynote/STYLE.mdindex de0cd5b..a2c94fd 100644--- a/styles/dark-keynote/STYLE.md+++ b/styles/dark-keynote/STYLE.md@@ -1,163 +1,115 @@# Dark Tech Keynote — Style Prompt-> A software launch film where the interface itself is the star: near-black gradient, hairline grid, soft light, one brand accent, and UI that moves with snap-grid precision. The product is revealed by a sweeping light, its promise is one giant number, and the sound design literally "tidies" itself.-> Demo: *Room to Think* (42 s) · `dark-keynote.mp4` · source in `demo/` · a launch film for **Tidy**, a fictional app that sorts your desktop, photos and inbox in one press.-> **References (grammar only):** Apple product-reveal films (the first Apple Watch and AirPods reveals) for black stage, light-sweep reveals, one line per screen and the lone giant number; Linear / Stripe / Vercel launch videos for exact snap-grid UI motion, 1 px lines, soft glows and a single accent colour; Steve Reich's *Piano Phase* and *Music for 18 Musicians* for the score's phasing and subtractive process; Edgar Wright's insert cuts for the half-second overload montage. Never use their names, interfaces, fonts, system controls, melodies or logos.+> A software launch film where the interface itself is the star: near-black gradient, hairline grid, soft light, one brand accent, and UI that moves with snap-grid precision. Light reveals, one giant number, and a sound design that is as ordered as the pixels.+> **References (grammar only):** Apple product reveals (black stage, light sweeps, one line per screen, the lone giant number); Linear / Stripe / Vercel launch videos (snap-grid motion, 1 px lines, one accent); Steve Reich's process music (phasing, subtraction); Edgar Wright's insert cuts. Never use their names, interfaces, fonts, system controls, melodies or logos, and never name them in the film.-You are directing a 30–45 second launch film in the **Dark Tech Keynote** style. The user gives you a topic (a product, a feature, a release). You decide everything else (story, shots, sound, music, captions) and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not----+A keynote-grade product film for **software**. There is no physical product and no glass render: the protagonist is the interface (a cursor, windows, notifications, tiles, a number). It lives on a dark stage lit by soft, cool light, with **one brand accent** reserved for the single most important element.-## 1. What this style is+The style is defined by **precision**: every element snaps to a grid, every motion lands on a beat, every sound belongs to one designed family. Drama comes from contrast: disorder shown as generated UI, one decisive action, then empty space.-A keynote-grade product film for **software**. There is no physical product and no glass render: the protagonist is the interface — a cursor, windows, notifications, tiles, a number. It lives on a dark stage (`#0A0B0F → #151822`) lit by soft, cool light, with one brand accent reserved for the single most important element.+Not a glass product render (no physical object), not a screencast (no real OS or apps), not a hologram HUD (no scanlines), not a chart film (one number, not a chart).-The style is defined by **precision**. Every element snaps to a grid, every motion lands on a beat, every sound belongs to one designed family. The drama comes from contrast: a problem shown as out-of-control UI noise, then one action that puts every pixel back in its place, then a breath of empty space.+## 2. Materials & rendering-## 2. Story: what fits this style+- **Stage**: a near-black base with a radial lift at the upper centre, one large cool glow at single-digit opacity off-centre, a 50–55 % corner vignette. A hairline grid (white at ~3 %, every 4th line ~6 %) on a 48 px module. No grain.+- **UI kit, all original and drawn in code**: rounded windows (title bar with only a small glyph and title; never traffic-light buttons, menu bars or docks), notification cards, file icons with mono filenames, procedural thumbnails, list rows, tabs, badges, bars, uniform tiles.+- **Surfaces**: three steps of raised dark surface, 1 px border (~8 % white), 1 px inner top highlight, soft shadows.+- **Depth**: a 2.5D camera (`s = 1/(1/zoom − z)`); cards near the lens blur with magnification. Rotations use strip-rendered perspective (rotY ≤ ~24°).+- **Light** is the reveal tool: only pixels the light has passed turn on; unlit areas sit at a few percent.-| Native power | Story use |-|---|---|-| **UI can be generated without limit** | Show a problem as accumulation: notifications, files, tabs and photos spawning faster and faster, hundreds of them. You don't draw the mess, you *generate* it. |-| **The snap grid** | The whole product promise can be one motion: everything flies into a grid in one beat. Keep the grid invisible until that moment. |-| **The cursor is the only thing alive on a screen** | Make the cursor the protagonist. It blinks on the beat, gets shoved by interruptions, hesitates, winds up and presses. Make it the brand mark too, so the reveal pays off twice. |-| **Screens can pause** | Freeze everything mid-air and cut the sound to digital silence. Only a screen can stop time like this. |-| **Dark stage + soft light** | Reveal the product by sweeping a band of light across it: only the pixels the light has passed turn on. |-| **Numbers roll out of glyph noise** | The one stat gets its own screen and scrambles into place digit by digit, one digit per sixteenth note. |+## 3. Colour logic-**Story shape (proven in the demo):** calm hook (a cursor types the title in silence) → interruption (first notification at 3 s) → accumulation in one continuous pull-back (each bar adds a layer) → overload inserts → **freeze + silence** → **the one action** (all layers realign into one chord) → light reveal of the product → the big number → a breath where the UI puts itself away and the music subtracts itself → echo (the cursor finishes the sentence it started).+- A cool neutral ladder only: near-black stage, three surface steps, text in three greys (primary, secondary, label). Neutrals are slightly blue, never warm brown.+- **One accent**, saturated and luminous, with its own glow. It is reserved for what the product *is* or *does*: the protagonist element, the call to action, confirmations, the key number. If two things are accent-coloured, one is wrong.+- **A problem colour** (typically a red for badges and warnings) may exist only while the problem exists; after the turn it never returns. Problem colour = noise, accent = the product.+- Secondary hues only as **category codes** in motion (a trail per data type), desaturated, and never on static UI.+- Example accents, pick one per film: lime `#B7F34A`, electric violet `#8B7CFF`, signal orange `#FF7A1A`.-**The core directing idea — sound and picture share one timeline.** In the demo every UI element spawns *on a note* of the score. Two marimbas play the same 12-note pattern; the second slowly speeds up and drifts out of phase. Files and photos appear on the on-grid line, notifications on the drifting line, so the visual chaos *is* the audible phasing. At the press both lines realign into one chord. Adapting any topic: write the note table first (`timeline.js`), then let the picture read it.+## 4. Type & subtitles-Adapting any topic: pick the one verb your product does (sort, sync, ship, search, protect). Show its absence as generated UI noise tied to a phasing or accumulating score. Give the cursor (or the product's smallest living element) the action. Reveal with light. One number. Put everything away. End on the smallest thing on an empty screen.+- **OFL faces**: Inter (UI, captions, headlines; variable weight), Inter Tight 600 for giant numbers (tracking around −4.5 %), JetBrains Mono for labels, filenames and status text (wide tracking in small-caps labels).+- One line per screen for headlines. The big number gets its own screen and **no caption over it**: the number is the message.+- **Captions are a UI component**: a bottom-centre toast (dark translucent pill, 1 px light border, soft shadow, Inter 500 around 40 px, a small accent "speaking" dot). It enters with a small rise + fade in ~0.16 s and can turn more opaque over busy frames. Hold ≥ max(1.8 s, speech + 0.6 s).+- **Typed text is its own subtitle**: text the cursor types in frame is not burned twice (it goes only into the .srt).+- Lift product content while captions are up so toasts never clip it.-## 3. Visual language+## 5. Motion quality-**Stage**: base `#0A0B0F`, radial lift to `#151822` at the upper centre, one large cool glow `#3B4CCA` at 8 % in the upper right, vignette 50–55 % at the corners. Hairline grid `rgba(255,255,255,.032)` every 48 px with every 4th line at `.06`. Grain: none (`mux.sh` grain 0).+- 24 fps on ones, no stepping, no boil: this is precision, not craft.+- **Everything lands on the grid and on the beat.** Moves start a beat early and land on it. Easing is fast-out with one small overshoot (`back`, s ≈ 1.3) and an immediate settle. No floaty sine drift.+- **Spawns are short and typed** (drop + bounce, fling, slide-in, pop; 0.2–0.3 s), one motion per element type. Tension can be a tremble of a few px.+- **Flights** follow curved paths with overshoot along the final tangent; same-type elements bend the same way and never cross.+- **A living element can act**: squash, stretch, anticipation (≥ 8 frames of wind-up), a 2-frame contact, spring follow-through. The blink of a cursor makes a natural metronome.+- **Disappearing is designed** (retract one part per beat, CRT-off squash into a point); nothing just fades.+- The stage and grid never move on their own; only the camera moves them.-**Palette**-| Role | Value |-|---|---|-| Window surface / raised / raised-2 | `#12151C` / `#1A1E28` / `#222734` |-| Border / inner top highlight | `rgba(255,255,255,.08)` / `rgba(255,255,255,.07)` (1 px) |-| Text / secondary / label | `#E8EAF0` / `#8A90A0` / `#5C6272` |-| **Brand accent (the one colour)** | lime `#B7F34A`, glow `rgba(183,243,74,.35)` — the cursor, the "Tidy up" pill, the checkmarks, "0.8" |-| Noise red (problem section only) | `#FF5A5F` badges. After the press, no red ever appears again: red is noise, the accent is the product |-| Three flow colours (collapse trails) | files `#C9D3E6`, photos `#F2A65A`, notifications `#7E95FF` |+## 6. Camera grammar-**UI kit (all original, drawn in code)**: windows (radius 14, 40 px title bar with only a small app glyph and a title, never traffic-light buttons, menu bars or docks), notification cards (radius ≈ 24 % of height, icon squircle, two lines, "now"), folded-corner file icons with a coloured extension band and mono filenames (`final_FINAL_2.pdf`, `Untitled 38.txt`), procedural landscape photo thumbnails, inbox rows with unread dots, a tab strip that keeps splitting, red count badges, a storage bar, uniform snap tiles (60–64 px, radius 20 %).+A vocabulary, not a route. Opening and ending come from the topic.-**Type (OFL)**: Inter (UI, captions, headlines; variable weight), Inter Tight 600 for the giant number (tracking −4.5 %), JetBrains Mono for labels, filenames and status text (tracking up to 5 px in small caps labels).+| Move | Expresses | Can serve |+|---|---|---|+| Locked extreme close-up on a tiny UI element | Intimacy, one thing alive on a screen | a single action; a thought forming; a quiet status |+| Continuous pull-back, keyed per bar in log space | Accumulation, scale growing out of one point | spreading load; a network growing; a team joining |+| Push-in through a frozen frame | Time stopped, focus narrowing | a decision; the instant before a commit; a bug found |+| Whip pull-out in one beat | Cause and effect seen at once | a sync completing; a deploy landing everywhere |+| Dive into a small UI element (log-zoom) + match cut | Going inside the detail | a counter that matters; a log line; a setting |+| Half-second inserts expanding from their source | Overload, too much to read | notification storms; errors; choice overload |+| Near-locked frame while an object turns and light sweeps | Presentation, the product as hero | a reveal; a new version; a feature name |+| Slow lateral track across a UI plane | Order read by the eye | a timeline; a pipeline |+| Top-down plan over the grid | System view, structure | architecture; permissions; a workflow map |+| Return to an earlier framing | Rhyme: what changed | before/after; a loop closed; an echo |-**Depth**: a 2.5D camera (`s = 1/(1/zoom − z)`) gives true parallax. Cards near the lens are blurred proportionally to their magnification. Product shots use strip-rendered perspective (rotY up to 24°).+Framing: generous negative space, one focal element, the accent at the focal point. Dutch angle and wobble only for disorder.-## 4. Motion language+**Transitions = UI expand / collapse**: every shot change is an interface element expanding into the frame or the frame collapsing into an element. No fades, no blank frames. An expansion on a beat starts one frame early so the beat frame is already ~80 % open.-- **Everything lands on the grid and on the beat.** Moves start a beat early and land on it. Easing is fast-out with one small overshoot (`back`, s ≈ 1.3) and an immediate settle. No floaty sine drift.-- **Spawn motions** (mess section): files drop 34 px with a 6 px bounce (0.22 s), photos fling in from off-screen with rotation (0.3 s), notifications slide 90 px from the right (0.24 s), windows pop 0.94 → 1.0 (0.22 s). Everything trembles ±2.4 px in the last second before the freeze.-- **The collapse (signature move)**: a ring expands from the cursor at 2600 px/s. As the ring front passes, each element launches **towards its own type's row** (files → Desktop rows, photos → Photos rows, notifications → Inbox rows) along a curved path; each type bends the same way, so the screen shows **three coloured streams**. Within a group, rows are filled by the elements' y order and x order, so paths don't cross. Flights last 0.26–0.40 s depending on distance, morph into uniform tiles in the first third, overshoot along their final tangent and settle. Light trails in the stream colour, 9 segments, additive. Grid slot outlines light up in the accent just behind the ring front.-- **Cursor acting**: blink = 0.5 s on / 0.5 s off (it is the metronome). Interrupted: 8 px shove + 10 % squash, 0.25 s decaying wobble, then it stays solid ("frozen"). Wind-up: height ×1.35, width ×0.8, ease-in over 12 frames (≥ 8). Press: 2 frames at height ×0.3, width ×2.4. Follow-through: spring back with overshoot over 0.6 s.-- **Light reveal**: the lit area trails the front by 700 px, a 360 px soft glint rides the front at 20 %, unlit areas stay at 7 %. It takes 1.3 s. Don't leave the product's main content in the dark for longer than that.-- **Number scramble**: glyphs cycle at 24 fps with a 3-copy vertical smear; digits lock right to left on sixteenth notes, each drops in with a small damped bounce.-- **Put-away**: one element retracts per beat (sidebar, status bar, title bar, headers), then the window rim lights in the accent, then the window collapses vertically like a CRT switching off (ease-in, 0.22 s) and shrinks into the cursor.--## 5. Camera language--| Beat | Camera |-|---|---|-| Hook | Locked extreme close-up of the cursor and one line of text (text ~150 px). Barely perceptible push (×1.04). |-| Accumulation | **One continuous pull-back** from ×5 to ×1 over 4 bars, keyed per bar in log space with monotone interpolation (one "notch" per bar, continuous velocity). Foreground cards pass the lens blurred. From 10.5 s a 1–2° dutch angle and a handheld wobble build. |-| Overload | Three half-second **inserts**, each expanding out of its source position (UI expand transition): 999+ badge / 148 thin tabs / red storage bar. |-| Freeze | Silent push-in through the frozen mess onto the cursor (×0.8 → ×2.6, ease-in-out). |-| Press | **Whip pull-out** in one beat (×2.6 → ×0.78, cubic ease-out) so the audience sees both the press point and the whole grid landing. |-| Reveal | The window turns in from a 3/4 angle (−24° → 0°) over 4.5 s while light sweeps across. The camera barely moves: only light and product move. |-| Number | Dive into the status bar counter (log-zoom to ×16), then match cut to the full-screen number. Back out the same way. |-| Breath | Slow push (×1.08) while the UI puts itself away. |-| Echo | The exact framing of the first shot. The cursor sits in the same pixel. |--**Unified transition grammar = UI expand / collapse**: every shot change is an interface element expanding into the frame or the frame collapsing into an element. No fades, no blank frames.--## 6. Sound--- **Music first**: `timeline.js` holds the tempo grid (120 BPM), the 12-note pattern and the note tables of all voices (phasing is computed there as a time warp). The picture spawns elements from the same tables. `tools/cuecheck.py` checks the key cues and that every spawned element sits on a score note.-- **Score (original, minimalist)**: marimba (voice 1, on grid) + hard-mallet vibraphone (voice 2, unison, then phasing ahead; slightly detuned and brighter at the peak) + glockenspiel (voice 3, drifting the other way) + a numpy pad (A drone that gains G#/D# dissonance and rises) + a low sine pulse (eighths → sixteenths) + a quiet noise shaker. At the press all voices land on **one A major 9 chord**, the bowed vibraphone carries it into the reveal (L-cut), then one clean pattern plays, and in the breath the pattern subtracts notes bar by bar until one quarter note is left. Samples: VCSL (CC0).-- **Sound palette = story**: the mess sounds are *scattered* (every notification pitched ±45 cents off, random pans, a different timbre per source). Tidy's sounds are *one family*: felt ticks and glass taps, all in A major pentatonic, centred. The 264 landing taps form one in-key shimmer.-- **Layers**: ambience (quiet room + computer fan and a 6.8 kHz coil whine that grow through the mess, **held back until the last voice-over line ends**), foley (cursor tick, low-profile keys, return, notification glass, file plop, photo flick, window whoosh, glitch accents, storage buzz, stacking thumps, the press "doom" = felt mallet + 55→40 Hz sine drop, grid tick, felt ticks, light-sweep shimmer, digit grains, CRT-off), music.-- **Real silences**: 15.0–16.0 s is **digital zero on every track** (the screen paused). The first sound after it is the most important one: the press. 33.0–34.0 s is near-silence (−60 dB room). The first sound after it is the cursor tick, the same sound as frame 1.-- **J / L cuts**: a muffled crowd of notifications fades in under the close-up before the pull-back (J); the press chord rings into the reveal (L); the light shimmer starts 0.4 s before the light (J); the number chord rings into the breath (L).-- **Voice**: Kokoro `af_kore`, speed 0.95, confident and restrained: short declaratives. Music ducks −8 dB and foley −4 dB under voice.--## 7. Subtitles & titles--- **Captions are a UI component**: a bottom-centre toast, `rgba(12,14,19,.72)` pill (`.88` during the mess), 1 px `rgba(255,255,255,.09)` border, soft shadow, Inter 500 40 px `#E8EAF0`, an 8 px accent "speaking" dot on the left. Enters with a 12 px rise + fade in 0.16 s. Hold ≥ max(1.8 s, speech + 0.6 s).-- **Typed text is its own subtitle**: the title and the final line are typed by the cursor in the frame, so they are not burned twice (they are in the .srt).-- **No captions over the big number** (the number is the message).-- **Title card** = the cursor typing the film title in the close-up, with a small mono overline `TIDY · A LAUNCH FILM`. **End card** = the typed tagline plus, left-aligned beneath it: film title, "a launch film for Tidy, a fictional app", style name, `Lemo-Opuscar`, `LemoLab × Claude Opus 5.5`, credits. Then everything fades except the cursor, which blinks twice and goes out.--## 8. Pitfalls we hit--- **Strip perspective of a semi-transparent canvas shows vertical seams** (overlapping slices double the alpha). Project the *opaque* window first, then apply the light sweep in screen space.-- **A hard white glint reads as a sticker reflection.** Keep the sweep front soft (700 px) and the glint ≤ 20 %.-- **Nearest-slot snapping looks like a flicker, not a collapse**: travel is too short. Send each type to its own rows along curved paths with trails. Long, ordered and readable beats short or randomly crossing paths.-- **Too few elements leave holes in the grid** that read as a mistake. Generate by rule, then trim or pad to exactly the slot count, group by group.-- **A flat tinted rectangle for "window closes" looks like a placeholder.** Squash the real window; tint only in the last 45 %.-- **An insert that starts expanding on the beat is invisible on the beat frame.** Start the expansion 1 frame early so the beat frame is already 80 % open.-- **Fan and coil noise mask the voice** (both live in 300 Hz–7 kHz). Keep them down until the last line of the section ends.-- Caption toasts can clip the bottom of a product window. Lift the product 25 px while captions are up.--## 9. Production recipe (this repo)--```-styles/dark-keynote/demo/- engine.js the style engine (see §10) timeline.js tempo grid + pattern + phasing note tables + key times- world.js the mess: 264 elements generated from the note tables, spawn poses, freeze, type-row snap targets- film.js scenes: mess / inserts / collapse / product reveal / number / breath / echo, captions, event list- frames.js engine demo scene main.js / index.html page (window.render(t), window.EV)- music/score.py original score (sub-agent), stems, score.json mix.py foley + voices + ducking + silences- tools/ dump_timeline.mjs export.mjs cuecheck.py-```-1. Write `timeline.js` (grid, pattern, voices, key times) → `node tools/dump_timeline.mjs` → hand `timeline.json` + the cue map to a music sub-agent. Draw in parallel.-2. Build the engine and the product window first (they are the style frames), then the mess generator from the note tables, then the collapse.-3. `sh demo/build.sh` rebuilds everything: TTS → whisper → score → events → cue check → mix → srt → render → mux (−14 LUFS, grain 0).-4. Review with `node core/render/still.mjs demo --range 0.5:42:1` + `sheet.py` at least twice, plus frame strips of the collapse and the press.--## 10. Engine usage--`demo/engine.js` is a plain ES module (Canvas 2D, no dependencies besides `core/lib.js`). All drawing functions take the context first. Coordinates are in pixels of whatever transform is active.--| Function | What it does |-|---|---|-| `setAccent(hex)` | Set the one brand colour (default `#B7F34A`). Everything accent-driven follows: cursor, toast dot, `litShape({accent:true})`, `trail`. |-| `bg(g, {lift, cool, dark})` | Near-black stage with radial lift and cool glow. |-| `grid(g, {ox, oy, scale, module, alpha, rect})` | Hairline grid that can follow a camera. |-| `glow(g, x, y, r, color, a)` · `vignette(g, a)` | Soft light pools, corner falloff. |-| `panel(g, x, y, w, h, {r, fill, shadow, cheap})` | Rounded UI surface: soft shadow, top-lit fill, 1 px border, inner highlight. `cheap` = offset shadow for hundreds of items. |-| `litShape(g, path2d, {accent, color, glowR, sweep, bbox})` | **Draw any shape in this style**: dark lit surface with rim light, or (with `accent`) a glowing accent fill; `sweep` 0..1 adds a moving light band. |-| `sparklePath(cx, cy, r, k, rot)` | A four-point star path (for sparkles, "new" marks). |-| `trail(g, pts, {color, width, caretH})` | A fading light trail along points, optionally ending in a cursor. |-| `caret(g, x, y, h, {sx, sy, on, glow, color})` | The cursor with squash/stretch and blink. |-| `tidyMark(g, x, y, s)` · `wordmark(g, x, y, px)` | Brand mark (squircle + cursor) and word + cursor. Rename for your product. |-| `windowBox` / `windowContent(kind)` / `notif` / `fileIcon` / `photo` / `badge` / `appIcon` / `storageBar` | The UI kit. `windowContent` kinds: note, inbox, browser, sheet, chat, viewer, code. |-| `flyPose(from, to, p)` · `motionBlur(p, span, n, draw)` | Snap flight with overshoot, spring rotation and morph; multi-sample motion blur. |-| `lightReveal(g, src, x, y, w, h, p, {base, soft, band, glint, angle})` | Light-sweep reveal of any canvas. |-| `perspective(g, src, cx, cy, w, h, rotY, {slices})` | Strip-rendered Y-rotation of a flat canvas; returns `map(u,v)` to screen. |-| `scramble(g, text, x, y, t, locks, {px, fam, color, tracking})` | Glyph-noise-to-number roll with per-character lock times. |-| `toast(g, text, a, {dense})` | The caption component. |-| `camera({x, y, zoom, rot, sx, sy})` | 2.5D camera: `.apply(g, z)` transforms to depth z; `.proj(x, y, z)` returns screen position and scale. |-| `buf(name, w, h)` · `rr(g, …)` · `font(px, wt, fam)` · `rgba` · `mix` | Helpers. |--**Minimal example: a warm orange four-point spark with a cursor tail, in this style.**-```js-import * as E from './engine.js';-const g = document.querySelector('canvas').getContext('2d');-E.setAccent('#D97757'); // the one colour-E.bg(g); E.grid(g, { ox: 960, oy: 540 });-const pts = []; for (let i = 0; i <= 40; i++) { const u = i / 40; pts.push([360 + u * 1100, 640 - Math.sin(u * Math.PI) * 260]); }-E.trail(g, pts, { width: 8 }); // the cursor's path as a fading light trail-E.litShape(g, E.sparklePath(1480, 380, 90, 0.2), { accent: true, glowR: 40, bbox: [1390, 290, 180, 180] });-E.caret(g, 1560, 380, 120); // a cursor riding the spark-const card = new Path2D(); card.roundRect(300, 200, 420, 160, 28);-E.litShape(g, card, { sweep: 0.5, bbox: [300, 200, 420, 160] }); // any shape as a lit dark UI surface-E.vignette(g);-```-Render it with `?scene=engineDemo` (see `frames.js`). To keep a single element in colour in an otherwise neutral frame, draw everything with default `litShape` and only that element with `{accent: true}`.+## 7. Sound palette++- **Tuned percussion and pads**: marimba, vibraphone (mallet or bowed), glockenspiel, celesta, a synth pad or drone, a low sine pulse, a shaker, plucked synth, felt piano. Clean, dry, minimal; samples e.g. VCSL (CC0).+- **Music as a visible process**: options include phasing (two voices on one pattern, one drifting), additive build (one note per bar), subtractive process (notes removed until one is left), dividing the beat to accelerate instead of changing tempo, or one chord that everything lands on. Picture events can spawn on score notes from a shared note table.+- **Two sound families = story**: disorder sounds *scattered* (detuned by tens of cents, random pans, a different timbre per source); the product's sounds are *one family* (felt ticks, glass taps, all in one mode, centred), so many landings form one in-key shimmer.+- **Foley materials**: cursor tick, low-profile keys, notification glass, file plop, window whoosh, glitch accents, stacking thumps, felt mallet + sine drop for a press, light-sweep shimmer, digit grains, CRT-off.+- **Ambience**: a quiet room, a computer fan, a high coil whine that can grow with pressure. Fan and whine live in the voice band: keep them down until a line ends.+- **Silence is a tool**: digital zero on every track when the screen pauses; near-silence (a −60 dB room) for a breath. The first sound after a silence is the most important one.+- **J / L cuts** carry sound across UI transitions (a chord ringing on, a shimmer arriving before the light).+- **Mix**: music ducks ~8 dB and foley ~4 dB under voice; −14 LUFS; no grain. **Voice**: confident and restrained, short declaratives.++## 8. Native moves++A menu: use the ones your story needs.++- **Generated accumulation.** UI spawned by rule, faster and faster, hundreds of items; you don't draw the mess, you generate it. *Fits content like:* unread tickets piling up; cloud costs creeping; a dependency tree exploding.+- **The snap grid.** A whole promise in one motion: everything flies into a grid in one beat; the grid stays invisible until then. *Fits content like:* a CMS publishing to every channel; a scheduler filling a week; an audit turning green.+- **The living element.** The cursor (or the product's smallest live element) is the protagonist and the brand mark. *Fits content like:* a search box that grows ambitious; a progress ring that refuses to finish; a status dot.+- **Freeze.** Everything stops mid-air and the sound drops to digital zero; only a screen can stop time like this. *Fits content like:* a security breach caught; a failed deploy; the second before "send".+- **Light reveal.** A soft band sweeps across and only lit pixels turn on (soft front, glint ≤ 20 %, ≤ ~1.3 s so nothing stays dark). *Fits content like:* a redesign; a new pricing page; an API console.+- **Number from glyph noise.** Digits scramble and lock one per sixteenth note with a small bounce. *Fits content like:* latency cut; a count of users; a price.+- **Type streams.** Elements fly to their own rows along coloured curved trails, so categories read as streams. *Fits content like:* an inbox triaged; logs routed by severity; files synced by device.+- **Put-away.** The UI dismantles itself one part per beat until one element is left. *Fits content like:* "less is more" features; offboarding; focus mode.++## 9. Pitfalls of the medium++- Strip perspective of a semi-transparent canvas shows vertical seams (overlapping slices double alpha) → project the *opaque* surface, then light it in screen space.+- A hard white glint reads as a sticker reflection → soft front, glint ≤ 20 %.+- Nearest-slot snapping looks like a flicker, not a collapse → typed destinations, curved paths, trails.+- Too few elements leave holes in a grid that read as a mistake → generate by rule, then trim or pad to exactly the slot count per group.+- A flat tinted rectangle for "closing" looks like a placeholder → squash the real surface.++## 10. Engine++`demo/engine.js` (Canvas 2D ES module): `setAccent`, `bg`, `grid`, `panel`, `litShape` (any shape in this style), `trail`, `caret`, the UI kit, `flyPose`, `lightReveal`, `perspective`, `scramble`, `toast`, `camera` (2.5D). Function table and a minimal example: [DEMO.md](DEMO.md#engine-reference); `?scene=engineDemo` renders it.++## 11. Variation space++You decide the product's verb, the protagonist element (or none), the problem image, the accent, the structure, the opening, the ending, the camera path and the score process. All far from our demo:++- Structures: **a countdown** (a release checklist ticking through its items, each a UI moment, ending on "shipped"); **side by side** (two versions of a workflow run in split screen, the old one drowning, the new one finishing early); **a zoom ladder** (one pixel → a component → a screen → a fleet of devices, each level a new fact).+- Openings: **the number first** (a huge stat on black, its meaning revealed backwards); **a plan view of an empty grid** that fills slot by slot; **a hard insert storm** from frame one, calm arriving only later.+- Endings: **one tile left** lit in the accent on an empty grid; **the product running quietly** in a wide shot, no text; **a shipped state** (a single confirmation toast, then darkness).++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/dark-keynote/TREATMENT.md b/styles/dark-keynote/TREATMENT.mddeleted file mode 100644index 6a1cddd..0000000--- a/styles/dark-keynote/TREATMENT.md+++ /dev/null@@ -1,227 +0,0 @@-# Dark Tech Keynote · 导演方案(Treatment)--**片名** *Room to Think*(留点地方想事情)| 虚构 app **Tidy** 的发布片-**时长** 约 42 秒(21 小节 × 2 s,120 BPM,4/4)| **画幅** 1920×1080 | **帧率** 24fps,全部逐帧平滑(软件 UI 的动效就是 60Hz 的精确运动,不做步进)-**一句话** 一个青柠色的文字光标想打一句话,打到一半被通知打断;镜头一路往后拉,桌面、相册、收件箱像两台不同步的马林巴一样越堆越乱,直到光标被埋掉。全场冻住、静音一拍——光标自己蓄力按下去,一圈光扫出去,几百个窗口和图标在一拍里按网格飞回原位。原来这个光标就是 Tidy 的标志。最后屏幕上只剩它,它把开场没打完的那句话打完:**Room to think.**-**主题** 乱不是东西太多,是节奏错了位。Tidy 把一切对回同一拍。-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么(语法) | 刻意不学 |-|---|---|---|-| **Apple 发布会产品片**(Apple Watch 初代揭幕片、AirPods 揭幕片) | 黑底 + 柔光;产品从黑暗里被一道光"扫"出来,而不是直接出现;一句话一屏、字很少;产品慢慢转进画面,机位几乎不动、只让光动;旁白是克制的陈述句,没有形容词堆砌;大数字单独占一屏 | 不做实物玻璃 / 金属渲染(那是 glass-product 的事);不出现任何 Apple 的界面、字体(SF)、系统控件(红黄绿三个窗口按钮、菜单栏、Dock)、"one more thing" 式台词 |-| **Linear / Stripe / Vercel 的发布视频** | UI 本身是主角:精确的吸附网格、1px 细线、柔和光晕、近黑渐变底;动效是"弹性但克制"(快出、带一点过冲、立刻停稳);大号无衬线数字;等宽小字做标签;一种品牌强调色只给最重要的一个元素 | 不借用任何品牌资产、配色组合、logo、界面布局;不做它们招牌的"3D 倾斜网格地板"与彩虹渐变 |-| **Steve Reich《Piano Phase》《Music for 18 Musicians》**(配乐语法) | 同一个 12 音音型由两件乐器演奏,一件慢慢加速 → 两条线错位,产生越来越密的"假旋律";音型是全片的时间骨架;结尾用"减法"一个音一个音拿掉 | 不用原曲音型、音集、配器顺序;不做"钢琴 + 弦乐",也不做 EDM |-| **Edgar Wright 式插入镜头** | 混乱高点用 4 个半秒插入镜头打在拍点上,一个动作 = 一个声音 = 一个剪辑点 | 不做漫画拟声字、不抄具体镜头 |--**和 glass-product / dataviz 的区别**:glass-product 的主角是一个 3D 实物;dataviz 讲数据背后的故事。本片是**软件发布**:主角是界面、光标、窗口本身,数字只出现一次、只是产品卖点。-------## 二、为什么这个媒介讲这个故事(原生能力 → 故事用法)--| 暗色发布片 + 软件 UI 的原生能力 | 故事里怎么用 |-|---|---|-| **UI 元素可以无限复制、瞬间出现** | 混乱不用"画",而是"生成":通知、文件、照片、标签页按音符一个个生成,越来越快,几百个 |-| **吸附网格(snap grid)** | Tidy 的全部卖点就是一个动作:所有东西一拍之内吸回网格。网格平时隐形,按下那一刻才显形 |-| **光标是屏幕上唯一"活着"的东西** | 光标 = 主角。它会眨(每拍一次,就是节拍器)、会被通知挤开、会犹豫、会蓄力按下。它是全片唯一的青柠色,也是 Tidy 的 logo |-| **界面可以暂停** | 按下之前全屏冻结:几百个元素停在半空,声音一起断掉——只有屏幕能做到的"时间停止" |-| **暗场 + 柔光** | 产品界面先是黑的,一道斜光扫过去,光扫过的地方才亮起来 |-| **数字从乱码滚成答案** | "12,408 files." 每一位先是乱跳的字形,按十六分音符从右往左一位位锁定 |--**情绪弧**:安静专注(光标打字)→ 被打断(第一声通知)→ 焦虑累积(拉远、越堆越乱、越来越快)→ 淹没(光标被埋、插入镜头连打)→ **冻结 + 静音**(全片最静的一秒)→ **按下**(全片最重要的声音)→ 释放(一拍收拢)→ 惊喜(原来光标就是 Tidy)→ 信任(大数字)→ **呼吸**(东西一件件收好、音乐一个音一个音减掉、第二次静音)→ 回响(光标把开场那句话打完)。-一个主体(光标)、一个目标(把那句话打完)、一次转折(它不再躲,而是自己按下去)。-------## 三、原生招式(放在情绪最高点)--1. **界面收拢**(16.0–17.0,签名镜头,情绪最高点):冻结一秒后,光标先向上拉长(蓄力,2 拍,无声),16.0 猛地压扁成一个方点——"咚"——一圈青柠色光环从它身上扩散出去。光环扫过哪里,哪里的窗口、图标、照片、通知就被"吸"走:带运动模糊、旋转归零、弹性过冲,在同一拍里落进 24×12 的吸附网格。镜头同时从光标特写急速拉到全景(1 拍),让观众看见"几百个东西一起归位"的尺度。17.0 网格线"咔"地显形 0.5 秒再隐去。-2. **错相 = 混乱**(贯穿前半段):两条马林巴演奏同一个音型,第二条慢慢加速错位。**画面上每个元素的出现都挂在一个音符上**:第一条线(在拍上)生成文件和照片,第二条线(错位的)生成通知。观众看到的混乱就是听到的错相。按下那一拍两条线重新对齐成一个和弦——声音和画面同时"对齐"。-3. **光的揭幕**(20.0–21.5):收拢后的网格压进一个窗口,灯光暗下;一道斜向柔光带从左上扫到右下,光扫过的像素才亮,前沿有一道窄高光。窗口同时慢慢转正(透视 −22° → 0°)。-4. **大数字**(26.0–29.5):镜头钻进窗口底部状态栏的计数器,计数器变成满屏的 "12,408"——每一位先乱跳(字形 + 竖向运动模糊),26.5 起按十六分音符从右往左逐位锁定,每锁一位一个马林巴音;27.0 "files." 落下;28.0 第二行 "Sorted in **0.8** seconds."(0.8 是青柠色)。-5. **窗口缩回光标**(32.5–33.0):最后 Tidy 窗口竖向压成一条线、再横向压成一根竖条——变回那个光标。-------## 四、主角与视觉系统(关卡 1 交 3 张风格帧,无角色设定表)--**主角:光标**(Tidy 的标志)。青柠 `#B7F34A` 圆角竖条,宽:高 = 1:14,带 24px 同色柔光。表演:-- 眨眼 = 节拍:拍上亮 0.5 s、灭 0.5 s(1 Hz,和真实光标一致)。-- 被打断:通知滑进来时它被"挤"一下(x 位移 8px + 挤压 0.9/1.1,0.2 s 弹回),然后停止眨眼、常亮两拍(愣住)。-- 蓄力:高 ×1.35、宽 ×0.8(ease-in,1 拍);按下:2 帧内高 ×0.3、宽 ×2.4;跟随:弹簧回弹 0.6 s,恢复眨眼。-- Tidy logo = 圆角方块里一根青柠光标;文字标 "Tidy" 后面永远跟着这根光标。--**色板**-| 用途 | 色值 |-|---|---|-| 底(渐变) | `#0A0B0F` → `#151822`(上中心略亮的径向渐变) |-| 细线网格 | `rgba(255,255,255,.035)`,48px 模块,每 4 格一根 `.06` |-| 窗口面 / 抬升面 | `#12151C` / `#1A1E28`;1px 描边 `rgba(255,255,255,.08)`;顶边内高光 `.10` |-| 正文 / 次要字 | `#E8EAF0` / `#8A90A0` / 标签 `#5C6272` |-| **品牌强调(唯一彩色)** | 青柠 `#B7F34A`,光晕 `rgba(183,243,74,.35)` |-| 噪音红(只在混乱段) | 角标红 `#FF5A5F`——混乱是红色的小点,秩序是一根青柠光标。收拢之后画面里再也没有红 |-| 冷光晕(纵深) | `#3B4CCA` 8% 大径向光斑 |--**UI 元素(全部原创,代码绘制)**:圆角窗口(半径 14,标题栏 40px,只有一个小 app 图标 + 标题,不画任何系统按钮);通知卡(半径 18,图标方块 + 两行字 + "now");文件图标(折角纸 + 文件名:`final_v2.pdf`、`final_FINAL.pdf`、`Untitled 38`、`IMG_4471.jpg`、`notes (copy).txt`…);照片缩略图(程序化渐变小风景);邮件行(未读圆点);浏览器标签条(标签越分越细);红色计数角标;存储条;转圈加载。-**字体(OFL)**:Inter(UI、字幕、大字,可变字重)、Inter Tight(大数字)、JetBrains Mono(标签、文件名、状态栏)。-------## 五、镜头表--| # | 时间 (s) | 景别 | 角度 | 运动 | 时长 | 为什么这样拍 |-|---|---|---|---|---|---|---|-| 1 | 0.0–4.0 | 特写(光标 + 一行字,字高 150px) | 平视正面 | 锁定 + 极慢推(1.00→1.04) | 4.0 | 开场只给观众一个东西看:一根在黑暗里眨的光标。安静 = 3 秒钩子,第一声通知才有冲击力 |-| 2 | 4.0–12.0 | 特写 → 大全景 | 平视 | **一镜到底连续拉远**(缩放 5.2→1.0,缓入缓出后段加速),前景通知卡掠过镜头带虚化(视差 + 焦点从字转到整面桌面),10.5 起轻微荷兰角 + 手持抖动 | 8.0 | 尺度揭示:那行字只是一面被淹没的桌面上的一小格。每拉远一档加一层乱(桌面→相册→收件箱→全部) |-| 3 | 12.0–13.5 | 大特写 ×3 | 平视 | 插入镜头:从元素原位"弹开"成满屏(UI 展开转场),每 0.5 s 一个 | 1.5 | 混乱最高点,Edgar Wright 式:999+ 角标 / 细成一条条的标签页 / 变红的存储条。每个只有一个元素,半秒也看得懂 |-| 4 | 13.5–15.0 | 全景 | 平视,荷兰角 3° | 抖动加剧 + 慢推 | 1.5 | 光标被埋,只从缝里透出一点青柠光;乱到顶点 |-| 5 | 15.0–16.0 | 全景 → 近景 | 平视,荷兰角归零 | **冻结 + 无声推近**(穿过停在半空的元素,前景虚化掠过) | 1.0 | 全片最静:时间停了,镜头是唯一在动的东西;推到光标,看它蓄力 |-| 6 | 16.0–18.0 | 近景 → 全景 | 平视 | **急拉**(1 拍,ease-out)+ 定住 | 2.0 | 签名镜头:光环扩散、几百个元素一拍归网格;急拉让观众同时看见"按下的点"和"归位的面" |-| 7 | 18.0–20.0 | 全景 | 俯视感的正面 | 锁定,内容自己运动 | 2.0 | 网格按类型分成三堆,窗口框画出来包住它们(画中画);灯光收暗 |-| 8 | 20.0–26.0 | 中景(窗口占画高 60%) | 3/4 侧 → 正面 | **环绕**(透视 rotY −22°→0°,极慢)+ 光扫 | 6.0 | Apple 式揭幕:机位几乎不动,只让光和产品转 |-| 9 | 25.0–26.0 | 中景 → 大特写 | 正面 | **推进**钻进状态栏计数器 | 1.0 | 用尺度匹配把一行小字变成满屏大字 |-| 10 | 26.0–29.5 | 大字满屏 | 正面 | 锁定 + 极慢拉(1.03→1.00) | 3.5 | 数字是这一段唯一的主角,给足阅读时间 |-| 11 | 29.5–33.0 | 大特写 → 中景 | 正面 | 拉回窗口 + **呼吸长镜头慢推**(1.00→1.08) | 3.5 | 呼吸:东西一件件收好,每拍少一件 |-| 12 | 33.0–42.0 | 特写(光标,和镜头 1 同一构图) | 平视正面 | 锁定 | 9.0 | 首尾呼应:同一个机位、同一根光标,这次周围什么都没有,它把话打完 |--镜头运动种类:推、拉、一镜到底拉远、急拉、环绕(透视转)、手持抖动 / 荷兰角、插入镜头、焦点转移 —— 共 8 种。-**统一转场语法 = "UI 展开 / 收起"**:每一次换镜头都是一个界面元素展开成画面,或画面收回成一个元素(字行 → 窗口 → 桌面;角标 → 满屏;光标 → 光环;窗口 → 计数器 → 满屏大字;窗口 → 光标)。全片没有淡入淡出、没有空白帧。-------## 六、分镜节拍表(120 BPM:1 拍 0.5 s,1 小节 2 s)--| 小节 | 时间 (s) | 段落 | 画面 / 表演 | 声音 |-|---|---|---|---|---|-| 1 | 0.00–2.00 | **片名(冷开场)** | 黑底。光标在第 1、2 拍眨;0.75 起按十六分音符打出片名 **Room to think.**(14 个字符,末字 2.375);1.75 片名下方淡出小字 `TIDY · A LAUNCH FILM` | 房间底噪;每次光标亮起一声极轻的"嗒";键盘声 |-| 2 | 2.00–4.00 | 被打断 | 2.5 回车,光标到第二行,2.75 打出一个 "I";**3.00 第一声通知**:卡片从右上滑入压住字行,光标被挤一下、愣住常亮;3.50、3.75 又两张(更快) | 3.0 通知"叮"(E6)/ 3.5(C#6)/ 3.75(A5);**J-cut**:3.25 起远处一片模糊的通知声淡入(下一场的声音先到) |-| 3 | 4.00–6.00 | 拉远 1 · 桌面 | 镜头开始连续拉远:字行 → 便签窗口 → 桌面;文件图标按马林巴 I 的重音一颗颗掉到桌面上 | 马林巴 I 进(音型 P,十六分音符);文件落下"嗒";旁白 1 "Your desktop." 4.25 |-| 4 | 6.00–8.00 | 拉远 2 · 相册 | 照片缩略图一张张甩进来叠成堆;一个前景通知卡贴着镜头掠过(虚化) | 颤音琴同度加进(第二声部);照片"唰";铺底合成器 A 持续音;旁白 2 "Your photos." 6.25 |-| 5 | 8.00–10.00 | 拉远 3 · 收件箱 | 收件箱窗口弹开、邮件行往下滚、角标从 1 跳到 99;**通知卡开始挂在错位的第二声部上出现**(观众看到节奏乱了) | 第二声部开始加速错位;低频脉冲八分音符进;旁白 3 "Your inbox." 8.25 |-| 6 | 10.00–12.00 | 拉远 4 · 全部 | 浏览器标签按十六分音符一分为二直到细成线、窗口层层叠开;拉远加速、画面开始轻微倾斜抖动 | 钟琴第三声部反向错位;沙锤式噪声十六分;铺底加入不协和音 |-| 7 | 12.00–14.00 | 插入镜头 | 12.0 `999+` 角标满屏 / 12.5 标签条细成线 / 13.0 存储条变红 "Storage almost full" / 13.5 弹回全景:光标已被埋,只剩缝里一点青柠光 | 每个插入一个"故障"重音;低频脉冲改十六分;错相最密 |-| 8 | 14.00–15.00 | 淹没 | 全景,整堆东西在抖,还在往上叠 | 上升音效(噪声扫频 + 音高爬升),第二声部加速到 +6% |-| 8 | **15.00–16.00** | **冻结 · 静音 1** | 15.0 所有元素停在半空(包括抖动);**完全静音**;镜头无声推近光标;15.5 光标开始向上拉长蓄力 | **数字静音 1.0 s**(连底噪都断) |-| 9 | **16.00–18.00** | **收拢(签名镜头)** | 16.0 光标压扁 → 光环扩散 → 全部元素一拍归网格(带运动模糊、弹性);镜头急拉到全景;17.0 网格线显形"咔";17.0–18.0 停住:整整齐齐的 288 格 | **16.0 全片最重要的声音**:低沉"咚"(毛毡槌 + 55 Hz 正弦下滑)+ 所有声部对齐成一个 A 大九和弦;元素归位是一片细密的玻璃"嗒";17.0 网格"咔" |-| 10 | 18.00–20.00 | 分类 | 格子按类型按八分音符滑成三堆(文件 / 照片 / 邮件),堆上计数滚动;19.0 窗口框一笔画出把三堆包住(画中画);19.5 灯光收暗 | 和弦延续(**L-cut**:弓奏颤音琴从 16.0 一直拖进揭幕段);干净的马林巴单声部(不再错位) |-| 11–13 | 20.00–26.00 | **光的揭幕** | 20.0 斜光带从左上扫过窗口(1.5 s),光扫过的地方亮起;窗口从 3/4 侧慢慢转正;22.0 / 22.5 / 23.0 侧栏三行各落一个青柠勾;25.0 镜头推向底部状态栏计数器 | **J-cut**:光扫的"嘶——"微光声 19.6 先进;旁白 4 "Meet Tidy." 20.5;旁白 5 "One press, and everything finds its place." 23.0;勾 = 颤音琴三音 |-| 14–15 | 26.00–29.50 | **大数字** | 26.0 满屏 "12,408",每位乱跳;26.5–27.0 从右往左逐位锁定;27.0 "files.";28.0 "Sorted in 0.8 seconds." | 乱跳 = 细密的数字颗粒"嗒嗒";每锁一位一个马林巴上行音;27.0 和弦点;28.0 钟琴点在 "0.8" |-| 15–17 | 29.50–33.00 | **呼吸** | 29.5 大字收回状态栏、拉回窗口;每拍收起一件:侧栏折叠、格子熄灭、标题栏消失……32.5 窗口压成一条线、再压成光标 | 音型做减法:每小节拿掉几个音 → 只剩每拍一个音 → 32.5 只剩光标的"嗒" |-| 17 | **33.00–34.00** | **静音 2** | 空白里只有光标,常亮不眨(屏住呼吸) | 近乎静音(只有 −60 dB 房间底噪) |-| 18–21 | 34.00–42.00 | **回响 + 片尾** | 34.0 光标眨一下;34.5 在正中打出 **Room to think.**(十六分音符,和开场同一节奏);37.0 下方淡出片尾信息;40.0 文字全部淡出,只剩光标再眨两下;41.5 光标熄灭 | 34.0 光标"嗒"(静音后的第一个声音 = 开场那个声音);键盘声;旁白 6 "Room to think." 34.55;37.0 最后一个柔和的 A 大九和弦(颤音琴 + 马林巴低音),自然衰减;最后两声"嗒",底噪淡出 |-------## 七、Cue map(音乐先行;画面卡这张表)--**配乐类型**:极简主义(Reich 式错相)。马林巴(VCSL,CC0)+ 颤音琴硬槌 / 弓奏(VCSL,CC0)+ 钟琴(VCSL,CC0)+ numpy 合成铺底(去谐锯齿波低通)+ 低频正弦脉冲 + 噪声沙锤。**A 大调 / 升 F 小调之间的调式游移**,120 BPM,十六分音符 = 0.125 s。-**音型 P**(原创,12 个十六分音符 = 1.5 s,和 4/4 小节形成 3:4 错拍):`A3 E4 B4 E4 C#5 E4 | A3 E4 B4 E4 D5 C#5`(前后半只差最后两个音,错相时会"咬"出新旋律)。-**错相实现**:第二声部演奏同一音型,速度从 120 → 121.8 BPM(8.0–14.0,约错开 3 个十六分音符),14.0–15.0 再加速到 127 BPM;第三声部(钟琴,只奏 P 的高音)反向减速。音符时间表写进 `timeline.js`,**画面生成元素直接读这张表**,配乐也读这张表——同一个数据源。--| 段落 | 时间 | 配器 | 情绪 | 卡点(画面必须落在这些拍上) |-|---|---|---|---|---|-| 片名 | 0.0–3.0 | 无音乐;光标"嗒"每拍 + 键盘 | 专注 | 0.0 / 0.5 / 1.0… 光标亮;0.75–2.375 每十六分音符一个字;2.5 回车 |-| 打断 | 3.0–4.0 | 通知音(E6 / C#6 / A5,音型的前三个高音) | 被打断 | **3.00** 通知 1;3.50 通知 2;3.75 通知 3 |-| 桌面 | 4.0–6.0 | 马林巴 I:P 十六分,pp→mp | 开始堆积 | 4.00 起拉远;文件在 P 的第 1、4、7、10 个音落下(每 0.375 s 一个 = 附点八分,和小节错开) |-| 相册 | 6.0–8.0 | + 颤音琴同度;+ 铺底 A | 越来越满 | 照片在第二声部的第 3、9 个音甩入 |-| 收件箱 | 8.0–10.0 | 第二声部开始错相;+ 低频脉冲八分 | 失去节奏 | 通知挂在第二声部(错位)的音上;8.0 收件箱窗口弹开 |-| 全部 | 10.0–12.0 | + 钟琴第三声部;+ 噪声十六分;铺底加 G#/D# | 焦虑 | 标签页每十六分音符分裂一次;10.5 起荷兰角 |-| 插入 | 12.0–14.0 | 全部 + 脉冲十六分 + 每拍一个故障重音 | 淹没 | **12.0 / 12.5 / 13.0 / 13.5** 四个剪辑点 |-| 上升 | 14.0–15.0 | 上升音效 + 第二声部加速到 127 | 顶点 | 15.0 前最后一个音 |-| **静音 1** | **15.0–16.0** | **无** | 冻结 | 15.0 冻结;15.5 光标蓄力 |-| **收拢** | **16.0–18.0** | **全体齐奏 A 大九和弦**(马林巴低音 A2 + 颤音琴硬槌和弦 + 钟琴 + 弓奏颤音琴渐强 + 55 Hz 低音"咚") | 释放 | **16.00** 按下 + 和弦;16.05–16.55 元素归位(玻璃"嗒"群);**17.00** 网格显形 |-| 分类 | 18.0–20.0 | 马林巴 I 单声部 P(对齐、mf);弓奏和弦持续 | 秩序 | 格子在八分音符上滑动;19.0 窗口框;19.5 灯暗 |-| 揭幕 | 20.0–26.0 | 弓奏颤音琴和弦 + P 轻奏 + 四分音符低频脉冲 | 惊喜、信任 | **20.0** 光扫起点;22.0 / 22.5 / 23.0 三个勾(颤音琴 C#6 / E6 / A6);25.0 推进 |-| 大数字 | 26.0–29.5 | 颗粒"嗒"+ 马林巴上行 + 硬槌颤音琴和弦点 | 笃定 | **26.0** 满屏;26.5 / 26.625 / 26.75 / 26.875 / 27.0 五位锁定(A4 B4 C#5 E5 A5);**27.0** "files.";**28.0** 第二行 + 钟琴 |-| 呼吸 | 29.5–33.0 | P 做减法:30–31 拿掉 4 个音,31–32 拿掉 8 个,32–33 只剩四分音符 A4 | 放松 | 每拍一个元素收起;**32.5** 窗口压成光标 |-| **静音 2** | **33.0–34.0** | 无(−60 dB 底噪) | 屏息 | — |-| 回响 | 34.0–42.0 | 34.0 光标"嗒";37.0 最后和弦(弓奏颤音琴 + 马林巴 A2/E3/C#4/B4) | 回响 | **34.00** 光标;34.5–36.125 打字;37.0 片尾卡 + 和弦;40.0 / 41.0 光标"嗒";41.5 熄灭 |-------## 八、声音设计表--**核心想法**:混乱的声音是**散的**(音高各差几十音分、声像乱摆、每种来源一个音色),Tidy 的声音是**一套**(同一种"毛毡 + 玻璃"材质、全部调在 A 大调里、居中)。按下那一刻,散的声音被对齐成一个和弦——声音本身在讲"整理"。--| 段落 | 环境底 | 主要拟音 | 音乐状态 |-|---|---|---|---|-| 片名 0–3 | 安静的房间 + 极低的电脑风扇(棕噪声低通 180 Hz,−48 dB) | 光标"嗒"(2 kHz 带通短脉冲,极轻)、矮轴键盘(每字一个软"嗒",随机 ±1 半音)、回车(更重的"咔") | 无 |-| 打断 3–4 | 同上 + 远处模糊的通知群淡入(J-cut) | 通知"叮":短正弦 + 二次谐波 + 玻璃高频,音高取音型高音 | 无 |-| 拉远 4–12 | 风扇声逐渐升高、加一点线圈啸叫(6.8 kHz 细正弦,越来越响) | 文件落下(软"噗嗒")、照片甩入(纸牌"唰")、窗口弹开(短"嗖",大窗口低、小窗口高)、邮件滚动(细"沙沙")、标签分裂(极短"嗞")、角标计数(细"嘀") | 马林巴 → 同度 → 错相 → 三声部 |-| 插入 12–14 | 风扇 + 啸叫达到最高 | 每个插入一个"故障"重音:数字噪声 + 下滑的方波;存储条变红一声低沉错音"嘟" | 最密 |-| 淹没 14–15 | 同上 | 叠放的低频"咚咚"(东西越压越重)、上升扫频 | 上升 |-| 静音 1 15–16 | **全部切断** | 无 | 无 |-| 收拢 16–18 | 底噪回来但变干净(只剩极低的空气声,风扇和啸叫消失) | **"咚"**(毛毡槌 + 55→40 Hz 正弦下滑 + 室内混响尾巴);光环"呼"(低通噪声扫过全频);归位"嗒"群(每个元素一个玻璃短音,按落位时间排开,音高全在 A 大调里);17.0 网格"咔"(清脆高频) | 全体齐奏和弦 |-| 分类 18–20 | 干净的空气 | 格子滑动(毛毡"嗒",八分音符)、窗口框画出(细线"嘶") | 单声部对齐音型 |-| 揭幕 20–26 | 干净的空气 | 光扫(高频微光"嘶——",带通噪声从 3 kHz 扫到 9 kHz + 几个高次泛音);勾(玻璃"叮",调内) | 弓奏和弦 + 轻音型 + 脉冲 |-| 大数字 26–29.5 | 干净的空气 | 乱码颗粒(极短随机点击,密度渐增);锁位(毛毡"嗒" + 马林巴音);第二行(一次柔和"嗖") | 上行锁定音 + 和弦点 |-| 呼吸 29.5–33 | 干净的空气,逐渐变得更安静 | 每收起一件一声轻"嗒";窗口压成光标(低"呼"收成一点) | 减法 |-| 静音 2 33–34 | −60 dB | 无 | 无 |-| 回响 34–42 | 安静的房间(和开场同一个底噪,但没有风扇啸叫) | 光标"嗒"、键盘、最后两声"嗒" | 最后一个和弦 |--**混音**:旁白压缩后在最上层,音乐在旁白下闪避 −8 dB,拟音闪避 −4 dB;静音 1 是**数字静音**(全部轨道 0);响度 −14 LUFS;颗粒 0。-**J-cut / L-cut**:① 3.25 通知群的模糊声先于拉远镜头进入(J);② 16.0 的和弦用弓奏颤音琴拖进 20.0 的揭幕(L);③ 19.6 光扫的微光声先于光带出现(J);④ 27.0 的和弦点拖进呼吸段(L)。-------## 九、旁白与字幕--**声线**:af_kore(备选 af_nicole),speed 0.95,自信、克制。--| # | 时间 | 台词 |-|---|---|---|-| 1 | 4.25 | Your desktop. |-| 2 | 6.25 | Your photos. |-| 3 | 8.25 | Your inbox. |-| 4 | 20.50 | Meet Tidy. |-| 5 | 23.00 | One press, and everything finds its place. |-| 6 | 34.55 | Room to think. |--(1–3 是同一句话拆在三个小节上,全片实际是 4 个句子。)--**字幕设计 = 一个界面组件**:底部居中的"说明气泡"(toast):`rgba(12,14,19,.72)` 半透明深色圆角胶囊(半径 999)、1px 描边 `rgba(255,255,255,.09)`、背后模糊,Inter 500 40px `#E8EAF0`,左侧一颗 8px 青柠圆点(说话中),出现 = 上移 12px + 淡入 0.16 s(UI 的标准进场)。离底 72px。**混乱段自动加深底色**(`.85`)保证可读;大数字段不出字幕(数字本身就是信息)。-**打出来的字就是字幕**:片名和结尾的 "Room to think." 是光标在画面里打出来的,不再重复烧录,只进 .srt。-**停留**:每句 ≥ max(1.8 s, 语音 + 0.6 s),不重叠。-------## 十、对风格说明的调整(及理由)--| 项 | 风格说明 | 本方案 | 理由 |-|---|---|---|---|-| 时长 | 30–40 s | 约 42 s | 大数字段和结尾回响各需要 ≥ 3 s 阅读时间;每句字幕 ≥ 1.8 s。不注水,但不为压时长砍停留 |-| 按键前静音 | 1 拍 | **2 拍(1.0 s)** | 1 拍(0.5 s)在 120 BPM 下像一次掉帧;2 拍才读得出"时间停了",也给光标蓄力留出动作时间 |-| 谁按下 | "一键" | **光标自己按下** | 让唯一的主角完成转折(导演要求:一个角色、一个目标、一次转折),也顺手揭示"光标 = Tidy 的 logo" |-| 结尾 | 只剩光标闪烁 | 光标先把开场没打完的话打完,片尾信息淡出后**只剩光标闪两下** | 首尾呼应多一层:打断的那句话在结尾完成 |-| 红色 | 只要一种强调色 | 混乱段允许红色小角标 | 红 = 噪音、青柠 = Tidy;收拢后画面里再无红色,颜色也在讲故事 |-------## 十一、技术方案--- 纯 Canvas2D,一张 1920×1080 主画布 + 离屏画布(前景虚化层、产品窗口层、光扫遮罩)。-- `engine.js`:暗色发布片的绘制引擎(背景 / 网格 / 光晕 / 圆角面板 / 窗口 / 通知 / 文件 / 照片 / 角标 / 光标 / 任意路径的"发光 UI 形状" / 光扫揭幕 / 乱码滚数字 / 吸附飞行(运动模糊 + 弹性)/ 2.5D 摄影机 / 条带透视 / 字幕气泡),场景文件只调用引擎。-- `timeline.js`:速度网格 + 音型 + 三条声部的音符时间表(错相)——画面生成元素、配乐、混音、卡点自检共用。-- 配乐 fork 子 agent 按本 cue map 和 `timeline.json` 写(契约:音符表 + 卡点 + 两处静音);画面并行制作。-- 自检:`tools/cuecheck.py`(配乐卡点 ↔ 画面事件),whisper 逐句,ebur128。-------## 十二、制作阶段修订(关卡 1 意见落实后,以成片为准)--| 项 | 方案原稿 | 成片 | 理由 |-|---|---|---|---|-| 收拢飞行 | 就近吸附到网格 | **按类型飞回自己那一段**:文件 → Desktop 5 行、照片 → Photos 3 行、通知 → Inbox 4 行(22 列 × 12 行,段间留缝);组内按 y 分行、行内按 x 排,轨迹不交叉;同组同一弯曲方向,屏幕上是三股颜色不同的流(文件冷白 `#C9D3E6` / 照片暖橙 `#F2A65A` / 通知蓝紫 `#7E95FF`),带光尾;起飞时间按离光标的距离错开(光环 2600 px/s),飞行 0.26–0.40 s,16.88 s 全部落定 | 协调者意见 1:飞得远但有秩序,读出来就是"分类归位",对上 "everything finds its place" |-| 分类段 18–20 | 格子按类型滑成三堆 | 收拢时已经分好类,18–19 只做"压进窗口":三段整体收进 Tidy 窗口内容区(每组 3 行 × 19 列,放不下的飞进本组最后一格的 "+N" 叠卡) | 收拢已经承担了分类,这里不再重复 |-| 冻结推近 | 推到 ×2.6 | 推到 **×4.4**,外圈压暗 55%(聚光),光标背后一小片暗把它从杂物里抠出来;蓄力 12 帧、压扁 2 帧、弹簧回弹过冲 | 协调者意见 3;×2.6 时光标只有 9% 画高,和 999+ 角标缠在一起 |-| 收件箱窗口位置 | x 200 | x 90 | 它的 999+ 角标正好压在光标上 |-| 侧栏三个勾 | 22.0 / 22.5 / 23.0 | 21.75 / 22.25 / 22.75 | 给 23.0 的旁白让路 |-| 光扫 | 1.6 s | 1.3 s | 协调者意见 4:主要内容不长时间停在暗部 |-| 拉远轨迹 | 缓入缓出 | 对数空间关键帧(每小节一档:×5 / ×3.1 / ×2.0 / ×1.35 / ×1.0 / ×0.8),单调三次插值,速度连续 | "每拉远一档加一层乱"要和小节对上 |-| 插入镜头 | 从原位弹开 | 展开提前 1 帧,拍点那一帧已经展开 80% | 否则拍点帧上什么都看不见 |-| 窗口 → 光标 | 压成线再变成光标 | 三步:竖向压成线(显像管关机)→ 线横向收成一个点 → 点竖着长成光标 | 首版中间出现一个青柠方块 |-| 风扇 / 线圈声 | 拉远全程渐强 | 9.4 s(第 3 句旁白结束)后才起来 | 协调者意见 2:不和人声抢频段 |-| 配乐错相线 | — | 12–15 s 走音 +15 → +35 音分、力度 0.62 → 0.92、轻饱和 + 高架变亮 | 协调者意见 2 |diff --git a/styles/dark-keynote/demo/fonts/InterTight-var.woff2 b/styles/dark-keynote/demo/fonts/InterTight-var.woff2deleted file mode 100644index 228154f..0000000Binary files a/styles/dark-keynote/demo/fonts/InterTight-var.woff2 and /dev/null differdiff --git a/styles/dark-keynote/style.json b/styles/dark-keynote/style.jsonnew file mode 100644index 0000000..4772e12--- /dev/null+++ b/styles/dark-keynote/style.json@@ -0,0 +1,18 @@+{+ "slug": "dark-keynote",+ "num": "25",+ "en": "Dark Tech Keynote",+ "cn": "暗色科技发布",+ "category_en": "Information & Keynote",+ "category_cn": "信息与发布",+ "film": "Room to Think",+ "line": "Launch film for Tidy, a fictional app: one buried cursor snaps hundreds of windows back into place.",+ "line_cn": "虚构 app Tidy 的发布片:被埋掉的光标一键把几百个窗口归位。",+ "uses": [+ "Product launches",+ "SaaS",+ "Keynotes"+ ],+ "frame_sec": 8.4,+ "dur": 42.0+}diff --git a/styles/dataviz/DEMO.md b/styles/dataviz/DEMO.mdnew file mode 100644index 0000000..9bcf4b2--- /dev/null+++ b/styles/dataviz/DEMO.md@@ -0,0 +1,120 @@+# Data Storytelling — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *A Hundred Summers* (50.0 s) · `dataviz.mp4` · source in [`demo/`](demo/)+++A hundred and one summers of real global temperature (NASA GISTEMP v4, June–August), told as one woman's life from 1926 to 2026.++## Story & structure++Our data is a time series, so it is drawn as dots and a line that morph into stripes. That was one choice for one dataset.++Shape: a cold open on one point. Tender, sparse early points. A steady middle. Acceleration: the notes get denser, and the pencil hurries. The frame breaks, and the pencil flinches and flips to its red end. A rush. **Everything stops half a beat early; this is the only cut in the film, into silence.** Then the last data point, alone, followed by the whole series in one view. The morph into stripes comes next, then the longer record, then an empty cell for the next value ("Next summer?"). The end card lives inside that empty cell.++How it was fitted to the data: 101 points (a series of 60–150 points suits this shape); 3 human notes pinned to the first marks drawn ("1926 — she is born.") in blue, 2 record notes pinned to the last in red; one frame-breaking moment found in the data; the last point given its own silence.++## Shots++| Beat | Camera |+|---|---|+| Cold open | Extreme close-up on the first dot (≈4×). Tilt up to follow the leader as the note is written. |+| Title | Pull back to 1.55×. The drop line becomes the x axis; the headline typesets above. |+| Early life | Push back in, then track the pencil, newest point at ~62 % of frame width. Slow pull-out as time speeds up (2.3 → 1.7×). |+| Climb | Pedestal up with the rising curve while a Dutch angle creeps in (0 → −1.5°). |+| Frame break | Punch-in over 2 frames (1.22 → 1.42×) plus decaying shake. A small jolt on the rescale. |+| Rush | Fast pull-out to 1.0×, roll to −3°, constant 2 px tremor. |+| **The cut** | Hard cut into a close-up of the empty slot: dashed column, `2026` label, level horizon. Rack focus from the defocused foreground pencil to its tip as it lands. |+| Reveal | Hold on the last point while its note is written, then pull back to the full view (1.06×). The axis rescales to fit everything. |+| Morph | Locked-off. |+| Scale | Pull and pan (→ 0.72×) to add the earlier record. |+| Echo | Push to the empty cell; it widens into the end card (frame within frame). |++Key moments with subjects ≥ 1/3 of frame height: the first dot plus note, the century chart, the stripes band.++Why this route, for this data: the first fact got the extreme close-up because one woman's birth was the human scale; the axes grew as the unit was first named; tracking kept the past behind and the future ahead; escalation, surprise and rush came from the data itself; the morph was locked-off because the transformation was the movement; the ending pushed into the empty next cell because the next value was unknown. Each is one choice from STYLE.md §6, not the style's default.++Motion numbers: 90 BPM (chosen because a 1/32 note is exactly 2 frames at 24 fps); 7 points on quarter notes → 24 on eighths → 40 on sixteenths → 27 on thirty-seconds (a point every 2 frames). Rescale: four steps on 1/32 notes, each eased over 0.09 beat; the second rescale, in the clarity phase, is smooth. Flinch: freeze half a beat, then a 0.5 s end-over-end flip to the red lead. Morph: sweep over 0.85 beat; each mark falls to the band centre (first 45 %), then stretches to a full stripe (ease-out) and loses its ring; line segments fade as their left dot starts morphing; annotations return as tiny pencil marks above the band.++## Score structure++- Ambience: room tone → evening crickets → the sea (J-cut before "1933", L-cut after) → cicadas that grow louder and denser with the heat (J-cut before the climb) → open wind after the silence → room tone.+- Sonification (`music/score.py`): `midi = 62 + (v + 0.4) × 17`; below-centre values snap to D major pentatonic. Detune only on the last ~15 points (5 → 45 cents). The note right before the silence is the most dissonant (max detune plus a minor-second shadow); the last point after the silence is the cleanest, highest note.+- Bed: pad Dmaj9 → G/D → D–Bm–G–A → Bb/D–Dm → semitone cluster; hats low-passed at 9.5 kHz. After the silence: a D open fifth (no third, no answer), a glissando of all 101 points replayed during the morph, Gmaj7#11 over D for the scale shot, and the **first point's note again** under the end card.+- Score arc: sparse, tender early points → a steady middle → accelerating subdivision as the notes densify → rush → silence → the last point alone → the whole → the morph → the first note again.+- Silences: 1.0 s true digital silence before the last point (all layers); 0.67 s near-silence before the empty cell. The first sounds after them: the last tap plus its note, then the first stroke of the empty cell.+- Mix: music −11 dB and cicadas −6 dB under the voice; narration SNR in the 300–4000 Hz band 8.6–16 dB; −14 LUFS, grain 0.+- Voice: Kokoro `af_alloy`, speed 0.92, 5 lines, never over the rush, the silence or the morph. Whisper writes numbers as digits: `asr` set to "For 50 years…" and "…turned 100…".+- The baby's laugh was replaced by one music-box note.++## Palette & props++- Paper `#F6F3EC`; dot grid 24 px `#E4DDCF`. Ink `#2B2723`: axes 1.4–1.6 px, series line 2.4 px, gridlines `#DDD6C9` 1 px, zero line `#BDB4A5` 1.3 px. Tick numbers IBM Plex Mono 17–20 px `#6E665C`.+- Dots r = 6 px with a 1.5 px ink ring; landing pop 0.25 s (×1.55).+- Ramp, u = (v − centre) / half: `#2166AC` → `#4393C3` → `#92C5DE` → `#D1E5F0` → `#F2EEE8` (centre) → `#FDDBC7` → `#F4A582` → `#D6604D` → `#B2182B` → `#7A0F1E` (beyond +1). Centre = 1971–2000 mean 0.22 °C, half-span 0.85 °C.+- Handwriting Caveat 30 px world size, blue pencil `#2F5D8A` / red pencil `#A8283A`, per-glyph ±1.7° rotation and ±2.5 % baseline, 16 % of pixels knocked out for grain. Doodles: a three-curl wave, a heart.+- Pencil wood cone `#E3C79C`, entering at 35–58°.+- Plot box 1500 × 520 in world space; the first note above its mark, late notes above-left of their dot; the bottom 150 px for the caption. Title Newsreader 66 px.+- Caption: Newsreader 42 px, x = 180, baseline y ≈ 985, kicker `1926–1958`, 3-frame rise and fade, flips up when it leaves; the hold rule is asserted in `tools/subs.py`.+- The engine showcase uses a `#D97757` accent spark.++## End card++Inside the dashed "next cell": title, `DATA STORYTELLING`, a miniature of the stripes plus an empty dashed cell, `Lemo-Opuscar · LemoLab × Claude Opus 5.5`, data, font, voice and music credits (including "2026 value preliminary, retrieved 2026-09-26"), and a handwritten "Her story is fiction. Every number is real." The LemoLab sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/dataviz/demo/+ data/ GLB.Ts+dSST.csv (as downloaded) + jja.json tools/extract_data.py column → json + story facts+ timeline.js 90 BPM grid, year → beat map, every key beat, chart geometry (single source of truth)+ engine.js the style: paper, camera, pencil strokes, handwriting, dots, stripes, morph, pencil, caption, shapes+ film.js the story: annotations, camera path, pencil activities, chart layers, end card, events for the mix+ music/score.py sonification + modular bed (reads events.json) mix.py ambience + foley + narration + ducking+ tools/ words.py subs.py cuecheck.py final_asr.py+```+1. Download the dataset and write the extractor. Print every fact the narration will claim.+2. Write `timeline.js` (grid plus year → beat map) before any drawing.+3. Build `engine.js`, then `film.js`, and render gate frames from the real engine (`node core/render/still.mjs … --range`).+4. `sh demo/build.sh` rebuilds everything from scratch in about 2 minutes: extract → TTS → whisper → words → events → score → cuecheck (107 cues, max 0.03 ms) → mix → subtitles → render (1200 frames, ~30 s with 2 workers) → mux (−14 LUFS, grain 0) → styleframe and poster.+5. Review: a 1 s contact sheet from the final mp4 twice (offset by 0.25 s), 0.1 s strips of the break, the cut and the morph, per-line whisper on the final mix, and a sample-accurate silence check.++Pitfalls tied to this demo: GISTEMP has J-D and D-N before the seasonal columns, so the column is selected by header name (`JJA`). A frame break rescaled after 0.17 s was invisible. Right-aligned notes: the pencil hop takes 16 % of the text phase. `pencilStroke`, `dashedCell` and `dataDot` set `globalAlpha` themselves. In tracking shots the world-space title was cut by the frame edge. At 32nd-note density the pencil body lay across fresh dots.++## Engine reference++`demo/engine.js` (ES module, Canvas 2D, 1920×1080; imports `/core/lib.js`). World units are chart pixels at zoom 1. Call `applyCam(g, cam)` before any world-space drawing.++| Function | What it does | Key parameters |+|---|---|---|+| `drawPaper(g, cam, {dots})` | cream paper, fibre noise and dot grid, fixed in world space | `dots` 0–1 grid alpha |+| `applyCam(g, cam)` / `w2s` / `s2w` / `viewRect` | 2D camera transform and conversions | `cam = {x, y, zoom, roll, sx, sy}` (sx/sy = shake in px) |+| `valueColor(v, {center, half, alpha})` / `rampRGB(u)` | diverging stripes ramp | reference-mean `center`, symmetric `half` |+| `pencilStroke(g, pts, o)` | **draw any polyline in pencil**: wobble, taper, graphite grain, write-on; returns the tip | `color, width, progress, seed, wobble, passes, grain` |+| `inkShape(g, path, o)` | **any closed shape** as a pencil-annotated mark: flat fill + hatching + hand outline | `fill` (accent) or `value` (ramp), `hatch, progress` |+| `plotShape(g, path, o)` | sample any path into a dot-and-line data series | `n, r, values, accent, progress` |+| `stripesFill(g, path, values, o)` | fill any closed shape with warming stripes | ramp options, `accent` + `accentIndex` |+| `dotTrail(g, pts, o)` | tapering dot trail (cursor tail / comet) | `color, r0, r1` |+| `handText(g, text, x, y, o)` | handwriting with grain and left→right reveal; returns `{tip, w}` | `size, color, progress, align, zoom` |+| `setType(g, text, x, y, o)` | printed type, letter-by-letter typesetting | `size, font, weight, progress, rise, track` |+| `dataDot(g, x, y, r, fill, o)` | data point with landing pop and ripple | `fresh` (s since landing), `ripple, accent, alpha` |+| `inkLine`, `stripe`, `morphMark(g, u, dot, box, fill)` | series line, one stripe, dot→stripe morph at 0..1 | |+| `leader`, `ringPath`, `wavePath`, `heartPath`, `bracketPath`, `sparklePath`, `quadPath` | annotation geometry | |+| `dashedCell(g, x0, y0, x1, y1, o)` | the dashed "next value" cell, drawn on | `progress, color, dash, gap` |+| `drawPencil(g, o)` | the red–blue pencil (screen space) | `tip [sx,sy], s, lift 0–1.2, flip 0–1 (blue→red), blur, focus, ang` |+| `caption(g, words, t, o)` | figure-caption subtitle with timed words | `t0, t1, kicker, x, y, size` |++Minimal example: a warm orange `#D97757` four-point spark with a cursor tail, drawn in this style (full version: `?engine=1` → `demo/stills/engine_demo.jpg`).++```js+import * as E from './engine.js';+const g = canvas.getContext('2d'), cam = { x: 0, y: 0, zoom: 1, roll: 0 };+E.drawPaper(g, cam); E.applyCam(g, cam);+E.dotTrail(g, Array.from({ length: 9 }, (_, i) => [-300 + i * 26, 170 - i * 14]), { color: '#D97757', r0: 9, r1: 2 });+E.inkShape(g, E.sparklePath(0, 0, 150), { fill: '#D97757' }); // accent bypasses the ramp+E.leader(g, [110, -200], [40, -110], { color: E.P.blue });+E.handText(g, 'the spark, in pencil', 120, -210, { size: 34, color: E.P.blue });+const tip = E.w2s(cam, 150, 0);+E.drawPencil(g, { tip, s: .8, lift: .2, flip: 0 }); // flip: 1 = red end+```diff --git a/styles/dataviz/STYLE.md b/styles/dataviz/STYLE.mdindex 555b918..1d3c361 100644--- a/styles/dataviz/STYLE.md+++ b/styles/dataviz/STYLE.md@@ -1,18 +1,13 @@# Data Storytelling — Style Prompt-> A chart that tells a story: real data, drawn point by point on cream paper by a red–blue pencil, with handwritten notes pinned to the numbers. Each data point is a note, and the chart itself is the camera, the rhythm and the plot.-> Demo: *A Hundred Summers* (50.0 s) · `dataviz.mp4` · source in `demo/`. A hundred and one summers of real global temperature (NASA GISTEMP v4, June–August), told as one woman's life from 1926 to 2026.-> References (grammar only): Hans Rosling's *200 Countries, 200 Years, 4 Minutes* (a moving data point plus a calm narrator; one dot is a character). Ed Hawkins' warming stripes (2018): a century in coloured bands, a diverging ramp centred on a reference mean, no axes. The Pudding / New York Times scrollytelling graphics: one idea at a time, axes that grow with the story, notes pinned to data with thin leaders, the text as the figure caption. Never copy a specific chart, dataset framing, layout or typeface from them, and never name them in the film.+> A chart that tells a story: real data, drawn mark by mark on cream paper by a red–blue pencil, with handwritten notes pinned to the numbers. The chart itself is the camera, the rhythm and the plot.+> References (grammar only): Hans Rosling's *200 Countries, 200 Years, 4 Minutes* (one dot is a character), Ed Hawkins' warming stripes (a diverging ramp on a reference mean, no axes), The Pudding / NYT scrollytelling (one idea at a time, growing axes, pinned notes). Copy none of their charts, layouts or typefaces; never name them in the film.-You are directing a 35–55 second film in the **Data Storytelling** style. The user gives you a topic. You find a real, openly licensed dataset for it and decide everything else: story, shots, sound, captions and timing. Then you deliver a finished film. Follow this guide.+## 1. Essence, and what it is not------## 1. What this style is--**The chart is the film.** Nothing on screen is decoration: every mark is a real number, and every movement is a chart operation that means something. A point lands, an axis grows, the scale rescales, a series morphs into another encoding, a note gets pinned to a value. The data must be real and traceable. You change the framing and never the numbers.+**The chart is the film.** Every mark is a real number and every movement is a meaningful chart operation (a mark lands, an axis grows, the scale changes, a series morphs, a note is pinned). The data is real, openly licensed and traceable. You change the framing, never the numbers.-**Pick the chart the data asks for.** Our demo is a time series, so it is drawn as dots and a line that morph into stripes. That was one choice for one dataset, not the style. Choose the encoding that fits the user's data and story:+**Pick the chart the data asks for:**| The data is about | Chart ||---|---|@@ -25,147 +20,102 @@ You are directing a 35–55 second film in the **Data Storytelling** style. The| where things go | flow / Sankey || change over time | line or dot series, stripes, area |-What stays the same whatever the chart: cream paper, the pencil that draws every mark, notes pinned to real values, axes that grow with the story, chart operations instead of cuts, and sonification (pitch = value). `inkShape`, `pencilStroke` and `stripesFill` in `demo/engine.js` draw bars, areas and map shapes as readily as dots.+Three layers make it a story, not an infographic: **a human scale** (handwritten notes pinned to marks), **a performer** (a physical pencil that draws every mark), and **sonification** (each mark is a pitch; the trend is heard before it is read).-Three layers make it a story rather than an infographic:-1. **A human scale pinned to the data.** Personal, handwritten notes on specific points ("1926 — she is born.") turn an abstract series into a life.-2. **A performer.** A physical pencil draws the series. It gives the style a body that can anticipate, hesitate, flinch and hand the story over.-3. **Sonification.** Each point is a pitch, so the series is also the melody. The audience hears the trend before they read it.+Not a dashboard (one idea at a time), not a keynote with charts (no slides), never decoration.-## 2. Story: what fits this style+## 2. Materials & rendering-| Native power | Story use |-|---|---|-| **One point = one fact** | Start with a single point and a single sentence. The first point is the character's first moment. |-| **Axes grow with the story** | Don't show the chart up front. A drop line becomes the x axis; the y axis arrives when the narration first names the unit. |-| **Pinned annotations** | Early notes are memories (blue pencil). Later notes are records or warnings (red pencil). When the content of the notes changes, the emotional arc changes with it. |-| **Rescale / breaking the frame** | The data pierces the top of the plot, and the chart has to make room: ticks compress and new gridlines appear. This is escalation that only a chart can do. Keep the torn edge as a scar. |-| **Encoding morph** | A line of dots falls into stripes (or bars, or a heat strip) in one beat. This is the signature shot, the reveal of the whole. |-| **Scale switch** | Close-up on one value → the whole series → a longer record. Always real data; never extrapolate for drama. |-| **Sonification** | Pitch = value, rhythm = time density. "Hear" the trend; let a rising series become a rising, more dissonant melody. |+- **Paper**: warm cream, fixed-seed fibre noise and a faint dot grid in world space. **Ink**: dark warm ink for axes and series, pale warm grey for grid and zero line, IBM Plex Mono ticks.+- **Marks**: data dots carry a thin ink ring so pale values stay visible on cream. A mark lands with a short pop and a thin ripple; suppress ripples when marks arrive closer than ~0.1 s.+- **Handwriting** (Caveat) in pencil, per-glyph jitter, graphite grain, written on as the tip dances over the x-height. Leaders are wobbly curves ending in an **un-closed** ring around the mark.+- **The red–blue pencil**: hex body, blue half / red half, sharpened wood cone. Only the tip end shows, from the lower right; its shadow drifts farther and softer with lift; sharp tip, soft body.+- **Layout**: a plot box fixed in world space, a **memory zone** for early notes, every note pinned in **data space** (value + pixel offset) so rescales keep the layout, a bottom band for the caption.-**Story shape (proven in the demo).** A cold open on one point. Tender, sparse early points. A steady middle. Acceleration: the notes get denser, and the pencil hurries. The frame breaks, and the pencil flinches and flips to its red end. A rush. **Everything stops half a beat early; this is the only cut in the film, into silence.** Then the last data point, alone, followed by the whole series in one view. The morph into the other encoding comes next, then the longer record, then an empty cell for the next value ("Next summer?"). The end card lives inside that empty cell.+## 3. Colour logic-Adapting any topic: pick one real dataset and the chart that fits it (§1); for a series, 60–150 points works. Pin 3 human notes to the first marks drawn and 2 record notes to the last. Find the one frame-breaking moment in the data. Give the last point its own silence.+- Colour encodes **one thing: the value**. Diverging data uses a ramp (ColorBrewer RdBu family) centred on the mean of a meaningful reference period, with a symmetric span; data with no natural centre uses one sequential ramp. Everything else is ink on cream.+- **Honesty beats drama**: pale values stay pale; never stretch a ramp to make a change look bigger.+- The two pencil leads have meanings: **blue for memories and human notes, red for records and warnings**. A change of lead marks a turn.+- One `accent` colour may bypass the ramp for a mark that is not data (a logo, a highlight).-## 3. Visual language+## 4. Type & subtitles-- **Paper** `#F6F3EC`, with fixed-seed fibre noise and a faint 24 px dot grid (`#E4DDCF`). Both live in world space, so camera moves read on them.-- **Ink** `#2B2723`: axes 1.4–1.6 px, series line 2.4 px, gridlines `#DDD6C9` 1 px, zero line `#BDB4A5` 1.3 px. Tick numbers are in **IBM Plex Mono** (17–20 px, `#6E665C`).-- **Data dots**: r = 6 px, filled from the ramp, with a 1.5 px ink ring so near-centre pale values stay visible on cream. Landing: a 0.25 s pop (×1.55) and a thin ripple ring. Suppress the ripple for dots closer together than 0.1 s.-- **Diverging ramp** (warming-stripes grammar, ColorBrewer RdBu family), u = (v − centre) / half: `#2166AC` → `#4393C3` → `#92C5DE` → `#D1E5F0` → `#F2EEE8` (centre) → `#FDDBC7` → `#F4A582` → `#D6604D` → `#B2182B` → `#7A0F1E` (beyond +1). Centre = the mean of a reference period, span symmetric (demo: 1971–2000 mean 0.22 °C, half-span 0.85 °C). **Honesty beats drama**: if the early values come out pale, leave them pale.-- **Handwriting**: **Caveat** 30 px world size, blue pencil `#2F5D8A` / red pencil `#A8283A`. Use per-glyph jitter (±1.7° rotation, ±2.5 % baseline) and graphite grain (16 % of pixels knocked out). Write-on is a left-to-right reveal while the pencil tip dances over the x-height. Leaders are wobbly quadratic curves ending at an **un-closed** ring around the dot. Small doodles (three-curl wave, heart) are the same stroke.-- **Headline & caption type**: **Newsreader**. The title (66 px) is the chart's own headline, set in world space above the plot's top-left, and it stays there for the full view.-- **The red–blue pencil** (original design): hex body, blue half / red half, sharpened wood cone `#E3C79C`, tinted lead. Show only the tip end. It enters from the lower right at 35–58° (steeper in dense passages so it never covers fresh dots). Its shadow drifts farther and softer with lift. Depth of field: sharp at the tip, soft along the body; fully defocused when it is a foreground object.-- **Layout rules**: keep the plot box fixed in world space (the demo uses 1500 × 520). Put the value floor low enough to leave a **"memory zone" under the curve** for early notes. Late notes go above-left of their dot. Pin annotations in **data space** (a value offset plus a pixel offset), so a rescale keeps the layout intact. The bottom 150 px belongs to the caption.-- **One-colour exception**: every drawing call takes an `accent` colour that bypasses the ramp (the demo's engine showcase draws a `#D97757` spark).+- **The subtitle is the figure caption**: a text serif (Newsreader), ink colour, left-aligned with the chart, ≤ 2 lines, with a hairline rule above it and a small mono kicker for the range drawn so far. Words appear on their whisper timestamps over a paper-colour band. Hold ≥ max(1.8 s, speech + 0.6 s).+- The title is the **chart's own headline** (Newsreader), set in world space above the plot; it fades when the camera is close and returns with the full view.+- No captions over a signature chart operation or a silence.-## 4. Motion language+## 5. Motion quality-- **The rhythm of the data is the rhythm of the film.** Map the series to a musical grid and accelerate by subdivision, not by tempo. Demo at 90 BPM: 7 points on quarter notes → 24 on eighths → 40 on sixteenths → 27 on thirty-seconds (a point every 2 frames). At 90 BPM every 1/32 note falls on a whole 24 fps frame, so there is zero picture/sound drift.-- **Pencil acting** (anticipation / action / follow-through): it lifts before each tap, lands with its shadow meeting the tip, then gives a tiny rebound. It hurries later. In the rush it trembles like a seismograph needle. **Flinch**: when the data breaks the frame it recoils off the number and freezes for half a beat, *then* lifts and flips end over end to the red lead (0.5 s). **Hesitation**: before the last point it hovers, out of focus, lifts slightly, then descends. **Exit**: after the final question it leaves the frame, and the pencil passes to the viewer.-- **Rescale** as ratchet clicks: four steps on 1/32 notes, each eased over 0.09 beat. The second rescale, in the clarity phase, is smooth.-- **Morph**: stagger the sweep left → right over 0.85 beat. Each mark falls to the band centre (first 45 %), then stretches to a full stripe (ease-out), and loses its ring as it grows. Line segments fade as their left dot starts morphing. Annotations fade as the sweep passes them, then return as tiny pencil marks above the band.-- **No fades to blank, no generic dissolves.** Transitions are chart operations: axis growth, pull-backs, rescale, morph, and the empty cell widening into the end card.+- **The rhythm of the data is the rhythm of the film.** Map the marks to a musical grid; to accelerate, one option is to **divide the beat instead of changing tempo**. Pick a tempo whose finest subdivision lands on whole frames (at 24 fps a minute has 1440 frames; the count of finest notes per minute must divide it), so picture and sound never drift.+- **Pencil acting**: lift before each tap, land with the shadow meeting the tip, a tiny rebound; hurry as data densifies, tremble like a seismograph needle at a peak. It can **flinch** (recoil and freeze), **hesitate** (hover before a mark) and **exit** (hand the story to the viewer).+- **Rescale** reads as ratchet clicks (stepped, each step eased); a calm rescale is smooth.+- **Morph**: a staggered sweep, each mark easing into its new form; notes fade as it passes and return as tiny marks.+- **No fades to blank or dissolves.** Transitions are chart operations: axis growth, pull-backs, rescales, morphs, a cell widening into the next frame.-## 5. Camera language+## 6. Camera grammar-A 2D camera `{x, y, zoom, roll}` over one sheet of paper. **The whole film is one take with a single hard cut**, and the cut *is* the silence.+A 2D camera `{x, y, zoom, roll}` over **one sheet of paper**. A film is one take; a hard cut is rare and meaningful. The moves below are a vocabulary, not a route. Opening and ending come from the topic.-| Beat | Camera |-|---|---|-| Cold open | Extreme close-up on the first dot (≈4×). Tilt up to follow the leader as the note is written. |-| Title | Pull back to 1.55×. The drop line becomes the x axis; the headline typesets above. |-| Early life | Push back in, then track the pencil, with the newest point kept at ~62 % of frame width (past behind, future ahead). Slow pull-out as time speeds up (2.3 → 1.7×). |-| Climb | Pedestal up with the rising curve while a Dutch angle creeps in (0 → −1.5°). |-| Frame break | Punch-in over 2 frames (1.22 → 1.42×) plus decaying shake. A small jolt on the rescale. |-| Rush | Fast pull-out to 1.0×, roll to −3°, constant 2 px tremor. |-| **The cut** | Hard cut into a close-up of the empty slot: dashed column, `2026` label, level horizon. Rack focus from the defocused foreground pencil to its tip as it lands. |-| Reveal | Hold on the last point while its note is written, then pull back to the full view (1.06×). The axis rescales to fit everything. |-| Morph | Locked-off. The transformation is the movement. |-| Scale | Pull and pan (→ 0.72×) to add the earlier record. |-| Echo | Push to the empty cell; it widens into the end card (frame within frame). |--Rules: subjects fill ≥ 1/3 of frame height at key moments (first dot plus note, the century chart, the stripes band). Frozen-pane y labels: when the real axis scrolls off-screen, the tick labels pin to a paper strip on the left edge.--## 6. Sound--- **Three layers.** Ambience changes with the story: room tone → evening crickets → the sea (J-cut before "1933", L-cut after) → cicadas that grow louder and denser with the heat (J-cut before the climb) → open wind after the silence → room tone. **Foley** follows the materials, graphite, paper and a wooden pencil: tick-plus-paper-body taps, band-passed scratch strokes for handwriting, a ruler hiss for axes, a paper puncture with tear crackle for the frame break, a whoosh and a wooden click for the flip, wooden ratchet teeth for the rescale, a travelling paper sweep for the morph. **Music** is the sonification plus a modular bed.-- **Sonification** (`music/score.py`): `midi = 62 + (v + 0.4) × 17`. Values below the centre snap to D major pentatonic (always consonant), mid values to semitones, and hot values are unquantized. The voice is a **low-pass-gate "plonk"**: sine carrier with light FM whose index rises with the value (wood → metal), with amplitude and brightness decaying together. **In dense passages lower each note's level and shorten its decay (≤ 1.5 × the gap)** so it becomes a trembling rising line, not a pile of hits. Detune only the last ~15 points (5 → 45 cents). The note right before the silence is the most dissonant (max detune plus a minor-second shadow). The last point after the silence is the cleanest, highest note.-- **Bed**: detuned-saw pad (Dmaj9 → G/D → D–Bm–G–A → Bb/D–Dm → semitone cluster), soft sine kick, filtered-noise shaker, 16th hats (low-passed at 9.5 kHz), sine sub bass, sample-and-hold blips, a slowly rising drone. After the silence: a D open fifth (no third, no answer), a glissando of all 101 points replayed during the morph, Gmaj7#11 over D for the scale shot, and the **first point's note again** under the end card.-- **Silences**: 1.0 s true digital silence before the last point (all layers). 0.67 s near-silence before the empty cell. The first sound after each is the most important of its section: the last tap plus its note, then the first stroke of the empty cell.-- **Mix**: narration compressed, music ducked about −11 dB and cicadas −6 dB under the voice. Narration SNR in the 300–4000 Hz band is 8.6–16 dB. The foley is "very light", except the final tap. Loudness −14 LUFS, grain 0.-- **Voice**: Kokoro `af_alloy`, speed 0.92, calm and neutral, 5 lines, never over the rush, the silence or the morph. Whisper writes numbers as digits: set `asr` to "For 50 years…" and "…turned 100…".--## 7. Subtitles & titles--- **The subtitle is the figure caption.** Newsreader 42 px ink, left-aligned with the chart at x = 180, baseline y ≈ 985, max two lines. A 1 px rule sits above it with a small mono kicker giving the year range drawn so far (`1926–1958`). Words appear on their whisper timestamps (3-frame rise and fade). The caption flips up when it leaves. A paper-colour fade band rises behind it while it is visible, so chart ink never collides with it.-- Hold ≥ max(1.8 s, speech + 0.6 s) (asserted in `tools/subs.py`). No captions during the rush, the silence or the morph.-- The title is the chart's headline (world space). The end card sits inside the dashed "next cell": title, `DATA STORYTELLING`, a miniature of the stripes plus an empty dashed cell, `Lemo-Opuscar · LemoLab × Claude Opus 5.5`, data, font, voice and music credits (including "2026 value preliminary, retrieved 2026-09-26"), and a handwritten "Her story is fiction. Every number is real."--## 8. Pitfalls we hit--- Picking the wrong CSV column: GISTEMP has J-D and D-N before the seasonal columns. Select by header name (`JJA`), never by index.-- Annotations collide with later data. Pin them in **data space**, keep a memory zone under the curve, and put the first note *above* its dot with a long leader.-- A frame break that is rescaled after 0.17 s is invisible. Hold the pierced state at least half a beat (the pencil's flinch lives there) before the ratchet.-- Right-aligned notes are written left to right, so the pencil must hop from the leader end to the first letter (16 % of the text phase, lifted). Otherwise it teleports.-- `pencilStroke`, `dashedCell` and `dataDot` set `globalAlpha` themselves. Multiply by the incoming alpha, or fades and wipes won't affect them.-- Reverb tails and pulse tails leak across a hard silence. Render pre-cut and post-cut material into separate buffers and zero everything after the stop.-- In tracking shots the world-space title gets cut by the frame edge. Fade it while the camera is close, and bring it back when the full view arrives.-- At 32nd-note density the pencil body lies across fresh dots. Steepen its angle in dense passages.-- `ffmpeg -ss … volumedetect` reports false peaks inside a silence. Verify silence on the decoded samples.-- A baby's laugh (from the TTS or synthesized) sounds uncanny. Use a non-human soft sound (the demo uses one music-box note).--## 9. Production recipe (this repo)--```-styles/dataviz/demo/- data/ GLB.Ts+dSST.csv (as downloaded) + jja.json tools/extract_data.py column → json + story facts- timeline.js 90 BPM grid, year → beat map, every key beat, chart geometry (single source of truth)- engine.js the style: paper, camera, pencil strokes, handwriting, dots, stripes, morph, pencil, caption, shapes- film.js the story: annotations, camera path, pencil activities, chart layers, end card, events for the mix- music/score.py sonification + modular bed (reads events.json) mix.py ambience + foley + narration + ducking- tools/ words.py subs.py cuecheck.py final_asr.py-```-1. Download the dataset and write the extractor. Print every fact the narration will claim.-2. Write `timeline.js` (grid plus year → beat map) before any drawing.-3. Build `engine.js`, then `film.js`, and render gate frames from the real engine (`node core/render/still.mjs … --range`).-4. `sh demo/build.sh` rebuilds everything from scratch in about 2 minutes: extract → TTS → whisper → words → events → score → cuecheck (107 cues, max 0.03 ms) → mix → subtitles → render (1200 frames, ~30 s with 2 workers) → mux (−14 LUFS, grain 0) → styleframe and poster.-5. Review: a 1 s contact sheet from the final mp4 twice (offset by 0.25 s), 0.1 s strips of the break, the cut and the morph, per-line whisper on the final mix, and a sample-accurate silence check.--## 10. Engine usage--`demo/engine.js` (ES module, Canvas 2D, 1920×1080; imports `/core/lib.js`). World units are chart pixels at zoom 1. Call `applyCam(g, cam)` before any world-space drawing.--| Function | What it does | Key parameters |+| Move | Expresses | Can serve ||---|---|---|-| `drawPaper(g, cam, {dots})` | cream paper, fibre noise and dot grid, fixed in world space | `dots` 0–1 grid alpha |-| `applyCam(g, cam)` / `w2s` / `s2w` / `viewRect` | 2D camera transform and conversions | `cam = {x, y, zoom, roll, sx, sy}` (sx/sy = shake in px) |-| `valueColor(v, {center, half, alpha})` / `rampRGB(u)` | diverging stripes ramp | reference-mean `center`, symmetric `half` |-| `pencilStroke(g, pts, o)` | **draw any polyline in pencil**: wobble, taper, graphite grain, write-on; returns the tip | `color, width, progress, seed, wobble, passes, grain` |-| `inkShape(g, path, o)` | **any closed shape** as a pencil-annotated mark: flat fill + hatching + hand outline | `fill` (accent) or `value` (ramp), `hatch, progress` |-| `plotShape(g, path, o)` | sample any path into a dot-and-line data series | `n, r, values, accent, progress` |-| `stripesFill(g, path, values, o)` | fill any closed shape with warming stripes | ramp options, `accent` + `accentIndex` |-| `dotTrail(g, pts, o)` | tapering dot trail (cursor tail / comet) | `color, r0, r1` |-| `handText(g, text, x, y, o)` | handwriting with grain and left→right reveal; returns `{tip, w}` | `size, color, progress, align, zoom` |-| `setType(g, text, x, y, o)` | printed type, letter-by-letter typesetting | `size, font, weight, progress, rise, track` |-| `dataDot(g, x, y, r, fill, o)` | data point with landing pop and ripple | `fresh` (s since landing), `ripple, accent, alpha` |-| `inkLine`, `stripe`, `morphMark(g, u, dot, box, fill)` | series line, one stripe, dot→stripe morph at 0..1 | |-| `leader`, `ringPath`, `wavePath`, `heartPath`, `bracketPath`, `sparklePath`, `quadPath` | annotation geometry | |-| `dashedCell(g, x0, y0, x1, y1, o)` | the dashed "next value" cell, drawn on | `progress, color, dash, gap` |-| `drawPencil(g, o)` | the red–blue pencil (screen space) | `tip [sx,sy], s, lift 0–1.2, flip 0–1 (blue→red), blur, focus, ang` |-| `caption(g, words, t, o)` | figure-caption subtitle with timed words | `t0, t1, kicker, x, y, size` |--Minimal example: a warm orange `#D97757` four-point spark with a cursor tail, drawn in this style (full version: `?engine=1` → `demo/stills/engine_demo.jpg`).--```js-import * as E from './engine.js';-const g = canvas.getContext('2d'), cam = { x: 0, y: 0, zoom: 1, roll: 0 };-E.drawPaper(g, cam); E.applyCam(g, cam);-E.dotTrail(g, Array.from({ length: 9 }, (_, i) => [-300 + i * 26, 170 - i * 14]), { color: '#D97757', r0: 9, r1: 2 });-E.inkShape(g, E.sparklePath(0, 0, 150), { fill: '#D97757' }); // accent bypasses the ramp-E.leader(g, [110, -200], [40, -110], { color: E.P.blue });-E.handText(g, 'the spark, in pencil', 120, -210, { size: 34, color: E.P.blue });-const tip = E.w2s(cam, 150, 0);-E.drawPencil(g, { tip, s: .8, lift: .2, flip: 0 }); // flip: 1 = red end-```+| Extreme close-up on one mark, following its leader | One fact, one life | a single case; a named person |+| Full view first, then dive to one mark | The pattern before the case | a familiar trend; a myth to correct |+| Pull back as axes grow out of the marks | The frame arrives with the unit | naming the measure; widening a claim |+| Track the pencil, newest mark at ~60 % of width | Progress: the past behind, the future ahead | a series in time; a race; a queue |+| Pedestal with rising data, a Dutch angle creeping in | Escalation, unease | runaway growth; a debt |+| Punch-in over 2 frames, decaying shake, jolt on rescale | Surprise, a broken frame | an outlier; a crash |+| Fast pull-out, roll, small constant tremor | A rush | a boom; a cascade; a panic |+| Locked-off | The transformation is the movement | a morph; a slow reading |+| Hold on one mark, then pull back | The part inside the whole | a verdict; context |+| Pull and pan to add more real data | Scale switch | a longer record; the rest of the list |+| Lateral pan across notes in the memory zone | Recollection | a biography; a timeline of events |++Framing: subjects fill ≥ 1/3 of frame height at key moments. When the real axis scrolls off-screen, pin its tick labels to a paper strip at the frame edge (frozen pane).++## 7. Sound palette++- **Ambience** follows the places the notes evoke (J-cuts in, L-cuts out). **Foley** is graphite, paper and wood: tick-and-paper taps, scratches for handwriting, a ruler hiss for axes, a paper puncture for a broken frame, a wooden click for the pencil flip, ratchet teeth for a rescale, a paper sweep for a morph.+- **Sonification** is the music: pitch = value, rhythm = time density. Low values snap to a pentatonic scale, middle ones to semitones, extreme ones unquantized, with detune growing away from the reference. Timbre: a **low-pass-gate "plonk"** (sine + FM whose index rises with the value: wood → metal). Dense passages: quieter notes, decay ≤ 1.5 × the gap.+- **Bed**: detuned-saw pad, soft kick, noise shaker, low-passed hats, sine sub, sample-and-hold blips, drones; harmony can darken or brighten with the data.+- **Silence** is a tool: true digital silence (all layers) where the data should be heard alone, before a key mark, a morph or a verdict; the first sound after it matters most.+- **Mix**: compressed calm, neutral narration, music ducked ~−11 dB, foley light except key taps; −14 LUFS, no grain. The voice never talks over a rush, a silence or a morph.++## 8. Native moves++A menu: use the ones your story needs.++- **One mark = one fact.** *Fits content like:* the first store a chain opened; the first patient of a trial; the first satellite launched.+- **Axes grow with the story.** The y axis arrives when the narration first names the unit. *Fits content like:* revenue; a city's population; vaccination rates.+- **Pinned annotations.** Their content and colour carry the arc. *Fits content like:* an athlete's season; a family's migrations; releases on a usage curve.+- **Breaking the frame.** The chart must make room; the torn edge stays as a scar. *Fits content like:* a viral spike; a price bubble; a record-breaking flood.+- **Encoding morph.** Bars into a waffle, a map into a ranking, a line into a slope: the reveal of the whole. *Fits content like:* a budget as units of people; countries as a ranking; daily steps as a year strip.+- **Scale switch.** One value → the series → a longer real record, never extrapolated. *Fits content like:* one day's energy use → a year; one species count → a region.+- **The empty next cell.** A dashed slot for the value nobody knows yet. *Fits content like:* next year's election; the next launch; tomorrow's reading.++## 9. Pitfalls of the medium++- Select data columns by header name, never by index; print every fact the narration claims.+- Notes collide with later data → data-space pins, a memory zone.+- A frame break rescaled too fast is invisible → hold the pierced state ≥ half a beat.+- Right-aligned notes are still written left to right → the pencil hops to the first letter.+- Helpers that set `globalAlpha` must multiply the incoming alpha, or fades skip them.+- Tails leak across a hard silence → render before/after in separate buffers; verify on decoded samples.+- In dense passages the pencil body lies across fresh marks → steepen its angle.+- Synthesized human sounds (a laugh) are uncanny → use a soft non-human sound.++## 10. Engine++`demo/engine.js` (Canvas 2D, world units = chart pixels at zoom 1) is the style: paper, camera, value ramps, `pencilStroke` (any polyline in pencil), `inkShape` (any closed shape: bars, areas, map shapes), `plotShape`, `handText`, `dataDot`, `morphMark`, annotation geometry, `drawPencil`, `caption`. `demo/music/score.py` holds the sonification. The function table and a minimal example are in [DEMO.md](DEMO.md#engine-reference).++## 11. Variation space++You decide the dataset, the chart, the human scale, the notes, the opening, the ending, the camera path, the pacing and the silences. All far from our demo:++- Structures: **a ranked race** (bars climb and overtake; one bar is the character; a newcomer breaks the frame from below); **a map that becomes a count** (dots gather on a map as events happen, then fall into a unit chart of people in one morph); **before → after dialogue** (two years face each other as a slope chart; one line left unfinished).+- Openings: **the finished chart** (the whole pattern is already drawn; the film works backwards); **the object before the axis** (a pencil drawing of the thing measured, a ticket, a shoe, becomes the first mark); **the question first** (an empty plot with only the unit and a handwritten question; the pencil hovers).+- Endings: **one mark, close** (end on a single value and its note, never the full view); **back to the object** (the chart folds into a drawing of the thing it measured); **the headline revised** (the pencil strikes a word of the title and writes the true one).++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/dataviz/TREATMENT.md b/styles/dataviz/TREATMENT.mddeleted file mode 100644index b9b9a92..0000000--- a/styles/dataviz/TREATMENT.md+++ /dev/null@@ -1,242 +0,0 @@-# Data Storytelling · 导演方案(Treatment)--**片名** *A Hundred Summers*(一百个夏天)-**时长** 约 50 秒(90 BPM,4/4,1 拍 = 0.667 s,1 小节 = 2.667 s,共 18¾ 小节)| **画幅** 1920×1080 | **帧率** 24fps,全部逐帧平滑(数据图表是精确的数字运动,不做步进)-**一句话** 一支红蓝两头的铅笔,在一张米色纸上替一个 1926 年夏天出生的女人画她的一生:每个夏天一个点,点的高度是那年夏天全世界的平均气温,点落下时发出一个音。童年的点安静地挤在一起,像一首摇篮曲;中年以后点开始往上爬,越爬越快、越来越高、越来越不和谐,冲破图表的天花板;音乐在 2025 年戛然而止(比小节线早半拍)——全片唯一的一刀——铅笔悬在空白处,落下今年的最后一个点:她的第一百个夏天,也是有测量以来最热的夏天。然后整条折线在一拍之内倒下、变成一整条从蓝到红的色带,最后一格空着:*Next summer?*-**主题一句话** 一百年的变暖,刚好装得下一个人的一生;下一格还没画。-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么(语法) | 刻意不学 |-|---|---|---|-| **Hans Rosling《200 Countries, 200 Years, 4 Minutes》(BBC, 2010)** | 数据点在动、有人在讲;**一个点就是一个"角色"**,观众跟着它走;讲述者的语气平静,数字本身制造戏剧 | 不做气泡图、不做真人合成、不用他的配色和版式 |-| **Ed Hawkins 的 warming stripes(2018)** | **一条条色带讲完一百年**;色阶以一个参考期平均为中心、对称拉开(本片按他的做法以 1971–2000 平均为色阶中心);去掉所有坐标,只剩颜色 | 不复刻他的具体图(数据集、年份范围、尺寸比例都不同);片中不出现他的名字或图的名称;色带只在签名镜头之后出现,而且是由折线"变"出来的 |-| **The Pudding / 纽约时报滚动叙事图表** | **一次只讲一个想法**;坐标轴跟着故事长出来,不是一开始就画完;注释是钉在数据点上的小段文字 + 细引线;标题在图表左上的空白处;说明文字就是图注 | 不复刻任何一篇的具体图表设计、交互、字体;不做滚动网页的 UI(没有滚动条、没有按钮) |-| **图表批注的手写传统(编辑的红蓝铅笔、科学家的实验记录本)** | 手写注释 + 细引线 + 随手的小涂鸦(一道浪、一颗心)让冷的图表变成个人的;红蓝两头的编辑铅笔本身就是一条色阶 | 不做手账 / 剪贴簿风格,纸面保持干净的图表版式 |--**和同库其它风格的区别**:dark-keynote 是暗色产品发布 UI;iso-infographic 用等距插图讲流程;swiss-motion 是网格排版。这里**图表本身就是叙事、数据是真的**:每一个点的高度、颜色、音高都来自 NASA 的实测值。-------## 二、数据(真实,不编)--- **来源**:NASA GISS Surface Temperature Analysis(GISTEMP v4),全球海陆表面温度距平表 `GLB.Ts+dSST.csv`(美国政府作品,公版),2026-09-26 下载,原样存于 `demo/data/`,由 `demo/tools/extract_data.py` 取出 **JJA 列(6–8 月,北半球夏季的全球平均距平,相对 1951–1980 平均,单位 °C)** → `demo/data/jja.json`。-- **她的一生** = 1926–2026,**101 个夏天**(她 1926 年夏天出生,2026 年夏天满一百岁)。-- 片中用到的事实(全部由脚本从数据算出,见 `extract_data.py` 输出):- - 1926–1976 这五十年,夏季距平在 −0.38 ~ +0.17 °C 之间徘徊("For fifty years, her summers barely moved.");- - 1978 年是最后一个低于基准线(0 = 1951–80 平均)的夏天,此后再没回去("…and they never came back down.");- - 1998(+0.70)是当时的纪录夏天;2026(+1.28)是 1880 年有记录以来最热的夏天("It was the warmest ever measured.")。-- 她的个人事件(出生、第一次看海、女儿出生)是虚构的注释;**数字一个都不改**。-------## 三、为什么这个媒介讲这个故事(原生能力 → 故事用法)--| 数据叙事的原生能力 | 故事里怎么用 |-|---|---|-| **一个点 = 一个事实** | 一个夏天一个点。第一个点就是她出生的那个夏天:一个淡蓝色的小点 + 手写 "1926 — she is born." 抽象的全球平均变成一个人的记忆 |-| **坐标轴跟着故事长** | 开场只有一个点;第二小节 x 轴从这个点向右画出去;旁白说到"温度"时 y 轴才出现("0 = 1951–80 average");年代刻度在铅笔经过时才写上去 |-| **注释钉在数据上** | 早年的注释是个人记忆(蓝铅笔:出生、看海 + 一道小浪、女儿出生 + 一颗小心),后来的注释变成纪录(红铅笔:"1998 — hottest yet")。注释的内容从"记忆"变成"警告",就是情绪弧 |-| **坐标轴重新缩放(rescale)** | 数据冲破图表上沿——图表"装不下了"——y 轴刻度被压缩、网格线往下滑、上面长出新的刻度。这是只有图表才有的"镜头运动",用在不安升级的两个拍点上 |-| **数据声音化(sonification)** | 每个点的温度 = 一个音高,**曲线就是旋律**。越热音越高、越不和谐(音阶量化逐步放开 + 双振荡器失谐)。观众"听见"变暖 |-| **图表变形(line → stripes)** | 签名镜头:101 个点在一拍之内从左到右依次倒下、拉长,变成 101 条色带;每一条变形的那一帧,正好是它那个音被重新弹一遍的那一刻——她的一生在 0.67 秒里被重放成一个上行滑奏 |-| **尺度切换** | 一个夏天的特写 → 她的一百年 → 1880–2026 整个测量记录(她出生前的 46 个夏天在左边铺开,蓝得很平静)。最后一格空着 |-------## 四、情绪弧与"表演"--**情绪弧**:温柔的怀旧(稀疏的点、蓝铅笔手写、摇篮曲一样的音)→ 平稳(五十年的点挤在一起)→ 逐渐不安(点开始爬、蝉声渐起、镜头开始倾斜)→ 冲破(天花板被戳穿、铅笔翻转成红头)→ 失控(点密到像地震仪的针在抖)→ **全片唯一一刀:静音** → 清醒(最后一个点、旁白、整条曲线全貌)→ **变形成色带(签名镜头)** → 回响(尺度拉远;最后一格空着:*Next summer?*)。-**一个主体**:她的时间线(由那支铅笔替她"演")。**一个目标**:画完她的一百个夏天。**一次转折**:画到最后,她的一生变成了一整条红起来的色带——而下一格还空着。--**铅笔是全片唯一的"演员"**(原创造型:红蓝两头的编辑铅笔,只露出笔尖一段,从右下方入画,像一只右手在写):-- **预备 / 动作 / 跟随**:每一次落点 = 抬起(预备,影子离开笔尖)→ 点下(动作,影子与笔尖重合,"嗒")→ 轻微回弹(跟随)。早年每一下都从容;后来越点越急;32 分音符段笔尖像地震仪的针在纸上抖。-- **翻转**(26.67–27.3 s,1998 冲破天花板的那一拍):先让观众看清点戳在天花板外面(0.67 s),铅笔同时抬起、首尾翻转 180°,蓝头换成红头("嗖—咔"),之后的注释都是红色。这是"她意识到了"的那一刻,不用一句台词。-- **犹豫**(31.0–32.0 s,静音):铅笔悬在 2026 的空位上方,失焦的大笔身占满前景;一动不动 1 秒;然后微微上抬(预备)——落下。-- **退场**:画完空格、写完 "Next summer?",铅笔抬起、从右下方出画。**笔留给观众**。-------## 五、原生招式(放在情绪最高点)--1. **数据声音化**(贯穿全片,高点在 27–30.7 s):101 个点 = 101 个音。映射:`midi = 62 + (v + 0.4) × 17`(v = 距平 °C;1929 年 −0.38 → D4 附近,2026 年 +1.28 → G6 附近)。**和声规则随温度放开**:v < 0.25 量化到 D 大调五声音阶(永远和铺底和谐);0.25 ≤ v < 0.7 量化到半音(开始出现 F、C、G#,和 D 大调铺底打架);v ≥ 0.7 不再量化 + 第二个振荡器失谐 `(v − 0.7) × 60` 音分(拍频"发抖")。音色是模块合成器的**低通门"咚"声(LPG plonk)**:FM 指数随温度从 0.3 升到 4,冷的时候像木头,热的时候像金属。节奏从四分音符 → 八分 → 十六分 → 三十二分音符:**同一个 90 BPM,点越来越密**。-2. **签名镜头:折线变成条纹**(37.33–38.67 s):一拍之内,点从左到右依次倒下、拉成竖条、铺满色带,折线段被"吸"进条纹里;每一条变形的帧 = 它的音在滑奏里响起的帧。变形完停 2 拍给观众看清。-3. **尺度切换**(32.0 → 42.67 s):2026 这个点的特写 → 拉远到她的一百年全貌 → 变成色带 → 再拉远到 1880–2026 整个记录,一道铅笔括号标出 "her hundred summers"。-4. **坐标轴破顶 + 重缩放**(26.67 s、30.83 s):点戳穿上沿("啪"一声,天花板线上留下一道带毛边的缺口,之后一直留着像一道疤),y 轴一拍之后分四下"咔咔咔咔"压缩重排(三十二分音符的棘轮)。-5. **首尾两个数字**:第一个点落下时旁边排出它的真实数值 `−0.22°C`,2026 落下时排出 `+1.28°C`。开场就告诉观众"这个点是一个数",结尾用同一个排版收住。-------## 六、镜头表(2D 摄影机 = 一张纸上的一台摄影机)--**全片是一个镜头走在一张纸上,只切一刀**:音乐在 2025 年戛然而止的那一帧,硬切到 2026 空位的特写——全片唯一的剪辑点,也是全片唯一的静。其余所有"剪辑点"都是**卡在拍点上的机位变化**(快推、急停、破顶震动),一个动作 = 一个声音 = 一次机位变化。-**2D 纵深**:纸面(格线、数据、注释)一层;铅笔在纸面之上,有柔和投影(离纸越高影子越远越虚)和景深(笔身越往后越虚);机位移动时铅笔和纸面有视差。镜头运动全部 24fps 逐帧平滑,微弱的"手持呼吸"只在追拍段出现。--| # | 时间 (s) | 景别 | 角度 | 运动 | 画面 | 为什么这样拍 |-|---|---|---|---|---|---|---|-| C1 | 0.00–2.67 | **大特写**(点 + 手写占画面 60%) | 俯视纸面(正交) | 定在点上 → **上摇**跟着笔写上去(4.1→3.8×) | 空白纸面;铅笔带着影子入画、悬停;第 1 拍"嗒"——第一个点 + `−0.22°C`;蓝铅笔画圈、引线向上、写 "1926 — she is born." | 一个人从一个点开始。开场 3 秒只有一个点、一个音、一句手写;镜头跟着笔走,笔是全片的"眼睛" |-| C2 | 2.67–5.33 | 中景 | 同上 | **拉**(3.5→2.0×) | x 轴从这个点向右画出去(尺子"嘶");点的左上方排出片名 *A Hundred Summers* 和一行等宽小字 | 拉开 = 这个点属于一张更大的图;片名就放在图表左上角的空白处(它最后会成为这张图的标题) |-| C3 | 5.33–18.67 | 中景 → 中全景 | 同上 | 先推回 2.3×,再**横移跟拍**(跟着笔尖向右),同时缓慢拉远到 1.8× | 1927–1957 的点一个个落下;y 轴出现,轴移出画面后刻度标签"冻结"在画面左边缘的一条纸带上(像表格的冻结窗格);1933 看海(小浪涂鸦) | 最新的点保持在画面约 62% 处:身后是走过的夏天,前面是留白的未来 |-| C4 | 18.67–21.33 | 中景 | 同上 | 微推 1.55→1.7× | 1958 女儿出生,小心涂鸦 | 生命里最亲的一刻,镜头往里靠一点 |-| C5 | 21.33–26.67 | 中全景 | **荷兰角渐起** 0°→−1.5° | **升**(跟着爬升的曲线向上移)+ 拉远 1.7→1.25× | 1966–1997 十六分音符;点越过基准线后再没回去 | 曲线往上爬,镜头被它拖着往上走;画面开始歪 = 不安 |-| C6 | 26.67–28.67 | 近景 | −1.5° | **快推**(2 帧 1.22→1.42×)+ 震动;重缩放时再小震一下 | 1998 的点戳穿天花板;停住让观众看清;铅笔翻转成红头;y 轴四下棘轮重缩放;红笔写 "1998 — hottest yet" | 一个动作一个声音一个机位变化:破顶这一下要"撞"到观众 |-| C7 | 28.67–31.0 | 中全景 | −1.5°→−3° | 急拉 + 跟拍,持续细震 | 32 分音符冲刺,2024 第二次破顶,笔尖像地震仪的针 | 失控:镜头追不上数据 |-| **✂** | **31.0** | | | **硬切(全片唯一一刀)** | | 音乐一停,画面也换了一个世界 |-| C8 | 31.0–32.0 | **特写**(空位 + 前景铅笔) | 0°(摆正) | 极慢推 + **焦点转移**(前景失焦的铅笔 → 落下时笔尖变实) | 2026 的空位:一条虚线竖列 + 等宽小字 `2026`;失焦的铅笔大笔身悬在前景;静 | 静音里观众只能看着那个空位;镜头摆正 = 从慌乱到清醒 |-| C9 | 32.0–37.33 | 特写 → **全景** | 0° | 定 → **拉**(1.6→1.0×) | 2026 的点落下(全片最重要的声音);红铅笔写 "2026 — her 100th summer";拉出百年曲线全貌,y 轴重缩放装下所有点 | 先让观众看清这一个点,再给出它在一生里的位置 |-| C10 | 37.33–40.0 | 全景 | 0° | **固定机位** | **签名镜头**:折线一拍之内变成 101 条色带;注释缩成色带上方的小铅笔记号 | 变形本身就是运动,机位不能抢戏 |-| C11 | 40.0–42.67 | **远景** | 0° | **拉 + 摇**(1.0→0.72×,向左) | 1880–1925 的色带在左边铺开;铅笔括号 "her hundred summers" | 尺度揭示:她的一生放回整个测量记录 |-| C12 | 42.67–45.33 | 远景 → 全景 | 0° | 缓推向右端 | 静一拍;右端空格被虚线画出,写 "Next summer?";铅笔出画 | 回响:开场是一个点,结尾是一个空格 |-| C13 | 45.33–50.0 | **画中画** | 0° | 推进空格 | 空格横向撑开成一个虚线框,片尾卡写在框里 | 片尾卡就是"下一格"——框内之框 |--**镜头运动统计**:推、拉、横移跟拍、升、荷兰角、快推+震动、焦点转移、摇、画中画 = 9 种;景别覆盖大特写 / 特写 / 近景 / 中景 / 中全景 / 全景 / 远景。-------## 七、分镜节拍表(按秒;k = 拍号,t = k × 0.667 s)--| 段 | 时间 (s) | 拍 k | 画面 / 表演 | 旁白(字幕) |-|---|---|---|---|---|-| **I 出生** | 0.00–0.67 | 0–1 | 空白纸面 + 淡格点;静(只有房间底噪);铅笔带影子从右下入画、悬停(预备) | |-| | 0.67 | 1 | **"嗒"——第一个点**(1926,淡蓝,−0.22)+ 第一个音 | |-| | 1.0–2.67 | 1.5–4 | 蓝铅笔写 "1926 — she is born.",引线 + 圈 | |-| **片名** | 2.67–5.33 | 4–8 | 拉镜;x 轴画出;*A Hundred Summers* + `global summer temperature · one dot per summer`;铺底进 | |-| **II 童年** | 5.33–9.33 | 8–14 | 1927–1933 四分音符每拍一点(摇篮曲);y 轴出现,`0 = 1951–80 average` | L1 5.67:"Each dot is one summer: the whole planet's average temperature." |-| | 9.33 | 14 | 1933:蓝笔 "1933 — the sea." + 一道小浪(海浪声 J-cut 从 8.8 s 进) | |-| | 10.67–18.67 | 16–28 | 1934–1957 八分音符;年代刻度随笔经过写出;海浪声延续到 12 s 淡出(L-cut) | L2 12.0:"For fifty years, her summers barely moved." |-| **女儿** | 18.67 | 28 | 1958:"1958 — a daughter." + 小心(写字时数据音停 1.5 拍);画完小心时一个八音盒音(19.8 s) | |-| | 20.17–21.33 | 30.25–32 | 1959–1965 十六分音符(女儿出生后,时间开始变快) | |-| **III 爬升** | 21.33–26.67 | 32–40 | 1966–1998 十六分音符;1978 后再没低于 0;镜头升 + 开始倾斜;蝉声渐起(J-cut 从 20.0 s 进) | L3 21.5:"Then the dots began to climb, and they never came back down." |-| **破顶** | 26.67 | 40 | 1998(+0.70)戳穿上沿;快推 + 震;停住 0.67 s 让观众看清;铅笔抬起、首尾翻转成红头(26.77–27.3) | |-| | 27.33–27.67 | 41–41.5 | y 轴四下棘轮重缩放(上限 +0.6 → +1.2 °C),网格下滑、上面长出新刻度 | |-| | 27.67–28.67 | 41.5–43 | 红笔写 "1998 — hottest yet" | |-| **失控** | 28.75–31.0 | 43.1–46.5 | 1999–2025 三十二分音符冲刺(每 2 帧一个点);2024 第二次破顶;笔尖抖成地震仪 | |-| **✂ 静** | 31.0–32.0 | 46.5–48 | 硬切:2026 空位特写(虚线竖列 + `2026`);前景失焦铅笔悬停 → 微抬 | (无) |-| **IV 最后一个点** | 32.0 | 48 | **"嗒"——2026(+1.28),最高的一个音,单独一个** | |-| | 32.3–37.33 | 48.5–56 | 红笔 "2026 — her 100th summer" + `+1.28°C`;拉出百年全貌,y 轴装下全部 | L4 32.67:"This summer, she turned one hundred. It was the warmest ever measured." |-| **签名:变形** | 37.33–38.0 | 56–57 | 101 个点从左到右倒下成条纹(滑奏同步) | |-| | 38.0–40.0 | 57–60 | 停住看;注释缩成色带上方的铅笔小记号(出生 / 浪 / 心 / 1998 / 100) | |-| **尺度** | 40.0–42.67 | 60–64 | 拉远,1880–1925 色带在左边铺开;括号 "her hundred summers" | |-| **回响** | 42.67–43.33 | 64–65 | 静一拍(近乎静音:只剩风的底) | |-| | 43.33–45.33 | 65–68 | 虚线空格一笔笔画出(4 下"嗒");"Next summer?";铅笔出画 | L5 43.6:"The next summer hasn't been drawn yet." |-| **片尾卡** | 45.33–50.0 | 68–75 | 空格撑开成虚线框:片名 / Data Storytelling / Lemo-Opuscar / LemoLab × Claude Opus 5.5 / 素材署名 | |--**表演节奏以观众为准**:每条注释写完后至少留 1.8 s 在画面上(注释是钉在图上的,之后一直留着,所以不会被后面的点"冲走");每句字幕 ≥ max(1.8 s, 语音 + 0.6 s)。-------## 八、Cue map(音乐先行;数据声音化 + 模块合成器,90 BPM,D)--所有时间由 `demo/timeline.js` 一个文件生成(画面 / 配乐 / 拟音 / 自检共用)。**101 个点的时间就是 101 个音的起音时间**,全部落在 1/32 音符网格上(24fps 下最大取整误差 ≤ 21 ms,由 cuecheck 核对画面事件帧)。--| 段 | 小节 / 拍 | 时间 (s) | 配器(数据旋律之外) | 数据音的节奏 | 情绪 | 卡点 |-|---|---|---|---|---|---|---|-| 出生 | 1 / k0–4 | 0–2.67 | 无音乐;k1 第一个音单独响 | 单音 | 屏息、温柔 | 0.67 第一个点 |-| 片名 | 2 / k4–8 | 2.67–5.33 | **暖模拟铺底进**(双锯齿失谐 + 低通 700 Hz,Dmaj9) | — | 打开 | 2.67 铺底 + x 轴;3.33 片名 |-| 童年 | 3–4 / k8–16 | 5.33–10.67 | 铺底 Dmaj9 → G/D;**轻脉冲**进(软正弦底鼓 1、3 拍) | 四分音符 | 摇篮曲 | 每拍一点;9.33 看海 |-| 平稳 | 5–8 / k16–32 | 10.67–21.33 | + 亚低音贝斯(正弦,带滑音,每小节根音 D–Bm–G–A)+ 八分音符滤波噪声沙锤 | 八分音符 | 平静、日常 | 18.67 女儿 |-| 爬升 | 9–10 / k32–40 | 21.33–26.67 | 铺底转 Bb/D → Dm(变暗);+ 十六分音符 hi-hat;采样保持滤波"哔啵";一个缓慢上升的嗡鸣 | 十六分 | 不安 | 23.3 1978(最后一次低于 0)|-| 破顶 | 11 / k40–43 | 26.67–28.67 | **重拍**:低音 + 金属"铛";数据音停 3 拍,鼓和铺底继续推 | 停 | 冲击 | 26.67 破顶;27.2 翻转落定"咔";27.33/27.42/27.5/27.58 棘轮四下 |-| 失控 | 11–12 / k43–46.5 | 28.67–31.0 | 全部叠满:底鼓加倍、嗡鸣升高、铺底变成半音簇 | **三十二分** | 慌 | 30.83 第二次破顶;**31.0 全部停住(第 3 拍的后半拍,比预期早半拍)** |-| **静** | 12½ / k46.5–48 | 31.0–32.0 | **真静音**(连房间底噪都切到 −70 dB) | — | 屏息 | — |-| 最后一个点 | 13–14 / k48–56 | 32.0–37.33 | 32.0 **单独一个最高音**(长余韵);k52 起铺底回来:D 空五度(没有三音 = 不给答案)| 单音 | 清醒 | 32.0 2026 |-| 变形 | 15 / k56–57 | 37.33–38.0 | **滑奏**:101 个音按年份顺序在一拍内重放(从 D4 附近一路爬到 G6)+ 纸面扫过的风声 | 101 音 / 0.67 s | 恍然 | 37.33–38.0 每条色带 = 每个音 |-| 看 | 15–16 / k57–60 | 38.0–40.0 | 滑奏余韵 + 铺底 Dsus2 | — | 静静看 | |-| 尺度 | 16–17 / k60–64 | 40.0–42.67 | 铺底打开到 Gmaj7#11,低音 D 持续;非常轻的风 | — | 辽阔 | 40.0 拉远 |-| 回响 | 17–18 / k64–68 | 42.67–45.33 | **近乎静音一拍**(42.67–43.33)→ 虚线空格 4 下铅笔"嗒"(没有音高:空格没有温度)| — | 留白 | 43.33 / 43.5 / 43.67 / 43.83 |-| 片尾 | 18–19 / k68–75 | 45.33–50.0 | 最后一个音:**1926 年那个音**再响一次(首尾呼应),D 空五度延音到结束 | 单音 | 回响 | 45.33 片尾卡 |--**配器约束**:不用钢琴、不用弦乐。全部 numpy 合成的"模块合成器"声音:LPG plonk(数据音)、双锯齿铺底、正弦亚低音、软正弦底鼓、滤波噪声沙锤 / hi-hat、采样保持滤波点缀。配乐 fork 一个子 agent 按本表 + `timeline.json` 写。-------## 九、声音设计表(三层:环境底 / 拟音 / 音乐)--| 段 | 环境底 | 主要拟音(材质:石墨、纸、木杆铅笔) | 音乐状态 |-|---|---|---|---|-| 出生 0–2.67 | 安静的房间 + 很远的夏夜蟋蟀(−40 dB) | 铅笔落点"嗒"(石墨轻敲纸 + 纸面低频),铅笔写字"沙沙"(带通噪声随笔画起落) | 只有第一个音 |-| 片名 2.67–5.33 | 同上 | 尺子拉线"嘶——"(x 轴);片名排字无声(让铺底进来) | 铺底进 |-| 童年 5.33–10.67 | 蟋蟀;**海浪**(J-cut 8.8 s 先于"1933"进,L-cut 延续到 12 s) | 每个点一"嗒";y 轴拉线;小浪涂鸦"沙" | 铺底 + 轻脉冲 |-| 平稳 10.67–21.33 | 蟋蟀渐隐 | "嗒"变密;年代刻度手写短"沙";1958 画完小心:一个八音盒音 D6 + A5(物理建模,很轻) | + 贝斯 + 沙锤;旁白下闪避 −11 dB |-| 爬升 21.33–26.67 | **蝉鸣**(J-cut 20.0 s 进,随温度越来越响、越来越密:带通噪声 + 40–60 Hz 调幅) | "嗒"变成连串的"嗒嗒嗒" | 变暗 + hi-hat + 嗡鸣 |-| 破顶 26.67–28.67 | 蝉鸣 | 纸被戳破"啪"+ 细小撕裂;铅笔翻转"嗖—咔";轴重缩放 = 刻度滑动棘轮"咔咔咔咔";红笔写字"沙沙" | 重拍 |-| 失控 28.67–31.0 | 蝉鸣最响 | 笔尖抖动 = 密集的石墨刮擦;第二次破顶"啪" | 叠满、三十二分 |-| **静 31.0–32.0** | **全切**(真静音) | 无 | 无 |-| 最后一个点 32.0–37.33 | 很轻的风(空旷) | **2026 的"嗒"**(全片最清楚、最干的一下,无混响);红笔写字"沙沙" | 单音 → 空五度铺底 |-| 变形 37.33–40.0 | 风 | 纸面扫过"呼——"(左→右声像跟着变形走)+ 101 个极轻的纸片翻落 | 滑奏 |-| 尺度 40.0–42.67 | 风 + 房间 | 铅笔画括号"沙——" | 铺底打开 |-| 回响 42.67–45.33 | 近乎静音 → 房间底噪 | 虚线空格 4 下"嗒"(没有音);"Next summer?"沙沙;铅笔离开纸面 | 无 → 最后一个音 |-| 片尾 45.33–50.0 | 房间底噪 | 无 | 1926 的音 + 空五度 |--**混音**:旁白压缩后置前,音乐在旁白下闪避约 −11 dB,蝉鸣闪避 −6 dB;拟音"很轻"(风格说明要求),但 2026 的"嗒"单独推到拟音里最响。**两处真静音**:31.0–32.0(之后第一声 = 2026 的点 + 音);42.67–43.33(之后第一声 = 空格的第一笔)。**声音转场**:J-cut ×2(海浪、蝉鸣都先于画面进),L-cut ×2(海浪延续到下一段、2026 的余韵一直延续到变形)。响度 −14 LUFS,mux grain = 0。-------## 十、画面系统--- **纸**:米色 `#F6F3EC`,极淡的纤维噪声(随机种子固定在纸上,跟着机位走)+ 很淡的 5 mm 格点 `#E7E1D5`(给摄影机运动一个参照)。-- **墨**:轴线 / 折线 `#2B2723`(折线 2.5 px),网格线 `#DDD6C9` 1 px,刻度数字 IBM Plex Mono 20 px `#6E665C`。-- **数据点**:半径 6 px,填色 = 色阶,1.5 px 墨色描边(保证接近中心的浅色点在米色纸上也看得见)。-- **色阶**(warming stripes 语法,中心 = 1971–2000 平均 0.22 °C,半幅 0.85 °C):`#2166AC` → `#4393C3` → `#92C5DE` → `#D1E5F0` → 中心 `#F2EEE8` → `#FDDBC7` → `#F4A582` → `#D6604D` → `#B2182B` → 超出上限 `#7A0F1E`。色带有 1 px 墨色外框。-- **手写**:Caveat(OFL),蓝铅笔 `#2F5D8A`、红铅笔 `#A8283A`,石墨颗粒质感(文字填色后用噪声挖掉 12% 像素);写字 = 从左到右的揭示 + 笔尖沿基线上下跳动地跟随。引线是略带抖动的二次曲线,数据点外画一个没闭合的小圈。-- **标题 / 图注**:Newsreader(OFL)。片名 96 px 500;字幕 42 px。-- **铅笔**(原创):红蓝双头编辑铅笔,六棱笔杆(蓝 `#2F5D8A` / 红 `#A8283A` 两半)、削开的木头锥 `#E3C79C`、石墨芯;只露出笔尖一段,从右下方约 35° 入画;投影 `rgba(70,50,30,.18)` 高斯模糊,离纸越高越偏越虚;笔身景深:离笔尖越远越虚。-- **唯一彩色口子**(引擎通用):任意元素可以指定 `accent` 颜色,绕过色阶保持自己的颜色。-------## 十一、字幕设计(字幕 = 这张图的图注)--- **位置**:画面左下,与图表左边缘对齐(x = 180),基线 y ≈ 985,最多两行;上方一条 1 px 墨色细线(图注线),线左端一个 IBM Plex Mono 18 px 的小标签写当前画到的年份区间(`1926–1933`)。-- **字体**:Newsreader 42 px Regular,墨色 `#2B2723`;逐词出现(whisper 逐词时间戳,每个词 3 帧淡入 + 上移 6 px),换句时整条图注向上翻走(滚动叙事的"下一步")。-- **规则**:每句 ≥ max(1.8 s, 语音 + 0.6 s);静音段、变形段不出字幕;图表构图始终把下方 150 px 留给图注,数据和注释不进这个区域。-- **片名卡**是图表自己的标题(世界坐标里的一段排版,最后留在百年全貌的左上角);**片尾卡**在"下一格"虚线框里。-- 另交 `dataviz.srt`,与烧录字幕同源。--**旁白**(Kokoro `af_alloy`,平静中性,speed ≈ 0.92;备选 `bf_alice`)--| # | 时间 | 文本 |-|---|---|---|-| L1 | 5.67 | Each dot is one summer: the whole planet's average temperature. |-| L2 | 12.0 | For fifty years, her summers barely moved. |-| L3 | 21.5 | Then the dots began to climb, and they never came back down. |-| L4 | 32.67 | This summer, she turned one hundred. It was the warmest ever measured. |-| L5 | 43.6 | The next summer hasn't been drawn yet. |-------## 十二、对风格说明的调整(及理由)--- **时长约 50 s(说明参考 35–45 s)**:101 个点要让观众先"学会"一点 = 一个音(前 7 个点每拍一个),2026 前的静音、变形后的停留、尺度揭示和"Next summer?"都需要完整的呼吸;片尾卡还要留够读署名的时间。已经把点的节奏压到 32 分音符,不再注水。-- **加了一个"演员":红蓝两头的铅笔**。说明里的主体是一条时间轴,没有角色;但"表演"(预备/动作/跟随、犹豫、翻转)需要一个身体。铅笔是做图表的手的延伸,它的两头正好是色阶的两端,翻转 = 转折。它只露出笔尖,不抢数据的戏。-- **"再拉远到更长的时间尺度"用真实的 1880–2026 测量记录**,不引入古气候重建(那需要另一套数据和不确定度表达,30 秒讲不清,也不能编)。-- **全片一个镜头、只切一刀**:数据叙事的力量在连续性(同一张图、同一支笔);唯一的一刀给静音,让"切"本身成为事件。-- **不做纪录旗标**:试想过每个纪录年打一个红色小旗,但会和注释、破顶抢"一次只讲一个想法";纪录只用两条注释(1998、2026)和两次破顶来讲。-------## 十三、关卡 1 交付(风格帧直接用真实引擎渲出)--- `demo/stills/frame_v1_1_first_summer.jpg`(2.3 s):一个人的第一个夏天——大特写,第一个点 + `−0.22°C` + 蓝铅笔 "1926 — she is born."-- `demo/stills/frame_v1_2_century.jpg`(37.25 s):百年曲线全貌——变形前一拍,所有注释、两道破顶疤痕、图注字幕-- `demo/stills/frame_v1_3_line_to_stripes.jpg`(37.62 s):签名镜头——折线从左到右倒成条纹的中间帧-- `demo/stills/frame_v1_0_animatic.jpg`:全片 22 帧缩略图(动画已经能整片跑通,用来看镜头和节奏)-------## 十四、制作阶段修订(关卡 1 意见落实后,以成片为准)--| 项 | 方案原稿 | 成片 | 理由 |-|---|---|---|---|-| 1998 翻转 | 点破顶后铅笔直接翻转 | **先"吓一跳"**:笔从数字上弹开、冻住半拍(26.67–27.0,细微颤抖),再抬起、首尾翻转到红头(27.0–27.33,"嗖—咔"),落定那一下正好是第一声棘轮 | 意见 1:翻转要有动机,是表演不是噱头 |-| 铅笔姿势 | 固定 35° | 十六分 / 三十二分段逐渐变陡到 58°;写 2026 注释时 66°;右对齐注释先"跳"到第一个字母再写 | 意见 1:密集段笔身不盖刚画的点;避免瞬移 |-| 声音化 | — | 密集段每个音更轻、衰减 ≤ 间隔的 1.5 倍;失谐只从 2011 起(5 → 45 音分);2025 = 最大失谐 + 小二度影子音;三十二分段 6 kHz 以上能量占比 1.8 % | 意见 2 |-| 色阶 | 1971–2000 中心 ±0.85 | 不变 | 意见 3:诚实比戏剧化重要 |-| 2026 数值 | — | 片尾数据行写 "2026 value preliminary, retrieved 2026-09-26";"Every number is real." 保留 | 意见 4 |-| 1958 声音 | 婴儿轻笑 | 一个八音盒音(D6 + A5,pluck.py 物理建模) | 意见 5 |-| 片尾卡 | 空格往右撑开,色带在左边被裁 | 空格撑开成**居中**的虚线框(屏幕 370–1550 × 260–820);101 条色带从大色带飞进框里变成一条小色带,末尾一个虚线空格;1880–1925 色带与括号淡出 | 意见 6:构图居中完整 |-| 字幕 L4 | 32.67 | 32.5,停留到 37.22(变形前) | 变形段不出字幕 |-| 旁白闪避 | −8 dB | −11 dB,旁白 +5 dB | 300–4000 Hz 频段信噪比从 1.6–9 dB 提到 8.6–16 dB |-| 片名 | 4.5–5.6 拍排出 | 4.2–5.1 拍排出,追拍时第 9–10 拍才淡出 | 让片名完整停留 ≥ 2 s |diff --git a/styles/dataviz/style.json b/styles/dataviz/style.jsonnew file mode 100644index 0000000..28ed820--- /dev/null+++ b/styles/dataviz/style.json@@ -0,0 +1,18 @@+{+ "slug": "dataviz",+ "num": "23",+ "en": "Data Storytelling",+ "cn": "数据叙事",+ "category_en": "Information & Keynote",+ "category_cn": "信息与发布",+ "film": "A Hundred Summers",+ "line": "A hundred years of summer temperatures, where the chart itself tells the story.",+ "line_cn": "一百年的夏季气温,图表本身就是故事。",+ "uses": [+ "Data journalism",+ "Reports",+ "Climate & science"+ ],+ "frame_sec": 42.0,+ "dur": 50.0+}diff --git a/styles/engraving/DEMO.md b/styles/engraving/DEMO.mdnew file mode 100644index 0000000..5236ec6--- /dev/null+++ b/styles/engraving/DEMO.md@@ -0,0 +1,183 @@+# Copperplate Engraving — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *The Honeybee, Plate VII* (40.0 s) · `engraving.mp4` · source in [`demo/`](demo/) · all words from [`demo/content.json`](demo/content.json)+++## Story & structure++A scene demo, not a story: a **museum object label** for the screen next to a case. One object (the honeybee), its name, three things you did not know about it, and where to see the real one ("see the living hive in Gallery 4").++Structure (40 s): copper ECU → proof pulled → pull out to the plate → three magnified details (eye, hamuli, corbicula), each flying to its slot → silence → hand colouring → locked final plate → tissue-guard end card.++How the native moves served information in this demo:++- *The cut itself* was the hook: the first frame is the burin mid-stroke in copper, curl of copper rising ahead of the point. Nothing else is on screen, so the eye has one place to go.+- *The build* (outline → first hatching → cross-hatching → darks and hair) was the "this is a serious, made thing" beat, kept under 5 s and under the title.+- *The magnification roundel* was the information carrier: a ring is scribed around the part, the inside is burnished clean and re-engraved at magnification, and the roundel flies to its slot trailing a leader line. The viewer sees *where* the detail is and *what* it looks like in one move. Its label (roman capitals, italic term, script note) is engraved when it lands.+- *Hand colouring* was the climax, after a real silence and after all information is on the plate, so it read as reward, not as new information.+- *The final plate* was the poster: every label, the call to action and the engravers' credits at once, locked off.++The use-case table as first written for this demo, with the shot structure we had in mind for each (examples, not recipes):++| Use | Shot structure |+|---|---|+| Museum object label (the demo) | copper ECU → proof pulled → pull out to the plate → 1–4 magnified details, each flying to its slot → silence → hand colouring → locked final plate |+| "One minute on …" | same, with the narrator carrying the notes; end on the plate as the thumbnail |+| Textbook figure | no copper opening; start on paper at 1×, engrave the figure, then label parts with leaders one by one; no colour or colour only on the part being taught |+| Craft heritage (a watch, a violin, a knife) | ECU of the burin on the object's contour → build → roundels on the mechanism → colour only the material that matters (gold, varnish) |+| Map or site plan | engrave the coastline or plan, roundels become insets (a building, a harbour) |++## Shots++The camera is a loupe over the plate. Beat by beat in the demo:++| Beat | Camera | Why |+|---|---|---|+| Hook (0–2.5 s) | 4.2× on copper, **follows** the burin tip, 3° roll | one point of attention; the cut is the hook |+| Proof pulled (2.5–3.2) | locked while the sheet peels across | the medium's own transition |+| Build (3.2–6.2) | **pull out** 4× → 1×, log-zoom with screen-linear dolly feel | scale reveal: the curve was a bee's abdomen |+| Detail 1 (9.4–15.0) | **push** to 4.3× on the eye; **ride with the roundel** as it lifts off and flies to its slot, easing out to a 1.45× reading frame | the signature one-take: where → what → label |+| Detail 2 (15.0–19.4) | **tilt down** at 1.45× from the upper to the lower left, keeping detail 1's note in frame | faster, same grammar |+| Detail 3 (19.4–23.75) | **pull back** to the full plate while the roundel flies, then **push in** to read (after detail 2's note has had its time) | acceleration; reading time respected |+| Gather, silence, colour | full plate; a 2 % breathing push during colour | the colour moves, not the camera |+| Final plate | locked off | the poster |++Motion timings in this demo: the first line is one stroke followed by the camera, 5.4 s long, so at frame 0 it is already a third cut; strokes run 6–90 at once; roundels lift 30 px at mid-flight and grow to radius 120; colour regions bloom over 1.25–1.6 s each and start 0.42 s apart.++## Score structure++Three layers: room tone (a quiet workroom with a faint clock on copper; paper room after), foley keyed to picture events, and a baroque chamber score.++- **Score**: harpsichord + string quartet, 96 BPM, D major. `music/score.py` reads `events.json`: each detail section (A long / B tilt / C pull-back) is written once and placed where the film puts it; the outro shifts with the end of the details, so any number of details gets a matching score. Under narration the melody sits an octave up, out of the voice's band. Engraving sections are **all pizzicato** (the burin's small precise cuts), density growing pass by pass; each roundel = a high "ting" as the ring is scribed, a rising line as it flies, a low pizz as it lands. Before the colour: a run that stops dead, then **true silence** (1.25 s). The colour is the first time the strings use the bow. The final plate lands on a V–I cadence.+- **Silences**: 2.0–2.5 s (burin lifted, before the press thump and the downbeat) and 25.0–26.25 s (before the first drop of water).+- **Foley as built**: burin = band-passed hiss (2.6–9 kHz) with chatter clicks and a faint plate resonance (1.18/2.31/3.47 kHz); swarf = tiny 5–9 kHz pings; lift = metallic tick; press = low roller rumble (J-cut 0.35 s early) and a thump; peel = dense paper crackle; hatching = granular micro-scratches whose density rises with each pass; ring = circular scribe; burnish = soft rub; roundel flight = paper whoosh; landing = paper tap; letters = dotted ticks; notes = pen scratch at ~4 Hz strokes; colour = a falling water "plip" then a wet brush swish per region; end card = tissue rustle (J-cut).+- **Narrator**: Kokoro `bm_fable` (en-gb), speed 0.92, a gentle naturalist; music ducked to ~50 % under him (the bowed strings duck least).++## Palette & props++**The sheet**: 1920×1080 world units, laid paper `#f1e8d2`, world-space paper texture (fibres, laid lines, sparse foxing `#9a6a34`). Plate mark (the pressed, bevelled rectangle) at (70, 44)–(1850, 1036): plate tone `#e8ddc2` at 55 % inside; bevel dark on the top/left walls, light on bottom/right (light from the upper left). Ruled border: 2.4 px rule + 0.8 px hairline 9 px inside, (100, 72)–(1820, 1008).++**Ink**: `#1c1510`. World line widths at 1× zoom: outlines 1.8–2.4 (swelling ×0.45–1.35), first hatching 0.18–2.0, cross-hatching ×0.78, third family ×0.6, hair and stipple 0.6–0.9. Hatch spacing on a 600-px figure: 3.1–3.7 px (first), ×1.1 (cross), ×1.25 (third). Hatch thresholds on a 0–1 tone: first family from 0.14, crossing from 0.46–0.5, third from 0.74–0.78.++**Light**: `{x: −0.55, y: −0.62, z: 0.56}`.++**Lettering**: Bodoni Moda (title 50 px, tracking 0.16; labels 17 px, tracking 0.14), italics for Latin (20–24 px), Pinyon Script for notes (29 px). Subtitles: Pinyon Script 38 px, `#2b1e14`, on a deckled paper slip (`#f4eddb`, soft shadow) at the bottom centre, max width 860, up to two lines; on 0.1 s before the line, off 0.6 s after it; never over the call to action.++**Roundels**: radius 120, double rule (2 px + 0.75 px, 4 px inside), ruled ground of horizontal lines every 11 local units; content drawn for a 500-unit radius and scaled in. Slots in order: upper left (300, 300), lower left (300, 700), lower right (1620, 700), upper right (1620, 300). An unused slot shows the specimen at **natural size** (plate ≈ 20 cm wide, so a 13 mm bee is 0.19× the main figure).++**Leaders**: 0.95 px, from a dot on the part to the roundel's rim, routed around wings and body with ≥ 34 px clearance (one waypoint), a small italic figure number near the root.++**Hand colouring**: abdomen amber `#d9962a`, thorax ochre `#a8743e`, head `#8a6242`, eyes `#6e4a3c`, wings pale blue-grey `#a9c3cf` (alpha 0.5), legs `#7a5a3c`, pollen `#eaa21a` (alpha 0.95). Multiply over paper; 3.5 px spill, 2/1.5 px misregister, tide-line at the wet edge, low-frequency density lift (0.55), 1–2 backruns in large regions, granulation.++**The copper (opening only)**: base `#5e2a12 → #94502c → #4e220e`, a swirl of polishing hairlines (overlay), a soft studio window reflected across the plate (four panes, blurred 14 px, over a 90 px room glow), dark room toward the frame edges. Grooves: dark trough `#240c05`, a bright burr `rgba(255,226,186)` offset toward the light, a warm glint on the far wall. Burin: lit face `#d9e0e6`, shadow face `#262b30`, sharp ridge highlight, brass ferrule, mushroom-shaped wooden handle with grain; turned 0.22 rad (≤ 15°); swarf a thin, narrowing copper ribbon curling irregularly (turns open out as it grows, an occasional twist).++**Subjects**: the honeybee (`subjects/bee.js`) with three drawn magnifications — compound eye, hamuli (wing hooks), corbicula (pollen basket) — in `subjects/details.js`; a second built-in subject, the great scallop (`subjects/scallop.js`), used by `content_alt.json`.++## End card++The title is part of the plate (engraved, not a separate card). End card: a translucent tissue guard falls over the plate; on it, engraved: film title, style name, `LEMO-OPUSCAR`, `LemoLab × Claude Opus 5.5`, three credit lines. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+sh styles/engraving/demo/build.sh # voice → check → score → events → mix → cue check → srt → frames → mux → stills+```+- `demo/engine/`: `burin.js` (lines), `plate.js` (sheet, lettering, roundels), `wash.js` (colour), `copper.js` (copper, burin, swarf), `index.js` (public entry + `engraveShape`).+- `demo/subjects/`: `bee.js`, `details.js` (eye, hamuli, corbicula roundel drawings), `scallop.js` (second built-in subject).+- `demo/film.js`: timeline (96 BPM grid), camera, render; reads `content.json`. `demo/mix.py`: foley + voice + ducked stems. `demo/music/score.py`: the score (written by a composer sub-agent against the cue map in `demo/TREATMENT.md`). `demo/tools/cuecheck.py`: score accents vs picture events (all within 1 frame) and the silence level.+- Render with `core/render/video.mjs --workers 2`; frames take 60–500 ms (copper and colour frames are the slowest).++Pitfalls tied to this demo's props:++- **Wing veins must close their cells.** Random vein strokes look fake; define long veins as curves and snap cross-veins onto them (`bee.js`, `FX`).+- **Leg joints drawn as full capsules look like beads.** Exclude the previous segment so only the distal cap shows.+- **Two renders of the same demo folder collide**: `video.mjs` writes its segments to `<demo>/out/`, so render the main and alt films one after the other.+- **Burin skew**: 30° read as poking beside the line; 0.22 rad fixed it.+- **Leaders** hugging a wing read as crossing it until routed with ≥ 34 px clearance.+- "Apis mellifera": Kokoro says it acceptably but whisper can't transcribe it; the line uses the `asr` field.++## content.json fields++`demo/content.json` drives every word, number and colour.++| Field | Type | Range | If out of range |+|---|---|---|---|+| `title` | string | ≤ 22 characters | longer titles run past the latin line's width; shorten or drop to 44 px in `film.js` |+| `latin` | string | ≤ 30 characters | read time grows (chars/12 + 1 s must fit before the first push at 9.4 s) |+| `plate_no`, `series` | string | ≤ 10 / ≤ 48 characters | series collides with the title above ~48 characters |+| `subject` | `"bee"` \| `"scallop"` | built-in subjects | unknown → `bee`; a new subject is a module returning `{ink, regions, focus}` with an `ol0` first stroke (see `subjects/scallop.js`) |+| `details[]` | array of `{name, latin, note, focus}` | 1–4 | >4 are ignored; fewer leaves slots → the first empty one shows the natural-size figure; the timeline re-flows (first 9 beats, others 7 beats each) |+| `details[].focus` | string | bee: `eye`, `hamuli`, `corbicula` (drawn magnifications); any subject: its `focus` keys | a key with no drawn magnification gets a live magnification of the figure itself |+| `details[].note` | string | ≤ 60 characters (2 lines at 29 px) | a third line starts to meet the next roundel |+| `colors[]` | `{region, color}` | regions of the subject (bee: abdomen, thorax, head, eyes, wings, legs, pollen; scallop: shell, bands, ears) | unknown regions are skipped; order = order of colouring |+| `caption` | string | ≤ 50 characters | must stay readable ≥ chars/12 + 1 s inside the 4.4 s final plate |+| `signature.left/right` | string | short | — |+| `nat_size_label` | string | ≤ 16 characters | — |+| `voice.voice`, `voice.speed`, `voice.lines[]` | Kokoro voice, 0.8–1.0, `{id, text, asr?}` | ids: `title`, `d1`…`dN`, `close` | a line longer than its section overlaps the next one; keep d-lines ≤ 4.5 s |+| `end.film_title`, `end.style_name`, `end.credits[]` | strings | credits ≤ 3 lines of ≤ 35 characters | longer lines break the end card's reading time |++Steps: edit (or copy) the JSON → `sh styles/engraving/demo/build.sh my_content.json` (TTS + whisper check, events, score re-placed from the events, mix, cue check, subtitles, frames). To keep the main film untouched, `sh styles/engraving/demo/tools/build_alt.sh my_content.json` builds everything in `demo/out/alt/` instead (the demo's `content_alt.json`, 2 details, 35.6 s, passes the cue check).++Minimal example:++```json+{+ "title": "The Great Scallop", "latin": "Pecten maximus", "plate_no": "Pl. XII",+ "series": "Shore Gallery · Shells of the Atlantic Coast", "subject": "scallop",+ "details": [ { "name": "Hinge", "latin": "umbo", "note": "The oldest part of the shell.", "focus": "umbo" } ],+ "colors": [ { "region": "shell", "color": "#d98a5c" }, { "region": "bands", "color": "#a8423a" } ],+ "caption": "Hold a real shell at the Discovery Table",+ "voice": { "voice": "bm_fable", "speed": 0.92, "lines": [ { "id": "title", "text": "Plate twelve. The great scallop." } ] }+}+```++Swapping this file and running `build.sh` checks that the engine re-flows; it is not how a user's film is made.++## Engine reference++```js+import { B, engraveShape, Wash, drawSheet, engraveText } from './engine/index.js';++// 1. any shape + a light direction → an engraved figure (contour lines follow the form), cut in order+const { ink, shape: spark } = engraveShape(+ 'M0 -120 C12 -40 40 -12 120 0 C40 12 12 40 0 120 C-12 40 -40 12 -120 0 C-40 -12 -12 -40 0 -120 Z', // a four-pointed spark+ { at: B.xf(860, 560, 1.9), light: [-0.6, -0.7], spacing: 4.2, style: 'contour' }); // or style: 'hatch'+engraveShape('M0 0 H150 V26 H0 Z', { at: B.xf(1140, 740, 1), ink, g: 't' }); // its cursor tail, same ink+ink.schedule(['ol', 'tol'], 0, 1.1, { conc: 2 }); ink.schedule(['h1', 'th1'], 0.8, 2.2, { conc: 40 });+ink.schedule(['h2', 'th2'], 1.6, 2.7, { conc: 40 }); ink.schedule(['h3', 'th3'], 2.2, 3.0, { conc: 40 }); ink.build();++// 2. the "only colour": hand-colour one element and leave everything else in black ink+const w = new Wash({ scale: 1.5 });+w.add({ path: spark.path, polys: spark.polys, color: '#D97757', origin: [860, 560], t0: 3.0, dur: 1.2, alpha: 0.85 });++window.render = t => {+ drawSheet(ctx); // paper, plate tone, plate mark+ w.draw(ctx, t); // colour under the ink (omit for pure black-and-white)+ ink.draw(ctx, t); // everything cut by time t; lines being cut grow+ engraveText(ctx, 'THE SPARK.', 960, 170, { size: 50, weight: 600, track: 0.16, p: t - 1.5 });+};+```+Runnable as `demo/example/index.html` (`node core/render/still.mjs styles/engraving/demo/example 4.5`), output in `demo/stills/engine_example.jpg`.++Main functions:++| Function | What it does | Key parameters |+|---|---|---|+| `B.shape(d, xf)` | SVG path → world rings + Path2D | `xf(x, y, scale, rot, flip)` |+| `B.Ink` | ordered, width-bucketed stroke store | `group(name)`, `schedule(group, t0, t1, {conc})`, `instant(group)`, `draw(ctx, t, {color, wScale, dx, dy})` → tips being cut |+| `B.hatch(ink, polys, o)` | one family of swelling lines bent to the form | `angle, spacing, bend, tone(x,y), thr, wMin, wMax, swell, excl` |+| `B.engraveTone(ink, polys, o)` | the engraver's three passes | `angle, cross, third, t2, t3, g` |+| `B.formTone(polys, {light})` | any shape → pillow-lit tone field (+ `.df` distance) | `light, lz, base, radius, rim` |+| `B.contourHatch(ink, polys, o)` | lines following the form (iso-distance contours) | `spacing, tone, thr, wMax` |+| `B.outline / B.stroke` | swelling contour / open burin stroke | `w, light, vary, run, pinch, swell, excl` |+| `B.stipple`, `B.fur` | dots by tone; combed hair flicks | `density, r, tone` / `len, dir(x,y), curl` |+| `B.sphereTone`, `B.cylTone`, `B.linTone`, `B.blobTone` | analytic tone fields | light from `B.LIGHT` |+| `Wash` | hand colouring, cached per region | `add({path, polys, color, alpha, origin, t0, dur, spill, offset, lift, pool})`, `draw(ctx, t)` |+| `drawSheet`, `borderInk` | paper, plate tone, bevel; ruled border as ink | `plate: [x0, y0, x1, y1]` |+| `engraveText`, `writeScript`, `wrapLines` | cut roman lettering; written script; fixed-size balanced wrap | `size, weight, italic, track, align, p` |+| `roundelFrame` | double-ruled circle scribed by `p` | `x, y, r, p, w` |+| `Copper.drawCopper / copperLight / drawGrooves / drawBurin / drawSwarf` | the copper close-up | `zoom, lift, skew, s` |++A minimal runnable example of the whole thing is `demo/film.js` with `content_alt.json` (a different subject, two details).diff --git a/styles/engraving/STYLE.md b/styles/engraving/STYLE.mdindex 10c7e52..b952917 100644--- a/styles/engraving/STYLE.md+++ b/styles/engraving/STYLE.md@@ -1,205 +1,121 @@# Copperplate Engraving — Style Prompt-> A natural-history plate that engraves itself: the burin cuts the first line in polished copper, the proof is pulled, and the figure builds up line by line — outline, hatching, cross-hatching — until magnified roundels, engraved lettering and a hand-applied watercolour wash turn it into a finished museum plate.-> Demo: *The Honeybee, Plate VII* (40.0 s) · `engraving.mp4` · source in `demo/` · all words from `demo/content.json`-> References (grammar only): 19th-century natural-history plates — Ernst Haeckel, Audubon, J. O. Westwood's entomology, the *Encyclopaedia Britannica* copperplates (layout: centred specimen, numbered magnification roundels, roman capital title over an italic Latin name, "del." and "sculp." credits, the pressed plate mark); Hogarth and Gustave Doré for the burin line itself (hatching that follows the form, cross-hatching only in the half-tones, a third family only in the deepest darks, lines that swell and taper); hand-coloured plates for the flat, transparent washes laid after printing. Never copy a plate, a specimen pose, a border or a title.+> An intaglio plate that engraves itself: a burin cuts swelling lines into copper, a proof is pulled, and the figure builds up — outline, hatching, cross-hatching — until engraved lettering, magnified details and a hand-laid wash make a finished plate.+> References (grammar only): 19th-century natural-history plates — Haeckel, Audubon, Westwood, the *Britannica* copperplates (centred subject, numbered roundels, roman title over an italic name, "del." / "sculp." credits, the plate mark); Hogarth and Doré for the burin line (hatching that follows the form, crossing only in half-tones); hand-coloured plates for washes laid after printing. Never copy a plate, pose, border or title.-You are directing a 30–40 second film in the **Copperplate Engraving** style. The user gives you a topic (a specimen, an object, a place, a machine). You decide everything else and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not----+An **intaglio print**: the line is ink held in a groove a burin cut into copper. Three rules:-## 1. What this style is+1. **Tone is made of lines, never of fills.** Light is bare paper; half-tone is one family of parallel lines; shadow a second family crossing it; the deepest dark a third, lozenge-making family. No grey fill anywhere in the ink.+2. **Every line swells and tapers.** The burin enters fine, bites deeper mid-run and lifts out to a point. Lines thicken where the form turns from the light and vanish where it faces it; contours are cut in several runs and thin where runs hand over. A uniform-width line reads as a pen or vector drawing — never.+3. **Colour comes afterwards, by hand**: transparent watercolour laid flat region by region over the finished black print, spilling past the lines, pooling at its edges, ink always on top. A film may stay monochrome long; colour arriving is an event.-An **intaglio print**: the line is ink held in a groove that a steel burin cut into copper. Three rules:+Not a woodcut (black block, white gouges — `woodcut`), not a pen sketch (loose broken lines — `urban-sketch`), not an engineering drawing (`blueprint`), not a sepia filter.-1. **Tone is made of lines, never of fills.** Light is bare paper. Half-tone is one family of parallel lines. Shadow is a second family crossing it. The deepest dark gets a third, lozenge-making family. There are no grey fills anywhere in the ink.-2. **Every line is a burin line: it swells and tapers.** The burin enters fine, bites deeper toward the middle of its run and lifts out to a point. Lines are thicker where the form turns away from the light and vanish where it faces it. Contours are cut in several runs, so they thin slightly where one run hands over to the next. A uniform-width line reads as a pen or a vector drawing — that is the one thing this style must never look like.-3. **Colour comes afterwards, by hand.** The print is finished in black. Colour is transparent watercolour laid flat, region by region, spilling a few pixels past the lines, pooling at its edges, granulating in the paper. The ink always sits on top. A film may stay monochrome until the colour arrives — the arrival is the event.+## 2. Materials & rendering-What it is not: not a woodcut (black block with white cuts, coarse gouges — see `woodcut`), not a pen sketch (loose, broken lines — see `urban-sketch`), not an engineering drawing (see `blueprint`).+- **The sheet is the world**: 1920×1080 world units of laid paper (cream, ~`#f1e8d2`) with world-space texture (fibres, laid lines, sparse foxing) that zooms with the camera; a pressed, bevelled **plate mark** and a ruled border (rule + hairline) frame it.+- **Ink** is one warm near-black (~`#1c1510`). Width ratios: outlines heaviest (swelling ×0.45–1.35), first hatching from a hair (~0.18 px) to ~2 px, crossing ~0.8×, third family ~0.6×, hair and stipple finest. Spacing is **relative to the figure** (~1/180 of its height, a little wider per later family) so small figures never go grey.+- **Swell law** for every hatch line: width × (0.2 + 0.8·sin(πu)^0.7), tapered over its first and last ~22 %. Families switch on by tone thresholds (~0.14, ~0.5, ~0.75 on a 0–1 tone).+- **One light direction** for the whole film (upper left by convention); heavier outlines away from it; tone fields come from the shape (pillow lighting, analytic spheres and cylinders), never from texture. **Occlusion** is geometric: lines stop at the shapes in front.+- **Roundels**: double-ruled circle, ruled-machine ground with a white halo round the subject, content authored at a large radius and scaled in. **Leaders**: hairlines from a dot on the part to the rim, routed with clearance, a small italic figure number at the root.+- **Hand colouring** multiplies over paper and under ink: a few px of spill, slight misregister, tide-line at the wet edge, low-frequency density lift, occasional backruns, granulation; each region blooms from where the brush touched.+- **Copper** (when shown): polished warm metal, polishing hairlines, a soft reflected window; grooves = dark trough + bright burr toward the light. The **burin** (lozenge steel shaft, bevelled face, mushroom handle) is held low and turned ≤ 15° off the line so the fresh groove shows; **swarf** is a narrowing ribbon curling ahead of the point, one edge lit.-## 2. Use cases: what this style is for+## 3. Colour logic-Scene demos show a real use, not a story. This style is an **explanation card**: one object, its name, a few things you did not know about it, and where to see the real one.+- The print is two values, paper and ink; all tone is line density.+- Colour is **transparent wash only**, in muted earth and mineral pigments, one stronger pigment at most. Never opaque, never on lettering, rules or paper outside the figure.+- Reserve it: the whole subject at one moment, or only the part that matters — or none.+- Example wash sets: an amber insect with blue-grey wings; a map with a sea-green coastal band on buff land; one madder-rose organ on an otherwise black anatomy plate.-| Use | Shot structure | Information layers (in order) | Hold per layer | Length |-|---|---|---|---|---|-| **Museum object label / screen next to a case** (the demo) | copper ECU → proof pulled → pull out to the plate → 1–4 magnified details, each flying to its slot → silence → hand colouring → locked final plate | title + Latin name → detail name + term + one-line note (×N) → call to action ("see the living hive in Gallery 4") | title ≥ 2.2 s; each note ≥ chars/12 + 1 s continuously in frame when it first appears; final plate ≥ 4 s | 30–40 s |-| **Science account "one minute on …"** | same, with the narrator carrying the notes; end on the plate as the thumbnail | hook question → name → 2–3 facts → one "wow" number → follow prompt | same | 35–60 s |-| **Textbook figure animation** | no copper opening; start on paper at 1×, engrave the figure, then label parts with leaders one by one; no colour or colour only on the part being taught | figure → labelled parts (Fig. 1, 2, 3…) → caption | each label ≥ chars/12 + 1 s | 20–45 s |-| **Product heritage / "how it's made" for a crafted object** (a watch, a violin, a knife) | ECU of the burin on the object's contour → build → roundels on the mechanism → colour only the material that matters (gold, varnish) | object name → 2–3 craft details → maker / edition | as above | 30–45 s |-| **Map or site plan as a plate** | engrave the coastline or plan, roundels become insets (a building, a harbour) | place → insets → legend → visiting info | as above | 30–45 s |+## 4. Type & subtitles-**How the native moves serve information**+- Lettering belongs to the plate: **roman capitals** (Bodoni Moda; title ~44–56 px, wide tracking; labels ~15–19 px), **italics** for scientific names (~20–24 px), **script** (Pinyon Script) for notes, fixed size, balanced over two lines, never shrunk.+- Roman letters are **cut glyph by glyph**; script is **written** in one left-to-right stroke. Nothing fades in.+- Subtitles: script on a deckled paper slip, bottom centre, ≤ 2 lines, never over a label. Hold ≥ max(1.8 s, speech + 0.6 s). An engraved note stays in frame chars ÷ 12 + 1 s from when it starts writing.-- *The cut itself* is the hook: the first frame is the burin mid-stroke in copper, curl of copper rising ahead of the point. Nothing else is on screen, so the eye has one place to go.-- *The build* (outline → first hatching → cross-hatching → darks and hair) is the "this is a serious, made thing" beat. Keep it under 5 s and under the title.-- *The magnification roundel* is the information carrier: a ring is scribed around the part, the inside is burnished clean and re-engraved at magnification, and the roundel flies to its slot trailing a leader line. The viewer sees *where* the detail is and *what* it looks like in one move. Its label (roman capitals, italic term, script note) is engraved when it lands.-- *Hand colouring* is the climax. Put it after a real silence and after all information is on the plate, so it reads as reward, not as new information.-- *The final plate* is the poster: every label, the call to action and the engravers' credits at once, locked off.+## 5. Motion quality-## 3. Visual language+- **Cutting order is the animation**: outline → first hatching sweeping across each form → crossing → darks, hair, stipple. Strokes run at constant burin speed, many at once (a few for outlines, dozens for hatching).+- A long single stroke may be followed by the camera; start it partly cut so no frame is empty. Keep a full build to a few seconds.+- Roundels fly on an eased arc with a small lift, growing log-linearly to size. Colour blooms from one point with a ragged front and a wet rim that dries; regions staggered.+- Nothing fades or slides like UI: lines are cut, text cut or written, colour blooms, sheets are pressed, peeled or laid down.-**The sheet**: 1920×1080 world units = one sheet of laid paper, `#f1e8d2`, with a world-space paper texture (fibres, laid lines, sparse foxing `#9a6a34`). Plate mark (the pressed, bevelled rectangle) at (70, 44)–(1850, 1036): plate tone `#e8ddc2` at 55 % inside; bevel dark on the top/left walls, light on bottom/right (light from the upper left). Ruled border: 2.4 px rule + 0.8 px hairline 9 px inside, (100, 72)–(1820, 1008).+## 6. Camera grammar-**Ink**: `#1c1510`. World line widths at 1× zoom: outlines 1.8–2.4 (swelling ×0.45–1.35), first hatching 0.18–2.0, cross-hatching ×0.78, third family ×0.6, hair and stipple 0.6–0.9. Hatch spacing on a 600-px figure: 3.1–3.7 px (first), ×1.1 (cross), ×1.25 (third). Hatch thresholds on a 0–1 tone: first family from 0.14, crossing from 0.46–0.5, third from 0.74–0.78. Every hatch line: width × (0.2 + 0.8 · sin(πu)^0.7), tapered over the first and last 22 % of its length.+The camera is a **loupe over a sheet**. A vocabulary, not a route. Opening and ending come from the topic.-**Light**: always from the upper left (`{x: −0.55, y: −0.62, z: 0.56}`); heavier outlines on the side away from it.+| Move | Expresses | Can serve |+|---|---|---|+| Loupe following the burin tip | One point of attention; making | a first mark; a signature |+| Log-zoom pull-out | The line was part of something larger | scale reveal; context |+| Push to a part, ride with its roundel | Where → what, in one take | an invisible detail; a mechanism |+| Tilt/pan along the sheet at reading zoom | Labels in order | a parts list; a coastline |+| Pull back while something flies | Everything placed in relation | acceleration; summary |+| Locked frame, or a ≤ 2 % breathing push | The plate as document | reading time; colour moving |+| Raking view across the copper | The groove as depth | the cost of craft |+| Cut from mirrored copper to true proof | Reversal | a hidden truth; before/after |-**Lettering**: roman capitals in Bodoni Moda (title 50 px, tracking 0.16; labels 17 px, tracking 0.14), italics for Latin (20–24 px), Pinyon Script for notes (29 px, fixed size, wrapped and balanced across two lines, never shrunk). Roman letters are cut glyph by glyph (each wipes in from the left); script is written in one continuous left-to-right stroke with a soft wet edge.+Framing: subject inside the plate mark, labels and roundels in the margins; order details so push-ins never crop a note early. Transitions from printmaking only (proof pulled, tissue guard laid over, region burnished out and re-cut, new sheet on the bed); no dissolves or wipes.-**Roundels**: radius 120, double rule (2 px + 0.75 px, 4 px inside), a ruled-machine ground (horizontal lines, 11 local units) behind the specimen with a white halo around it; content is drawn for a 500-unit radius and scaled in. Slots in order: upper left (300, 300), lower left (300, 700), lower right (1620, 700), upper right (1620, 300). An unused slot shows the specimen at **natural size** (plate ≈ 20 cm wide, so a 13 mm bee is 0.19× the main figure).+## 7. Sound palette-**Leaders**: 0.95 px, from a dot on the part to the roundel's rim, routed around wings and body with ≥ 34 px clearance (one waypoint), a small italic figure number near the root.+- **Foley by material**: paper (peel crackle, slip tapped down, tissue rustle, sheet whoosh); press (roller rumble, thump); copper and steel (high band-passed burin hiss with chatter and faint plate ring, swarf pings, a tick on lift, circular scribe, burnishing rub); ink and water (pen scratch, ticks for cut letters, a water plip and wet brush swish). Hatching = micro-scratches denser each pass.+- **Room**: a quiet workroom (faint clock), paper room once the print exists.+- **Instruments** (choose): harpsichord, string quartet, solo cello or viola da gamba, lute, chamber organ, glass harmonica for a cold subject. Plucked and dry while lines are cut; bowed or sustained only when something soft arrives; tiny tings for a scribed ring, a low pluck on landing.+- **Silence** is real: cut room tone too, keep at most one small sound.+- **Mix**: melody an octave above the voice, music ~half under speech, −14 LUFS. Voice: a quiet curator or naturalist.-**Hand colouring (demo palette)**: abdomen amber `#d9962a`, thorax ochre `#a8743e`, head `#8a6242`, eyes `#6e4a3c`, wings pale blue-grey `#a9c3cf` (alpha 0.5), legs `#7a5a3c`, pollen `#eaa21a` (alpha 0.95). Multiply over paper; 3.5 px spill, 2/1.5 px misregister, tide-line at the wet edge, low-frequency density lift (0.55), 1–2 backruns in large regions, granulation. Each region blooms from where the brush touched over 1.25–1.6 s; regions start 0.42 s apart.+## 8. Native moves-**The copper (opening only)**: base `#5e2a12 → #94502c → #4e220e`, a swirl of polishing hairlines (overlay), a soft studio window reflected across the plate (four panes, blurred 14 px, over a 90 px room glow), dark room toward the frame edges. Grooves: dark trough `#240c05`, a bright burr `rgba(255,226,186)` offset toward the light, a warm glint on the far wall. The traced design shows as faint pale scratches. Burin: lozenge-section steel shaft (lit face `#d9e0e6`, shadow face `#262b30`, sharp ridge highlight), bevelled lozenge face at the point, brass ferrule, mushroom-shaped wooden handle with grain; held low and pushed along the cut — the shaft lies along the direction of travel, turned ≤ 15° (0.22 rad) just enough to show the fresh groove; swarf: a thin, narrowing copper ribbon curling irregularly ahead of the point (turns open out as it grows, an occasional twist), one edge lit and one dark so it reads as sheet metal, not a spring.+A menu: use the ones your story needs.-## 4. Motion language+- **The cut.** Burin mid-stroke, swarf rising, nothing else. *Fits:* the first line of a treaty; a watchmaker's scribe; a coast being charted.+- **The three passes.** Form gains volume pass by pass. *Fits:* a building from its plan; a portrait emerging; a skill improving.+- **Magnification roundel.** Ring scribed, burnished, re-cut larger, flown to a margin with a leader, label cut on landing. *Fits:* a gear in a clock; a pollen grain; a harbour inset on a chart.+- **The proof.** Sheet peels off; mirrored copper becomes true paper. *Fits:* a secret out; a draft made final; a coin's die and strike.+- **States of the plate.** A region burnished out and re-cut. *Fits:* a border redrawn; before/after; a design revision.+- **Hand colouring.** Washes bloom after the print. *Fits:* one organ lit; a flag on a historical map; a ripening fruit.+- **Natural size.** A tiny true-scale figure beside the engraving. *Fits:* a seed by its tree; a chip by its circuit; a stamp by its enlargement.+- **The finished plate.** Every label and credit, locked. *Fits:* a museum label; a frontispiece; a certificate.-- **Cutting order is the animation.** Every stroke keeps its place in the engraver's order; a group's strokes are spread over a time window at constant burin speed with 6–90 lines in progress at once. Outline first, then the first hatching sweeping across each form, then crossing lines, then darks, hair and stipple.-- **The first line** is one stroke followed by the camera: 5.4 s long, so at frame 0 it is already a third cut.-- **Roundels** travel on an eased arc (30 px lift at mid-flight), growing log-linearly from the part's size to 120.-- **Colour** blooms from one point with a ragged, noise-driven front and a darker wet rim that fades as it dries.-- Nothing fades in. Text is cut or written; colour blooms; the end card arrives on a falling tissue guard.+## 9. Pitfalls of the medium-## 5. Camera language+- Uniform width reads as pen → swell hatches, pinch contours between runs (`hatch({swell})`, `outline({run, pinch})`), keep wMin hair-fine.+- Overlaps without occlusion → pass occluders as `excl` (subtracted ring by ring; even-odd would cancel overlaps).+- Outline-only parts beside a hatched body → hatch along each part's axis, a dark at every joint.+- Burin along the cut hides the groove; big skew looks like poking → ≤ 15°. Regular swarf helix reads as a spring → vary winding, twist, light one edge.+- Reflections over grooves wash them out → copper light first. Roundels authored small freeze sub-pixel → author large, scale in. Leaders hugging the subject read as crossing it → clearance.+- A long early stroke never draws → the ink's early exit must look ahead by the longest stroke.+- A push-in cropping a fresh note breaks the reading rule → put consecutive details on one side.+- Scientific names: TTS may manage, ASR won't → give the checker a plain spelling.-The camera is a loupe over the plate. Beat by beat in the demo:+## 10. Engine-| Beat | Camera | Why |-|---|---|---|-| Hook (0–2.5 s) | 4.2× on copper, **follows** the burin tip, 3° roll | one point of attention; the cut is the hook |-| Proof pulled (2.5–3.2) | locked while the sheet peels across | the medium's own transition |-| Build (3.2–6.2) | **pull out** 4× → 1×, log-zoom with screen-linear dolly feel | scale reveal: the curve was a bee's abdomen |-| Detail 1 (9.4–15.0) | **push** to 4.3× on the eye; **ride with the roundel** as it lifts off and flies to its slot, easing out to a 1.45× reading frame | the signature one-take: where → what → label |-| Detail 2 (15.0–19.4) | **tilt down** at 1.45× from the upper to the lower left, keeping detail 1's note in frame | faster, same grammar |-| Detail 3 (19.4–23.75) | **pull back** to the full plate while the roundel flies, then **push in** to read (after detail 2's note has had its time) | acceleration; reading time respected |-| Gather, silence, colour | full plate; a 2 % breathing push during colour | the colour moves, not the camera |-| Final plate | locked off | the poster |--Rule of thumb: a note must stay continuously in frame for chars ÷ 12 + 1 s from the moment it starts writing; plan push-ins so they never cut a note short (they can return at the final plate).--## 6. Sound--Three layers: room tone (a quiet workroom with a faint clock on copper; paper room after), foley keyed to picture events, and a baroque chamber score.--- **Foley by material**: burin = band-passed hiss (2.6–9 kHz) with chatter clicks and a faint plate resonance (1.18/2.31/3.47 kHz); swarf = tiny 5–9 kHz pings; lift = metallic tick; press = low roller rumble (J-cut 0.35 s early) and a thump; peel = dense paper crackle; hatching = granular micro-scratches whose density rises with each pass; ring = circular scribe; burnish = soft rub; roundel flight = paper whoosh; landing = paper tap; letters = dotted ticks; notes = pen scratch at ~4 Hz strokes; colour = a falling water "plip" then a wet brush swish per region; end card = tissue rustle (J-cut).-- **Score**: harpsichord + string quartet, 96 BPM, D major. `music/score.py` reads `events.json`: each detail section (A long / B tilt / C pull-back) is written once and placed where the film puts it; the outro shifts with the end of the details, so any number of details gets a matching score. Under narration the melody sits an octave up, out of the voice's band. Engraving sections are **all pizzicato** (the burin's small precise cuts), density growing pass by pass; each roundel = a high "ting" as the ring is scribed, a rising line as it flies, a low pizz as it lands. Before the colour: a run that stops dead, then **true silence** (1.25 s). The colour is the first time the strings use the bow. The final plate lands on a V–I cadence.-- **Silences**: 2.0–2.5 s (burin lifted, before the press thump and the downbeat) and 25.0–26.25 s (before the first drop of water).-- Narrator: Kokoro `bm_fable` (en-gb), speed 0.92, a gentle naturalist; music ducked to ~50 % under him (the bowed strings duck least).--## 7. Subtitles & titles--- Subtitles: Pinyon Script 38 px, `#2b1e14`, on a deckled paper slip (`#f4eddb`, soft shadow) at the bottom centre, max width 860, up to two lines; on 0.1 s before the line, off 0.6 s after it; never over the call to action.-- The title is part of the plate (engraved, not a separate card). End card: a translucent tissue guard falls over the plate; on it, engraved: film title, style name, `LEMO-OPUSCAR`, `LemoLab × Claude Opus 5.5`, three credit lines.--## 8. Pitfalls we hit--- **Uniform line width reads as a pen drawing.** Swell every hatch line along its length and pinch contours between runs (`hatch({swell})`, `outline({run, pinch})`); keep wMin ≈ 0.18 so light areas really thin out.-- **Wing veins must close their cells.** Random vein strokes look fake; define long veins as curves and snap cross-veins onto them (`bee.js`, `FX`).-- **Overlapping parts need occlusion.** One ink store has no z-order; pass the occluding shapes as `excl` so lines stop at them (hatch subtracts each excluded ring separately — overlapping rings would cancel under even-odd).-- **Leg joints drawn as full capsules look like beads.** Exclude the previous segment so only the distal cap shows.-- **The burin hides its own groove** if the shaft lies exactly along the cut, but a large skew (30°) reads as poking beside the line. Keep it ≤ 15°.-- **A regular helix of swarf reads as a spring.** Vary the winding, open the coils out, twist the ribbon edge-on now and then, light one edge and darken the other.-- **Outline-only limbs look unfinished** next to a densely hatched body: every leg segment needs hatching along its axis and a dark at each joint.-- **Two renders of the same demo folder collide**: `video.mjs` writes its segments to `<demo>/out/`, so render the main and alt films one after the other.-- **Reflections over grooves wash them out**: draw the copper light before the grooves.-- **A roundel frozen at small scale**: author roundel content for radius 500 and scale in; widths then stay ≥ 0.5 px at 1×.-- **Leaders hugging a wing read as crossing it**: route with ≥ 34 px clearance.-- **Ink.draw's early exit** must look ahead by the longest stroke duration, or a long stroke that started early never draws.-- **Reading time vs push-ins**: a push-in that crops a just-written note violates the reading rule even if the note returns later. Plan the order of slots so consecutive details share a side.-- Latin names: Kokoro says "Apis mellifera" acceptably but whisper can't transcribe it; use the `asr` field.--## 9. Production recipe (this repo)--```-sh styles/engraving/demo/build.sh # voice → check → score → events → mix → cue check → srt → frames → mux → stills-```-- `demo/engine/`: `burin.js` (lines), `plate.js` (sheet, lettering, roundels), `wash.js` (colour), `copper.js` (copper, burin, swarf), `index.js` (public entry + `engraveShape`).-- `demo/subjects/`: `bee.js`, `details.js` (eye, hamuli, corbicula roundel drawings), `scallop.js` (second built-in subject).-- `demo/film.js`: timeline (96 BPM grid), camera, render; reads `content.json`. `demo/mix.py`: foley + voice + ducked stems. `demo/music/score.py`: the score (written by a composer sub-agent against the cue map in `TREATMENT.md`). `demo/tools/cuecheck.py`: score accents vs picture events (all within 1 frame) and the silence level.-- Render with `core/render/video.mjs --workers 2`; frames take 60–500 ms (copper and colour frames are the slowest).--## 10. Engine usage--```js-import { B, engraveShape, Wash, drawSheet, engraveText } from './engine/index.js';--// 1. any shape + a light direction → an engraved figure (contour lines follow the form), cut in order-const { ink, shape: spark } = engraveShape(- 'M0 -120 C12 -40 40 -12 120 0 C40 12 12 40 0 120 C-12 40 -40 12 -120 0 C-40 -12 -12 -40 0 -120 Z', // a four-pointed spark- { at: B.xf(860, 560, 1.9), light: [-0.6, -0.7], spacing: 4.2, style: 'contour' }); // or style: 'hatch'-engraveShape('M0 0 H150 V26 H0 Z', { at: B.xf(1140, 740, 1), ink, g: 't' }); // its cursor tail, same ink-ink.schedule(['ol', 'tol'], 0, 1.1, { conc: 2 }); ink.schedule(['h1', 'th1'], 0.8, 2.2, { conc: 40 });-ink.schedule(['h2', 'th2'], 1.6, 2.7, { conc: 40 }); ink.schedule(['h3', 'th3'], 2.2, 3.0, { conc: 40 }); ink.build();--// 2. the "only colour": hand-colour one element and leave everything else in black ink-const w = new Wash({ scale: 1.5 });-w.add({ path: spark.path, polys: spark.polys, color: '#D97757', origin: [860, 560], t0: 3.0, dur: 1.2, alpha: 0.85 });--window.render = t => {- drawSheet(ctx); // paper, plate tone, plate mark- w.draw(ctx, t); // colour under the ink (omit for pure black-and-white)- ink.draw(ctx, t); // everything cut by time t; lines being cut grow- engraveText(ctx, 'THE SPARK.', 960, 170, { size: 50, weight: 600, track: 0.16, p: t - 1.5 });-};-```-Runnable as `demo/example/index.html` (`node core/render/still.mjs styles/engraving/demo/example 4.5`), output in `demo/stills/engine_example.jpg`.--Main functions:--| Function | What it does | Key parameters |-|---|---|---|-| `B.shape(d, xf)` | SVG path → world rings + Path2D | `xf(x, y, scale, rot, flip)` |-| `B.Ink` | ordered, width-bucketed stroke store | `group(name)`, `schedule(group, t0, t1, {conc})`, `instant(group)`, `draw(ctx, t, {color, wScale, dx, dy})` → tips being cut |-| `B.hatch(ink, polys, o)` | one family of swelling lines bent to the form | `angle, spacing, bend, tone(x,y), thr, wMin, wMax, swell, excl` |-| `B.engraveTone(ink, polys, o)` | the engraver's three passes | `angle, cross, third, t2, t3, g` |-| `B.formTone(polys, {light})` | any shape → pillow-lit tone field (+ `.df` distance) | `light, lz, base, radius, rim` |-| `B.contourHatch(ink, polys, o)` | lines following the form (iso-distance contours) | `spacing, tone, thr, wMax` |-| `B.outline / B.stroke` | swelling contour / open burin stroke | `w, light, vary, run, pinch, swell, excl` |-| `B.stipple`, `B.fur` | dots by tone; combed hair flicks | `density, r, tone` / `len, dir(x,y), curl` |-| `B.sphereTone`, `B.cylTone`, `B.linTone`, `B.blobTone` | analytic tone fields | light from `B.LIGHT` |-| `Wash` | hand colouring, cached per region | `add({path, polys, color, alpha, origin, t0, dur, spill, offset, lift, pool})`, `draw(ctx, t)` |-| `drawSheet`, `borderInk` | paper, plate tone, bevel; ruled border as ink | `plate: [x0, y0, x1, y1]` |-| `engraveText`, `writeScript`, `wrapLines` | cut roman lettering; written script; fixed-size balanced wrap | `size, weight, italic, track, align, p` |-| `roundelFrame` | double-ruled circle scribed by `p` | `x, y, r, p, w` |-| `Copper.drawCopper / copperLight / drawGrooves / drawBurin / drawSwarf` | the copper close-up | `zoom, lift, skew, s` |--A minimal runnable example of the whole thing is `demo/film.js` with `content_alt.json` (a different subject, two details).--## 11. Swap in your content--`demo/content.json` drives every word, number and colour.--| Field | Type | Range | If out of range |+`demo/engine/`: `burin.js` (`B.Ink` ordered stroke store + `schedule`, `B.hatch`, `B.engraveTone`, `B.contourHatch`, `B.outline`/`B.stroke`, `B.stipple`, `B.fur`, tone fields), `plate.js` (`drawSheet`, `engraveText`, `writeScript`, `roundelFrame`), `wash.js` (`Wash`), `copper.js` (copper, burin, swarf), `index.js` (`engraveShape(svgPath, {at, light, spacing, style})`: any SVG shape → engraved figure). `demo/example/index.html` engraves and colours a four-pointed spark in ~20 lines; code and function table in DEMO.md "Engine reference".++## 11. Variation space++You decide subject, details, order, opening, ending, camera path, colour, pacing and music. Use cases are **grammar for the order and duration of information**; build your own timeline from the user's facts.++| Use case | Information order | Hold per layer | Length ||---|---|---|---|-| `title` | string | ≤ 22 characters | longer titles run past the latin line's width; shorten or drop to 44 px in `film.js` |-| `latin` | string | ≤ 30 characters | read time grows (chars/12 + 1 s must fit before the first push at 9.4 s) |-| `plate_no`, `series` | string | ≤ 10 / ≤ 48 characters | series collides with the title above ~48 characters |-| `subject` | `"bee"` \| `"scallop"` | built-in subjects | unknown → `bee`; a new subject is a module returning `{ink, regions, focus}` with an `ol0` first stroke (see `subjects/scallop.js`) |-| `details[]` | array of `{name, latin, note, focus}` | 1–4 | >4 are ignored; fewer leaves slots → the first empty one shows the natural-size figure; the timeline re-flows (first 9 beats, others 7 beats each) |-| `details[].focus` | string | bee: `eye`, `hamuli`, `corbicula` (drawn magnifications); any subject: its `focus` keys | a key with no drawn magnification gets a live magnification of the figure itself |-| `details[].note` | string | ≤ 60 characters (2 lines at 29 px) | a third line starts to meet the next roundel |-| `colors[]` | `{region, color}` | regions of the subject (bee: abdomen, thorax, head, eyes, wings, legs, pollen; scallop: shell, bands, ears) | unknown regions are skipped; order = order of colouring |-| `caption` | string | ≤ 50 characters | must stay readable ≥ chars/12 + 1 s inside the 4.4 s final plate |-| `signature.left/right` | string | short | — |-| `nat_size_label` | string | ≤ 16 characters | — |-| `voice.voice`, `voice.speed`, `voice.lines[]` | Kokoro voice, 0.8–1.0, `{id, text, asr?}` | ids: `title`, `d1`…`dN`, `close` | a line longer than its section overlaps the next one; keep d-lines ≤ 4.5 s |-| `end.film_title`, `end.style_name`, `end.credits[]` | strings | credits ≤ 3 lines of ≤ 35 characters | longer lines break the end card's reading time |--Steps: edit (or copy) the JSON → `sh styles/engraving/demo/build.sh my_content.json` (TTS + whisper check, events, score re-placed from the events, mix, cue check, subtitles, frames). To keep the main film untouched, `sh styles/engraving/demo/tools/build_alt.sh my_content.json` builds everything in `demo/out/alt/` instead (the demo's `content_alt.json`, 2 details, 35.6 s, passes the cue check).--Minimal example:--```json-{- "title": "The Great Scallop", "latin": "Pecten maximus", "plate_no": "Pl. XII",- "series": "Shore Gallery · Shells of the Atlantic Coast", "subject": "scallop",- "details": [ { "name": "Hinge", "latin": "umbo", "note": "The oldest part of the shell.", "focus": "umbo" } ],- "colors": [ { "region": "shell", "color": "#d98a5c" }, { "region": "bands", "color": "#a8423a" } ],- "caption": "Hold a real shell at the Discovery Table",- "voice": { "voice": "bm_fable", "speed": 0.92, "lines": [ { "id": "title", "text": "Plate twelve. The great scallop." } ] }-}-```+| **Museum label / case screen** | title + scientific name → detail + term + note (×N) → where to see it | title ≥ 2.2 s; note ≥ chars/12 + 1 s; final ≥ 4 s | 30–40 s |+| **"One minute on …"** | question → name → 2–3 facts → one number → follow prompt | number ≥ 2.5 s alone | 35–60 s |+| **Textbook figure** | figure → parts labelled one by one → caption | label ≥ chars/12 + 1 s | 20–45 s |+| **Craft heritage** | object → 2–3 craft details → maker / edition | as above | 30–45 s |+| **Map / site plan** | place → insets → legend → visiting info | inset ≥ 3 s; legend ≥ 4 s | 30–45 s |++All far from our demo:++- Structures: **states of one plate** (one view re-cut three times as a place changes); **a book of plates** (four small plates turned like pages, one fact each, no roundels); **a dissection** (parts labelled in teaching order, colour only on the part taught).+- Openings: **the finished proof burnished back** to its first line; **on paper at 1×** (title cut first, figure grows below); **raking light over blank copper** as the design is traced.+- Endings: **plate beside its proof**; **the natural-size figure** held alone; **a blank new sheet** laid on the stack.++Swapping `demo/content.json` and rebuilding is a technical check that the engine re-flows, not a way to make a film.++---++How our demo was made (story, shots, score, end card, build, content fields): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/engraving/TREATMENT.md b/styles/engraving/TREATMENT.mddeleted file mode 100644index 4162006..0000000--- a/styles/engraving/TREATMENT.md+++ /dev/null@@ -1,158 +0,0 @@-# TREATMENT · 53 Copperplate Engraving · `engraving`--**片名**:*The Honeybee, Plate VII*-**场景**:博物馆展品说明屏 / 科普账号"一分钟认识 ××" / 教材配图动画。演一块真实的展柜屏:一张 19 世纪博物志图版,从铜版上的第一刀刻起,到三处放大细节、手工上色,最后落成一张能直接当展签或封面的完整图版。-**时长**:40.0 s(场景 36.25 s + 结尾卡 3.75 s),96 BPM 网格,16 小节。-**旁白**:要。温和的英国博物学家口吻,Kokoro `bm_fable`(备选 `bm_lewis`,制作时两者都试,选更像"讲解员"而不是"播音员"的那个)。字幕用铜版手写体(Pinyon Script),印在一张纸签上。-**所有文字**:`demo/content.json`(标题、图版号、系列名、1–4 个细节的名称/拉丁名/注释/放大部位、配色、展签行动号召、署名、旁白台词)。-------## 1. 对标(只学语法)--| 对标 | 学什么 | 刻意不学 |-|---|---|---|-| 19 世纪博物志图版:Ernst Haeckel《自然界的艺术形态》、Audubon、Westwood/Harris 的昆虫图版、《大英百科》铜版插图 | 图版的**版式语法**:居中标本、四周编号放大圆框、罗马大写标题 + 斜体拉丁名、底部图注、左下"del."右下"sculp."署名、印压凹框 | 不抄任何一张图版的构图、标本姿态、字体设计、边饰 |-| 贺加斯、杜雷的铜版线 | 明暗**全靠线**:顺形体的排线,半调处加交叉,最暗处再加第三组;线在暗部变粗、两端收尖;点刻做绒毛和粉末 | 不学杜雷的戏剧性黑场(那是 woodcut 和宣传片里已用过的方向) |-| 手工上色版画(18–19 世纪着色铜版) | 墨线印完再上透明水彩:**一块一块平涂**,颜色略溢出线,边缘积色,墨线始终压在上面 | 不做厚涂、不做渐变晕染插画感 |-| 博物馆展签 / 自然科学馆的展柜屏 | 信息层级:名称 → 学名 → 三个"你不知道的细节" → 去哪看真的 | 不做 UI、不做图标、不做数据图表 |--## 2. 和库内风格的区别--- **木刻 woodcut**:黑版刻白,粗刀痕,一色套印,镜像字是它的招式。本风格正相反:**凹版**,线是墨,纸是白;线是金属雕刀推出的**极细均匀线**(屏上 0.3–2 px),明暗靠疏密和交叉;彩色是**印后手涂的透明水彩**,不是第二块版。开场虽然也"刻出来",但刻的是铜(有金属屑、刻槽亮边),而且一刀之后就印成纸。-- **钢笔淡彩 urban-sketch**:速写线松、会断、有抖动,颜色是现场淡彩。本风格的线是机械般均匀、按三遍工序严格排布,淡彩是平涂而不是洇染写生。-- **蓝图 blueprint**:工程制图、标注尺寸、白线蓝底。本风格是博物学图版:标本、放大圆框、拉丁名、手写体注释。-- **白板讲解 whiteboard**:边讲边画的讲解。本风格不画示意图,只刻一件标本,信息靠图版版式分层。-- 场景用途和已有 demo 不撞:不是发布会、产地旅程、原理讲解、数据、开箱、海报、教程。是**展品说明屏**。-- 配乐:巴洛克室内乐(羽管键琴 + 弦乐四重奏拨弦),库里没有。--## 3. 信息弧--| 层 | 时间 | 信息 | 这一层的动作 | 声音落点 |-|---|---|---|---|---|-| 钩子 | 0–2.5 | (无字)一件标本正在被刻 | 铜版大特写,雕刀推着刻槽顺着蜂腹弧线走,铜屑卷起;描稿划痕隐约露出整只蜂 | 刻刀的金属嘶声 + 屑的细碎叮声;第 1 小节后两拍羽管键琴弱起 |-| 主标题 | 2.5–9.4 | 整体形态 → 标题 + 学名 + 图版号 | 揭印转场成纸;轮廓 → 第一遍排线 → 交叉排线 → 暗部第三遍 + 绒毛,镜头一路拉到全版;7.5 s 标题逐字刻出 | 拨弦网格进入,每遍排线一层声部;标题落在第 4 小节重拍;旁白"Plate seven…" |-| 细节 1(签名) | 9.4–15.0 | Fig. 1 复眼 / oculus compositus / 注释 | 推进到蜂眼 → 放大圆环刻出 → 环内磨光重刻成六边形小眼 → 圆框带着引线飞到左上 → 标签刻出、注释手写 | 推镜时声部收窄;圆环一声高音"叮";圆框落位一个低音拨弦;旁白 d1 |-| 细节 2 | 15.0–19.4 | Fig. 2 翅钩 / hamuli | 镜头下摇到左下;圆框在后翅前缘诞生,飞到左下 | 同一语法,加快 |-| 细节 3 | 19.4–23.75 | Fig. 3 花粉篮 / corbicula | 镜头不动(全景),圆框在后腿上诞生,跳到右下 | 更快;旁白 d3 |-| 收拢 | 23.75–25.0 | 自然大小 | 空槽里刻出一只"原大"小蜂;全版齐 | 键琴下行跑句收束 |-| 静音 | 25.0–26.25 | — | 全版单色静止,呼吸 | **静音**(只剩极轻房间底噪) |-| 高点 | 26.25–31.25 | 颜色 | 第一滴水落下:琥珀从蜂腹一点晕开,赭石、棕、淡蓝翅、橙色花粉依次平涂,放大圆框同步上色;旁白 close | 静音后第一个声音是水滴(全片最重要的声音之一);弦乐长音拉开 |-| 落版 | 31.25–36.25 | 行动号召 + 署名 | 底部展签"See the living hive · Gallery 4, Observation Case 12"刻出,del./sculp. 署名;**全版静止 ≥ 4 s** | 终止式和弦,余音 |-| 结尾卡 | 36.25–40.0 | 片名、风格名、Lemo-Opuscar、LemoLab × Claude Opus 5.5、素材署名 | 书中护页薄纸落下盖住图版,字印在薄纸上,底下图版隐约透出 | 薄纸沙沙声(J-cut 提前 0.2 s) |--阅读时间:三条注释都 ≤ 45 字符,写完后在画面里一直留到片尾(细节 2、3 的机位都包含细节 1/2 的标签),另在落版全部同时在场 5 s;旁白同时念出同一信息。--## 4. 原生招式--1. **刻出来的明暗**:同一块形体上能看到三遍工序一层层加密——轮廓、顺形排线、交叉排线、暗部第三组、点刻绒毛。引擎按"雕刻顺序"记录每一根线,所以任何图都能按刻的顺序长出来。-2. **放大圆框(签名镜头)**:镜头推到蜂眼,一个圆环在眼睛周围刻出来,圈内被"磨光"成白纸(铜版刻错时用刮刀磨平,这是真实工序),再以放大倍率重刻出六边形小眼;然后圆框带着引线从蜂眼飞到版面左上角,镜头一路跟着拉开。一镜到底,把"放大"这个博物志版式动作化。-3. **手工上色**:透明水彩从笔落点晕开,湿边往外推,一块一块平涂,略溢出墨线,墨线始终压在上面。颜色是独立图层,全片前 26 秒完全单色。-4. **印压凹框**:图版四周的斜面压痕(上左背光、下右迎光),纸纹、狐斑都在世界坐标里,镜头动时它们跟着纸走。-5. **开场的铜版**:抛光铜面、雕刀、刻槽亮边、卷起的铜屑,然后"揭印"转成纸——告诉观众这是铜版画,不是钢笔画。--## 5. 镜头表--| # | 时间 | 景别 | 角度 | 运动 | 时长 | 为什么 |-|---|---|---|---|---|---|---|-| 1 | 0–2.5 | 大特写(铜版 5.2×) | 俯视,微斜 −3° | **跟**:机位跟着刀尖走 | 2.5 | 第一帧就是媒介最迷人的动作;跟刀尖让观众的眼睛只看一个点 |-| 2 | 2.5–3.1 | 大特写 | 俯视 | 揭印转场(纸从铜上揭起的折线扫过画面) | 0.6 | 媒介内转场:铜 → 纸 |-| 3 | 3.1–7.4 | 大特写 → 全景 | 俯视 | **拉**(对数变焦,屏幕线性的推拉手感) | 4.3 | 尺度揭示:那条弧线原来是一只蜂的腹部;拉的过程中排线一遍遍加密 |-| 4 | 7.4–9.4 | 全景(整版) | 正俯 | 定 | 2.0 | 标题落版,给观众看清整张图 |-| 5 | 9.4–10.5 | 全景 → 特写(4.3×) | 正俯 | **推** | 1.1 | 眼睛被带到唯一的信息点:蜂眼 |-| 6 | 10.5–13.4 | 特写 → 中景(1.45×) | 正俯,微滚 0.6° → 0 | **跟 + 拉**:机位骑着圆框飞到左上 | 2.9 | 签名镜头:放大圆框和引线的因果关系在一个镜头里说完 |-| 7 | 13.4–15.0 | 中景(左上半版) | 正俯 | 定 | 1.6 | 读标签 |-| 8 | 15.0–17.9 | 中景 | 正俯 | **下摇**(左上 → 左下),过程中轻推到 2× 再回 1.45× | 2.9 | 第二个细节,同语法加速;机位保留细节 1 的标签 |-| 9 | 17.9–19.4 | 中景(左下半版) | 正俯 | 定 | 1.5 | 读标签 |-| 10 | 19.4–25.0 | 全景 | 正俯 | 定(锁定,只有 1.2% 的呼吸推) | 5.6 | 节奏收:机位不动,动作只在版上;让前两条标签全程可读 |-| 11 | 25.0–26.25 | 全景 | 正俯 | 定 | 1.25 | 静音、呼吸 |-| 12 | 26.25–31.25 | 全景 | 正俯,滚 −0.1° | **缓推**(1.0 → 1.018 → 1.0,几乎不可察) | 5.0 | 高点时镜头克制,运动交给颜色 |-| 13 | 31.25–36.25 | 全景 | 正俯 | 锁定 | 5.0 | 落版,可截图 |-| 14 | 36.25–40.0 | 全景 | — | 护页薄纸**降下**(画内元素的垂直运动) | 3.75 | 媒介内转场到结尾卡 |--运动种类:跟、拉、推、跟拉复合、下摇、微推、画内元素降下,≥ 4 种。景别:大特写 / 特写 / 中景 / 全景。--## 6. 分镜节拍表 & cue map(96 BPM,1 拍 = 0.625 s,1 小节 = 2.5 s)--| 小节 | 时间 | 配器 | 情绪 | 卡点 |-|---|---|---|---|---|-| 1 | 0.0 | 无音乐;刻刀嘶声 + 铜屑 | 专注 | 1.875(第 4 拍)羽管键琴弱起两音;2.0 刀抬起,0.5 s 近静音 |-| 2 | 2.5 | 拨弦四重奏(大提琴根音 + 中提琴八分音)+ 羽管键琴通奏低音 | 开始工作 | **2.5 揭印 = 下拍**;轮廓线落在八分音网格 |-| 3 | 5.0 | + 第二小提琴拨弦十六分音 | 加密 | 4.9 交叉排线开始(≈ 第 3 小节 4 拍前);5.6 第三遍 |-| 4 | 7.5 | + 羽管键琴分解和弦 | 成形 | **7.5 标题刻出 = 下拍**;旁白 title 7.65 |-| 5 | 10.0 | 声部收窄,只剩键琴高音 + 大提琴持续音 | 凝视 | 10.48 推镜到位;10.43 圆环"叮"(第 5 小节第 2 拍前);11.28 起飞 |-| 6 | 12.5 | 拨弦回来 | 揭示 | 12.78 圆框落位 = 第 6 小节第 1 拍后半,低音拨弦;12.68 名称 |-| 7 | 15.0 | 同 5–6,缩短 | 加速 | 15.0 下摇起;15.7 圆环;16.8 落位 |-| 8 | 17.5 | | | 17.3 名称;17.8 注释 |-| 9 | 20.0 | 第一小提琴旋律进入(一句,8 拍) | 更快 | 19.4 细节 3 开始(小节中);20.1 圆环;21.6 落位 |-| 10 | 22.5 | | | 21.7 名称 |-| 11 | 25.0 | 键琴下行跑句(23.75–25.0)→ **25.0 全静音** | 屏息 | 23.75 原大小蜂开始刻;**25.0–26.25 静音** |-| 12 | 26.25 | 水滴;弦乐四重奏拉弓长音(第一次用弓) | 绽放 | **26.35 第一滴水 = 静音后第一个声音**;之后每 0.42 s 一滴 |-| 13 | 28.75 | 弦乐 + 键琴装饰 | 温暖 | 旁白 close 26.8 |-| 14 | 31.25 | 终止式(V–I),31.25 下拍 | 完成 | **31.25 展签刻出 = 下拍**;32.25/32.45 署名两下 |-| 15 | 33.75 | 主和弦余音 + 拨弦一声 | 回响 | 33.75 最后一拨 |-| 16 | 36.25 | 余音消失,薄纸沙沙 | 合上 | 36.05 薄纸声 J-cut;36.25 结尾卡 |--快慢:开场极慢(一根线)→ 第 2–4 小节快速加密(几千根线)→ 细节 1 长(9 拍)→ 细节 2、3 各 7 拍,镜头越来越少动 → 静音 → 上色慢 → 落版定。--卡点自检:制作时仿 microgame 的 `cuecheck.py`,把 `window.EV` 导出的每个事件对齐 96 BPM 网格(容差 ±1 帧),不在网格上的写明理由(例如旁白起点按语句重音对齐)。--## 7. 声音设计表--| 段落 | 环境底 | 主要拟音 | 音乐状态 |-|---|---|---|---|-| 钩子(铜版) | 安静的刻版室:极低的房间底噪 + 远处座钟滴答(很轻) | 雕刀推进的金属嘶声(连续、随曲率变调)、铜屑卷起的细碎高频叮声、刀抬起的一下"嗒" | 无,最后两拍键琴弱起(J-cut 进下一场) |-| 揭印 | 同上 → 纸的房间音 | 压印机滚筒的低沉滚动(提前 0.25 s,J-cut)、纸从铜版揭起的撕贴声;刻刀嘶声尾巴拖进纸面(L-cut) | 拨弦进入 |-| 排线加密 | 纸面房间音 | 细密的刻线沙沙声(颗粒合成,密度跟当前正在刻的线数走)、每一遍开始时一声轻"刮" | 拨弦逐层加声部 |-| 标题 | 同 | 每个字母一下极轻的点刻"嗒" | 键琴分解和弦 |-| 放大细节 | 同 | 圆环:一声金属"叮"(刀尖划圆);磨光:刮刀的软"嘘";圆框飞行:纸滑动的轻 whoosh;落位:一个低音拨弦 + 纸"啪";手写注释:鹅毛笔在纸上的划写声 | 推镜时收窄,落位后回来;旁白时 ducking −6 dB |-| 静音 | 近乎无声(只留 −50 dB 底噪) | 无 | 无 |-| 上色 | 纸面房间音 + 极轻的水杯声 | 第一滴水"嘀"、笔毛落纸的湿声、颜料晕开的细微湿响(每块颜色一声) | 弦乐拉弓长音 |-| 落版 | 纸面房间音 | 展签刻字的"嗒"、两个署名的轻点 | 终止式,余音 |-| 结尾卡 | 渐弱 | 护页薄纸落下的沙沙声(J-cut) | 余音消失 |--两处静音:2.0–2.5(刀抬起后的一口气,之后是揭印的"咚"+ 音乐下拍);25.0–26.25(上色前,之后是第一滴水)。-J/L-cut:①键琴弱起提前进揭印 ②压印滚筒提前 0.25 s ③刻刀嘶声拖进纸面 ④水滴先于颜色可见 ⑤护页沙沙声先于画面。--## 8. 字幕设计--- 旁白字幕印在一张**手裁纸签**上(米白、毛边、一点投影),位于画面底部中央,最宽 860 px;字体 Pinyon Script(铜版手写体)40 px,最多两行,墨色 `#2b1e14`。-- 纸签避开标签区:细节 2 的机位把左下标签抬到屏幕 y < 910,字幕在 y > 960。-- 每句字幕停留 = 语音 + 0.6 s(至少 1.8 s),淡入 0.25 s。落版和结尾卡无字幕。-- `.srt` 由同一份 subs 数据导出。--## 9. 版面系统(content.json 驱动)--- 1920×1080 世界坐标 = 一张纸;印压凹框 (70,44)–(1850,1036);双线边框 (100,72)–(1820,1008)。-- 标本居中 (960, 606);四个圆框槽位 UL / LL / LR / UR(中心 x 300 / 1620,y 300 / 700,半径 120),细节按顺序占 UL → LL → LR → UR,放大部位自动取离槽位同侧的那只眼 / 翅 / 腿。-- 细节 1–4 条:第一条 9 拍(签名镜头),其余各 7 拍;后面的段落整体顺延。细节少于 4 条时,第一个空槽刻"原大小"标本。-- 注释超宽先缩字号(29 → 25 px),再自动折两行。-- 换内容 = 改 JSON(关卡 2 交 `content_alt.json` 证明)。--## 10. 风险与待定--- 标本是代码画的"蜂":主体比例和解剖做了功课(复眼、单眼、膝状触角、翅脉、翅钩、花粉篮),但腹部条纹仍偏规整,腿偏细。制作阶段继续打磨。-- `subject` 字段目前只有内置 `bee`;换成别的标本需要写新的 subject 模块(引擎的 `engraveShape()` 可以把任意 SVG 形状刻出来,但复杂标本仍需手写)。这点在 STYLE.md §11 写清楚。-------## 11. 关卡 1 之后的修订(制作版,以此为准)--按关卡 1 审查意见改动,成片以下列时间为准(96 BPM 网格不变,总长 40.0 s):--| 段落 | 时间 | 变化 |-|---|---|---|-| 钩子 | 0–2.5 | 铜版重做:抛光划痕 + 窗户倒影;刻槽内暗外亮(铜毛刺);蘑菇木柄、菱形截面钢杆、斜切刀面、铜箍;铜屑是刀尖**前方**长出的螺旋薄带。镜头 4.2× 跟刀尖 |-| 揭印 | 2.5–3.2 | 折线从右下扫向左上,先揭到刻线;卷起的纸背透出**反向**的印痕 |-| 成形 + 拉远 | 2.6–6.9 | 全片线条改为雕刀线:两头尖、中间粗,轮廓分几刀、交接处收细;暗部粗密、亮部细到消失 |-| 标题 | 6.25 | 拉丁名改短为 *Apis mellifera*(阅读时间够到 9.4 的推镜前);系列名和图版号挪到 23.75 全景时刻出 |-| 细节 1 | 9.375–15.0 | 不变(签名一镜到底,机位骑着圆框飞) |-| 细节 2 | 15.0–19.375 | 从细节 1 的机位**下摇**到左下,细节 1 的注释全程在画内 |-| 细节 3 | 19.375–23.75 | 先**拉回全景**(圆框在全景里飞到右下),22.3 细节 2 注释读够后再**推进**读细节 3 |-| 收拢 | 23.75–25.0 | 拉回全景,刻出"Natural size"原大小蜂、系列名、图版号 |-| 静音 | 25.0–26.25 | 实测 −52.8 dBFS(只剩房间底噪) |-| 上色 | 26.25–31.25 | 水彩重做:水痕边(外缘积色)、局部浓淡、回流花、纸纹颗粒、略溢出墨线、错版 |-| 落版 | 31.25–35.625 | 展签改为 "See the living hive in Gallery 4"(32 字符,4.3 s 可读) |-| 结尾卡 | 35.625–40.0 | 护页落下;署名三行各 ≤ 35 字符 |--其它:注释字号统一 29 px,超宽折行并两行均衡;引线 1 改道从翅膀上方绕过(与翅、体保持 ≥ 34 px);蜜蜂复眼改为贴头两侧的肾形,腹节改为前后覆叠 + 绒毛带 + 轮廓台阶,翅脉按蜜蜂真实翅脉重画(长缘室 + 3 个亚缘室 + 2 个中室,横脉吸附到纵脉上);FIG. 3 重画为直立胫节:凹面、两侧长毛流苏、压实的花粉团、下方基跗节的花粉梳。diff --git a/styles/engraving/demo/stills/engine_example.jpg b/styles/engraving/demo/stills/engine_example.jpgnew file mode 100644index 0000000..2457527Binary files /dev/null and b/styles/engraving/demo/stills/engine_example.jpg differdiff --git a/styles/engraving/demo/stills/styleframe.jpg b/styles/engraving/demo/stills/styleframe.jpgnew file mode 100644index 0000000..3e781d1Binary files /dev/null and b/styles/engraving/demo/stills/styleframe.jpg differdiff --git a/styles/engraving/style.json b/styles/engraving/style.jsonnew file mode 100644index 0000000..f593116--- /dev/null+++ b/styles/engraving/style.json@@ -0,0 +1,18 @@+{+ "slug": "engraving",+ "num": "53",+ "en": "Copperplate Engraving",+ "cn": "铜版画",+ "category_en": "Print & Printmaking",+ "category_cn": "印刷与版画",+ "film": "The Honeybee, Plate VII",+ "line": "A natural-history plate engraves itself: the burin cuts the copper, the bee builds up line by line, and a watercolour wash brings it to life.",+ "line_cn": "一张博物志图版自己刻出来:雕刀推开铜版,蜜蜂一线线成形,最后手工水彩上色。",+ "uses": [+ "Museum labels",+ "Science explainers",+ "Brand heritage"+ ],+ "frame_sec": 34.0,+ "dur": 40.0+}diff --git a/styles/game-show/DEMO.md b/styles/game-show/DEMO.mdnew file mode 100644index 0000000..a024f11--- /dev/null+++ b/styles/game-show/DEMO.md@@ -0,0 +1,196 @@+# Game Show Flat — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *AI进化节拍 · Rhythm of AI 1997 → 2026* (v3, 148.8 s, 1920×1080, 30 fps) · `game-show.mp4` · source in [`demo/`](demo/) · engine: plain SVG DOM with a pure `render(t)`, screenshotted by Playwright + Chrome Headless Shell; original score synthesized in numpy from the picture's own `events.json`.+++**Language note.** All on-screen text in the demo is **Chinese** (level names, year banners, labels, the report card, the credit card). The only audio words are short **English shouts** ("Checkmate.", "Hey!", "Question!"). There is **no narration**. To make an English version, see "Switching the text to English" below.++## Story & structure++The history of AI from 1997 to 2026 staged as a **game show made of rhythm levels**. The film opens on a title set where the whole cast drops in on the beat and counts "One! Two! Three! Four!". Then comes a run of **levels**. Each level is **one bar of title card** (GAME N + name + years, flying in on a brass jingle) followed by **eight bars of play**: a pattern is set up in the first half, answered or escalated in the second, and the last beat (bar 7, beat 3) is a **slam + "Perfect!"** judgement. A **remix** level near the end piles every recent event onto one set, with a month timeline across the top and shrunken thumbnails of each finished bit parked along the bottom. The ending hatches a new character from an egg, types out a **report card** ("AI 进化史 · 成绩单") with a Superb! star, and closes on a **credit card**.++How the demo spent the native moves:++| Native power | Demo use |+|---|---|+| **Levels with years** | Chess and Go (1997–2016), quiz show (2011), attention factory (2017–2020), AI art studio (2021–2024), chat chorus (2022–2023), thinking + price war (2024–2025), agent pipeline (2025), then a 2026 remix. |+| **Call-and-response** | Human move / machine move (chess), question / buzzer (quiz), lead "Hey!" / crowd "Hey!" (chorus), task drops / stamp DONE (agents). Go stones on eighth notes after chess on quarter notes. |+| **Judgement words** | "Perfect!", "第 37 手!", "首超!", price tags getting hammered, "9.9 ✓" thought bubbles. |+| **Stats as game UI** | Podium dollar scores, a users counter racing to 1,000,000, parameter counts, price tags ($60 → $2.19), a bar chart that grows by beat. |+| **Remix / thumbnails** | One set, a month ribbon, each item gets 2 bars centre stage and then shrinks (×0.27) into a slot at the bottom. In the finale all thumbnails bounce together under a giant year. |+| **Egg → report card → credit** | A "next level" tease (NEXT egg hatches a "???" baby bot), then a typewriter recap of three lines, then the credit card. |++**Demo shape:** cold open on the cast + count-in (4 bars) → 7 levels of 9 bars (card + 8) → 1-bar REMIX card → 16-bar remix (7 items × 2 bars + 2-bar finale) → 9-bar ending (egg 2 bars, "Hi!" 1 bar, report card 3 bars, credit 3 bars incl. 0.8 s fade). Total 93 bars = 148.8 s.++How we adapted the topic: we listed the phases, gave each one *one verb that can repeat on a beat* (place, buzz, pump, splat, sing, hammer, stamp), a year range and a set colour, and picked one "Perfect!" moment per level. The topic had a crowd (many companies and products), so they became bean contestants with name tags dropping in one per beat.++## Shots++No camera travel anywhere in the demo: a frontal, symmetrical proscenium throughout. Tempo `BPM = 150`, `B = 0.4 s`, `BARL = 1.6 s`.++| Section | Bars | Camera / cut | Note |+|---|---|---|---|+| Cold open + title | 0–3 | locked wide, punches on each count | "AI 进化节拍" 200 px, white with a 26 px ink stroke, glyphs popping 0.06 s apart; subtitle "RHYTHM OF AI · 1997 → 2026" in Fredoka; the cast drops in behind it one per half-beat, each with a pitched pip |+| Levels 1–7 | 4–66 | hard cut + 0.08 s white flash on each card bar; punches 0.008 (ticks), 0.02 (hits), 0.03–0.05 (slams) | card bar, then 8 bars of play, slam + "Perfect!" on bar 7 beat 3 |+| REMIX card + remix | 67–83 | locked wide, thumbnails shrink into bottom slots | month ribbon across the top |+| Ending | 84–92 | hard cuts on bar lines; the only fade: last 0.8 s to navy | egg → "Hi!" → report card (typewriter, one character per 1/8 beat, key click per 2 characters) → credit card |++## Score structure++- **Score (`music.py` + `synth_lib.py`)**: 150 BPM, a four-chord loop F–G–Em–Am (the J-pop "royal road", one chord per bar, `CH`), two 8-note melodies `MA` / `MB`. Instruments: tanh-shaped sine kick, band-passed noise snare and clap, hats, slap bass (`slap`, patterns funk/drive/pump/soft), detuned-saw **brass stabs** with a closing filter, square lead with vibrato, pluck (marimba), bell (music box), triangle pad, square arp, cowbell.+- Each bar gets a mode in `PLAN` (`main`, `count`, `funk`, `quiz`, `electro`, `dream`, `film`, `pop`, `popBig`, `think`, `heavy`, `agent`, `agentFast`, `fill`, `future`, `futureBig`, `egg`, `calm`, `fanfare`, `end`), one flavour per level. Level cards get a **jingle** (crash + kick + rising brass arpeggio + snare roll into the level). The 2026 remix transposes up 2 semitones.+- **Event-driven SFX**: `node render.mjs events` exports every `ev()` from the picture to `events.json` (474 events in the demo). `music.py` maps each event name to a sound: `tock`/`bleep` (chess), `stone` (Go), `ding`/`boop`/`buzz` (quiz), `land` (plop + boing), `pip` (pitched pop, uses `f`), `slam`/`bigslam`, `stamp`, `type`, `crack`/`hatch`, `servo`, `liftoff`, `swish`, `clap`, `drop`, `blip`, `kickhit`, `splat`, `denoise`, `cheer`. Unknown names are silently ignored.+- **Shouts**: `v:<name>` events play `voices/<name>.wav`. Voices are macOS `say` system voices (Samantha, Fred, Zarvox, Junior, Kathy, Ralph, Superstar) at rate 170–220, pitched up ×1.0–1.35 without changing length (`asetrate` + `atempo`, see `make_voices.sh`). Zarvox (robot) says machine lines ("Checkmate.", "Move thirty seven.", "Attention!"); Samantha/Fred are hosts. The crowd "Hey!" is six different voices stacked 5–6 ms apart and panned −0.6…+0.6 (`v:crowd`, `v:heyAll`, `v:heyBig`); `v:heyVar` picks one voice per contestant. Shouts are placed 20–30 ms *before* the beat.+- **Mix**: voices + SFX go to their own bus; the music is ducked by up to 40 % from a 12 Hz envelope of that bus; last 0.8 s fades; peak-normalize to 1.5 then `tanh` soft-clip ×0.9 → `music.wav` (44.1 kHz). `finish.sh` then applies two-pass loudnorm to **−14 LUFS / TP −1.2** and resamples to 48 kHz AAC 256k.++## Palette & props++**Canvas & line:** 1920×1080 SVG. Outline `K.ol = #1B1B1B`, width `OW = 8` px (`SO` spread: stroke, 8 px, round join and cap); 5–7 px on small parts. Hard offset shadow +10 px (banners) or +14 px (level cards).++**Palette (`K` in `main_v1.js`/`main.js`):**+| Role | Colours |+|---|---|+| Ink / paper | `ol #1B1B1B`, `white #FFFFFF`, `cream #FFF6E5` (cards, report card) |+| Candy primaries | `yellow #FFD23F`, `orange #FF8C42`, `red #FF5A5F`, `pink #FF8FB1`, `green #5BD68A`, `lime #C6F16D`, `sky #8ED1FC`, `blue #4D7CFE` |+| Deep sets | `purple #6B4FBB` / `purpleD #46318F`, `teal #3FB8AF` / `tealD #2B8F88`, `navy #26264A` (ending) |+| Props | `wood #C98A52` / `woodD #8E5530`, `gray #C3CAD9`, `chalk #2F5D50`, `skin #FFD1A8` |+| Character hues | `gpt #19B388`, `claude #D97757`, `gem1 #4E7CF6` / `gem2 #9B6CF0`, `llama #F4E9D8`, `whale #4D6BFE`, `dblue #2B59C3` |++Sets use `stripes()` (diagonal bands, often slowly scrolling), `dots()` (offset polka dots at 18–25 % white) or `raysEl()` (a rotating sunburst). Floor band at y = 860–900 with an 8 px ink line on top.++**Type:** Chinese = **Noto Sans SC 900** (`F.sans`) everywhere; Latin display = **Fredoka 700** (`F.round`: GAME N, years, "Perfect!", name tags, numbers); **ZCOOL KuaiLe** (`F.cute`) only for hand-written props. Big words use `gtext()`; title text uses `chars()`.++**Characters (`bean()` in `main_b.js`):** a rounded bean body (160 px wide, 172 px tall at scale 1), two stubby arms with white mitten hands, two foot ovals, oval eyes with a white catch-light, pink blush, a small curved mouth that swaps to an open red mouth. Identity = body colour + belly patch + **one** head mark (antenna ball, heart, "?", moon, bolt, cloud, sprout, brush, beret, captain hat, llama wool, whale spout) + an ink name-tag pill under the feet. Gemini is two half-size beans (`twins()`). Humans (`human()`) have a shirt, a round head, hair cap, optional glasses and a sweat drop. Machines of the 1990s–2010s are boxier robots (`robotDB`, `robotAG`, `robotT`, `robotW`).++**Recurring UI:**+- **Level card** (`card()`): full-bleed set colour + scrolling stripes, a cream panel (1240×460, r 50, 10 px outline, 14 px shadow), a pill tag "GAME N", the level name auto-fitted to 720 px, the years in the set colour, an icon hopping on the left.+- **Year banner** (`banner()`): top-left sticker: year in Fredoka + name + one-line subtitle, slides in from the left with a back-ease and lifts out upward.+- **Judgement** (`judge()`): 120 px Fredoka word, pink/yellow with an 18 px ink stroke, pops at −6°.+- **Burst** (`burst()`): 8-point star + expanding white ring + 8 ink speed lines, 0.3 s.++Motion numbers: `hopY(t, h)` h 8–30 px; `hitSq` 30 rad/s for 0.35 s; downbeat squash `1 - 0.1*exp(-frac(t)*16)`; `dropY` falls 500–900 px; `heyAt` 0.24 s.++**Subtitles & titles.** No burned-in subtitles: on-screen words are the telops themselves (≤ 20 CJK characters on a banner subtitle, ≤ 12 on a plate). `game-show.srt` (generated by `make_srt.py` from `events.json` + `voices/lines*.txt`) lists only the English shouts, one cue per shout, repeated crowd "Hey!"s merged.++## End card++The demo's last card carries **"LemoLab × Claude Opus 5.5"** (× is U+00D7). It is the first line of the credit card that pops in at bar 90 (144.0 s): a cream 1440×360 card (r 40, 8 px ink outline, −1.5° tilt, back-ease pop over 0.3 s) with three centred lines: `LemoLab × Claude Opus 5.5` in Fredoka 700 66 px ink (y −80), `本片由 Claude Opus 5.5 全程代码生成` in Noto Sans SC 900 60 px (y 30), `下一关:正在训练中……` 50 px in `K.claude` (y 118). It holds 4 s and fades to navy with the film. Code: the `credit` block in the ending scene of `main_b.js`. This sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card (take the `credit` block out when reusing the code).++## Rights & facts++- **macOS system voices are licensed for personal, non-commercial use** under the macOS licence. For a commercial or public release, re-voice the shouts with Kokoro (`core/tts/`) or another cleared TTS.+- **Real brands:** the contestants stand for real AI products (GPT, Claude, Gemini, DeepSeek, Kimi, Grok, Midjourney…): names only on name tags, original mascots, loose colour nods; never official logos, wordmarks or product UI. Real people (Kasparov, Lee Sedol, the KEN / BRAD podiums) appear only as generic cartoon stand-ins in factual banners.+- **Facts date fast.** The 2026 remix (Sonnet 5 as default, WAIC 2026, DeepSeek V4-Pro, "GPT-6 Astra", token-volume figures) was written as current news at production time. Re-check every figure and name before reusing any of it.+- The G7 task note on screen literally says "做一个节奏天国风格的视频" (names a real game series). In new films describe the genre, don't name it.++## Switching the text to English++All strings are literals in `main_b.js` (and three in `main_v1.js`):+1. Level cards: `card(SECT.gN, 'GAME N', '<name>', '<years>', …)`; the name auto-shrinks to 720 px.+2. Year banners: `banner(g, '<year>', '<name>', '<subtitle>', col)`; widths auto-measure.+3. Remix: `item(i, m0, m1, '<label>', …)`, `plate(p, '<text>')`, the month ribbon `` `${m}月` `` and the finale label `'2026 · 未完待续'`, `'还没唱完 →'`.+4. Props: quiz `QA` pairs, the Watson sign, the "9.11 和 9.9" chalkboard, the task note, the users counter label `'用户'`, report card title + `lines`, the credit text, the title `chars()` strings. In `main_v1.js`: the robot chest label `'注意力'` (`robotT`) and the sentence tokens in G3.+5. Prefer `F.round` (Fredoka) for Latin headings and keep `F.sans` for body; `init()` preloads fonts from the page's own text, so no font list changes are needed. English runs ~1.6× wider than Chinese: check banners and plates with stills.+6. Re-run `make_srt.py` if shouts change; the shouts are already English.++## Build notes++```+styles/game-show/demo/+ main_v1.js v1 source: palette K, tempo (at/ev/punch), hop/squash helpers, stripes/dots/rays, burst, judge, banner, 1990s robots, chess board+ main_b.js v2/v3 source: bean characters + CAST, human, podium, stage (scene/card), props, ALL scenes (buildAll), render(t), init()+ assemble.py main_v1.js[0:109] (BPM→150, END_BAR→93) + main_v1 robotDB…stage + main_b.js → main.js+ frame_head.html HTML/SVG frame + base helpers (el, txt, tf, op, E, chars, charsPop, measure, bg …)+ build.py frame_head.html + main.js → index.html+ render.mjs events | stills | video (Playwright + Chrome Headless Shell, PNG → ffmpeg x264 crf 12 per worker)+ music.py score + events.json → SFX + shouts → ducked mix → music.wav synth_lib.py instruments & SFX+ voices/ 40 shout wavs + lines*.txt (name|voice|rate|pitch|text) make_voices.sh regenerate them (macOS)+ finish.sh concat segments + loudnorm −14 LUFS + mux → ../game-show.mp4 make_srt.py → ../game-show.srt+ fonts/ fonts.css Noto Sans SC, Fredoka, ZCOOL KuaiLe (woff2 subsets)+ historical: main.js (generated), remix2026.js (draft of the remix section, superseded by main_b.js)+```++All commands from `styles/game-show/demo/` (the scripts also `chdir` there themselves). `PY=../../../.venv/bin/python`.++1. **Plan on the grid.** Fill `SECT` (first bar of each level card) in `main_b.js`, set `END_BAR` via the replace in `assemble.py`, add the card bars to `CUTS`, and write a cue list: which beats get which `ev()`.+2. **Shouts:** add lines to `voices/lines3.txt`, then `sh make_voices.sh out/voices_new` (macOS `say` + ffmpeg), listen, copy the keepers into `voices/`, add the names to `VO` in `music.py`.+3. **Build the page:** `$PY assemble.py && $PY build.py`.+4. **Look at it:** `STILLS_DIR=out/check node render.mjs stills 5.5 20.4 45 78.3 116.5 145` (≈1 s for six frames). Or open `index.html?t=78.3` in a browser.+5. **Events:** `node render.mjs events` → `events.json` (demo: 474 events, `dur 148.80`).+6. **Score + mix:** `$PY music.py` → `music.wav` (≈2 s; deterministic, seed 7). `$PY music.py out/test.wav` writes elsewhere.+7. **Render:** `node render.mjs video 2` → `out/seg_0..1.mp4` + `out/list.txt`. The demo used 6 workers (120 s total); on a shared machine keep 2 (≈3–4 min). `SEGS=5 node render.mjs video 6` re-renders only one of 6 equal segments.+8. **Finish:** `sh finish.sh out/test.mp4` (concat → loudnorm → x264 slow crf 16 + AAC 256k 48 kHz). With no argument it writes `../game-show.mp4` and **overwrites the library film** (back it up first). `AUDIO_FROM=old.mp4 sh finish.sh …` skips the remix and copies the old film's audio track unchanged (used for the sign-off re-render).+9. **Subtitles:** `$PY make_srt.py` → `../game-show.srt`.+10. **Review:** `ffmpeg -i out/test.mp4 -vf fps=1/4,scale=384:-1,tile=6x7 -frames:v 1 out/sheet.jpg` plus stills around every slam.++### Pitfalls we hit++- **`render(t)` must be a pure function of `t`.** The remix thumbnails only updated while `t < t1 + 0.01`, so their final pose depended on having rendered the frames before. The 6-worker render starts worker 5 cold at 124.0 s, and in the shipped v3 film the bottom thumbnails (robot arm stack, dancing robots, bar chart, Gemini card) show their *initial* state from 124.0 s to 131.2 s. Fixed in `main_b.js` during import (the thumbnail is recomputed at `t1 − 0.001` every frame), and the film's last segment (124.0–148.8 s) was re-rendered with the fix.+- **`main.js` and `index.html` are generated.** Edit `main_v1.js` (palette, beat helpers, banner/judge/burst, 1990s robots) or `main_b.js` (characters v2, stage, all scenes, render/init), then run `assemble.py` → `build.py`. Edits made straight into `main.js` are overwritten.+- **`BPM` and `END_BAR` are patched by string replace** in `assemble.py` (`'const BPM = 140,'` → 150, `'const END_BAR = 61;'` → 93). If you edit those lines in `main_v1.js` the replace silently stops matching. Change the replace targets instead.+- **Add every new shout in three places**: the `.wav` in `voices/`, a line in `voices/lines*.txt` (so it can be regenerated), and the `VO` list at the top of `music.py` (otherwise `KeyError`).+- **Level card bars must also be listed** in `CUTS` (`init()` in `main_b.js`: the flash) and in the `jingle()` loop + `PLAN` spans of `music.py`. They are three separate lists.+- `synth_lib.py` allocates a fixed `DUR = 150.0` s buffer. A longer film needs a bigger `DUR` or the tail is cut.+- Fonts: `measure()` uses a canvas, so glyph widths are wrong until the webfont has loaded. `init()` loads every family for the page text before `buildAll()` and again for the built stage text. Keep that when adding text.+- `say` pronunciation: write "A. I.", "G P T one", "Nine point eleven", "Move thirty seven" — spelled-out forms.+- The frame template (`frame_head.html`, inherited from an earlier film) still declares `#paper`/`#fx` canvases and ink/boil filters; `init()` hides the canvases and the style doesn't use the filters. Leave them alone or delete them together.+- zsh does not word-split `$TS`; pass timestamps as an array (`TS=(1 2 3); … $TS`) or literally.++## Engine reference++**Contract.** `buildAll()` calls `scene(t0, t1, build)` once per set. `build(g, s)` creates all SVG nodes inside group `g` once and returns `update(t)`, which only sets attributes. `render(t)` shows the scenes with `t0 ≤ t < t1`, calls their `update(t)`, then applies camera punch, cut flash and final fade. `update(t)` must depend on `t` only.++| Module | Function | What it does / key params |+|---|---|---|+| frame_head | `el(tag, attrs, parent)`, `txt(parent, str, attrs)` | create SVG nodes |+| | `tf(e, x, y, s=1, r=0, sy)` · `op(e, o)` · `show(e, bool)` | transform / opacity / display |+| | `seg(t, a, b)` · `lerp` · `clamp` · `E.out/in/io/back/elastic` · `rng(seed)` | timing + easing, seeded random |+| | `chars(parent, str, {x, y, size, family, weight, fill, anchor, ls, stroke, sw})` + `charsPop(c, t, t0, stagger, d, from)` | per-glyph pop-in title |+| | `measure(str, size, family, weight)` · `bg(parent, color)` | text width, full-frame rect |+| main_v1 | `at(bar, beat)` · `B` · `BARL` · `frac(t)` | tempo grid (150 BPM) |+| | `ev(t, name, {f, i})` · `punch(t, amount)` | register a sound event / a camera punch |+| | `hopY(t, h)` · `hitSq(t, t0, amt)` · `near(t, t0)` | beat hop, hit squash |+| | `gtext(parent, s, x, y, size, {family, weight, fill, stroke, sw, anchor})` | outlined telop text |+| | `stripes(p, col, w, angle)` · `dots(p, col, step, r)` · `raysEl(p, n, col)` · `starPath(n, r1, r2)` | set patterns (rotate rays in `update`) |+| | `burst(p, x, y, t0, col, size)` · `judge(p, word, x, y, t0, col, dur)` | return `f(t)`; push into `s.fx` and call each frame |+| | `banner(p, year, name, sub, col)` + `bannerAnim(b, t, t0, t1, x=56, y=44)` | year sticker |+| | `robotDB/robotAG/robotT(p)` · `quad(u, v)` · `pawn(p, col, king)` | era robots, perspective board |+| main_b | `bean(p, {color, belly, antenna, name, kind, eyeFill, acc, ant, tagCol})` | a contestant; `kind` bot/llama/whale; `acc` noise/mask/beret/captain/mustache; `ant` q/bolt/moon/heart/cloud/sprout/brush |+| | `pose(c, {hey 0..1, open, sq, lean, face 'x'/'up', blink, armsL, armsR})` · `poseAny(c, o)` | pose any bean or twins |+| | `CAST.<key>(p, name?)` · `ALL` | 16 ready contestants (gpt, claude, gemini, llama, deepseek, ernie, qwen, mistral, kimi, grok, bert, dalle, mj, sd, sora, baby) |+| | `human(p, shirt, glasses, hair)` + `humanFace(h, open, sweat)` + `setArm(arm, x1, y1, x2, y2)` | cartoon humans |+| | `podium(p, col, label)` · `taskIcon(p, kind)` · `smallBot(p, col)` | props |+| | `dropY(t, t0, y, h, d)` · `heyAt(times, t, w)` · `nearestIn(times, t)` | entrances, "Hey!" windows |+| | `scene(t0, t1, build)` · `card(bar0, num, name, years, col, col2, icon)` | a set, a 1-bar level card |+| music.py | `PLAN[bar] = mode`, `span(a, b, mode)`, `jingle(at(bar))` | bar-by-bar arrangement |+| | event loop `if s == '<name>': addv(sound, t, gain, pan)` | map a picture event to a sound |++**Minimal new level** (inside `buildAll()` in `main_b.js`; add `g8: 67` to `SECT` and shift later sections, add bar 67 to `CUTS`, `jingle(at(67))` + a `span(68, 75, 'funk')` in `music.py`, and raise `END_BAR`):++```js+{ const b0 = SECT.g8 + 1, T = (bar, bt = 0) => at(b0 + bar, bt);+ card(SECT.g8, 'GAME 8', '开源接力', '2026', K.orange, '#FF9E5E',+ (p) => { const w = el('g', { transform: 'scale(2)' }, p); pawn(w, K.white); });+ scene(T(0), T(8), (g, s) => {+ bg(g, '#FFB870'); stripes(g, '#FFA85A', 50, -20);+ el('rect', { x: 0, y: 880, width: 1920, height: 200, fill: '#E08A4A' }, g);+ const w = el('g', {}, g); const c = CAST.claude(w);+ const calls = [T(0, 0), T(0, 1), T(1, 0), T(1, 1)], answers = [T(0, 2), T(0, 3), T(1, 2), T(1, 3)];+ calls.forEach(t0 => { ev(t0, 'v:hey'); punch(t0, 0.015); });+ answers.forEach(t0 => { ev(t0, 'pop', { f: 900 }); s.fx.push(burst(g, 960, 420, t0, K.yellow, 0.8)); });+ const b1 = banner(g, '2026', '开源接力', '一拍一棒,接住就赢', K.orange);+ s.fx.push(judge(g, 'Perfect!', 960, 300, T(7, 3), K.pink, 0.8));+ ev(T(7, 3), 'slam'); punch(T(7, 3), 0.05);+ return (t) => {+ tf(w, 960, 880 + hopY(t, 20), 1);+ poseAny(c, { hey: heyAt(answers, t) ? 1 : 0, open: heyAt(calls, t), sq: hitSq(t, nearestIn(answers, t) ?? -9) });+ bannerAnim(b1, t, T(0), T(8));+ s.fx.forEach(f => f(t));+ };+ });+}+```++Then `assemble.py → build.py → stills → events → music.py → video → finish.sh`.diff --git a/styles/game-show/STYLE.md b/styles/game-show/STYLE.mdindex 3e70899..7b2570f 100644--- a/styles/game-show/STYLE.md+++ b/styles/game-show/STYLE.md@@ -1,203 +1,116 @@# Game Show Flat — Style Prompt-> A rhythm-game variety show in flat vector: bean-shaped mascots with 8 px ink outlines on candy-coloured stripes and sunbursts, every hit landing on a 150 BPM grid, call-and-response in every level, and a "Perfect!" at the end of each one.-> Demo: *AI进化节拍 · Rhythm of AI 1997 → 2026* (v3, 148.8 s, 1920×1080, 30 fps) · `game-show.mp4` · source in `demo/` · engine: plain SVG DOM with a pure `render(t)`, screenshotted by Playwright + Chrome Headless Shell; original score synthesized in numpy from the picture's own `events.json`.-> References (grammar only): rhythm-action party games in the Rhythm Heaven mould (cue → answer, level cards, judgement words), Japanese variety-show telops (thick outlined captions, stripe and sunburst sets), WarioWare-style stage cards. Never use their names, characters, UI, levels or music.+> A rhythm-game variety show in flat vector: toy-like mascots with thick ink outlines on candy-coloured stripes and sunbursts, every hit landing on a fixed tempo grid, call-and-response patterns, and a judgement word when each round is won.+> References (grammar only): rhythm-action party games in the Rhythm Heaven mould (cue → answer, round cards, judgement words), Japanese variety-show telops (thick outlined captions, stripe and sunburst sets), WarioWare-style stage cards. Never use their names, characters, UI, levels or music.-You are directing a film in the **Game Show Flat** style. The user gives you a topic. You decide everything else (story, levels, characters, timing, music, shouts) and deliver a finished film. Follow this guide. The demo is ~2.5 minutes; the format works from 45 s (3 levels) to 3 min (8 levels).+The format works from 45 s (three rounds) to about 3 min (eight rounds). Narration is optional: the style can carry a film on short shouts and telops alone.-**Language note.** All on-screen text in the demo is **Chinese** (level names, year banners, labels, the report card, the credit card). The only audio words are short **English shouts** ("Checkmate.", "Hey!", "Question!"). There is **no narration**. To make an English version, see §7 "Switching the text to English".+## 1. Essence, and what it is not----+- **Everything is on the grid.** One fixed, fast tempo. Every pop, drop, stamp, typed character and camera punch sits at a (bar, beat) and is also a sound event; the score is generated from the picture's own timeline, so they can't drift.+- **One drawing kit, many sets.** Flat fills, one heavy ink outline, round caps, hard offset shadows; each round gets a new saturated background colour and pattern.+- **Characters are toys.** One body construction for the whole cast, told apart by colour, a belly patch, one head accessory and a name tag. They hop on the beat, squash on hits, throw arms up on a shout.+- **A round = a repeatable verb + a win.** The topic is split into rounds; each round has one action that can repeat on a beat, and ends on a judgement the audience reads in one glance.++Not a microgame frenzy (no timer or one-verb command per 3 s game, no change of art style per round), not a mid-century cartoon (no textured painted backgrounds, no character acting), not a keynote (no slow reveals, no gradients).++## 2. Materials & rendering++- **Vector only**, SVG or canvas paths at 1920×1080: flat fills, one outline colour (near-black), 8 px outlines on characters and props, 5–7 px on small parts, round joins and caps.+- **No gradients, no blur, no texture, no soft shadow.** Depth is a **hard offset shadow**: the same shape in outline colour shifted ~10 px (stickers, banners) to ~14 px (cards), then the coloured shape on top.+- **Sets** = one saturated background + a same-hue pattern one step lighter: diagonal stripes (often scrolling slowly), offset polka dots (~20 % white), or a rotating sunburst. A darker floor band with an ink line on top grounds the characters.+- **Characters**: a rounded bean body, stubby arms with mitten hands, oval eyes with a catch-light, a mouth that swaps to an open one. Humans share the construction; older machines or eras read through a boxier silhouette.+- **UI kit**: round card, corner sticker banner, judgement word, burst (star + ring + speed lines), scoreboards.+- `render(t)` is a pure function of `t`: every element's state is recomputed from `t`, never carried over from the previous frame.++## 3. Colour logic++- **Ink + paper + candy.** Near-black ink, white, and a warm cream for cards and paper props; around eight saturated candy hues (yellow, orange, red, pink, green, lime, sky, blue) plus two or three deep hues with darker partners for night or finale sets.+- **One set = one hue.** The background, its pattern and the round card share a hue; the card changes colour to match the set it introduces. Neighbouring rounds never share a hue.+- **Characters own colours.** A contestant's body colour is its identity and never changes; keep it distinct from the set it stands on (a character is never the same hue as the background).+- Big words are white or yellow with a thick ink stroke; judgement words may be pink or yellow.+- Set examples: tangerine ground `#FFB870` with `#FFA85A` stripes; teal with mint dots; navy with a gold sunburst.++## 4. Type & subtitles-## 1. What this style is+- **Display**: a heavy rounded sans for Latin and numbers (e.g. Fredoka 700); a black-weight sans for CJK (e.g. Noto Sans SC 900); a hand-lettered face only for handwritten props (e.g. ZCOOL KuaiLe).+- **Telop text**: white or yellow fill with an ink stroke ≈ 14 % of the font size painted *under* the fill (`paint-order: stroke`). Titles are built glyph by glyph so each character can pop in.+- **The telops are the subtitles.** Round cards, corner banners, labels, prop text and judgement words carry the meaning; keep them short (≤ ~20 CJK characters on a banner line, ≤ ~12 on a plate; Latin runs ~1.6× wider). With narration, subtitles are telop plates at the bottom in the same outlined type, never a thin generic caption.+- Hold every text ≥ max(1.8 s, speech + 0.6 s); a judgement word may be shorter because it is read at a glance.-A topic is staged as a **game show made of rhythm levels**. The film opens on a title set where the whole cast drops in on the beat and counts "One! Two! Three! Four!". Then comes a run of **levels**. Each level is **one bar of title card** (GAME N + name + years, flying in on a brass jingle) followed by **eight bars of play**: a pattern is set up in the first half, answered or escalated in the second, and the last beat (bar 7, beat 3) is a **slam + "Perfect!"** judgement. A **remix** level near the end piles every recent event onto one set, with a month timeline across the top and shrunken thumbnails of each finished bit parked along the bottom. The ending hatches a new character from an egg, types out a **report card** ("AI 进化史 · 成绩单") with a Superb! star, and closes on a **credit card**.+## 5. Motion quality-What makes it work:-- **Everything is on the grid.** At 150 BPM a beat is 0.4 s and a bar is 1.6 s. Every pop, drop, hammer, stamp, typed character and camera punch is placed with `at(bar, beat)`, and every one of them is also registered as a sound event. Picture and sound can't drift apart, because the score is generated from the picture's timeline.-- **One look, many sets.** Every level uses the same drawing kit (flat fills, 8 px `#1B1B1B` outline, round caps, hard offset shadows) but a new background colour and pattern. The level card changes colour to match its set.-- **Characters are toys.** Each "contestant" is the same bean body, told apart by colour, belly patch, one head accessory and a name tag. They hop on every beat, squash on every hit and throw their arms up on every "Hey!".+- **Idle = hop on the beat**: a parabola per beat (8–30 px); neighbours hop on the off-beat so a crowd ripples.+- **Hit = squash**: a damped wobble (~30 rad/s, ~0.35 s) after each hit; a small squash on every downbeat.+- **Entrances drop from the sky** with ease-in and land exactly on their beat, so the sound lands with them. Crowds drop in one per beat or half-beat.+- **Pops use back-ease** for anything appearing (cards, stickers, stamps, words); ease-in for exits. Nothing fades in slowly: things are either on or popping.+- **Shout pose**: arms up + open mouth for about half a beat.+- **Typewriter** reveals on fractions of a beat, with a click every few characters.+- Scene changes are **hard cuts on bar lines**, with a very short white flash. A fade is saved for the very end, if at all.+- Nothing moves off the grid: an event between beats sits on a subdivision.-## 2. Story: what fits this style+## 6. Camera grammar-| Native power | Story use |-|---|---|-| **Levels with years** | Any history or process splits into 5–8 levels, each a phase with a year range on its card. The demo: chess and Go (1997–2016), quiz show (2011), attention factory (2017–2020), AI art studio (2021–2024), chat chorus (2022–2023), thinking + price war (2024–2025), agent pipeline (2025), then a 2026 remix. |-| **Call-and-response** | Anything with a "turn" becomes a rhythm pattern: human move / machine move (chess), question / buzzer (quiz), lead "Hey!" / crowd "Hey!" (chorus), task drops / stamp DONE (agents). The pattern speeding up *is* the plot: Go stones on eighth notes after chess on quarter notes. |-| **Judgement words** | "Perfect!", "第 37 手!", "首超!", price tags getting hammered, "9.9 ✓" thought bubbles. Every level ends on a win that the audience can read in one glance. |-| **Stats as game UI** | Numbers become scoreboards and counters: podium dollar scores, a users counter racing to 1,000,000, parameter counts, price tags ($60 → $2.19), a bar chart that grows by beat. |-| **Remix / thumbnails** | For "and then everything happened at once": one set, a month ribbon, each item gets 2 bars centre stage and then shrinks (×0.27) into a slot at the bottom. In the finale all thumbnails bounce together under a giant year. |-| **Egg → report card → credit** | The ending is a "next level" tease (NEXT egg hatches a "???" baby bot), then a typewriter recap of three lines, then the credit card. |--**Story shape (proven in the demo):** cold open on the cast + count-in (4 bars) → 7 levels of 9 bars (card + 8) → 1-bar REMIX card → 16-bar remix (7 items × 2 bars + 2-bar finale) → 9-bar ending (egg 2 bars, "Hi!" 1 bar, report card 3 bars, credit 3 bars incl. 0.8 s fade). Total 93 bars = 148.8 s.--**Adapting any topic:** list the 6–8 phases, give each one *one verb that can repeat on a beat* (place, buzz, pump, splat, sing, hammer, stamp), a year range and a set colour. Pick one "Perfect!" moment per level. If the topic has a crowd (many companies, products, people), make them bean contestants with name tags and let them drop in one per beat.--## 3. Visual language--**Canvas & line:** 1920×1080 SVG. Outline `K.ol = #1B1B1B`, width `OW = 8` px (`SO` spread: stroke, 8 px, round join and cap); 5–7 px on small parts. No gradients, no blur, no textures. Depth comes from a **hard offset shadow**: draw the same shape in `#1B1B1B` shifted +10 px (banners) or +14 px (level cards), then the coloured shape on top.--**Palette (`K` in `main_v1.js`/`main.js`):**-| Role | Colours |-|---|---|-| Ink / paper | `ol #1B1B1B`, `white #FFFFFF`, `cream #FFF6E5` (cards, report card) |-| Candy primaries | `yellow #FFD23F`, `orange #FF8C42`, `red #FF5A5F`, `pink #FF8FB1`, `green #5BD68A`, `lime #C6F16D`, `sky #8ED1FC`, `blue #4D7CFE` |-| Deep sets | `purple #6B4FBB` / `purpleD #46318F`, `teal #3FB8AF` / `tealD #2B8F88`, `navy #26264A` (ending) |-| Props | `wood #C98A52` / `woodD #8E5530`, `gray #C3CAD9`, `chalk #2F5D50`, `skin #FFD1A8` |-| Character hues | `gpt #19B388`, `claude #D97757`, `gem1 #4E7CF6` / `gem2 #9B6CF0`, `llama #F4E9D8`, `whale #4D6BFE`, `dblue #2B59C3` |--Each set is one saturated background plus a same-hue pattern 1 step lighter: `stripes()` (diagonal bands, often slowly scrolling), `dots()` (offset polka dots at 18–25 % white), or `raysEl()` (a rotating sunburst). A darker floor band at y = 860–900 with an 8 px ink line on top grounds the characters.--**Type:** Chinese = **Noto Sans SC 900** (`F.sans`) everywhere; Latin display = **Fredoka 700** (`F.round`: GAME N, years, "Perfect!", name tags, numbers); **ZCOOL KuaiLe** (`F.cute`) only for hand-written props. Big words use `gtext()`: white or yellow fill, ink stroke ≈ 14 % of the size painted *under* the fill (`paint-order: stroke`). Title text uses `chars()` so each glyph can pop in separately.--**Characters (`bean()` in `main_b.js`):** a rounded bean body (160 px wide, 172 px tall at scale 1), two stubby arms with white mitten hands, two foot ovals, oval eyes with a white catch-light, pink blush, a small curved mouth that swaps to an open red mouth. Identity = body colour + belly patch + **one** head mark (antenna ball, heart, "?", moon, bolt, cloud, sprout, brush, beret, captain hat, llama wool, whale spout) + an ink name-tag pill under the feet. Gemini is two half-size beans (`twins()`). Humans (`human()`) are the same construction with a shirt, a round head, hair cap, optional glasses and a sweat drop. Machines of the 1990s–2010s are boxier robots (`robotDB`, `robotAG`, `robotT`, `robotW`), so the era reads through silhouette.--**Recurring UI:**-- **Level card** (`card()`): full-bleed set colour + scrolling stripes, a cream panel (1240×460, r 50, 10 px outline, 14 px shadow), a pill tag "GAME N", the level name auto-fitted to 720 px, the years in the set colour, an icon hopping on the left.-- **Year banner** (`banner()`): top-left sticker: year in Fredoka + name + one-line subtitle, slides in from the left with a back-ease and lifts out upward.-- **Judgement** (`judge()`): 120 px Fredoka word, pink/yellow with an 18 px ink stroke, pops at −6°.-- **Burst** (`burst()`): 8-point star + expanding white ring + 8 ink speed lines, 0.3 s.--## 4. Motion language--- **Tempo**: `BPM = 150`, `B = 0.4 s`, `BARL = 1.6 s`. Time is always written `at(bar, beat)` (beats may be fractional: `at(5, 2.5)`).-- **Idle = hop on the beat**: `hopY(t, h)` is a parabola per beat (h 8–30 px). Neighbours hop on the off-beat (`t + B/2`) so a crowd ripples.-- **Hit = squash**: `hitSq(t, t0, amt)` gives a damped 30 rad/s wobble for 0.35 s after a hit; feed it to `pose({ sq })`. Every landing also squashes a little on each downbeat: `1 - 0.1*exp(-frac(t)*16)`.-- **Entrances drop from the sky**: `dropY(t, t0, y, h, d)` falls 500–900 px with ease-in and lands exactly on `t0` (so the sound lands with it).-- **Pops use back-ease**: `E.back` for anything appearing (cards, stickers, stamps, judgement words); `E.in` for exits. Nothing fades in slowly; things are either on or popping.-- **Hey = arms up + open mouth** for 0.24 s (`heyAt(times, t)`).-- **Typewriter**: the report-card lines reveal one character per 1/8 beat, with a key click per 2 characters.-- **Scene changes are hard cuts on bar lines** (card bars, remix, ending) with a 0.08 s white flash at 50 %. The only fade in the film is the last 0.8 s to navy.--## 5. Camera--There is no camera travel. The stage is always a frontal, symmetrical proscenium. The one camera move is the **beat punch**: `punch(t, a)` adds a zoom of `a` (0.008 for small ticks, 0.02 for normal hits, 0.03–0.05 for slams) around frame centre that decays over 0.16 s. Several punches in a bar make the frame breathe with the music. Keep sums below ~0.06 so the frame edges never show.--## 6. Sound--**Everything is synthesized**; there are no samples and no narration.--- **Score (`music.py` + `synth_lib.py`)**: 150 BPM, a four-chord loop F–G–Em–Am (the J-pop "royal road", one chord per bar, `CH`), two 8-note melodies `MA` / `MB`. Instruments: tanh-shaped sine kick, band-passed noise snare and clap, hats, slap bass (`slap`, patterns funk/drive/pump/soft), detuned-saw **brass stabs** with a closing filter, square lead with vibrato, pluck (marimba), bell (music box), triangle pad, square arp, cowbell. Each bar gets a mode in `PLAN` (`main`, `count`, `funk`, `quiz`, `electro`, `dream`, `film`, `pop`, `popBig`, `think`, `heavy`, `agent`, `agentFast`, `fill`, `future`, `futureBig`, `egg`, `calm`, `fanfare`, `end`), one flavour per level. Level cards get a **jingle** (crash + kick + rising brass arpeggio + snare roll into the level). The 2026 remix transposes up 2 semitones.-- **Event-driven SFX**: `node render.mjs events` exports every `ev()` from the picture to `events.json` (474 events in the demo). `music.py` maps each event name to a sound: `tock`/`bleep` (chess), `stone` (Go), `ding`/`boop`/`buzz` (quiz), `land` (plop + boing), `pip` (pitched pop, uses `f`), `slam`/`bigslam`, `stamp`, `type`, `crack`/`hatch`, `servo`, `liftoff`, `swish`, `clap`, `drop`, `blip`, `kickhit`, `splat`, `denoise`, `cheer`. Unknown names are silently ignored.-- **Shouts**: `v:<name>` events play `voices/<name>.wav`. Voices are macOS `say` system voices (Samantha, Fred, Zarvox, Junior, Kathy, Ralph, Superstar) at rate 170–220, pitched up ×1.0–1.35 without changing length (`asetrate` + `atempo`, see `make_voices.sh`). Zarvox (robot) says machine lines ("Checkmate.", "Move thirty seven.", "Attention!"); Samantha/Fred are hosts. The crowd "Hey!" is six different voices stacked 5–6 ms apart and panned −0.6…+0.6 (`v:crowd`, `v:heyAll`, `v:heyBig`); `v:heyVar` picks one voice per contestant. Shouts are placed 20–30 ms *before* the beat so the consonant lands on it.-- **Mix**: voices + SFX go to their own bus; the music is ducked by up to 40 % from a 12 Hz envelope of that bus; last 0.8 s fades; peak-normalize to 1.5 then `tanh` soft-clip ×0.9 → `music.wav` (44.1 kHz). `finish.sh` then applies two-pass loudnorm to **−14 LUFS / TP −1.2** and resamples to 48 kHz AAC 256k.--## 7. Subtitles & titles--- **No burned-in subtitles.** On-screen words are the telops themselves: level cards, year banners, remix labels and plates, prop text, judgement words. They stay short (≤ 20 CJK characters on a banner subtitle, ≤ 12 on a plate).-- `game-show.srt` (generated by `make_srt.py` from `events.json` + `voices/lines*.txt`) lists only the English shouts, one cue per shout, repeated crowd "Hey!"s merged.-- **Title**: "AI 进化节拍" 200 px, white with a 26 px ink stroke, glyphs popping in 0.06 s apart; subtitle "RHYTHM OF AI · 1997 → 2026" in Fredoka. The cast drops in behind it, one per half-beat, each with a pitched pip.-- **End credit (house rule):** the last card must carry **"LemoLab × Claude Opus 5.5"** (× is U+00D7). In the demo it is the first line of the credit card that pops in at bar 90 (144.0 s): a cream 1440×360 card (r 40, 8 px ink outline, −1.5° tilt, back-ease pop over 0.3 s) with three centred lines: `LemoLab × Claude Opus 5.5` in Fredoka 700 66 px ink (y −80), `本片由 Claude Opus 5.5 全程代码生成` in Noto Sans SC 900 60 px (y 30), `下一关:正在训练中……` 50 px in `K.claude` (y 118). It holds 4 s and fades to navy with the film. Code: the `credit` block in the ending scene of `main_b.js`. New films keep the LemoLab line and may put their own credit lines under it.--**Switching the text to English:** all strings are literals in `main_b.js` (and three in `main_v1.js`):-1. Level cards: `card(SECT.gN, 'GAME N', '<name>', '<years>', …)`; the name auto-shrinks to 720 px.-2. Year banners: `banner(g, '<year>', '<name>', '<subtitle>', col)`; widths auto-measure.-3. Remix: `item(i, m0, m1, '<label>', …)`, `plate(p, '<text>')`, the month ribbon `` `${m}月` `` and the finale label `'2026 · 未完待续'`, `'还没唱完 →'`.-4. Props: quiz `QA` pairs, the Watson sign, the "9.11 和 9.9" chalkboard, the task note, the users counter label `'用户'`, report card title + `lines`, the credit text, the title `chars()` strings. In `main_v1.js`: the robot chest label `'注意力'` (`robotT`) and the sentence tokens in G3.-5. Prefer `F.round` (Fredoka) for Latin headings and keep `F.sans` for body; `init()` preloads fonts from the page's own text, so no font list changes are needed. English runs ~1.6× wider than Chinese: check banners and plates with stills.-6. Re-run `make_srt.py` if shouts change; the shouts are already English.--## 8. Pitfalls we hit--- **`render(t)` must be a pure function of `t`.** The remix thumbnails only updated while `t < t1 + 0.01`, so their final pose depended on having rendered the frames before. The 6-worker render starts worker 5 cold at 124.0 s, and in the shipped v3 film the bottom thumbnails (robot arm stack, dancing robots, bar chart, Gemini card) show their *initial* state from 124.0 s to 131.2 s. Fixed in `main_b.js` during import (the thumbnail is recomputed at `t1 − 0.001` every frame), and the film's last segment (124.0–148.8 s) was re-rendered with the fix. Test any change with stills (a still is always a cold start) against a sequential render.-- **`main.js` and `index.html` are generated.** Edit `main_v1.js` (palette, beat helpers, banner/judge/burst, 1990s robots) or `main_b.js` (characters v2, stage, all scenes, render/init), then run `assemble.py` → `build.py`. Edits made straight into `main.js` are overwritten.-- **`BPM` and `END_BAR` are patched by string replace** in `assemble.py` (`'const BPM = 140,'` → 150, `'const END_BAR = 61;'` → 93). If you edit those lines in `main_v1.js` the replace silently stops matching. Change the replace targets instead.-- **Add every new shout in three places**: the `.wav` in `voices/`, a line in `voices/lines*.txt` (so it can be regenerated), and the `VO` list at the top of `music.py` (otherwise `KeyError`).-- **Level card bars must also be listed** in `CUTS` (`init()` in `main_b.js`: the flash) and in the `jingle()` loop + `PLAN` spans of `music.py`. They are three separate lists.-- `synth_lib.py` allocates a fixed `DUR = 150.0` s buffer. A longer film needs a bigger `DUR` or the tail is cut.-- Fonts: `measure()` uses a canvas, so glyph widths are wrong until the webfont has loaded. `init()` loads every family for the page text before `buildAll()` and again for the built stage text. Keep that when adding text.-- `say` pronunciation: write "A. I.", "G P T one", "Nine point eleven", "Move thirty seven" — spelled-out forms. Symbols and digits are read unpredictably.-- **macOS system voices are licensed for personal, non-commercial use** under the macOS licence. For a commercial or public release, re-voice the shouts with Kokoro (`core/tts/`) or another cleared TTS.-- **Real brands:** the contestants stand for real AI products (GPT, Claude, Gemini, DeepSeek, Kimi, Grok, Midjourney…). Use **names only** on name tags, original mascots, loose colour nods; never official logos, wordmarks or product UI. Keep the tone affectionate, not mocking. Real people (Kasparov, Lee Sedol, the KEN / BRAD podiums) appear only as generic cartoon stand-ins in factual banners.-- **Facts date fast.** The 2026 remix (Sonnet 5 as default, WAIC 2026, DeepSeek V4-Pro, "GPT-6 Astra", token-volume figures) was written as current news at production time. Re-check every figure and name before reusing any of it.-- The G7 task note on screen literally says "做一个节奏天国风格的视频" (names a real game series). In new films describe the genre, don't name it.-- The frame template (`frame_head.html`, inherited from an earlier film) still declares `#paper`/`#fx` canvases and ink/boil filters; `init()` hides the canvases and the style doesn't use the filters. Leave them alone or delete them together.-- zsh does not word-split `$TS`; pass timestamps as an array (`TS=(1 2 3); … $TS`) or literally.--## 9. Production recipe (this repo)--```-styles/game-show/demo/- main_v1.js v1 source: palette K, tempo (at/ev/punch), hop/squash helpers, stripes/dots/rays, burst, judge, banner, 1990s robots, chess board- main_b.js v2/v3 source: bean characters + CAST, human, podium, stage (scene/card), props, ALL scenes (buildAll), render(t), init()- assemble.py main_v1.js[0:109] (BPM→150, END_BAR→93) + main_v1 robotDB…stage + main_b.js → main.js- frame_head.html HTML/SVG frame + base helpers (el, txt, tf, op, E, chars, charsPop, measure, bg …)- build.py frame_head.html + main.js → index.html- render.mjs events | stills | video (Playwright + Chrome Headless Shell, PNG → ffmpeg x264 crf 12 per worker)- music.py score + events.json → SFX + shouts → ducked mix → music.wav synth_lib.py instruments & SFX- voices/ 40 shout wavs + lines*.txt (name|voice|rate|pitch|text) make_voices.sh regenerate them (macOS)- finish.sh concat segments + loudnorm −14 LUFS + mux → ../game-show.mp4 make_srt.py → ../game-show.srt- fonts/ fonts.css Noto Sans SC, Fredoka, ZCOOL KuaiLe (woff2 subsets)- historical: main.js (generated), remix2026.js (draft of the remix section, superseded by main_b.js)-```--All commands from `styles/game-show/demo/` (the scripts also `chdir` there themselves). `PY=../../../.venv/bin/python`.--1. **Plan on the grid.** Fill `SECT` (first bar of each level card) in `main_b.js`, set `END_BAR` via the replace in `assemble.py`, add the card bars to `CUTS`, and write a cue list: which beats get which `ev()`.-2. **Shouts:** add lines to `voices/lines3.txt`, then `sh make_voices.sh out/voices_new` (macOS `say` + ffmpeg), listen, copy the keepers into `voices/`, add the names to `VO` in `music.py`.-3. **Build the page:** `$PY assemble.py && $PY build.py`.-4. **Look at it:** `STILLS_DIR=out/check node render.mjs stills 5.5 20.4 45 78.3 116.5 145` (≈1 s for six frames). Or open `index.html?t=78.3` in a browser.-5. **Events:** `node render.mjs events` → `events.json` (demo: 474 events, `dur 148.80`).-6. **Score + mix:** `$PY music.py` → `music.wav` (≈2 s; deterministic, seed 7). `$PY music.py out/test.wav` writes elsewhere.-7. **Render:** `node render.mjs video 2` → `out/seg_0..1.mp4` + `out/list.txt`. The demo used 6 workers (120 s total); on a shared machine keep 2 (≈3–4 min). `SEGS=5 node render.mjs video 6` re-renders only one of 6 equal segments.-8. **Finish:** `sh finish.sh out/test.mp4` (concat → loudnorm → x264 slow crf 16 + AAC 256k 48 kHz). With no argument it writes `../game-show.mp4` and **overwrites the library film** (back it up first). `AUDIO_FROM=old.mp4 sh finish.sh …` skips the remix and copies the old film's audio track unchanged (used for the sign-off re-render).-9. **Subtitles:** `$PY make_srt.py` → `../game-show.srt`.-10. **Review:** `ffmpeg -i out/test.mp4 -vf fps=1/4,scale=384:-1,tile=6x7 -frames:v 1 out/sheet.jpg` plus stills around every slam.--## 10. Engine usage--**Contract.** `buildAll()` calls `scene(t0, t1, build)` once per set. `build(g, s)` creates all SVG nodes inside group `g` once and returns `update(t)`, which only sets attributes. `render(t)` shows the scenes with `t0 ≤ t < t1`, calls their `update(t)`, then applies camera punch, cut flash and final fade. `update(t)` must depend on `t` only (see §8).--| Module | Function | What it does / key params |+The stage is a frontal, symmetrical proscenium; the frame itself does the moving. A vocabulary, not a route. Opening and ending come from the topic.++| Move | What it expresses | Can serve ||---|---|---|-| frame_head | `el(tag, attrs, parent)`, `txt(parent, str, attrs)` | create SVG nodes |-| | `tf(e, x, y, s=1, r=0, sy)` · `op(e, o)` · `show(e, bool)` | transform / opacity / display |-| | `seg(t, a, b)` · `lerp` · `clamp` · `E.out/in/io/back/elastic` · `rng(seed)` | timing + easing, seeded random |-| | `chars(parent, str, {x, y, size, family, weight, fill, anchor, ls, stroke, sw})` + `charsPop(c, t, t0, stagger, d, from)` | per-glyph pop-in title |-| | `measure(str, size, family, weight)` · `bg(parent, color)` | text width, full-frame rect |-| main_v1 | `at(bar, beat)` · `B` · `BARL` · `frac(t)` | tempo grid (150 BPM) |-| | `ev(t, name, {f, i})` · `punch(t, amount)` | register a sound event / a camera punch |-| | `hopY(t, h)` · `hitSq(t, t0, amt)` · `near(t, t0)` | beat hop, hit squash |-| | `gtext(parent, s, x, y, size, {family, weight, fill, stroke, sw, anchor})` | outlined telop text |-| | `stripes(p, col, w, angle)` · `dots(p, col, step, r)` · `raysEl(p, n, col)` · `starPath(n, r1, r2)` | set patterns (rotate rays in `update`) |-| | `burst(p, x, y, t0, col, size)` · `judge(p, word, x, y, t0, col, dur)` | return `f(t)`; push into `s.fx` and call each frame |-| | `banner(p, year, name, sub, col)` + `bannerAnim(b, t, t0, t1, x=56, y=44)` | year sticker |-| | `robotDB/robotAG/robotT(p)` · `quad(u, v)` · `pawn(p, col, king)` | era robots, perspective board |-| main_b | `bean(p, {color, belly, antenna, name, kind, eyeFill, acc, ant, tagCol})` | a contestant; `kind` bot/llama/whale; `acc` noise/mask/beret/captain/mustache; `ant` q/bolt/moon/heart/cloud/sprout/brush |-| | `pose(c, {hey 0..1, open, sq, lean, face 'x'/'up', blink, armsL, armsR})` · `poseAny(c, o)` | pose any bean or twins |-| | `CAST.<key>(p, name?)` · `ALL` | 16 ready contestants (gpt, claude, gemini, llama, deepseek, ernie, qwen, mistral, kimi, grok, bert, dalle, mj, sd, sora, baby) |-| | `human(p, shirt, glasses, hair)` + `humanFace(h, open, sweat)` + `setArm(arm, x1, y1, x2, y2)` | cartoon humans |-| | `podium(p, col, label)` · `taskIcon(p, kind)` · `smallBot(p, col)` | props |-| | `dropY(t, t0, y, h, d)` · `heyAt(times, t, w)` · `nearestIn(times, t)` | entrances, "Hey!" windows |-| | `scene(t0, t1, build)` · `card(bar0, num, name, years, col, col2, icon)` | a set, a 1-bar level card |-| music.py | `PLAN[bar] = mode`, `span(a, b, mode)`, `jingle(at(bar))` | bar-by-bar arrangement |-| | event loop `if s == '<name>': addv(sound, t, gain, pan)` | map a picture event to a sound |--**Minimal new level** (inside `buildAll()` in `main_b.js`; add `g8: 67` to `SECT` and shift later sections, add bar 67 to `CUTS`, `jingle(at(67))` + a `span(68, 75, 'funk')` in `music.py`, and raise `END_BAR`):--```js-{ const b0 = SECT.g8 + 1, T = (bar, bt = 0) => at(b0 + bar, bt);- card(SECT.g8, 'GAME 8', '开源接力', '2026', K.orange, '#FF9E5E',- (p) => { const w = el('g', { transform: 'scale(2)' }, p); pawn(w, K.white); });- scene(T(0), T(8), (g, s) => {- bg(g, '#FFB870'); stripes(g, '#FFA85A', 50, -20);- el('rect', { x: 0, y: 880, width: 1920, height: 200, fill: '#E08A4A' }, g);- const w = el('g', {}, g); const c = CAST.claude(w);- const calls = [T(0, 0), T(0, 1), T(1, 0), T(1, 1)], answers = [T(0, 2), T(0, 3), T(1, 2), T(1, 3)];- calls.forEach(t0 => { ev(t0, 'v:hey'); punch(t0, 0.015); });- answers.forEach(t0 => { ev(t0, 'pop', { f: 900 }); s.fx.push(burst(g, 960, 420, t0, K.yellow, 0.8)); });- const b1 = banner(g, '2026', '开源接力', '一拍一棒,接住就赢', K.orange);- s.fx.push(judge(g, 'Perfect!', 960, 300, T(7, 3), K.pink, 0.8));- ev(T(7, 3), 'slam'); punch(T(7, 3), 0.05);- return (t) => {- tf(w, 960, 880 + hopY(t, 20), 1);- poseAny(c, { hey: heyAt(answers, t) ? 1 : 0, open: heyAt(calls, t), sq: hitSq(t, nearestIn(answers, t) ?? -9) });- bannerAnim(b1, t, T(0), T(8));- s.fx.forEach(f => f(t));- };- });-}-```--Then `assemble.py → build.py → stills → events → music.py → video → finish.sh`.+| Beat punch (zoom 0.8–5 % around centre, decays in ~0.16 s) | the hit, felt in the frame | any accent; a slam; a count-in |+| Several punches in one bar | the frame breathing with the music | a chorus; an escalating pattern |+| Locked frontal wide | the whole stage as a game board | a pattern being set up; a crowd; a scoreboard |+| Hard cut on the bar line + flash | a new round, a new set | chapter changes; a before/after |+| Split stage (two halves, two sets) | two sides answering each other | a rivalry; human vs machine; old vs new |+| Shrink to thumbnail (a finished bit scales down into a slot) | memory, accumulation | a recap; "and then all of this happened" |+| Vertical scroll of the set (floor to sky) | rising stakes or scale | a leaderboard; growth; a tower of items |+| Snap zoom onto one prop (hard cut to a 2× framing, back on the next bar) | this detail is the joke | a price tag; a number; a face reacting |++Keep the sum of simultaneous punches below ~0.06 so the frame edge never shows. Characters stand on the floor band; banners top-left, judgement words centre-top. Hard cuts only; no dissolves.++## 7. Sound palette++- **All synthesized** from the picture's events: a sine kick with soft saturation, band-passed noise snare and clap, hats, slap bass, detuned-saw brass stabs with a closing filter, square lead with vibrato, marimba-like pluck, music-box bell, triangle pad, square arp, cowbell.+- **A bright major pop harmony** on a short chord loop, one chord per bar; each round gets its own flavour (funk, quiz, electro, dream, heavy…), not a new song.+- **Event foley is toy-like and pitched**: pops, plop + boing landings, stamps, typewriter clicks, buzzers, dings, servo whirs, splats; pitched pips can spell a melody as a crowd drops in.+- **Shouts, not sentences**: one- to three-word calls ("Hey!", a number, a verdict), placed 20–30 ms before the beat so the consonant lands on it. A crowd shout = several different voices stacked a few ms apart and panned across the stereo field.+- Options to vary intensity (pick what the film needs): a jingle (crash + rising brass + snare roll) into each round; a transposition up for a finale; dropping to drums only for one bar before a big hit; a half-time bar for a reveal; one bar of silence broken by a single shout.+- **Mix**: voices and foley on their own bus; music ducked from that bus's envelope; soft-clip rather than hard limit; −14 LUFS, true peak ≤ −1 dB.++## 8. Native moves++A menu: use the ones your story needs.++- **Rounds with a card.** A 1-bar card (round number + name + a tag such as a year or a step) flies in on a jingle, then play. *Fits content like:* the steps of a recipe; the stages of a startup; the chapters of a museum tour.+- **Call-and-response.** Anything with a turn becomes a rhythm pattern; speeding up the pattern (quarters → eighths) *is* the plot. *Fits content like:* a teacher's question and the class answer; a customer order and the barista's reply; ping-pong between two negotiators.+- **Judgement word.** A big outlined word pops at an angle on the round's last hit. *Fits content like:* "Delivered!" on a logistics step; "Approved!" on a permit; "Personal best!" on a training plan.+- **Stats as game UI.** Numbers become podium scores, counters racing to a target, price tags getting hammered, bar charts that grow per beat. *Fits content like:* fundraising progress; calories per dish; downloads of an app.+- **Remix board.** One set with a timeline ribbon; each item gets a few bars centre stage, then shrinks into a slot along the bottom; in the finale all slots bounce together. *Fits content like:* a year in review; a team's release list; a festival line-up.+- **Crowd drop.** Many contestants drop in one per beat, each with a pitched pip. *Fits content like:* every member of a club; the planets; the ingredients of a dish.+- **Next-level tease.** Something hatches or unlocks. *Fits content like:* a next version; next season; a next grade.+- **Report card.** A typewritten recap with a grade stamp. *Fits content like:* a quarterly review; a trip summary; a final score.++## 9. Pitfalls of the medium++- **Stateful updates break parallel renders**: a worker starting cold shows the initial state. Recompute every pose from `t`; compare single stills with a sequential render.+- **Cue lists drift** when cut flashes, jingles and arrangement are separate hand lists: derive them from one table.+- **Fixed-length audio buffers** cut the tail: size them from the duration.+- **Text measured before fonts load** overflows plates: load fonts, then build.+- **TTS misreads digits and symbols** in shouts: spell them out.+- **Real products as characters**: names on tags, original mascots, no logos or UI; real people only as generic stand-ins.++## 10. Engine++`demo/frame_head.html` (SVG helpers: `el`, `txt`, `tf`, `op`, easing `E`, per-glyph `chars`/`charsPop`, `measure`), `demo/main_v1.js` (tempo grid `at(bar, beat)`, `ev()` sound events, `punch()`, `hopY`/`hitSq`, `gtext` telops, `stripes`/`dots`/`raysEl` sets, `burst`, `judge`, `banner`), `demo/main_b.js` (`bean()` characters + `pose()`, `human()`, `scene(t0, t1, build)`, `card()`, `dropY`, `heyAt`), `demo/music.py` + `demo/synth_lib.py` (event-driven score and SFX). The contract: `scene()` builds nodes once and returns `update(t)`, which only sets attributes. Module table and a minimal new round: [DEMO.md](DEMO.md#engine-reference).++## 11. Variation space++You decide the rounds and their verbs, the cast, the sets and colours, whether there is narration, the tempo, the opening, the ending and the length. The grid, the drawing kit and the telop language stay.++All far from our demo:++- Structures: **a tournament bracket** (two contestants per round, the winner advances, the final is a split stage); **one long round** that keeps escalating its single pattern from quarters to sixteenths as the story's pressure rises; **a quiz show** with three contestants where each question is a fact of the topic and the scoreboard is the argument.+- Openings: **the judgement first** (a "Perfect!" pops on an empty stage, then we rewind to how it was earned); **a single contestant alone** hopping on a bare floor until the crowd drops in; **the scoreboard** showing a final number, then counting back to zero.+- Endings: **a group photo** (everyone freezes mid-hop, a flash, the frame becomes a polaroid on a card); **a level-select map** where every finished round is a lit node; **a curtain** falling bar by bar with the last shout under it.++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/game-show/demo/fonts/f0.woff2 b/styles/game-show/demo/fonts/f0.woff2deleted file mode 100644index 4a09e97..0000000Binary files a/styles/game-show/demo/fonts/f0.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f1.woff2 b/styles/game-show/demo/fonts/f1.woff2deleted file mode 100644index 4609b8c..0000000Binary files a/styles/game-show/demo/fonts/f1.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f10.woff2 b/styles/game-show/demo/fonts/f10.woff2deleted file mode 100644index 6800dd7..0000000Binary files a/styles/game-show/demo/fonts/f10.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f100.woff2 b/styles/game-show/demo/fonts/f100.woff2deleted file mode 100644index b20e41b..0000000Binary files a/styles/game-show/demo/fonts/f100.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f101.woff2 b/styles/game-show/demo/fonts/f101.woff2deleted file mode 100644index ce8f44f..0000000Binary files a/styles/game-show/demo/fonts/f101.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f102.woff2 b/styles/game-show/demo/fonts/f102.woff2deleted file mode 100644index 3f1da20..0000000Binary files a/styles/game-show/demo/fonts/f102.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f103.woff2 b/styles/game-show/demo/fonts/f103.woff2deleted file mode 100644index f841724..0000000Binary files a/styles/game-show/demo/fonts/f103.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f104.woff2 b/styles/game-show/demo/fonts/f104.woff2deleted file mode 100644index a4de3ca..0000000Binary files a/styles/game-show/demo/fonts/f104.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f105.woff2 b/styles/game-show/demo/fonts/f105.woff2deleted file mode 100644index 28447be..0000000Binary files a/styles/game-show/demo/fonts/f105.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f106.woff2 b/styles/game-show/demo/fonts/f106.woff2deleted file mode 100644index 1d05eba..0000000Binary files a/styles/game-show/demo/fonts/f106.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f107.woff2 b/styles/game-show/demo/fonts/f107.woff2deleted file mode 100644index d5e7f5c..0000000Binary files a/styles/game-show/demo/fonts/f107.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f108.woff2 b/styles/game-show/demo/fonts/f108.woff2deleted file mode 100644index 01e7a94..0000000Binary files a/styles/game-show/demo/fonts/f108.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f109.woff2 b/styles/game-show/demo/fonts/f109.woff2deleted file mode 100644index 2c98875..0000000Binary files a/styles/game-show/demo/fonts/f109.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f11.woff2 b/styles/game-show/demo/fonts/f11.woff2deleted file mode 100644index f4395e3..0000000Binary files a/styles/game-show/demo/fonts/f11.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f110.woff2 b/styles/game-show/demo/fonts/f110.woff2deleted file mode 100644index ba8a98c..0000000Binary files a/styles/game-show/demo/fonts/f110.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f111.woff2 b/styles/game-show/demo/fonts/f111.woff2deleted file mode 100644index ae1547a..0000000Binary files a/styles/game-show/demo/fonts/f111.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f112.woff2 b/styles/game-show/demo/fonts/f112.woff2deleted file mode 100644index 0768db2..0000000Binary files a/styles/game-show/demo/fonts/f112.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f113.woff2 b/styles/game-show/demo/fonts/f113.woff2deleted file mode 100644index ac0dbf2..0000000Binary files a/styles/game-show/demo/fonts/f113.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f114.woff2 b/styles/game-show/demo/fonts/f114.woff2deleted file mode 100644index 3d959f5..0000000Binary files a/styles/game-show/demo/fonts/f114.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f115.woff2 b/styles/game-show/demo/fonts/f115.woff2deleted file mode 100644index 3fa0822..0000000Binary files a/styles/game-show/demo/fonts/f115.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f116.woff2 b/styles/game-show/demo/fonts/f116.woff2deleted file mode 100644index b509a1b..0000000Binary files a/styles/game-show/demo/fonts/f116.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f117.woff2 b/styles/game-show/demo/fonts/f117.woff2deleted file mode 100644index 5e4411a..0000000Binary files a/styles/game-show/demo/fonts/f117.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f118.woff2 b/styles/game-show/demo/fonts/f118.woff2deleted file mode 100644index f342c38..0000000Binary files a/styles/game-show/demo/fonts/f118.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f119.woff2 b/styles/game-show/demo/fonts/f119.woff2deleted file mode 100644index 580e247..0000000Binary files a/styles/game-show/demo/fonts/f119.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f12.woff2 b/styles/game-show/demo/fonts/f12.woff2deleted file mode 100644index e96ad7a..0000000Binary files a/styles/game-show/demo/fonts/f12.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f120.woff2 b/styles/game-show/demo/fonts/f120.woff2deleted file mode 100644index 9a46903..0000000Binary files a/styles/game-show/demo/fonts/f120.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f121.woff2 b/styles/game-show/demo/fonts/f121.woff2deleted file mode 100644index 5fc2728..0000000Binary files a/styles/game-show/demo/fonts/f121.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f122.woff2 b/styles/game-show/demo/fonts/f122.woff2deleted file mode 100644index f962b11..0000000Binary files a/styles/game-show/demo/fonts/f122.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f123.woff2 b/styles/game-show/demo/fonts/f123.woff2deleted file mode 100644index 0cbce88..0000000Binary files a/styles/game-show/demo/fonts/f123.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f124.woff2 b/styles/game-show/demo/fonts/f124.woff2deleted file mode 100644index f16ef58..0000000Binary files a/styles/game-show/demo/fonts/f124.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f125.woff2 b/styles/game-show/demo/fonts/f125.woff2deleted file mode 100644index bcc5490..0000000Binary files a/styles/game-show/demo/fonts/f125.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f126.woff2 b/styles/game-show/demo/fonts/f126.woff2deleted file mode 100644index 2e57204..0000000Binary files a/styles/game-show/demo/fonts/f126.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f127.woff2 b/styles/game-show/demo/fonts/f127.woff2deleted file mode 100644index c43d223..0000000Binary files a/styles/game-show/demo/fonts/f127.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f128.woff2 b/styles/game-show/demo/fonts/f128.woff2deleted file mode 100644index e07e3c7..0000000Binary files a/styles/game-show/demo/fonts/f128.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f129.woff2 b/styles/game-show/demo/fonts/f129.woff2deleted file mode 100644index 7de8e47..0000000Binary files a/styles/game-show/demo/fonts/f129.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f13.woff2 b/styles/game-show/demo/fonts/f13.woff2deleted file mode 100644index 72132e1..0000000Binary files a/styles/game-show/demo/fonts/f13.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f130.woff2 b/styles/game-show/demo/fonts/f130.woff2deleted file mode 100644index 400e2c7..0000000Binary files a/styles/game-show/demo/fonts/f130.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f131.woff2 b/styles/game-show/demo/fonts/f131.woff2deleted file mode 100644index 5795538..0000000Binary files a/styles/game-show/demo/fonts/f131.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f132.woff2 b/styles/game-show/demo/fonts/f132.woff2deleted file mode 100644index 0fd86c9..0000000Binary files a/styles/game-show/demo/fonts/f132.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f133.woff2 b/styles/game-show/demo/fonts/f133.woff2deleted file mode 100644index 5fcc93b..0000000Binary files a/styles/game-show/demo/fonts/f133.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f134.woff2 b/styles/game-show/demo/fonts/f134.woff2deleted file mode 100644index 7c2b375..0000000Binary files a/styles/game-show/demo/fonts/f134.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f135.woff2 b/styles/game-show/demo/fonts/f135.woff2deleted file mode 100644index c436543..0000000Binary files a/styles/game-show/demo/fonts/f135.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f136.woff2 b/styles/game-show/demo/fonts/f136.woff2deleted file mode 100644index eabe2ba..0000000Binary files a/styles/game-show/demo/fonts/f136.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f137.woff2 b/styles/game-show/demo/fonts/f137.woff2deleted file mode 100644index edc7f01..0000000Binary files a/styles/game-show/demo/fonts/f137.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f138.woff2 b/styles/game-show/demo/fonts/f138.woff2deleted file mode 100644index 01e9c80..0000000Binary files a/styles/game-show/demo/fonts/f138.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f139.woff2 b/styles/game-show/demo/fonts/f139.woff2deleted file mode 100644index 019d8b6..0000000Binary files a/styles/game-show/demo/fonts/f139.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f14.woff2 b/styles/game-show/demo/fonts/f14.woff2deleted file mode 100644index ca26e5e..0000000Binary files a/styles/game-show/demo/fonts/f14.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f140.woff2 b/styles/game-show/demo/fonts/f140.woff2deleted file mode 100644index 1dd09ba..0000000Binary files a/styles/game-show/demo/fonts/f140.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f141.woff2 b/styles/game-show/demo/fonts/f141.woff2deleted file mode 100644index f84c79b..0000000Binary files a/styles/game-show/demo/fonts/f141.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f142.woff2 b/styles/game-show/demo/fonts/f142.woff2deleted file mode 100644index cee31e7..0000000Binary files a/styles/game-show/demo/fonts/f142.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f143.woff2 b/styles/game-show/demo/fonts/f143.woff2deleted file mode 100644index 4d83f6e..0000000Binary files a/styles/game-show/demo/fonts/f143.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f144.woff2 b/styles/game-show/demo/fonts/f144.woff2deleted file mode 100644index d6bc1e4..0000000Binary files a/styles/game-show/demo/fonts/f144.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f145.woff2 b/styles/game-show/demo/fonts/f145.woff2deleted file mode 100644index 6171a66..0000000Binary files a/styles/game-show/demo/fonts/f145.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f146.woff2 b/styles/game-show/demo/fonts/f146.woff2deleted file mode 100644index 04a61ab..0000000Binary files a/styles/game-show/demo/fonts/f146.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f147.woff2 b/styles/game-show/demo/fonts/f147.woff2deleted file mode 100644index 6a12884..0000000Binary files a/styles/game-show/demo/fonts/f147.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f148.woff2 b/styles/game-show/demo/fonts/f148.woff2deleted file mode 100644index 40f729d..0000000Binary files a/styles/game-show/demo/fonts/f148.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f149.woff2 b/styles/game-show/demo/fonts/f149.woff2deleted file mode 100644index 3367753..0000000Binary files a/styles/game-show/demo/fonts/f149.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f15.woff2 b/styles/game-show/demo/fonts/f15.woff2deleted file mode 100644index 4e8c378..0000000Binary files a/styles/game-show/demo/fonts/f15.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f150.woff2 b/styles/game-show/demo/fonts/f150.woff2deleted file mode 100644index 42b85ab..0000000Binary files a/styles/game-show/demo/fonts/f150.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f151.woff2 b/styles/game-show/demo/fonts/f151.woff2deleted file mode 100644index 027ab14..0000000Binary files a/styles/game-show/demo/fonts/f151.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f152.woff2 b/styles/game-show/demo/fonts/f152.woff2deleted file mode 100644index 74502ad..0000000Binary files a/styles/game-show/demo/fonts/f152.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f153.woff2 b/styles/game-show/demo/fonts/f153.woff2deleted file mode 100644index 9311f9b..0000000Binary files a/styles/game-show/demo/fonts/f153.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f154.woff2 b/styles/game-show/demo/fonts/f154.woff2deleted file mode 100644index e5f2e38..0000000Binary files a/styles/game-show/demo/fonts/f154.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f155.woff2 b/styles/game-show/demo/fonts/f155.woff2deleted file mode 100644index 04b95f8..0000000Binary files a/styles/game-show/demo/fonts/f155.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f156.woff2 b/styles/game-show/demo/fonts/f156.woff2deleted file mode 100644index f3828cd..0000000Binary files a/styles/game-show/demo/fonts/f156.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f157.woff2 b/styles/game-show/demo/fonts/f157.woff2deleted file mode 100644index dd6d3d3..0000000Binary files a/styles/game-show/demo/fonts/f157.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f158.woff2 b/styles/game-show/demo/fonts/f158.woff2deleted file mode 100644index 1907a88..0000000Binary files a/styles/game-show/demo/fonts/f158.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f159.woff2 b/styles/game-show/demo/fonts/f159.woff2deleted file mode 100644index 0c22d5b..0000000Binary files a/styles/game-show/demo/fonts/f159.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f16.woff2 b/styles/game-show/demo/fonts/f16.woff2deleted file mode 100644index c0a017e..0000000Binary files a/styles/game-show/demo/fonts/f16.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f160.woff2 b/styles/game-show/demo/fonts/f160.woff2deleted file mode 100644index 2cece3c..0000000Binary files a/styles/game-show/demo/fonts/f160.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f161.woff2 b/styles/game-show/demo/fonts/f161.woff2deleted file mode 100644index 7c1d93e..0000000Binary files a/styles/game-show/demo/fonts/f161.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f162.woff2 b/styles/game-show/demo/fonts/f162.woff2deleted file mode 100644index 1613bae..0000000Binary files a/styles/game-show/demo/fonts/f162.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f163.woff2 b/styles/game-show/demo/fonts/f163.woff2deleted file mode 100644index a87daae..0000000Binary files a/styles/game-show/demo/fonts/f163.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f164.woff2 b/styles/game-show/demo/fonts/f164.woff2deleted file mode 100644index 76516f7..0000000Binary files a/styles/game-show/demo/fonts/f164.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f165.woff2 b/styles/game-show/demo/fonts/f165.woff2deleted file mode 100644index 44585ff..0000000Binary files a/styles/game-show/demo/fonts/f165.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f166.woff2 b/styles/game-show/demo/fonts/f166.woff2deleted file mode 100644index 5e580a3..0000000Binary files a/styles/game-show/demo/fonts/f166.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f167.woff2 b/styles/game-show/demo/fonts/f167.woff2deleted file mode 100644index 1c918ff..0000000Binary files a/styles/game-show/demo/fonts/f167.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f168.woff2 b/styles/game-show/demo/fonts/f168.woff2deleted file mode 100644index 7daf820..0000000Binary files a/styles/game-show/demo/fonts/f168.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f169.woff2 b/styles/game-show/demo/fonts/f169.woff2deleted file mode 100644index 792282f..0000000Binary files a/styles/game-show/demo/fonts/f169.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f17.woff2 b/styles/game-show/demo/fonts/f17.woff2deleted file mode 100644index 5d3f0b2..0000000Binary files a/styles/game-show/demo/fonts/f17.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f170.woff2 b/styles/game-show/demo/fonts/f170.woff2deleted file mode 100644index b66e2ad..0000000Binary files a/styles/game-show/demo/fonts/f170.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f171.woff2 b/styles/game-show/demo/fonts/f171.woff2deleted file mode 100644index bccca3f..0000000Binary files a/styles/game-show/demo/fonts/f171.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f172.woff2 b/styles/game-show/demo/fonts/f172.woff2deleted file mode 100644index 532951f..0000000Binary files a/styles/game-show/demo/fonts/f172.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f173.woff2 b/styles/game-show/demo/fonts/f173.woff2deleted file mode 100644index b026edc..0000000Binary files a/styles/game-show/demo/fonts/f173.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f174.woff2 b/styles/game-show/demo/fonts/f174.woff2deleted file mode 100644index 2fbfa1f..0000000Binary files a/styles/game-show/demo/fonts/f174.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f175.woff2 b/styles/game-show/demo/fonts/f175.woff2deleted file mode 100644index 18c48e7..0000000Binary files a/styles/game-show/demo/fonts/f175.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f176.woff2 b/styles/game-show/demo/fonts/f176.woff2deleted file mode 100644index df4e31b..0000000Binary files a/styles/game-show/demo/fonts/f176.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f177.woff2 b/styles/game-show/demo/fonts/f177.woff2deleted file mode 100644index c329573..0000000Binary files a/styles/game-show/demo/fonts/f177.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f178.woff2 b/styles/game-show/demo/fonts/f178.woff2deleted file mode 100644index 800288d..0000000Binary files a/styles/game-show/demo/fonts/f178.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f179.woff2 b/styles/game-show/demo/fonts/f179.woff2deleted file mode 100644index c8b5eec..0000000Binary files a/styles/game-show/demo/fonts/f179.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f18.woff2 b/styles/game-show/demo/fonts/f18.woff2deleted file mode 100644index 7c2ac1f..0000000Binary files a/styles/game-show/demo/fonts/f18.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f180.woff2 b/styles/game-show/demo/fonts/f180.woff2deleted file mode 100644index 47c4368..0000000Binary files a/styles/game-show/demo/fonts/f180.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f181.woff2 b/styles/game-show/demo/fonts/f181.woff2deleted file mode 100644index 1311be8..0000000Binary files a/styles/game-show/demo/fonts/f181.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f182.woff2 b/styles/game-show/demo/fonts/f182.woff2deleted file mode 100644index 7adfe55..0000000Binary files a/styles/game-show/demo/fonts/f182.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f183.woff2 b/styles/game-show/demo/fonts/f183.woff2deleted file mode 100644index 5e6ecff..0000000Binary files a/styles/game-show/demo/fonts/f183.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f184.woff2 b/styles/game-show/demo/fonts/f184.woff2deleted file mode 100644index 71fd6f9..0000000Binary files a/styles/game-show/demo/fonts/f184.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f185.woff2 b/styles/game-show/demo/fonts/f185.woff2deleted file mode 100644index 468a92f..0000000Binary files a/styles/game-show/demo/fonts/f185.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f186.woff2 b/styles/game-show/demo/fonts/f186.woff2deleted file mode 100644index 5b8e902..0000000Binary files a/styles/game-show/demo/fonts/f186.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f187.woff2 b/styles/game-show/demo/fonts/f187.woff2deleted file mode 100644index dd1db12..0000000Binary files a/styles/game-show/demo/fonts/f187.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f188.woff2 b/styles/game-show/demo/fonts/f188.woff2deleted file mode 100644index d1f3f41..0000000Binary files a/styles/game-show/demo/fonts/f188.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f189.woff2 b/styles/game-show/demo/fonts/f189.woff2deleted file mode 100644index f7ace23..0000000Binary files a/styles/game-show/demo/fonts/f189.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f19.woff2 b/styles/game-show/demo/fonts/f19.woff2deleted file mode 100644index 3d4b80a..0000000Binary files a/styles/game-show/demo/fonts/f19.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f190.woff2 b/styles/game-show/demo/fonts/f190.woff2deleted file mode 100644index 01fb3fe..0000000Binary files a/styles/game-show/demo/fonts/f190.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f191.woff2 b/styles/game-show/demo/fonts/f191.woff2deleted file mode 100644index 007550d..0000000Binary files a/styles/game-show/demo/fonts/f191.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f192.woff2 b/styles/game-show/demo/fonts/f192.woff2deleted file mode 100644index cf0edde..0000000Binary files a/styles/game-show/demo/fonts/f192.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f193.woff2 b/styles/game-show/demo/fonts/f193.woff2deleted file mode 100644index 7d27d66..0000000Binary files a/styles/game-show/demo/fonts/f193.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f194.woff2 b/styles/game-show/demo/fonts/f194.woff2deleted file mode 100644index e9ab385..0000000Binary files a/styles/game-show/demo/fonts/f194.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f195.woff2 b/styles/game-show/demo/fonts/f195.woff2deleted file mode 100644index b324c03..0000000Binary files a/styles/game-show/demo/fonts/f195.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f196.woff2 b/styles/game-show/demo/fonts/f196.woff2deleted file mode 100644index 100925c..0000000Binary files a/styles/game-show/demo/fonts/f196.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f197.woff2 b/styles/game-show/demo/fonts/f197.woff2deleted file mode 100644index ac894a4..0000000Binary files a/styles/game-show/demo/fonts/f197.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f198.woff2 b/styles/game-show/demo/fonts/f198.woff2deleted file mode 100644index 7e5bb08..0000000Binary files a/styles/game-show/demo/fonts/f198.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f199.woff2 b/styles/game-show/demo/fonts/f199.woff2deleted file mode 100644index edd3325..0000000Binary files a/styles/game-show/demo/fonts/f199.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f2.woff2 b/styles/game-show/demo/fonts/f2.woff2deleted file mode 100644index 21671b7..0000000Binary files a/styles/game-show/demo/fonts/f2.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f20.woff2 b/styles/game-show/demo/fonts/f20.woff2deleted file mode 100644index 4f66a29..0000000Binary files a/styles/game-show/demo/fonts/f20.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f200.woff2 b/styles/game-show/demo/fonts/f200.woff2deleted file mode 100644index 91d0923..0000000Binary files a/styles/game-show/demo/fonts/f200.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f201.woff2 b/styles/game-show/demo/fonts/f201.woff2deleted file mode 100644index 5f6cd1e..0000000Binary files a/styles/game-show/demo/fonts/f201.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f202.woff2 b/styles/game-show/demo/fonts/f202.woff2deleted file mode 100644index cf43570..0000000Binary files a/styles/game-show/demo/fonts/f202.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f203.woff2 b/styles/game-show/demo/fonts/f203.woff2deleted file mode 100644index b99ed29..0000000Binary files a/styles/game-show/demo/fonts/f203.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f204.woff2 b/styles/game-show/demo/fonts/f204.woff2deleted file mode 100644index 0b7aebb..0000000Binary files a/styles/game-show/demo/fonts/f204.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f205.woff2 b/styles/game-show/demo/fonts/f205.woff2deleted file mode 100644index d556e98..0000000Binary files a/styles/game-show/demo/fonts/f205.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f206.woff2 b/styles/game-show/demo/fonts/f206.woff2deleted file mode 100644index 7300c35..0000000Binary files a/styles/game-show/demo/fonts/f206.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f207.woff2 b/styles/game-show/demo/fonts/f207.woff2deleted file mode 100644index 46baef8..0000000Binary files a/styles/game-show/demo/fonts/f207.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f208.woff2 b/styles/game-show/demo/fonts/f208.woff2deleted file mode 100644index c5b38cc..0000000Binary files a/styles/game-show/demo/fonts/f208.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f209.woff2 b/styles/game-show/demo/fonts/f209.woff2deleted file mode 100644index 4eb2251..0000000Binary files a/styles/game-show/demo/fonts/f209.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f21.woff2 b/styles/game-show/demo/fonts/f21.woff2deleted file mode 100644index 1f4b414..0000000Binary files a/styles/game-show/demo/fonts/f21.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f210.woff2 b/styles/game-show/demo/fonts/f210.woff2deleted file mode 100644index 20751f9..0000000Binary files a/styles/game-show/demo/fonts/f210.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f211.woff2 b/styles/game-show/demo/fonts/f211.woff2deleted file mode 100644index c41061d..0000000Binary files a/styles/game-show/demo/fonts/f211.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f212.woff2 b/styles/game-show/demo/fonts/f212.woff2deleted file mode 100644index adb170e..0000000Binary files a/styles/game-show/demo/fonts/f212.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f213.woff2 b/styles/game-show/demo/fonts/f213.woff2deleted file mode 100644index d74be0c..0000000Binary files a/styles/game-show/demo/fonts/f213.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f214.woff2 b/styles/game-show/demo/fonts/f214.woff2deleted file mode 100644index 0f3e424..0000000Binary files a/styles/game-show/demo/fonts/f214.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f215.woff2 b/styles/game-show/demo/fonts/f215.woff2deleted file mode 100644index 7d18a4d..0000000Binary files a/styles/game-show/demo/fonts/f215.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f216.woff2 b/styles/game-show/demo/fonts/f216.woff2deleted file mode 100644index 3f97e9f..0000000Binary files a/styles/game-show/demo/fonts/f216.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f217.woff2 b/styles/game-show/demo/fonts/f217.woff2deleted file mode 100644index 5903051..0000000Binary files a/styles/game-show/demo/fonts/f217.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f218.woff2 b/styles/game-show/demo/fonts/f218.woff2deleted file mode 100644index 162512b..0000000Binary files a/styles/game-show/demo/fonts/f218.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f219.woff2 b/styles/game-show/demo/fonts/f219.woff2deleted file mode 100644index 432871b..0000000Binary files a/styles/game-show/demo/fonts/f219.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f22.woff2 b/styles/game-show/demo/fonts/f22.woff2deleted file mode 100644index dafe39a..0000000Binary files a/styles/game-show/demo/fonts/f22.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f220.woff2 b/styles/game-show/demo/fonts/f220.woff2deleted file mode 100644index aad0699..0000000Binary files a/styles/game-show/demo/fonts/f220.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f221.woff2 b/styles/game-show/demo/fonts/f221.woff2deleted file mode 100644index 68ceb64..0000000Binary files a/styles/game-show/demo/fonts/f221.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f222.woff2 b/styles/game-show/demo/fonts/f222.woff2deleted file mode 100644index b562574..0000000Binary files a/styles/game-show/demo/fonts/f222.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f223.woff2 b/styles/game-show/demo/fonts/f223.woff2deleted file mode 100644index 8fa4827..0000000Binary files a/styles/game-show/demo/fonts/f223.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f224.woff2 b/styles/game-show/demo/fonts/f224.woff2deleted file mode 100644index 1cd5a97..0000000Binary files a/styles/game-show/demo/fonts/f224.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f225.woff2 b/styles/game-show/demo/fonts/f225.woff2deleted file mode 100644index 28a4b0c..0000000Binary files a/styles/game-show/demo/fonts/f225.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f226.woff2 b/styles/game-show/demo/fonts/f226.woff2deleted file mode 100644index 82a82ae..0000000Binary files a/styles/game-show/demo/fonts/f226.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f227.woff2 b/styles/game-show/demo/fonts/f227.woff2deleted file mode 100644index 2b95f7a..0000000Binary files a/styles/game-show/demo/fonts/f227.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f228.woff2 b/styles/game-show/demo/fonts/f228.woff2deleted file mode 100644index 0a1971c..0000000Binary files a/styles/game-show/demo/fonts/f228.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f229.woff2 b/styles/game-show/demo/fonts/f229.woff2deleted file mode 100644index d15025a..0000000Binary files a/styles/game-show/demo/fonts/f229.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f23.woff2 b/styles/game-show/demo/fonts/f23.woff2deleted file mode 100644index 70bd1ea..0000000Binary files a/styles/game-show/demo/fonts/f23.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f230.woff2 b/styles/game-show/demo/fonts/f230.woff2deleted file mode 100644index 45f6231..0000000Binary files a/styles/game-show/demo/fonts/f230.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f231.woff2 b/styles/game-show/demo/fonts/f231.woff2deleted file mode 100644index bcd9b91..0000000Binary files a/styles/game-show/demo/fonts/f231.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f232.woff2 b/styles/game-show/demo/fonts/f232.woff2deleted file mode 100644index a1762e8..0000000Binary files a/styles/game-show/demo/fonts/f232.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f233.woff2 b/styles/game-show/demo/fonts/f233.woff2deleted file mode 100644index e227031..0000000Binary files a/styles/game-show/demo/fonts/f233.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f234.woff2 b/styles/game-show/demo/fonts/f234.woff2deleted file mode 100644index 04c5416..0000000Binary files a/styles/game-show/demo/fonts/f234.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f235.woff2 b/styles/game-show/demo/fonts/f235.woff2deleted file mode 100644index c8fda47..0000000Binary files a/styles/game-show/demo/fonts/f235.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f236.woff2 b/styles/game-show/demo/fonts/f236.woff2deleted file mode 100644index bae3ea7..0000000Binary files a/styles/game-show/demo/fonts/f236.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f237.woff2 b/styles/game-show/demo/fonts/f237.woff2deleted file mode 100644index 78d8d67..0000000Binary files a/styles/game-show/demo/fonts/f237.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f238.woff2 b/styles/game-show/demo/fonts/f238.woff2deleted file mode 100644index c311d0f..0000000Binary files a/styles/game-show/demo/fonts/f238.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f239.woff2 b/styles/game-show/demo/fonts/f239.woff2deleted file mode 100644index d261250..0000000Binary files a/styles/game-show/demo/fonts/f239.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f24.woff2 b/styles/game-show/demo/fonts/f24.woff2deleted file mode 100644index 9718e07..0000000Binary files a/styles/game-show/demo/fonts/f24.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f240.woff2 b/styles/game-show/demo/fonts/f240.woff2deleted file mode 100644index 6ebd759..0000000Binary files a/styles/game-show/demo/fonts/f240.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f241.woff2 b/styles/game-show/demo/fonts/f241.woff2deleted file mode 100644index 042fbe0..0000000Binary files a/styles/game-show/demo/fonts/f241.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f242.woff2 b/styles/game-show/demo/fonts/f242.woff2deleted file mode 100644index 91eb468..0000000Binary files a/styles/game-show/demo/fonts/f242.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f243.woff2 b/styles/game-show/demo/fonts/f243.woff2deleted file mode 100644index fae22db..0000000Binary files a/styles/game-show/demo/fonts/f243.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f244.woff2 b/styles/game-show/demo/fonts/f244.woff2deleted file mode 100644index 50ffa36..0000000Binary files a/styles/game-show/demo/fonts/f244.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f245.woff2 b/styles/game-show/demo/fonts/f245.woff2deleted file mode 100644index 5f89467..0000000Binary files a/styles/game-show/demo/fonts/f245.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f246.woff2 b/styles/game-show/demo/fonts/f246.woff2deleted file mode 100644index af59477..0000000Binary files a/styles/game-show/demo/fonts/f246.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f247.woff2 b/styles/game-show/demo/fonts/f247.woff2deleted file mode 100644index b027992..0000000Binary files a/styles/game-show/demo/fonts/f247.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f248.woff2 b/styles/game-show/demo/fonts/f248.woff2deleted file mode 100644index 6e55bfc..0000000Binary files a/styles/game-show/demo/fonts/f248.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f249.woff2 b/styles/game-show/demo/fonts/f249.woff2deleted file mode 100644index 8968d1f..0000000Binary files a/styles/game-show/demo/fonts/f249.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f25.woff2 b/styles/game-show/demo/fonts/f25.woff2deleted file mode 100644index 520229d..0000000Binary files a/styles/game-show/demo/fonts/f25.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f250.woff2 b/styles/game-show/demo/fonts/f250.woff2deleted file mode 100644index 9d602fa..0000000Binary files a/styles/game-show/demo/fonts/f250.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f251.woff2 b/styles/game-show/demo/fonts/f251.woff2deleted file mode 100644index 3bae225..0000000Binary files a/styles/game-show/demo/fonts/f251.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f252.woff2 b/styles/game-show/demo/fonts/f252.woff2deleted file mode 100644index 6c68e28..0000000Binary files a/styles/game-show/demo/fonts/f252.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f253.woff2 b/styles/game-show/demo/fonts/f253.woff2deleted file mode 100644index e7d3f80..0000000Binary files a/styles/game-show/demo/fonts/f253.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f254.woff2 b/styles/game-show/demo/fonts/f254.woff2deleted file mode 100644index 6fc2d32..0000000Binary files a/styles/game-show/demo/fonts/f254.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f255.woff2 b/styles/game-show/demo/fonts/f255.woff2deleted file mode 100644index 17c44ae..0000000Binary files a/styles/game-show/demo/fonts/f255.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f256.woff2 b/styles/game-show/demo/fonts/f256.woff2deleted file mode 100644index 71927d9..0000000Binary files a/styles/game-show/demo/fonts/f256.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f257.woff2 b/styles/game-show/demo/fonts/f257.woff2deleted file mode 100644index f177a7a..0000000Binary files a/styles/game-show/demo/fonts/f257.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f258.woff2 b/styles/game-show/demo/fonts/f258.woff2deleted file mode 100644index b10e302..0000000Binary files a/styles/game-show/demo/fonts/f258.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f259.woff2 b/styles/game-show/demo/fonts/f259.woff2deleted file mode 100644index 409ac14..0000000Binary files a/styles/game-show/demo/fonts/f259.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f26.woff2 b/styles/game-show/demo/fonts/f26.woff2deleted file mode 100644index c15b35c..0000000Binary files a/styles/game-show/demo/fonts/f26.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f260.woff2 b/styles/game-show/demo/fonts/f260.woff2deleted file mode 100644index dd026fc..0000000Binary files a/styles/game-show/demo/fonts/f260.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f261.woff2 b/styles/game-show/demo/fonts/f261.woff2deleted file mode 100644index 47944e0..0000000Binary files a/styles/game-show/demo/fonts/f261.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f262.woff2 b/styles/game-show/demo/fonts/f262.woff2deleted file mode 100644index b4b5363..0000000Binary files a/styles/game-show/demo/fonts/f262.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f263.woff2 b/styles/game-show/demo/fonts/f263.woff2deleted file mode 100644index 9750496..0000000Binary files a/styles/game-show/demo/fonts/f263.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f264.woff2 b/styles/game-show/demo/fonts/f264.woff2deleted file mode 100644index bbe978f..0000000Binary files a/styles/game-show/demo/fonts/f264.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f265.woff2 b/styles/game-show/demo/fonts/f265.woff2deleted file mode 100644index 507dba0..0000000Binary files a/styles/game-show/demo/fonts/f265.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f266.woff2 b/styles/game-show/demo/fonts/f266.woff2deleted file mode 100644index aa07668..0000000Binary files a/styles/game-show/demo/fonts/f266.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f267.woff2 b/styles/game-show/demo/fonts/f267.woff2deleted file mode 100644index b2d3276..0000000Binary files a/styles/game-show/demo/fonts/f267.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f268.woff2 b/styles/game-show/demo/fonts/f268.woff2deleted file mode 100644index 21dc52b..0000000Binary files a/styles/game-show/demo/fonts/f268.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f269.woff2 b/styles/game-show/demo/fonts/f269.woff2deleted file mode 100644index e6cc7d6..0000000Binary files a/styles/game-show/demo/fonts/f269.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f27.woff2 b/styles/game-show/demo/fonts/f27.woff2deleted file mode 100644index e60b1a0..0000000Binary files a/styles/game-show/demo/fonts/f27.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f270.woff2 b/styles/game-show/demo/fonts/f270.woff2deleted file mode 100644index e1cb48f..0000000Binary files a/styles/game-show/demo/fonts/f270.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f271.woff2 b/styles/game-show/demo/fonts/f271.woff2deleted file mode 100644index 2e8a02b..0000000Binary files a/styles/game-show/demo/fonts/f271.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f272.woff2 b/styles/game-show/demo/fonts/f272.woff2deleted file mode 100644index ef5490c..0000000Binary files a/styles/game-show/demo/fonts/f272.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f273.woff2 b/styles/game-show/demo/fonts/f273.woff2deleted file mode 100644index 338eff4..0000000Binary files a/styles/game-show/demo/fonts/f273.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f274.woff2 b/styles/game-show/demo/fonts/f274.woff2deleted file mode 100644index 8d3a59a..0000000Binary files a/styles/game-show/demo/fonts/f274.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f275.woff2 b/styles/game-show/demo/fonts/f275.woff2deleted file mode 100644index 3c24ea8..0000000Binary files a/styles/game-show/demo/fonts/f275.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f276.woff2 b/styles/game-show/demo/fonts/f276.woff2deleted file mode 100644index 471102c..0000000Binary files a/styles/game-show/demo/fonts/f276.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f277.woff2 b/styles/game-show/demo/fonts/f277.woff2deleted file mode 100644index ce16b64..0000000Binary files a/styles/game-show/demo/fonts/f277.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f278.woff2 b/styles/game-show/demo/fonts/f278.woff2deleted file mode 100644index fe6d6d2..0000000Binary files a/styles/game-show/demo/fonts/f278.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f279.woff2 b/styles/game-show/demo/fonts/f279.woff2deleted file mode 100644index 01fd87b..0000000Binary files a/styles/game-show/demo/fonts/f279.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f28.woff2 b/styles/game-show/demo/fonts/f28.woff2deleted file mode 100644index b92eac4..0000000Binary files a/styles/game-show/demo/fonts/f28.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f280.woff2 b/styles/game-show/demo/fonts/f280.woff2deleted file mode 100644index a20b361..0000000Binary files a/styles/game-show/demo/fonts/f280.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f281.woff2 b/styles/game-show/demo/fonts/f281.woff2deleted file mode 100644index ab31ac8..0000000Binary files a/styles/game-show/demo/fonts/f281.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f282.woff2 b/styles/game-show/demo/fonts/f282.woff2deleted file mode 100644index af5fd40..0000000Binary files a/styles/game-show/demo/fonts/f282.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f283.woff2 b/styles/game-show/demo/fonts/f283.woff2deleted file mode 100644index f606681..0000000Binary files a/styles/game-show/demo/fonts/f283.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f284.woff2 b/styles/game-show/demo/fonts/f284.woff2deleted file mode 100644index 816bac5..0000000Binary files a/styles/game-show/demo/fonts/f284.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f285.woff2 b/styles/game-show/demo/fonts/f285.woff2deleted file mode 100644index 0b76173..0000000Binary files a/styles/game-show/demo/fonts/f285.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f286.woff2 b/styles/game-show/demo/fonts/f286.woff2deleted file mode 100644index 024a1af..0000000Binary files a/styles/game-show/demo/fonts/f286.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f287.woff2 b/styles/game-show/demo/fonts/f287.woff2deleted file mode 100644index 1b61cf9..0000000Binary files a/styles/game-show/demo/fonts/f287.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f288.woff2 b/styles/game-show/demo/fonts/f288.woff2deleted file mode 100644index 06f0936..0000000Binary files a/styles/game-show/demo/fonts/f288.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f289.woff2 b/styles/game-show/demo/fonts/f289.woff2deleted file mode 100644index d37ea35..0000000Binary files a/styles/game-show/demo/fonts/f289.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f29.woff2 b/styles/game-show/demo/fonts/f29.woff2deleted file mode 100644index 89b0d21..0000000Binary files a/styles/game-show/demo/fonts/f29.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f290.woff2 b/styles/game-show/demo/fonts/f290.woff2deleted file mode 100644index 310fadd..0000000Binary files a/styles/game-show/demo/fonts/f290.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f291.woff2 b/styles/game-show/demo/fonts/f291.woff2deleted file mode 100644index 2ca6ac6..0000000Binary files a/styles/game-show/demo/fonts/f291.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f292.woff2 b/styles/game-show/demo/fonts/f292.woff2deleted file mode 100644index c607829..0000000Binary files a/styles/game-show/demo/fonts/f292.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f293.woff2 b/styles/game-show/demo/fonts/f293.woff2deleted file mode 100644index 23433c5..0000000Binary files a/styles/game-show/demo/fonts/f293.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f294.woff2 b/styles/game-show/demo/fonts/f294.woff2deleted file mode 100644index ece6c36..0000000Binary files a/styles/game-show/demo/fonts/f294.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f295.woff2 b/styles/game-show/demo/fonts/f295.woff2deleted file mode 100644index dae3066..0000000Binary files a/styles/game-show/demo/fonts/f295.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f296.woff2 b/styles/game-show/demo/fonts/f296.woff2deleted file mode 100644index 076ef6e..0000000Binary files a/styles/game-show/demo/fonts/f296.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f297.woff2 b/styles/game-show/demo/fonts/f297.woff2deleted file mode 100644index 9560fee..0000000Binary files a/styles/game-show/demo/fonts/f297.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f298.woff2 b/styles/game-show/demo/fonts/f298.woff2deleted file mode 100644index f831fc4..0000000Binary files a/styles/game-show/demo/fonts/f298.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f299.woff2 b/styles/game-show/demo/fonts/f299.woff2deleted file mode 100644index 215421d..0000000Binary files a/styles/game-show/demo/fonts/f299.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f3.woff2 b/styles/game-show/demo/fonts/f3.woff2deleted file mode 100644index 1257849..0000000Binary files a/styles/game-show/demo/fonts/f3.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f30.woff2 b/styles/game-show/demo/fonts/f30.woff2deleted file mode 100644index 958b0b6..0000000Binary files a/styles/game-show/demo/fonts/f30.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f300.woff2 b/styles/game-show/demo/fonts/f300.woff2deleted file mode 100644index bbc1a79..0000000Binary files a/styles/game-show/demo/fonts/f300.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f301.woff2 b/styles/game-show/demo/fonts/f301.woff2deleted file mode 100644index 473e1a7..0000000Binary files a/styles/game-show/demo/fonts/f301.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f302.woff2 b/styles/game-show/demo/fonts/f302.woff2deleted file mode 100644index 39f8ff1..0000000Binary files a/styles/game-show/demo/fonts/f302.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f303.woff2 b/styles/game-show/demo/fonts/f303.woff2deleted file mode 100644index d5d6409..0000000Binary files a/styles/game-show/demo/fonts/f303.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f304.woff2 b/styles/game-show/demo/fonts/f304.woff2deleted file mode 100644index 0e6ee28..0000000Binary files a/styles/game-show/demo/fonts/f304.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f305.woff2 b/styles/game-show/demo/fonts/f305.woff2deleted file mode 100644index e37648b..0000000Binary files a/styles/game-show/demo/fonts/f305.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f306.woff2 b/styles/game-show/demo/fonts/f306.woff2deleted file mode 100644index 8407f1e..0000000Binary files a/styles/game-show/demo/fonts/f306.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f307.woff2 b/styles/game-show/demo/fonts/f307.woff2deleted file mode 100644index 855fbef..0000000Binary files a/styles/game-show/demo/fonts/f307.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f308.woff2 b/styles/game-show/demo/fonts/f308.woff2deleted file mode 100644index ca985fb..0000000Binary files a/styles/game-show/demo/fonts/f308.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f309.woff2 b/styles/game-show/demo/fonts/f309.woff2deleted file mode 100644index dfea7bb..0000000Binary files a/styles/game-show/demo/fonts/f309.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f31.woff2 b/styles/game-show/demo/fonts/f31.woff2deleted file mode 100644index 3674f3d..0000000Binary files a/styles/game-show/demo/fonts/f31.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f310.woff2 b/styles/game-show/demo/fonts/f310.woff2deleted file mode 100644index 2499dd6..0000000Binary files a/styles/game-show/demo/fonts/f310.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f311.woff2 b/styles/game-show/demo/fonts/f311.woff2deleted file mode 100644index 48834f2..0000000Binary files a/styles/game-show/demo/fonts/f311.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f312.woff2 b/styles/game-show/demo/fonts/f312.woff2deleted file mode 100644index 2b312a7..0000000Binary files a/styles/game-show/demo/fonts/f312.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f313.woff2 b/styles/game-show/demo/fonts/f313.woff2deleted file mode 100644index d36a8ee..0000000Binary files a/styles/game-show/demo/fonts/f313.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f314.woff2 b/styles/game-show/demo/fonts/f314.woff2deleted file mode 100644index 1470867..0000000Binary files a/styles/game-show/demo/fonts/f314.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f315.woff2 b/styles/game-show/demo/fonts/f315.woff2deleted file mode 100644index bb7c721..0000000Binary files a/styles/game-show/demo/fonts/f315.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f316.woff2 b/styles/game-show/demo/fonts/f316.woff2deleted file mode 100644index 0290043..0000000Binary files a/styles/game-show/demo/fonts/f316.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f317.woff2 b/styles/game-show/demo/fonts/f317.woff2deleted file mode 100644index 185d8de..0000000Binary files a/styles/game-show/demo/fonts/f317.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f318.woff2 b/styles/game-show/demo/fonts/f318.woff2deleted file mode 100644index 1cfb864..0000000Binary files a/styles/game-show/demo/fonts/f318.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f319.woff2 b/styles/game-show/demo/fonts/f319.woff2deleted file mode 100644index 774c3c6..0000000Binary files a/styles/game-show/demo/fonts/f319.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f32.woff2 b/styles/game-show/demo/fonts/f32.woff2deleted file mode 100644index d3e8bd8..0000000Binary files a/styles/game-show/demo/fonts/f32.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f320.woff2 b/styles/game-show/demo/fonts/f320.woff2deleted file mode 100644index 009d0e8..0000000Binary files a/styles/game-show/demo/fonts/f320.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f321.woff2 b/styles/game-show/demo/fonts/f321.woff2deleted file mode 100644index 65ff7a0..0000000Binary files a/styles/game-show/demo/fonts/f321.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f322.woff2 b/styles/game-show/demo/fonts/f322.woff2deleted file mode 100644index f47d887..0000000Binary files a/styles/game-show/demo/fonts/f322.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f323.woff2 b/styles/game-show/demo/fonts/f323.woff2deleted file mode 100644index ec395c3..0000000Binary files a/styles/game-show/demo/fonts/f323.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f324.woff2 b/styles/game-show/demo/fonts/f324.woff2deleted file mode 100644index adbfcdb..0000000Binary files a/styles/game-show/demo/fonts/f324.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f325.woff2 b/styles/game-show/demo/fonts/f325.woff2deleted file mode 100644index 2be1a90..0000000Binary files a/styles/game-show/demo/fonts/f325.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f326.woff2 b/styles/game-show/demo/fonts/f326.woff2deleted file mode 100644index 7b14254..0000000Binary files a/styles/game-show/demo/fonts/f326.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f327.woff2 b/styles/game-show/demo/fonts/f327.woff2deleted file mode 100644index 7c163c9..0000000Binary files a/styles/game-show/demo/fonts/f327.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f328.woff2 b/styles/game-show/demo/fonts/f328.woff2deleted file mode 100644index 898387c..0000000Binary files a/styles/game-show/demo/fonts/f328.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f329.woff2 b/styles/game-show/demo/fonts/f329.woff2deleted file mode 100644index ae0d63e..0000000Binary files a/styles/game-show/demo/fonts/f329.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f33.woff2 b/styles/game-show/demo/fonts/f33.woff2deleted file mode 100644index a438a04..0000000Binary files a/styles/game-show/demo/fonts/f33.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f330.woff2 b/styles/game-show/demo/fonts/f330.woff2deleted file mode 100644index 6323694..0000000Binary files a/styles/game-show/demo/fonts/f330.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f331.woff2 b/styles/game-show/demo/fonts/f331.woff2deleted file mode 100644index 8de69ae..0000000Binary files a/styles/game-show/demo/fonts/f331.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f332.woff2 b/styles/game-show/demo/fonts/f332.woff2deleted file mode 100644index e807378..0000000Binary files a/styles/game-show/demo/fonts/f332.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f333.woff2 b/styles/game-show/demo/fonts/f333.woff2deleted file mode 100644index 40fa655..0000000Binary files a/styles/game-show/demo/fonts/f333.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f334.woff2 b/styles/game-show/demo/fonts/f334.woff2deleted file mode 100644index 4c0b3ac..0000000Binary files a/styles/game-show/demo/fonts/f334.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f335.woff2 b/styles/game-show/demo/fonts/f335.woff2deleted file mode 100644index 2cde0b2..0000000Binary files a/styles/game-show/demo/fonts/f335.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f336.woff2 b/styles/game-show/demo/fonts/f336.woff2deleted file mode 100644index 25a5e32..0000000Binary files a/styles/game-show/demo/fonts/f336.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f337.woff2 b/styles/game-show/demo/fonts/f337.woff2deleted file mode 100644index 6992fc6..0000000Binary files a/styles/game-show/demo/fonts/f337.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f338.woff2 b/styles/game-show/demo/fonts/f338.woff2deleted file mode 100644index 026b742..0000000Binary files a/styles/game-show/demo/fonts/f338.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f339.woff2 b/styles/game-show/demo/fonts/f339.woff2deleted file mode 100644index 19131de..0000000Binary files a/styles/game-show/demo/fonts/f339.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f34.woff2 b/styles/game-show/demo/fonts/f34.woff2deleted file mode 100644index f7544df..0000000Binary files a/styles/game-show/demo/fonts/f34.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f340.woff2 b/styles/game-show/demo/fonts/f340.woff2deleted file mode 100644index 0923095..0000000Binary files a/styles/game-show/demo/fonts/f340.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f341.woff2 b/styles/game-show/demo/fonts/f341.woff2deleted file mode 100644index 6774192..0000000Binary files a/styles/game-show/demo/fonts/f341.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f342.woff2 b/styles/game-show/demo/fonts/f342.woff2deleted file mode 100644index d20c2f9..0000000Binary files a/styles/game-show/demo/fonts/f342.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f343.woff2 b/styles/game-show/demo/fonts/f343.woff2deleted file mode 100644index 67bb80a..0000000Binary files a/styles/game-show/demo/fonts/f343.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f344.woff2 b/styles/game-show/demo/fonts/f344.woff2deleted file mode 100644index 5c5ec0c..0000000Binary files a/styles/game-show/demo/fonts/f344.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f345.woff2 b/styles/game-show/demo/fonts/f345.woff2deleted file mode 100644index 6655561..0000000Binary files a/styles/game-show/demo/fonts/f345.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f346.woff2 b/styles/game-show/demo/fonts/f346.woff2deleted file mode 100644index f49ddd3..0000000Binary files a/styles/game-show/demo/fonts/f346.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f347.woff2 b/styles/game-show/demo/fonts/f347.woff2deleted file mode 100644index e1fd2c1..0000000Binary files a/styles/game-show/demo/fonts/f347.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f348.woff2 b/styles/game-show/demo/fonts/f348.woff2deleted file mode 100644index 051e4c9..0000000Binary files a/styles/game-show/demo/fonts/f348.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f349.woff2 b/styles/game-show/demo/fonts/f349.woff2deleted file mode 100644index cd5035d..0000000Binary files a/styles/game-show/demo/fonts/f349.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f35.woff2 b/styles/game-show/demo/fonts/f35.woff2deleted file mode 100644index 0aa50b2..0000000Binary files a/styles/game-show/demo/fonts/f35.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f350.woff2 b/styles/game-show/demo/fonts/f350.woff2deleted file mode 100644index 123b529..0000000Binary files a/styles/game-show/demo/fonts/f350.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f351.woff2 b/styles/game-show/demo/fonts/f351.woff2deleted file mode 100644index 6e5e548..0000000Binary files a/styles/game-show/demo/fonts/f351.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f352.woff2 b/styles/game-show/demo/fonts/f352.woff2deleted file mode 100644index a1a9881..0000000Binary files a/styles/game-show/demo/fonts/f352.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f353.woff2 b/styles/game-show/demo/fonts/f353.woff2deleted file mode 100644index c440dc0..0000000Binary files a/styles/game-show/demo/fonts/f353.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f354.woff2 b/styles/game-show/demo/fonts/f354.woff2deleted file mode 100644index 075e69c..0000000Binary files a/styles/game-show/demo/fonts/f354.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f355.woff2 b/styles/game-show/demo/fonts/f355.woff2deleted file mode 100644index b48d396..0000000Binary files a/styles/game-show/demo/fonts/f355.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f356.woff2 b/styles/game-show/demo/fonts/f356.woff2deleted file mode 100644index 8f5510d..0000000Binary files a/styles/game-show/demo/fonts/f356.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f357.woff2 b/styles/game-show/demo/fonts/f357.woff2deleted file mode 100644index 06947e6..0000000Binary files a/styles/game-show/demo/fonts/f357.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f358.woff2 b/styles/game-show/demo/fonts/f358.woff2deleted file mode 100644index d637ca0..0000000Binary files a/styles/game-show/demo/fonts/f358.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f359.woff2 b/styles/game-show/demo/fonts/f359.woff2deleted file mode 100644index a901268..0000000Binary files a/styles/game-show/demo/fonts/f359.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f36.woff2 b/styles/game-show/demo/fonts/f36.woff2deleted file mode 100644index 75229e4..0000000Binary files a/styles/game-show/demo/fonts/f36.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f360.woff2 b/styles/game-show/demo/fonts/f360.woff2deleted file mode 100644index a112778..0000000Binary files a/styles/game-show/demo/fonts/f360.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f361.woff2 b/styles/game-show/demo/fonts/f361.woff2deleted file mode 100644index 15966db..0000000Binary files a/styles/game-show/demo/fonts/f361.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f362.woff2 b/styles/game-show/demo/fonts/f362.woff2deleted file mode 100644index 1801266..0000000Binary files a/styles/game-show/demo/fonts/f362.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f363.woff2 b/styles/game-show/demo/fonts/f363.woff2deleted file mode 100644index 222e4fe..0000000Binary files a/styles/game-show/demo/fonts/f363.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f364.woff2 b/styles/game-show/demo/fonts/f364.woff2deleted file mode 100644index 68f0a2e..0000000Binary files a/styles/game-show/demo/fonts/f364.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f365.woff2 b/styles/game-show/demo/fonts/f365.woff2deleted file mode 100644index b549b46..0000000Binary files a/styles/game-show/demo/fonts/f365.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f366.woff2 b/styles/game-show/demo/fonts/f366.woff2deleted file mode 100644index c4b20c4..0000000Binary files a/styles/game-show/demo/fonts/f366.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f367.woff2 b/styles/game-show/demo/fonts/f367.woff2deleted file mode 100644index a78dbf8..0000000Binary files a/styles/game-show/demo/fonts/f367.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f368.woff2 b/styles/game-show/demo/fonts/f368.woff2deleted file mode 100644index f77c099..0000000Binary files a/styles/game-show/demo/fonts/f368.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f369.woff2 b/styles/game-show/demo/fonts/f369.woff2deleted file mode 100644index 8f6efef..0000000Binary files a/styles/game-show/demo/fonts/f369.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f37.woff2 b/styles/game-show/demo/fonts/f37.woff2deleted file mode 100644index 64b04a7..0000000Binary files a/styles/game-show/demo/fonts/f37.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f370.woff2 b/styles/game-show/demo/fonts/f370.woff2deleted file mode 100644index 6b2b7c8..0000000Binary files a/styles/game-show/demo/fonts/f370.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f371.woff2 b/styles/game-show/demo/fonts/f371.woff2deleted file mode 100644index e91de30..0000000Binary files a/styles/game-show/demo/fonts/f371.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f372.woff2 b/styles/game-show/demo/fonts/f372.woff2deleted file mode 100644index 2ed6649..0000000Binary files a/styles/game-show/demo/fonts/f372.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f373.woff2 b/styles/game-show/demo/fonts/f373.woff2deleted file mode 100644index fb82d9b..0000000Binary files a/styles/game-show/demo/fonts/f373.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f374.woff2 b/styles/game-show/demo/fonts/f374.woff2deleted file mode 100644index 5fb9896..0000000Binary files a/styles/game-show/demo/fonts/f374.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f375.woff2 b/styles/game-show/demo/fonts/f375.woff2deleted file mode 100644index f392885..0000000Binary files a/styles/game-show/demo/fonts/f375.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f376.woff2 b/styles/game-show/demo/fonts/f376.woff2deleted file mode 100644index 0ed7954..0000000Binary files a/styles/game-show/demo/fonts/f376.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f377.woff2 b/styles/game-show/demo/fonts/f377.woff2deleted file mode 100644index c28cad7..0000000Binary files a/styles/game-show/demo/fonts/f377.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f378.woff2 b/styles/game-show/demo/fonts/f378.woff2deleted file mode 100644index b7a8cdc..0000000Binary files a/styles/game-show/demo/fonts/f378.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f379.woff2 b/styles/game-show/demo/fonts/f379.woff2deleted file mode 100644index f1860e5..0000000Binary files a/styles/game-show/demo/fonts/f379.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f38.woff2 b/styles/game-show/demo/fonts/f38.woff2deleted file mode 100644index 2344409..0000000Binary files a/styles/game-show/demo/fonts/f38.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f380.woff2 b/styles/game-show/demo/fonts/f380.woff2deleted file mode 100644index 86c330e..0000000Binary files a/styles/game-show/demo/fonts/f380.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f381.woff2 b/styles/game-show/demo/fonts/f381.woff2deleted file mode 100644index c3ae901..0000000Binary files a/styles/game-show/demo/fonts/f381.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f382.woff2 b/styles/game-show/demo/fonts/f382.woff2deleted file mode 100644index 47fcdab..0000000Binary files a/styles/game-show/demo/fonts/f382.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f383.woff2 b/styles/game-show/demo/fonts/f383.woff2deleted file mode 100644index af275e8..0000000Binary files a/styles/game-show/demo/fonts/f383.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f384.woff2 b/styles/game-show/demo/fonts/f384.woff2deleted file mode 100644index 0ae81cb..0000000Binary files a/styles/game-show/demo/fonts/f384.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f385.woff2 b/styles/game-show/demo/fonts/f385.woff2deleted file mode 100644index f4e5be8..0000000Binary files a/styles/game-show/demo/fonts/f385.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f386.woff2 b/styles/game-show/demo/fonts/f386.woff2deleted file mode 100644index ea270e3..0000000Binary files a/styles/game-show/demo/fonts/f386.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f387.woff2 b/styles/game-show/demo/fonts/f387.woff2deleted file mode 100644index 3ec7888..0000000Binary files a/styles/game-show/demo/fonts/f387.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f388.woff2 b/styles/game-show/demo/fonts/f388.woff2deleted file mode 100644index 5f2505c..0000000Binary files a/styles/game-show/demo/fonts/f388.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f389.woff2 b/styles/game-show/demo/fonts/f389.woff2deleted file mode 100644index ec8065d..0000000Binary files a/styles/game-show/demo/fonts/f389.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f39.woff2 b/styles/game-show/demo/fonts/f39.woff2deleted file mode 100644index 9ae4eae..0000000Binary files a/styles/game-show/demo/fonts/f39.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f390.woff2 b/styles/game-show/demo/fonts/f390.woff2deleted file mode 100644index 2cf6e46..0000000Binary files a/styles/game-show/demo/fonts/f390.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f391.woff2 b/styles/game-show/demo/fonts/f391.woff2deleted file mode 100644index 7e62ac5..0000000Binary files a/styles/game-show/demo/fonts/f391.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f392.woff2 b/styles/game-show/demo/fonts/f392.woff2deleted file mode 100644index 2b3f407..0000000Binary files a/styles/game-show/demo/fonts/f392.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f4.woff2 b/styles/game-show/demo/fonts/f4.woff2deleted file mode 100644index ff1aa50..0000000Binary files a/styles/game-show/demo/fonts/f4.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f40.woff2 b/styles/game-show/demo/fonts/f40.woff2deleted file mode 100644index bae75dd..0000000Binary files a/styles/game-show/demo/fonts/f40.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f41.woff2 b/styles/game-show/demo/fonts/f41.woff2deleted file mode 100644index 95da259..0000000Binary files a/styles/game-show/demo/fonts/f41.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f42.woff2 b/styles/game-show/demo/fonts/f42.woff2deleted file mode 100644index 641d2a7..0000000Binary files a/styles/game-show/demo/fonts/f42.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f43.woff2 b/styles/game-show/demo/fonts/f43.woff2deleted file mode 100644index 33bc3fa..0000000Binary files a/styles/game-show/demo/fonts/f43.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f44.woff2 b/styles/game-show/demo/fonts/f44.woff2deleted file mode 100644index 9fa6131..0000000Binary files a/styles/game-show/demo/fonts/f44.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f45.woff2 b/styles/game-show/demo/fonts/f45.woff2deleted file mode 100644index 72a6731..0000000Binary files a/styles/game-show/demo/fonts/f45.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f46.woff2 b/styles/game-show/demo/fonts/f46.woff2deleted file mode 100644index bde61a5..0000000Binary files a/styles/game-show/demo/fonts/f46.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f47.woff2 b/styles/game-show/demo/fonts/f47.woff2deleted file mode 100644index 0b6f71b..0000000Binary files a/styles/game-show/demo/fonts/f47.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f48.woff2 b/styles/game-show/demo/fonts/f48.woff2deleted file mode 100644index 6c2e2eb..0000000Binary files a/styles/game-show/demo/fonts/f48.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f49.woff2 b/styles/game-show/demo/fonts/f49.woff2deleted file mode 100644index 3b9b6b9..0000000Binary files a/styles/game-show/demo/fonts/f49.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f5.woff2 b/styles/game-show/demo/fonts/f5.woff2deleted file mode 100644index d974610..0000000Binary files a/styles/game-show/demo/fonts/f5.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f50.woff2 b/styles/game-show/demo/fonts/f50.woff2deleted file mode 100644index 707e716..0000000Binary files a/styles/game-show/demo/fonts/f50.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f51.woff2 b/styles/game-show/demo/fonts/f51.woff2deleted file mode 100644index da841c3..0000000Binary files a/styles/game-show/demo/fonts/f51.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f52.woff2 b/styles/game-show/demo/fonts/f52.woff2deleted file mode 100644index 82eff8c..0000000Binary files a/styles/game-show/demo/fonts/f52.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f53.woff2 b/styles/game-show/demo/fonts/f53.woff2deleted file mode 100644index d0663b0..0000000Binary files a/styles/game-show/demo/fonts/f53.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f54.woff2 b/styles/game-show/demo/fonts/f54.woff2deleted file mode 100644index 90078ea..0000000Binary files a/styles/game-show/demo/fonts/f54.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f55.woff2 b/styles/game-show/demo/fonts/f55.woff2deleted file mode 100644index 92ec03e..0000000Binary files a/styles/game-show/demo/fonts/f55.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f56.woff2 b/styles/game-show/demo/fonts/f56.woff2deleted file mode 100644index ddf18e9..0000000Binary files a/styles/game-show/demo/fonts/f56.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f57.woff2 b/styles/game-show/demo/fonts/f57.woff2deleted file mode 100644index 7d835a3..0000000Binary files a/styles/game-show/demo/fonts/f57.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f58.woff2 b/styles/game-show/demo/fonts/f58.woff2deleted file mode 100644index 3859cb3..0000000Binary files a/styles/game-show/demo/fonts/f58.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f59.woff2 b/styles/game-show/demo/fonts/f59.woff2deleted file mode 100644index bf5aad7..0000000Binary files a/styles/game-show/demo/fonts/f59.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f6.woff2 b/styles/game-show/demo/fonts/f6.woff2deleted file mode 100644index 7886877..0000000Binary files a/styles/game-show/demo/fonts/f6.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f60.woff2 b/styles/game-show/demo/fonts/f60.woff2deleted file mode 100644index 8f8a920..0000000Binary files a/styles/game-show/demo/fonts/f60.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f61.woff2 b/styles/game-show/demo/fonts/f61.woff2deleted file mode 100644index 8c071ec..0000000Binary files a/styles/game-show/demo/fonts/f61.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f62.woff2 b/styles/game-show/demo/fonts/f62.woff2deleted file mode 100644index 25c0ed2..0000000Binary files a/styles/game-show/demo/fonts/f62.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f63.woff2 b/styles/game-show/demo/fonts/f63.woff2deleted file mode 100644index 6f3b56d..0000000Binary files a/styles/game-show/demo/fonts/f63.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f64.woff2 b/styles/game-show/demo/fonts/f64.woff2deleted file mode 100644index e8dbc90..0000000Binary files a/styles/game-show/demo/fonts/f64.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f65.woff2 b/styles/game-show/demo/fonts/f65.woff2deleted file mode 100644index cc3b911..0000000Binary files a/styles/game-show/demo/fonts/f65.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f66.woff2 b/styles/game-show/demo/fonts/f66.woff2deleted file mode 100644index 30abe46..0000000Binary files a/styles/game-show/demo/fonts/f66.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f67.woff2 b/styles/game-show/demo/fonts/f67.woff2deleted file mode 100644index 8c59296..0000000Binary files a/styles/game-show/demo/fonts/f67.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f68.woff2 b/styles/game-show/demo/fonts/f68.woff2deleted file mode 100644index e06adf1..0000000Binary files a/styles/game-show/demo/fonts/f68.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f69.woff2 b/styles/game-show/demo/fonts/f69.woff2deleted file mode 100644index e0dbefe..0000000Binary files a/styles/game-show/demo/fonts/f69.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f7.woff2 b/styles/game-show/demo/fonts/f7.woff2deleted file mode 100644index ce55521..0000000Binary files a/styles/game-show/demo/fonts/f7.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f70.woff2 b/styles/game-show/demo/fonts/f70.woff2deleted file mode 100644index 7afc951..0000000Binary files a/styles/game-show/demo/fonts/f70.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f71.woff2 b/styles/game-show/demo/fonts/f71.woff2deleted file mode 100644index b6039a2..0000000Binary files a/styles/game-show/demo/fonts/f71.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f72.woff2 b/styles/game-show/demo/fonts/f72.woff2deleted file mode 100644index 2fa4768..0000000Binary files a/styles/game-show/demo/fonts/f72.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f73.woff2 b/styles/game-show/demo/fonts/f73.woff2deleted file mode 100644index bde604b..0000000Binary files a/styles/game-show/demo/fonts/f73.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f74.woff2 b/styles/game-show/demo/fonts/f74.woff2deleted file mode 100644index 39d8c61..0000000Binary files a/styles/game-show/demo/fonts/f74.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f75.woff2 b/styles/game-show/demo/fonts/f75.woff2deleted file mode 100644index 6905742..0000000Binary files a/styles/game-show/demo/fonts/f75.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f76.woff2 b/styles/game-show/demo/fonts/f76.woff2deleted file mode 100644index d1ca101..0000000Binary files a/styles/game-show/demo/fonts/f76.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f77.woff2 b/styles/game-show/demo/fonts/f77.woff2deleted file mode 100644index 8d9f386..0000000Binary files a/styles/game-show/demo/fonts/f77.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f78.woff2 b/styles/game-show/demo/fonts/f78.woff2deleted file mode 100644index ebf94f8..0000000Binary files a/styles/game-show/demo/fonts/f78.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f79.woff2 b/styles/game-show/demo/fonts/f79.woff2deleted file mode 100644index ce08d15..0000000Binary files a/styles/game-show/demo/fonts/f79.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f8.woff2 b/styles/game-show/demo/fonts/f8.woff2deleted file mode 100644index 68ab53a..0000000Binary files a/styles/game-show/demo/fonts/f8.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f80.woff2 b/styles/game-show/demo/fonts/f80.woff2deleted file mode 100644index c1a10a2..0000000Binary files a/styles/game-show/demo/fonts/f80.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f81.woff2 b/styles/game-show/demo/fonts/f81.woff2deleted file mode 100644index 697f8b6..0000000Binary files a/styles/game-show/demo/fonts/f81.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f82.woff2 b/styles/game-show/demo/fonts/f82.woff2deleted file mode 100644index d46aa28..0000000Binary files a/styles/game-show/demo/fonts/f82.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f83.woff2 b/styles/game-show/demo/fonts/f83.woff2deleted file mode 100644index 17a0d12..0000000Binary files a/styles/game-show/demo/fonts/f83.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f84.woff2 b/styles/game-show/demo/fonts/f84.woff2deleted file mode 100644index 1e39d51..0000000Binary files a/styles/game-show/demo/fonts/f84.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f85.woff2 b/styles/game-show/demo/fonts/f85.woff2deleted file mode 100644index 9dc232e..0000000Binary files a/styles/game-show/demo/fonts/f85.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f86.woff2 b/styles/game-show/demo/fonts/f86.woff2deleted file mode 100644index 03ec362..0000000Binary files a/styles/game-show/demo/fonts/f86.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f87.woff2 b/styles/game-show/demo/fonts/f87.woff2deleted file mode 100644index 6b41913..0000000Binary files a/styles/game-show/demo/fonts/f87.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f88.woff2 b/styles/game-show/demo/fonts/f88.woff2deleted file mode 100644index 2795b41..0000000Binary files a/styles/game-show/demo/fonts/f88.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f89.woff2 b/styles/game-show/demo/fonts/f89.woff2deleted file mode 100644index 46f53b9..0000000Binary files a/styles/game-show/demo/fonts/f89.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f9.woff2 b/styles/game-show/demo/fonts/f9.woff2deleted file mode 100644index bbec631..0000000Binary files a/styles/game-show/demo/fonts/f9.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f90.woff2 b/styles/game-show/demo/fonts/f90.woff2deleted file mode 100644index e0fb0a1..0000000Binary files a/styles/game-show/demo/fonts/f90.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f91.woff2 b/styles/game-show/demo/fonts/f91.woff2deleted file mode 100644index 9135a4d..0000000Binary files a/styles/game-show/demo/fonts/f91.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f92.woff2 b/styles/game-show/demo/fonts/f92.woff2deleted file mode 100644index 647dea6..0000000Binary files a/styles/game-show/demo/fonts/f92.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f93.woff2 b/styles/game-show/demo/fonts/f93.woff2deleted file mode 100644index 64cd782..0000000Binary files a/styles/game-show/demo/fonts/f93.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f94.woff2 b/styles/game-show/demo/fonts/f94.woff2deleted file mode 100644index d1600f2..0000000Binary files a/styles/game-show/demo/fonts/f94.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f95.woff2 b/styles/game-show/demo/fonts/f95.woff2deleted file mode 100644index 3a66685..0000000Binary files a/styles/game-show/demo/fonts/f95.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f96.woff2 b/styles/game-show/demo/fonts/f96.woff2deleted file mode 100644index 3c47263..0000000Binary files a/styles/game-show/demo/fonts/f96.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f97.woff2 b/styles/game-show/demo/fonts/f97.woff2deleted file mode 100644index 0e39294..0000000Binary files a/styles/game-show/demo/fonts/f97.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f98.woff2 b/styles/game-show/demo/fonts/f98.woff2deleted file mode 100644index 8ef2313..0000000Binary files a/styles/game-show/demo/fonts/f98.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/f99.woff2 b/styles/game-show/demo/fonts/f99.woff2deleted file mode 100644index 9bca42d..0000000Binary files a/styles/game-show/demo/fonts/f99.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/fr0.woff2 b/styles/game-show/demo/fonts/fr0.woff2deleted file mode 100644index c0fab34..0000000Binary files a/styles/game-show/demo/fonts/fr0.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/fr1.woff2 b/styles/game-show/demo/fonts/fr1.woff2deleted file mode 100644index 61e74be..0000000Binary files a/styles/game-show/demo/fonts/fr1.woff2 and /dev/null differdiff --git a/styles/game-show/demo/fonts/fr2.woff2 b/styles/game-show/demo/fonts/fr2.woff2deleted file mode 100644index 9c9c082..0000000Binary files a/styles/game-show/demo/fonts/fr2.woff2 and /dev/null differdiff --git a/styles/game-show/demo/voices/action.wav b/styles/game-show/demo/voices/action.wavdeleted file mode 100644index 3573d23..0000000Binary files a/styles/game-show/demo/voices/action.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/aha.wav b/styles/game-show/demo/voices/aha.wavdeleted file mode 100644index 06235ba..0000000Binary files a/styles/game-show/demo/voices/aha.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/attention.wav b/styles/game-show/demo/voices/attention.wavdeleted file mode 100644index 35977c4..0000000Binary files a/styles/game-show/demo/voices/attention.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/cheaper.wav b/styles/game-show/demo/voices/cheaper.wavdeleted file mode 100644index 1df821e..0000000Binary files a/styles/game-show/demo/voices/cheaper.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/checkmate.wav b/styles/game-show/demo/voices/checkmate.wavdeleted file mode 100644index 4db400d..0000000Binary files a/styles/game-show/demo/voices/checkmate.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/count1.wav b/styles/game-show/demo/voices/count1.wavdeleted file mode 100644index 8647101..0000000Binary files a/styles/game-show/demo/voices/count1.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/count2.wav b/styles/game-show/demo/voices/count2.wavdeleted file mode 100644index 038beff..0000000Binary files a/styles/game-show/demo/voices/count2.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/count3.wav b/styles/game-show/demo/voices/count3.wavdeleted file mode 100644index 7c6cce3..0000000Binary files a/styles/game-show/demo/voices/count3.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/count4.wav b/styles/game-show/demo/voices/count4.wavdeleted file mode 100644index 9beba73..0000000Binary files a/styles/game-show/demo/voices/count4.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/cut.wav b/styles/game-show/demo/voices/cut.wavdeleted file mode 100644index a75e6c5..0000000Binary files a/styles/game-show/demo/voices/cut.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/done.wav b/styles/game-show/demo/voices/done.wavdeleted file mode 100644index ba37d4a..0000000Binary files a/styles/game-show/demo/voices/done.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/final.wav b/styles/game-show/demo/voices/final.wavdeleted file mode 100644index 4d386ca..0000000Binary files a/styles/game-show/demo/voices/final.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/gemini.wav b/styles/game-show/demo/voices/gemini.wavdeleted file mode 100644index c334c00..0000000Binary files a/styles/game-show/demo/voices/gemini.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/gpt1.wav b/styles/game-show/demo/voices/gpt1.wavdeleted file mode 100644index 8ac46da..0000000Binary files a/styles/game-show/demo/voices/gpt1.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/gpt2.wav b/styles/game-show/demo/voices/gpt2.wavdeleted file mode 100644index 9aefeac..0000000Binary files a/styles/game-show/demo/voices/gpt2.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/gpt3.wav b/styles/game-show/demo/voices/gpt3.wavdeleted file mode 100644index 44f9321..0000000Binary files a/styles/game-show/demo/voices/gpt3.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/hey_a.wav b/styles/game-show/demo/voices/hey_a.wavdeleted file mode 100644index a916e6e..0000000Binary files a/styles/game-show/demo/voices/hey_a.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/hey_b.wav b/styles/game-show/demo/voices/hey_b.wavdeleted file mode 100644index 7576820..0000000Binary files a/styles/game-show/demo/voices/hey_b.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/hey_c.wav b/styles/game-show/demo/voices/hey_c.wavdeleted file mode 100644index 976af76..0000000Binary files a/styles/game-show/demo/voices/hey_c.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/hey_d.wav b/styles/game-show/demo/voices/hey_d.wavdeleted file mode 100644index d040e4f..0000000Binary files a/styles/game-show/demo/voices/hey_d.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/hey_e.wav b/styles/game-show/demo/voices/hey_e.wavdeleted file mode 100644index f1693ea..0000000Binary files a/styles/game-show/demo/voices/hey_e.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/hey_f.wav b/styles/game-show/demo/voices/hey_f.wavdeleted file mode 100644index d6cb17a..0000000Binary files a/styles/game-show/demo/voices/hey_f.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/hi.wav b/styles/game-show/demo/voices/hi.wavdeleted file mode 100644index 2b77134..0000000Binary files a/styles/game-show/demo/voices/hi.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/liftoff.wav b/styles/game-show/demo/voices/liftoff.wavdeleted file mode 100644index c4ba4af..0000000Binary files a/styles/game-show/demo/voices/liftoff.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/march.wav b/styles/game-show/demo/voices/march.wavdeleted file mode 100644index efb9948..0000000Binary files a/styles/game-show/demo/voices/march.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/mask.wav b/styles/game-show/demo/voices/mask.wavdeleted file mode 100644index bdc47ed..0000000Binary files a/styles/game-show/demo/voices/mask.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/move37.wav b/styles/game-show/demo/voices/move37.wavdeleted file mode 100644index aee9f23..0000000Binary files a/styles/game-show/demo/voices/move37.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/next.wav b/styles/game-show/demo/voices/next.wavdeleted file mode 100644index 8c1e5eb..0000000Binary files a/styles/game-show/demo/voices/next.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/paint.wav b/styles/game-show/demo/voices/paint.wavdeleted file mode 100644index 810610f..0000000Binary files a/styles/game-show/demo/voices/paint.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/physical.wav b/styles/game-show/demo/voices/physical.wavdeleted file mode 100644index 423548c..0000000Binary files a/styles/game-show/demo/voices/physical.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/question.wav b/styles/game-show/demo/voices/question.wavdeleted file mode 100644index 294322a..0000000Binary files a/styles/game-show/demo/voices/question.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/remix.wav b/styles/game-show/demo/voices/remix.wavdeleted file mode 100644index 602c298..0000000Binary files a/styles/game-show/demo/voices/remix.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/robots.wav b/styles/game-show/demo/voices/robots.wavdeleted file mode 100644index a7711c3..0000000Binary files a/styles/game-show/demo/voices/robots.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/sonnet.wav b/styles/game-show/demo/voices/sonnet.wavdeleted file mode 100644index 0017f62..0000000Binary files a/styles/game-show/demo/voices/sonnet.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/superb.wav b/styles/game-show/demo/voices/superb.wavdeleted file mode 100644index 4504364..0000000Binary files a/styles/game-show/demo/voices/superb.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/title.wav b/styles/game-show/demo/voices/title.wavdeleted file mode 100644index 7b7ddd8..0000000Binary files a/styles/game-show/demo/voices/title.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/tokens.wav b/styles/game-show/demo/voices/tokens.wavdeleted file mode 100644index 6b8d97d..0000000Binary files a/styles/game-show/demo/voices/tokens.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/v4.wav b/styles/game-show/demo/voices/v4.wavdeleted file mode 100644index ca3c09a..0000000Binary files a/styles/game-show/demo/voices/v4.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/whoa.wav b/styles/game-show/demo/voices/whoa.wavdeleted file mode 100644index 40d6d3b..0000000Binary files a/styles/game-show/demo/voices/whoa.wav and /dev/null differdiff --git a/styles/game-show/demo/voices/wrong.wav b/styles/game-show/demo/voices/wrong.wavdeleted file mode 100644index 7aea26f..0000000Binary files a/styles/game-show/demo/voices/wrong.wav and /dev/null differdiff --git a/styles/game-show/style.json b/styles/game-show/style.jsonnew file mode 100644index 0000000..f17e207--- /dev/null+++ b/styles/game-show/style.json@@ -0,0 +1,18 @@+{+ "slug": "game-show",+ "num": "33",+ "en": "Game Show Flat",+ "cn": "综艺节奏扁平",+ "category_en": "Games",+ "category_cn": "游戏",+ "film": "Rhythm of AI, 1997 → 2026",+ "line": "The history of AI as a rhythm game: models take the stage on the beat, and a report card closes the show.",+ "line_cn": "把 AI 发展史做成一局节奏游戏,模型踩着拍登场,最后发成绩单。",+ "uses": [+ "Tech timelines",+ "Year in review",+ "Variety shows"+ ],+ "frame_sec": 74.4,+ "dur": 148.8+}diff --git a/styles/glass-product/DEMO.md b/styles/glass-product/DEMO.mdnew file mode 100644index 0000000..f63befd--- /dev/null+++ b/styles/glass-product/DEMO.md@@ -0,0 +1,93 @@+# Glass Product Render — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Aura — Hear the Light* (32 s) · `glass-product.mp4` · source in [`demo/`](demo/)+++## Story & structure++A fictional pair of stemless, lens-shaped glass earbuds in a pebble-shaped glass case. In the dark they only reflect other people's light; taken apart and snapped back together on the bass drop, they light up from inside: sound becomes light running inside the glass. Theme: transparency = nothing to hide; sound = light.++The invisible thing made visible: sound as light pulses in the light guide. (The same move for other products: a battery → charge fills a glass cell; a watch → time as a light ring; a router → data as light threads; a perfume → scent as caustics.)++Arc (30–40 s): lit from outside in the dark (mystery) → opened (curiosity) → seen through (intimacy, macro) → taken apart (suspension, total silence) → **snaps together on the drop and lights up from inside** (release) → confident rhythm → returns home (settle, echo). One object, one goal (to emit its own light), one turn (reassembly).++Bookend: it opens with a light sweep revealing the dark object and ends with the *same* sweep over the object that now glows by itself; the two earbuds drop back into their cradles (magnetic click) and the frosted base of the case glows as if charging.++In the old guide the demo's rule was "use at least four of the six native powers"; the demo spent all six (transparency, lensing, dispersion, light inside, caustics, exploded view).++## Shots++| Beat | Camera | Why |+|---|---|---|+| Open (0–4 s) | Low 3/4 side, very slow push, ambient near zero; two sweeps | Only contours, no content: curiosity. Grab within 3 s. |+| Reveal structure | High 3/4, slow 40° orbit while the lid opens | Explain the object in one move |+| Macro | 25–45 mm away, rack focus from the glass surface to the part inside; a short sweep on every beat | Pulls the viewer *into* the glass |+| Profile | Side macro orbit | Material contrasts: clear / metal band / frosted / soft tip |+| Exploded view | 3/4, axis at ~40° to the view so parts form a diagonal with depth (near big, far small), spanning ~80 % of frame, slow orbit for parallax | Technical beauty; parallax sells the depth |+| Hero front | Straight on, slight push | Declaration: the light ring complete |+| Pattern macro | Top-down macro on the light channels | The concept at maximum size |+| Pair | Medium two-shot, second earbud flies in on a downbeat | Stereo = left/right alternation |+| Caustics | High top-down on the floor | The most memorable shot: sound spreading over the ground |+| Hero end | Low 3/4, centred under the title, slow pull-back that makes room for credits | Name + slogan + product |++The exploded shot was extended to 17.0 s so the parts rush back, snap at 16.0 and the light pattern first lights up in the same frame, cause and effect in one camera position, before the cut to the front. Magnetic click back into the cradle at 28.0.++Motion numbers used: camera orbits 0.2–0.4 rad per shot; exploded-part tilts `sin(i·1.7)·0.32`, `cos(i·2.3)·0.28`; timing 3 s ease-out apart → 0.75 s hover (drifting +3 %) → **0.25 s ease-in snap** exactly on the downbeat of the drop; camera pushes in ~40 % during the 0.9 s after the snap; two frames of micro-shake on the snap. Magnetic lift 1.2–1.4 s (`eio`). Earbuds hover turned 3/4 toward camera so the lens face and light ring are visible; the lid stands at ~100° behind the case as a backlit halo.++## Score structure++Original numpy score (`demo/music/score.py`), **120 BPM, minor key**. Sub drone + glass shimmer for the dark open; FM glass-pluck arpeggio with a low-pass opening over the build; soft short kicks on every beat under the macro sweeps; noise + saw risers over the exploded view; **half a bar of total silence (reverb tails cut too)** before the drop, with a long reverse whoosh inside it; **808 drop** with a syncopated pattern ([0, .75, 1, 1.5] per bar) that the light pulses follow exactly; clap on 2 & 4; a four-note glass-bell motif; a minor-9 pad for the reveal; a high glass ding on the final settle. One kick list shared between the score and the renderer (`story.js`, `cues.json`).++Foley as used: shimmer per sweep, lid friction, magnetic clicks, an air puff per exploded part, and on the snap a cluster of six clicks 15 ms apart + the inharmonic glass chord.++Voice: Kokoro `am_michael`, speed 0.86–0.88, 3–4 very short lines. "Aura." alone was misheard as Laura / Dora, so the line became "Meet Aura." Music ducked −12 dB and foley −6 dB under the voice. The 808 peaks left no headroom and loudnorm fell back to dynamic mode (−13.7 LUFS); limiting the drop peaks ~3 dB in the mix fixed it. Grain 0 in mux.++## Palette & props++- Accent: ice blue `#62DCFF` → soft violet `#A98BFF`; everything else neutral.+- Strip kit (sizes in mm, intensity): left & right tall strips 22×170, ×3.2; horizon strip 260×14, ×1.4; top box 160×70, ×1.1; low front card ×0.18 (0 when the concave case faces camera); top-front key 150×60, ×2.5 for exploded views only; sweep strip 26×240 on an arc ±1.35 rad behind the camera; accent card tinted by the guide colour, driven by the pulses.+- Clear glass: roughness 0.015, IOR 1.52, thickness 3–4.5, dispersion 5, attenuation `#f3f8fb` at 160 mm. Frosted glass: transmission 0.82–0.9, roughness 0.4, tint `#eef2f5`, thickness 7–14, an opaque emissive disc inside.+- Metals: satin titanium band (rough 0.16), mirror-chrome magnet (0.14; 0.05 blew out to a white disc), brushed steel and a champagne diaphragm with a concentric-brush roughness map, graphite PCB with gold traces.+- Light guide: polished acrylic `#15181b`, clearcoat 1; comet pulse head σ = w/2, tail length 4w at 55 %, white-hot core head³ × 0.35, hue blue → violet with age.+- Background sweep `#34383d → #16181b → #000` at 0–1.1; floor Reflector with a 12-tap blur, ×0.32, radial fade.+- Post: DoF aperture 700–900 for macro, 70 for the exploded view, 160–300 for wides; bloom strength 0.16–0.3 above 1.1; Neutral tone mapping, exposure 1.1. Macro distances 25–45 mm.+- Subtitle bar: 76 px tall, radius 38, `blur(18px) brightness(1.25)` + 10 % cool white, 1.2 px gradient stroke, blue → violet top line; Inter Tight 300, 40 px, tracking 1 px; held ≥ 1.9 s and ≥ speech + 0.7 s.+- Titles: Inter Tight 200, 112–132 px, tracking 56–64 px; kickers 18–20 px, tracking 8–10 ("A GLASS PRODUCT FILM", "MEET").++## End card++The title stays; credits (style name, `LemoLab × Claude Opus 5.5`) fade in at the bottom over a soft dark gradient while the camera pulls back to make room; fade to black in the last 0.6 s. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Rights++Product, name and shape are all original. No stemmed earbud, no dot-matrix type, no red accent, no recognisable silhouette or pattern from the reference ads; no fonts, sounds, melodies or colour templates from any launch film. Fonts in `demo/fonts`, credits in `demo/CREDITS`.++## Build notes++```+styles/glass-product/demo/+ product.js earbud + case geometry, glass/metal/guide materials, comet-pulse shader, explode()+ studio.js strip-light env (PMREM per frame), sweep strip, background sweep, floor mirror + caustics + beat rings+ story.js 120 BPM timeline: shots, kicks, sweeps, VO, SFX events+ main.js per-shot staging & cameras, light/pulse logic, frosted-glass subtitles, titles, end card+ music/score.py original numpy score (stems + score.json self-check)+ mix.py foley synthesis + voice + ducking → mix.wav+ lines.json · subs.py · check_mix.py · build.sh+```++1. Write the cue map and `story.js` first (BPM grid, kick list shared by score and renderer).+2. `node core/render/still.mjs styles/glass-product/demo 9.3 14.6 26.8 [--q nosub=1]`: iterate stills; `--range 0.5:31.5:1` + `sheet.py` for overview passes.+3. `.venv/bin/python core/tts/tts.py demo/lines.json demo/voices` → `core/tts/asr_check.py` until all OK.+4. `python demo/music/score.py` → `node core/render/events.mjs demo` → `python demo/mix.py`.+5. `node core/render/video.mjs demo --fps 24 --workers 3` (768 frames with 2× SSAA, transmission, per-frame PMREM and mirror ≈ 30–45 s on an M-series Mac).+6. `sh core/render/mux.sh out/video24.mp4 mix.wav glass-product.mp4 24 0`, then `python demo/check_mix.py glass-product.mp4`.+7. Or simply `sh styles/glass-product/demo/build.sh`.++Pitfalls tied to this demo's props:+- The cyan light strip first placed inside the frosted case base smeared a teal cast over the whole case; it became a cool-white dim disc.+- The idle glow of the light ring was magnified by the lens dome into a pale-blue blob.+- Hovering earbuds seen straight-on read as mushrooms; the lid lying flat behind the case read as a pot lid.+- The second earbud first rose "from below" through the visible floor; it now flies in from the side.+- "Aura." alone was misheard by ASR.diff --git a/styles/glass-product/STYLE.md b/styles/glass-product/STYLE.mdindex 5f832fd..01628db 100644--- a/styles/glass-product/STYLE.md+++ b/styles/glass-product/STYLE.md@@ -1,131 +1,108 @@# Glass Product Render — Style Prompt-> Launch-film product rendering in transparent and frosted glass: dark-field studio, strip-light sweeps, dispersion, caustics, slow exploded views that snap shut on the drop.-> Demo: *Aura — Hear the Light* (32s) · `glass-product.mp4` · source in `demo/`+> Launch-film product rendering in transparent and frosted glass: a dark-field studio, strip-light sweeps, dispersion, caustics, light travelling inside the object, slow exploded views that snap shut on a downbeat.+> References (grammar only): premium launch films (a sweep drawing a contour in the dark, slow orbits, macro rack focus, cuts on the beat, ultra-thin wide type); transparent-hardware adverts (internals as ornament, exploded views, black and white plus one accent); dark-field glass photography. Copy none of their silhouettes, typefaces, sounds or colour templates, and never name them in the film.-You are directing a 30–60 second film in the **Glass Product Render** style. The user gives you a topic (usually a product, sometimes an idea). You decide everything else — story, shots, timing, sound — and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not----+A single hero object of **glass, metal and light** floating in an infinite black studio. Long strips *behind and beside* it turn clear glass into a thin white outline with rainbow edges; the internals show through as in a display case. Everything moves slowly and precisely; every cut, sweep and pulse lands on the beat.-## 1. What this style is+The object is always **fictional**. Never reproduce a real product silhouette (a famous phone or headphone outline), a real brand name, logo, typeface or UI.-A single hero object made of **glass, metal and light**, floating in an infinite black studio. The look is borrowed from premium product launches and **dark-field glass photography**: the background is black, the lights are long strips placed *behind and beside* the object, so clear glass turns into a thin white outline with rainbow edges and the internals show through as if in a display case. Everything moves slowly and precisely; every cut, sweep and pulse lands on the beat.+Not a white-cyclorama catalogue shot, not a wireframe HUD, not a keynote slide: material and light are the subject.-The object is always **fictional**. Never reproduce a real product silhouette (no stemmed earbuds, no famous phone outlines), a real brand name, logo, typeface or UI.+## 2. Materials & rendering-## 2. Story: what fits this style+- **Studio = a strip-light scene, not an HDRI.** Photo-studio HDRIs contain windows and clutter that print as messy streaks on glass. Build a tiny black scene of emissive planes and bake it to PMREM **every frame** (`pmrem.fromScene(env, 0, 1, 1000)`, dispose the previous RT): tall side strips behind (silhouette), a wide far strip (horizon rim), a soft top box (volume for frosted glass and metal), a weak front card (off when concave glass faces camera), a top-front key only when parts must be read one by one, an accent card driven by the pulses, and **the sweep**: a tall strip on an arc *behind the camera* (azimuth = camera + π). Being real geometry, its highlight, refraction and dispersion move physically; never paint a 2D highlight.+- **Clear glass**: `MeshPhysicalMaterial`, transmission 1, roughness ≈ 0.015, IOR ≈ 1.5, thickness sets lensing (thicker = stronger), **dispersion on** (three r163+), near-neutral attenuation, `side: DoubleSide` so other glass sees its back faces.+- **Frosted glass**: transmission ~0.85, roughness ~0.4, milky tint, thick. On black it reads as dark grey plastic unless **something bright is behind or inside it**: an opaque emissive shape inside (blurred into a soft internal glow) and/or a bright gradient behind.+- **Metals** make transparency worth looking at: satin bands, chrome (roughness ≥ ~0.14), brushed surfaces via a roughness map, boards with gold traces. **Anything inside transmissive glass must be opaque** (only opaque objects reach the transmission buffer).+- **Light guides**: dark polished opaque acrylic, clearcoat, emissive **comet pulses** along a UV axis via `onBeforeCompile` (Gaussian head, exponential tail, white-hot core, hue drifting with age). Idle emission ≈ 0.+- **Background**: black with an optional dark-grey radial sweep that separates glass edges; the floor fades into it, **no horizon line**. **Floor**: black gloss, blurred mirror, radial fade, procedural caustics (lens ring with R/G/B radii offset, warped Voronoi filaments, rings spreading from events).+- **Post**: 2× supersampling; physical DoF (shallow macro, deep exploded views); bloom only above ~1.1; **Neutral tone mapping** (AgX washes accents to white); grain 0. Model in mm, near plane 1.-Pick stories where **the material itself tells the story**. Glass-and-render has six native powers — use at least four:+## 3. Colour logic-| Native power | Story use |-|---|---|-| **Transparency** | "Nothing to hide." The inside is the hero: show the mechanism through the shell, rack focus from the surface to the part inside. |-| **Lensing** | A thick glass dome magnifies and bends what is behind it — macro shots through the lens feel like looking into a jewel. |-| **Dispersion** | Thick edges split light into rainbow fringes; a sweep crossing an edge becomes a moving spectrum. |-| **Light that travels inside** | Light guides, channels, rings: energy (sound, data, charge, heat) becomes light running *inside* the object. |-| **Caustics** | The object throws focused light onto the floor; a pulse inside becomes a ring spreading across the ground. |-| **Exploded view** | The object comes apart in slow motion, parts float and turn, then **snap back on the drop**. Deconstruction → reassembly is the emotional turn. |+- The world is neutral: black, greys, the white of strip reflections, the metals' own tints.+- **One accent colour family, reserved for light** (emission, caustic rings, the dispersion line on UI), optionally drifting between two neighbouring hues with age or energy. Examples: ice blue → soft violet; amber → rose; green → cyan. Pick it from what the product does, never from a brand.+- Emitters that only illuminate (inside frosted glass) stay cool-white and dim.+- Dispersion rainbows are allowed only at thick glass edges and in the caustic, never as a gradient on surfaces or type.-Adapting any topic: find **the invisible thing the product does** and make it visible as light inside glass. Headphones → sound becomes light pulses. A battery → charge fills a glass cell. A watch → time as a light ring. A router → data as light threads. A perfume → scent as caustics.+## 4. Type & subtitles-**Emotional arc (30–40s):** lit from outside in the dark (mystery) → opened (curiosity) → seen through (intimacy, macro) → taken apart (suspension, total silence) → **snaps together on the drop and lights up from inside** (release) → confident rhythm → returns home (settle, echo). One object, one goal (to emit its own light), one turn (reassembly).+- **Subtitles are a slab of frosted glass**: a centred rounded bar filled with the live frame blurred (`filter: blur() brightness()` on the WebGL canvas, `preserveDrawingBuffer: true`), a little cool white, a thin highlight stroke and an accent line on top. A licence-free grotesk (e.g. Inter Tight), light weight, ~36–44 px, near-white. Hold ≥ max(1.8 s, speech + 0.6 s).+- **Titles**: the same grotesk at an ultra-thin weight (200), very large (100–140 px) with very wide tracking, centred in the upper third; a diagonal glint sweeps across the letters in sync with the sweep light on the object. Small tracked caps (18–20 px) for kickers and credits.+- The product name and slogan are **title cards**, not subtitle lines.-**Bookend:** open with a light sweep revealing the dark object; end with the *same* sweep over the object that now glows by itself.+## 5. Motion quality-## 3. Visual language+- **Everything moves on ones** (24 fps), eased: ease-in-out for camera orbits, ease-out for parts decelerating into a float, ease-in for a snap back.+- **The camera always drifts**: slow orbits or push-ins; never a locked-off frame, never handheld, except a couple of frames of micro-shake on an impact.+- **Exploded view**: parts spread along the axis (~2× product size), each with a small deterministic tilt and a spin proportional to its offset; long ease-out apart → short drifting hover → **very short ease-in snap** on a downbeat.+- Objects lift out of cradles tilted toward camera and settle upright; lids hinge at the back and stand behind the object as a backlit halo.+- Light pulses and sweeps are events on the beat grid, not free animation.-- **Studio = a strip-light scene, not an HDRI.** Photo-studio HDRIs contain windows and clutter that print as messy streaks on glass. Build a tiny black scene with emissive planes and bake it to PMREM **every frame** (`pmrem.fromScene(env, 0, 1, 1000)`, dispose the previous RT):- - left & right tall strips behind the object (22×170, ×3.2) — outline the silhouette- - a wide horizontal strip far behind (260×14, ×1.4) — horizon rim- - a soft top box (160×70, ×1.1) — volume for frosted glass and metal- - a weak low front card (×0.18; switch to 0 when a concave glass surface faces camera, it prints as a grey rectangle)- - a top-front key box (150×60, ×2.5) only for exploded views- - **the sweep**: a tall strip (26×240) moving on an arc *behind the camera* (azimuth = camera azimuth + π, ±1.35 rad). Because it is real geometry in the env, the highlight band, refraction and dispersion all move physically.- - an accent card tinted with the light-guide colour, intensity driven by the pulses (off when a big concave glass surface is in shot).-- **Clear glass**: `MeshPhysicalMaterial` transmission 1, roughness 0.015, IOR 1.52, thickness 3–4.5 (thicker = stronger lensing), **dispersion 5** (three r163+), attenuation near-neutral `#f3f8fb` at 160 mm. `side: DoubleSide` so other glass sees its back faces.-- **Frosted glass**: transmission 0.82–0.9, roughness 0.4, milky tint `#eef2f5`, thickness 7–14. On black it reads as dark grey plastic unless **something bright is behind or inside it** — put an opaque emissive disc inside (it gets blurred into a soft internal glow) and/or a bright background gradient behind.-- **Metals**: satin titanium band (rough 0.16), mirror-chrome magnet (0.14 — 0.05 blows out to a white disc), brushed steel and champagne diaphragm with a concentric-brush roughness map, graphite PCB with gold traces. These are what make the transparency worth looking at.-- **One accent colour for light**: ice blue `#62DCFF` → soft violet `#A98BFF`. Everything else is neutral.-- **Light guides**: opaque (anything *inside* transmissive glass must be opaque — three.js only renders opaque objects into the transmission buffer) dark polished acrylic `#15181b`, clearcoat 1, plus an emissive term injected via `onBeforeCompile`: **comet pulses** along `uv.x` — narrow Gaussian head (σ = w/2), exponential tail behind it (length 4w, 55%), a white-hot core (head³ × 0.35), hue drifting from blue to violet with age. Keep the idle base near zero; a uniformly lit ring reads as pale-blue plastic.-- **Background**: black, with an optional dark-grey radial sweep (`#34383d → #16181b → #000`) at 0–1.1 intensity; the floor fades into the same gradient so there is no horizon line. The sweep also separates glass edges from pure black.-- **Floor**: black glossy with a blurred mirror reflection (Reflector, 12-tap blur, ×0.32, radial fade) + procedural caustics: a lens-ring caustic with R/G/B radii offset (dispersion) + a warped Voronoi-edge filament net, plus expanding colour rings per beat.-- **Post**: 2× supersampling, physical depth of field (macro aperture 700–900, exploded view 70, wides 160–300), bloom only above 1.1 (strength 0.16–0.3), **Neutral tone mapping** at exposure 1.1 — AgX washes saturated blues to white.-- **Scale**: model in millimetres; camera near plane 1, macro distances 25–45 mm.+## 6. Camera grammar-## 4. Motion language+A vocabulary, not a route. Opening and ending come from the topic.-- **Everything moves on ones** (24 fps), eased: `eio` for camera orbits, `eo` for parts decelerating into a float, `ei` for the snap back.-- **Camera always drifts**: slow orbits (0.2–0.4 rad per shot) or slow push-ins; never a locked-off frame, never handheld — except **two frames of micro-shake** on the snap.-- **Exploded view**: parts spread along the product's axis with offsets ~2× the product size in total, each with its own small deterministic tilt (`sin(i·1.7)·0.32`, `cos(i·2.3)·0.28`) and slow spin proportional to its offset. Timing: 3 s ease-out apart → 0.75 s hover (drifting +3%) → **0.25 s ease-in snap** exactly on the downbeat of the drop. Push the camera in by ~40% during the 0.9 s after the snap.-- **Magnetic lift**: objects rise out of cradles with a slight tilt toward camera (1.2–1.4 s, `eio`), and settle back upright.-- **Hovering pairs** turn 3/4 toward camera so the lens face and light ring are visible; straight-up they read as mushrooms.-- **Lids**: hinge at the back edge and stand upright behind the object (~100°), backlit into a glass halo. A lid lying flat reads as a pot lid.+| Move | Expresses | Can serve |+|---|---|---|+| Sweep over a dark object, slow push | Contour before content | an unknown thing; a before-state |+| Slow high 3/4 orbit | The whole object in one move | a mechanism opening; variants |+| Macro, rack focus surface → part inside | Nothing to hide | an ingredient; a sensor |+| Side macro orbit | Material contrast | layers; a seam |+| Exploded view, axis ~40° to view, orbit | Technical beauty, suspension | architecture; a pause before a turn |+| Straight-on front, slight push | Declaration | a single number; a name |+| Top-down macro | A pattern at full size | channels; a circuit |+| Top-down on the floor | The effect leaving the object | range; spreading energy |+| Low orbit under the object | Monument, weight | durability; a flagship |+| Slow pull-back into negative space | Room for type | a claim; a question |-## 5. Camera language+Framing: one hero, centred or on a strong diagonal, never cropped by the frame edge in a wide. Cut only on beats (bar lines where possible). Product films need **no spatial continuity** between shots: each shot is its own presentation stage, so hide or move anything that doesn't serve it. Transitions are cuts on the beat or a sweep passing through black; never dissolves or wipes.-| Beat | Camera | Why |-|---|---|---|-| Open (0–4s) | Low 3/4 side, very slow push, ambient near zero; two sweeps | Only contours, no content — curiosity. Grab within 3 s. |-| Reveal structure | High 3/4, slow 40° orbit while the lid opens | Explain the object in one move |-| Macro | 25–45 mm away, rack focus from the glass surface to the part inside; a short sweep on every beat | Pulls the viewer *into* the glass |-| Profile | Side macro orbit | Material contrasts: clear / metal band / frosted / soft tip |-| Exploded view | 3/4, axis at ~40° to the view so parts form a diagonal with depth (near big, far small), spanning ~80% of frame, slow orbit for parallax | Technical beauty; parallax sells the depth |-| Hero front | Straight on, slight push | Declaration: the light ring complete |-| Pattern macro | Top-down macro on the light channels | The concept at maximum size |-| Pair | Medium two-shot, second object flies in on a downbeat | Stereo = left/right alternation |-| Caustics | High top-down on the floor | The most memorable shot: sound spreading over the ground |-| Hero end | Low 3/4, centred under the title, slow pull-back that makes room for credits | Name + slogan + product |--Cut only on beats (bar lines where possible). Product films do **not** need spatial continuity between shots: every shot is its own presentation stage — hide or move anything (the case, the other object) that doesn't serve the shot.--## 6. Sound--- **Music: minimal electronic**, never piano-and-strings. 120 BPM, minor key. Sub drone + glass shimmer for the dark open; FM glass-pluck arpeggio with a low-pass opening over the build; soft short kicks on every beat under the macro sweeps; noise + saw risers over the exploded view; **half a bar of total silence (reverb tails cut too)** before the drop; **808 drop** (sine with pitch envelope, long tail, soft saturation, occasional slides) with a syncopated pattern ([0, .75, 1, 1.5] per bar) that the light pulses follow exactly; clap on 2 & 4; a four-note glass-bell motif; a minor-9 pad for the reveal; a high glass ding on the final settle.-- **Every pulse, sweep and snap is locked to the score**: write the cue map first, share one kick list between the score and the renderer.-- **Foley follows the material**: glass shimmer for sweeps (band-passed noise sweep + inharmonic partials, panned with the strip direction), slow glass-metal friction for lids, magnetic clicks (sub-2 ms transient + 3.2/5.1 kHz metal resonances + low thump), air puffs for each exploded part, a long reverse whoosh inside the silence, and on the snap a cluster of six clicks 15 ms apart + an inharmonic glass chord (partials ×2.76, ×5.4).-- **Voice**: a restrained low male launch voice (Kokoro `am_michael`, speed 0.86–0.88), 3–4 very short lines. Avoid a product name alone ("Aura." is misheard as Laura/Dora) — use "Meet Aura." Duck music −12 dB and foley −6 dB under the voice.-- Mix: peaks limited ~3 dB at the drop so loudnorm can stay linear; −14 LUFS; **grain 0** (grain flickers on black and glass).--## 7. Subtitles & titles--- **Subtitles are a slab of frosted glass**: centred rounded bar 76 px tall, radius 38, filled with the live frame blurred (canvas `filter: blur(18px) brightness(1.25)` on the WebGL canvas, `preserveDrawingBuffer: true`) plus 10% cool-white, a 1.2 px gradient highlight stroke, and a thin blue→violet dispersion line on the top edge. Text: Inter Tight 300, 40 px, tracking 1 px, near-white. On screen ≥ 1.9 s and ≥ speech + 0.7 s.-- **Titles**: Inter Tight 200 at 112–132 px with very wide tracking (56–64 px), centred in the upper third; a diagonal light glint sweeps across the letters in sync with the sweep light on the object. Small tracked caps (18–20 px, tracking 8–10) for "A GLASS PRODUCT FILM", "MEET", credits.-- Lines that are the product name and slogan are **not** put in the subtitle bar: they are the title card itself.-- **End**: the title stays; credits (style name, `LemoLab × Claude Opus 5.5`) fade in at the bottom over a soft dark gradient while the camera pulls back to make room; fade to black in the last 0.6 s.--## 8. Pitfalls we hit--- **Reflector with a manually-called update used last frame's camera** → streaks across the floor, no reflections. Call `scene.updateMatrixWorld(); camera.updateMatrixWorld()` before updating the mirror.-- The floor mirror is an opaque object, so three's transmission pre-pass re-renders the reflection. Replace `onBeforeRender` with a no-op and update it once per frame yourself.-- **Anything inside glass must be opaque**; transparent objects are not in the transmission buffer and vanish behind glass.-- A cyan light strip inside frosted glass smears into a **teal cast over the whole object**. Keep internal emitters cool-white and dim; colour belongs to the light guide only.-- The idle glow of a light ring gets magnified by the lens dome into a pale-blue blob. Idle emission ≈ 0.-- **AgX tone mapping** desaturated the blue/violet pulses to white; Neutral kept them.-- Frosted glass on black = black. Needs an internal emitter or a bright backdrop.-- A mirror-chrome part facing a front softbox becomes a white disc; roughen to ~0.14.-- An exploded view seen perpendicular to its axis is a row of edge-on lines; turn the axis ~40° toward camera.-- Hovering earbuds seen straight-on read as mushrooms; a flat lid behind the case reads as a pot lid.-- A standalone product name is misheard by ASR (and viewers); give it a verb.-- An object rising "from below" through a visible floor is a continuity error; fly it in from the side.-- loudnorm fell back to dynamic mode (−13.7 LUFS) because the 808 peaks left no headroom; limit the drop peaks ~3 dB in the mix.--## 9. Production recipe (this repo)--```-styles/glass-product/demo/- product.js earbud + case geometry, glass/metal/guide materials, comet-pulse shader, explode()- studio.js strip-light env (PMREM per frame), sweep strip, background sweep, floor mirror + caustics + beat rings- story.js 120 BPM timeline: shots, kicks, sweeps, VO, SFX events- main.js per-shot staging & cameras, light/pulse logic, frosted-glass subtitles, titles, end card- music/score.py original numpy score (stems + score.json self-check)- mix.py foley synthesis + voice + ducking → mix.wav- lines.json · subs.py · check_mix.py · build.sh-```--1. Write the cue map and `story.js` first (BPM grid, kick list shared by score and renderer).-2. `node core/render/still.mjs styles/glass-product/demo 9.3 14.6 26.8 [--q nosub=1]` — iterate stills; `--range 0.5:31.5:1` + `sheet.py` for overview passes.-3. `.venv/bin/python core/tts/tts.py demo/lines.json demo/voices` → `core/tts/asr_check.py` until all OK.-4. `python demo/music/score.py` → `node core/render/events.mjs demo` → `python demo/mix.py`.-5. `node core/render/video.mjs demo --fps 24 --workers 3` (768 frames with 2× SSAA, transmission, per-frame PMREM and mirror ≈ 30–45 s on an M-series Mac).-6. `sh core/render/mux.sh out/video24.mp4 mix.wav glass-product.mp4 24 0`, then `python demo/check_mix.py glass-product.mp4`.-7. Or simply `sh styles/glass-product/demo/build.sh`.+## 7. Sound palette++- **Minimal electronic, never piano-and-strings.** Timbres, as options: bowed-glass or wet-finger tones, granular crystal clouds, glass bells and FM glass plucks, a filtered tick grid for precision, a warm pad, sub drone, soft short kicks and claps, 808 bass (sine with pitch envelope, soft saturation, slides), noise and saw risers, a high glass ding. Minor and modal colours suit the dark studio.+- **Lock every pulse, sweep and snap to the score**: write the cue map first and share one hit list between the score and the renderer; light pulses may follow a syncopated bass pattern exactly.+- **Silence as a tool**: a short stretch of total silence (reverb tails cut too) before a release, at most a reverse whoosh inside it.+- **Foley follows the material**: glass shimmer for sweeps (band-passed noise + inharmonic partials, panned with the strip); glass-metal friction for moving covers; magnetic clicks (sub-2 ms transient + 3–5 kHz metal resonances + low thump); air puffs for moving parts; a snap = a cluster of clicks ms apart + an inharmonic glass chord (partials ×2.76, ×5.4); glass-on-glass ticks.+- **Voice**: restrained, low, launch-like, very few very short lines. Never a product name alone (ASR and viewers mishear it): give it a verb.+- **Mix**: duck music ~12 dB and foley ~6 dB under the voice; limit the biggest bass peaks ~3 dB so loudnorm stays linear; −14 LUFS; grain 0.++## 8. Native moves++A menu: use the ones your story needs. Adapting any topic: find **the invisible thing the product does** and make it visible as light inside glass.++- **Transparency.** The inside is the hero; rack focus from the shell to the part within. *Fits content like:* a juicer's blades; a watch movement; a supplement capsule's layers.+- **Lensing.** A thick glass dome magnifies and bends what is behind it; macro through it feels like looking into a jewel. *Fits content like:* a camera module; a magnifying tool; a water filter.+- **Dispersion.** A sweep crossing a thick edge becomes a moving spectrum. *Fits content like:* a prism lamp; a display's colour range; a skincare bottle.+- **Light that travels inside.** Energy (charge, data, heat, sound) runs as light through channels. *Fits content like:* a battery filling; a router's data threads; a kettle heating.+- **Caustics.** An internal pulse becomes a ring spreading over the floor. *Fits content like:* a speaker's range; a perfume's trail; a wireless charger's field.+- **Exploded view and snap.** Parts float apart and snap back on a downbeat. *Fits content like:* a modular backpack; a pen's refill system; a repairable phone.+- **Frost to clear.** A frosted shell clears (roughness and tint animate to zero) and the inside appears. *Fits content like:* a privacy feature; a fridge's contents; an honest price breakdown.++## 9. Pitfalls of the medium++- A manually updated mirror uses last frame's camera → call `scene.updateMatrixWorld(); camera.updateMatrixWorld()` first; the transmission pre-pass re-renders it → no-op its `onBeforeRender`, update once per frame.+- A coloured emitter inside frosted glass tints the whole object; idle glow under a lens dome becomes a pale blob; AgX turns accents white; frosted glass on black is black; mirror chrome becomes a white disc → the rules in §2–§3.+- An exploded view seen perpendicular to its axis is edge-on lines → axis ~40° to camera.+- Pure profiles read as simple shapes (mushrooms, pot lids) → 3/4 views, lids upright behind.+- Bass peaks without headroom push loudnorm into dynamic mode → limit them in the mix.+- Concave glass facing camera prints the front card as a grey rectangle → card off.++## 10. Engine++In `demo/`: `studio.js` (strip env baked per frame, sweep, background, floor mirror + caustics + rings), `product.js` (glass / frosted / metal / guide materials, comet-pulse shader, `explode()`), `main.js` (staging, cameras, frosted subtitle bar, title glint), `story.js` (beat-grid timeline shared with the score), `music/score.py`, `mix.py` (foley + voice + ducking). New object: replace the geometry in `product.js` (e.g. a glass cylinder with a coiled light guide), keep materials and `studio.js`.++## 11. Variation space++You decide the object (always fictional), internals, accent, structure, opening, ending, camera path, pacing and music. All far from our demo:++- Structures: **a line-up** (three variants compared by what glows inside); **a day in light** (one object through morning, noon and night, the strip kit rotating around it); **material stack** (one layer removed per beat until the core stands alone).+- Openings: **inside first** (one internal part; the shell forms around it); **caustic first** (light on the floor, followed up to the object); **silhouettes** (several dark outlines; one begins to glow).+- Endings: **floor only** (the object leaves, its caustic keeps pulsing); **cool down** (emission fades to bare strip outlines); **held macro** (no pull-back; one detail, the name small).++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/glass-product/TREATMENT.md b/styles/glass-product/TREATMENT.mddeleted file mode 100644index 27187e4..0000000--- a/styles/glass-product/TREATMENT.md+++ /dev/null@@ -1,134 +0,0 @@-# Glass Product Render · 导演方案(Treatment)--**片名** *Aura — Hear the Light*(片内标题卡:AURA / A GLASS PRODUCT FILM)-**时长** 32 秒(30 s 正片 + 片尾卡多留 2 s 阅读时间)| **画幅** 1920×1080 | **帧率** 24fps,全部运动逐帧平滑(产品片不做步进)-**产品** 虚构真无线耳机 **Aura**:无柄、透镜形的"玻璃鹅卵石"耳机 + 鹅卵石形旋盖玻璃充电盒。品牌、造型、名字全部原创。-**一句话** 一只在黑暗里只会反射别人光线的玻璃耳机,被拆成零件、再在低音落下的一瞬合拢——从此它自己发光:声音变成沿玻璃内部流动的光。-**主题** 透明 = 没有秘密;声音 = 光。-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么(语法) | 刻意不学 |-|---|---|---|-| Nothing Ear 透明耳机广告 | "透明结构之美":把内部元件当装饰展示;零件爆炸视图的工业美感;黑白 + 一个强调色 | 不用柄式耳机造型、不用点阵字体、不用红色点缀、不出现任何可辨认的外形/图案 |-| Apple 产品发布片 | 黑场里一道光扫勾出轮廓;慢速环绕;微距拉焦;每个剪辑点卡在拍点上;极简字体排版(超细字重、宽字距、一个名字 + 一句 slogan);零件悬浮 → 合拢的节奏 | 不用任何 Apple 字体、音效、旋律、配色模板;不做"白底"(本片是黑场暗场布光);不抄具体镜头 |-| 玻璃摄影的"暗场布光"(dark-field) | 黑背景 + 两侧/背后条形灯 → 玻璃只剩一圈白色轮廓,厚玻璃边缘出彩虹 | — |--**改动说明(相对派单建议)**-1. **HDRI → 自建灯条环境**:影棚 HDRI(photo_studio_loft_hall)里有窗户和杂物,在玻璃上反射成乱纹。玻璃产品摄影的核心是"可控的条形反光",所以环境贴图改为每帧由一个"灯条场景"(黑屋 + 5 根柔光条)现场烘出。这样**光扫就是真的有一根灯条从镜头背后划过**:玻璃上的反光带、折射、色散全部物理地跟着走,而不是 2D 贴一条高光。-2. **合拢放在 drop 上,但不切走**:爆炸镜头延长到 17.0 s,让观众在同一个机位里看到"零件冲回 → 16.0 合拢 → 光纹第一次亮起",再切正面。卡点 + 因果都在一个画面里。-3. **结尾加了一个"回响"**:开场它被外部光扫照亮;结尾同一道光扫再划过时,它已经在自己发光。两只耳机落回托槽(28.0 磁吸 click),盒底的磨砂玻璃像充电一样从内部透出柔光。-------## 二、原生招式(只有"玻璃 + 渲染"能做到的)--| 招式 | 放在哪里 | 怎么做 |-|---|---|---|-| **暗场光扫** | 开场两道、微距段每拍一道、结尾一道 | 灯条在镜头背后的弧上划过,PMREM 每帧重烘;玻璃上的高光带与片名字面上的高光同步 |-| **透射 + 透镜放大** | 微距段 | 正面玻璃穹顶是厚透镜(transmission 1、thickness 4.5、IOR 1.52),里面的驱动振膜波纹被放大、弯曲 |-| **色散彩虹边** | 所有厚玻璃边缘 | three.js MeshPhysicalMaterial `dispersion`(r170 原生支持),数值 5 |-| **慢动作爆炸视图 → 合拢**(情绪最高点) | 12.0–16.0 | 10 个零件沿耳机轴展开、各自悬浮自转;15.0 悬停;15.5 音乐全静;15.75 零件被"吸回"(加速),**16.0 合拢 = 808 低频 drop = 光纹第一次点亮** |-| **声音 = 光** | 16.0–24.0 | 每个 kick 在导光圈上发出两束光,反向绕圈;螺旋导光槽里一束光从中心冲到边缘;地面上玻璃投下的焦散随 kick 外扩成彩色声波环 |-| **焦散** | 声音可视化段 | 地面着色器:透镜环形焦散(RGB 三通道半径错开 = 色散)+ 自写 Voronoi 焦散丝网 |-------## 三、情绪弧--**被照亮(黑暗、安静、冷)→ 被打开(好奇)→ 被看透(亲密、微距)→ 被拆开(悬停、屏息、全静)→ 合拢点亮(爆发)→ 自己发光(律动、自信)→ 回到盒子(安放、余韵)**--一个主体(右耳机)、一个目标(发出自己的光 / 声音)、一次转折(拆开后在 drop 上合拢)。-开场 3 秒内的钩子:纯黑里第一道光扫划过,只露出一圈带彩虹边的玻璃轮廓。-结尾回响:同一道光扫、同一个名字,但这次物体自己在发光。-------## 四、分镜节拍表(120 BPM,1 拍 = 0.5 s,1 小节 = 2 s;切点都在拍点上)--| 时间 | 镜头 | 机位意图 | 画面 | 声音 |-|---|---|---|---|---|-| 0.0–4.0 | **dark** 低位 3/4 侧,极慢推 | 低机位让鹅卵石盒子像一座玻璃建筑;只给轮廓不给内容,制造好奇 | 纯黑。0.5 第一道光扫左→右勾出盒子轮廓;2.0 第二道右→左,同时光扫划过片名 **AURA** 的字面 | 次低频嗡鸣 + 光扫 shimmer;2.0 轻 kick |-| 4.0–8.0 | **open** 高位 3/4,缓慢环绕 40° | 俯角交代产品结构:盒子、托槽、两只耳机、旋盖 | 4.5–7.6 透明旋盖绕金属销向后旋开(慢),耳机在托槽里 | 玻璃滑动摩擦声;合成器琶音进(低通);8.0 磁吸 click |-| 8.0–10.0 | **macroA** 微距俯视,跟随上升 | 贴着玻璃看"里面";拉焦从玻璃表面落到驱动振膜,观众的注意力被"拉进去" | 8.0 右耳机磁吸浮起;透镜放大的振膜波纹、螺旋导光槽、彩虹边 | 每拍一道短光扫(卡 kick);**VO1 "Nothing to hide."**(8.55) |-| 10.0–12.0 | **macroB** 侧面微距环绕 | 看轮廓与材质对比:透明正面 / 钛腰线 / 磨砂背壳 / 乳白硅胶 | 耳机悬浮自转 | 每拍光扫 |-| 12.0–17.0 | **explode** 3/4 侧,缓慢环绕 + 轻推 | 3/4 让每个零件都露出正面;环绕让层层零件产生视差 | 12.0–15.0 慢动作展开(ease-out 减速进入悬浮);15.0–15.75 悬停微漂;15.75–16.0 加速吸回;**16.0 合拢 + 光纹点亮 + 2 帧镜头震动**;16–17 光在导光圈里奔流 | **VO2 "Every part, in plain sight."**(12.45);上升音 + 滤波打开;**15.5 全静**;16.0 808 drop + 玻璃"叮"和弦 + 磁吸 click 簇 |-| 17.0–18.0 | **front** 正面英雄镜头 | 正面 = 宣言;光环完整可见 | 导光圈上两束光反向绕圈,颜色冰蓝 → 淡紫 | 律动段:808 + 细碎高频 |-| 18.0–20.0 | **channels** 微距俯视 | 把"光纹沿导光结构流动"放到最大 | 螺旋导光槽里光从中心冲向边缘,每个 kick 一次 | 同上 |-| 20.0–22.0 | **pair** 中景两只 | 引入第二只,左右交替 = 立体声 | 20.0 左耳机从下方浮起加入,左右导光圈交替脉动;地面声波环 | 同上,高频加一层 |-| 22.0–24.0 | **caustics** 高位俯拍 | 俯视才能看到"声音在地面上扩散"——全片最记得住的镜头 | 黑色地面上的透镜焦散随 kick 外扩成彩色圆环,两组环相互穿过 | 同上,24.0 前半拍抽掉鼓 |-| 24.0–28.0 | **reveal** 低位 3/4,慢环绕 | 回到产品全貌:盒子 + 悬浮的一对 | 24.0 最后一道光扫(与开场同一道);24.5 **AURA** 出现(光扫划过字面);25.55 **Hear the light.**;两只耳机常亮巡游光;27.0–27.8 落回托槽 | 24.0 最后一个大 808;**VO3 "Aura."**(24.6)**VO4 "Hear the light."**(25.55);pad 延音 |-| 28.0–32.0 | **end** 结尾卡 | 画面压暗保持产品,文字居中 | 28.0 磁吸 click、盒底磨砂玻璃透出柔光;AURA / Hear the light. / GLASS PRODUCT RENDER / LemoLab × Claude Opus 5.5 | 玻璃"叮"余音衰减至静 |-------## 五、配乐 cue map(原创,极简电子;120 BPM,F 小调)--| cue | 时间 | 小节 | 配器 | 情绪 | 卡点 |-|---|---|---|---|---|---|-| A 黑场 | 0.0–4.0 | 0–1 | F1 正弦次低频嗡鸣(缓慢起伏)+ 高频玻璃泛音 shimmer(光扫时出现) | 冷、悬 | 0.5 / 2.0 光扫 shimmer;2.0 软 kick |-| B 开盖 | 4.0–8.0 | 2–3 | 加入 FM 玻璃拨弦琶音(16 分,低通 900 Hz 渐开)、极轻闭镲 | 好奇 | 8.0 磁吸 click + 小节重拍 |-| C 微距 | 8.0–12.0 | 4–5 | 琶音滤波继续打开;kick 每拍 1 下(软,短尾);细碎高频(颗粒噪声 tick) | 亲密、精密 | 每拍 kick = 每道光扫 |-| D 爆炸 | 12.0–15.5 | 6–7 | 白噪声上升 + 音高上扬的锯齿 riser;军鼓滚奏加密(很轻);琶音升调 | 张力 | 15.0 零件悬停时 riser 到顶 |-| — 静默 | 15.5–16.0 | 7.3 | **全静**(连混响尾一起切),只留零件吸回的反向 whoosh | 屏息 | — |-| E Drop / 律动 | 16.0–24.0 | 8–11 | 808(F1,长尾滑音)按 1、2&、3、4 拍型;次低频;拍手/军鼓在 2、4;16 分细碎高频;琶音全开;第二层玻璃铃主题(原创 4 音动机) | 爆发 → 自信律动 | 每个 kick = 光纹脉冲 + 地面声波环;16.0 大 drop;23.5 抽鼓半拍 |-| F 揭示 | 24.0–28.0 | 12–13 | 最后一个大 808 + 玻璃"叮"和弦;pad(F 小调九和弦)延音;动机最后一次(慢) | 安放、自信 | 24.0 光扫;27.8 落槽 |-| G 片尾 | 28.0–32.0 | 14–15 | 28.0 磁吸 click + 高音玻璃叮;pad 渐弱至静 | 余韵 | 32.0 完全静 |--配乐用 numpy 自写合成(808 = 正弦 + 音高包络 + 软饱和;玻璃拨弦 = FM 2 算子 + 非谐波泛音;riser = 带通噪声扫频)。若 `core/audio/INSTRUMENTS.md` 已就绪,可用 sampler 补一层真实铃声采样。配乐可能 fork 给子 agent 并行写(输入:BPM、本表、台词时间、必须的全静区间)。-------## 六、声音设计(拟音跟着玻璃走)--- **光扫**:高频带通噪声扫频 + 几个非谐波正弦泛音(像手指划过玻璃杯口的"shimmer"),立体声从左扫到右,跟着灯条方向。-- **玻璃旋盖**:低沉的玻璃-金属摩擦(带通 300–1200 Hz 的粗糙噪声,慢速调制)+ 最后一声磁吸 click。-- **磁吸 click**:极短瞬态 + 3.2 kHz / 5.1 kHz 金属共振 + 一点低频"咚"。-- **零件爆开**:每个零件一口轻气流(低通噪声 puff),慢动作感 = 音高下移的长 whoosh。-- **合拢**:反向 whoosh 冲进 16.0,一串 5–6 个错开 15 ms 的磁吸 click + 玻璃叮(C6/E6/G6 非谐波三音)+ 808 drop。-- **光纹脉冲**:不另加音效(音乐的 kick 本身就是它的声音);地面声波环不加声音。-- **结尾**:两次落槽 click(左、右,声像分开);28.0 最高音玻璃叮 + 长余音。-- 响度 −14 LUFS,颗粒 0(玻璃和黑场上的颗粒会闪)。-------## 七、旁白与字幕--**声线**:am_michael,speed ~0.9,低沉、克制的发布会男声。只有 4 句,全部短:-1. 8.55 *Nothing to hide.*-2. 12.45 *Every part, in plain sight.*-3. 24.6 *Aura.*-4. 25.55 *Hear the light.*--**字幕样式 = 一块磨砂玻璃**:底部居中圆角长条(高 76 px、圆角 38 px),条内是当前画面的实时高斯模糊(18 px,提亮 1.25)+ 10% 冷白罩色,1.2 px 渐变高光描边,顶边一道冰蓝 → 淡紫的细色散线;文字 Inter Tight 300、40 px、字距 1 px、近白。每句至少停留 1.9 s 且不短于语音 + 0.7 s。-结尾两句不用字幕条:它们就是画面上的产品名和 slogan(AURA 超细 200 字重 + 56 px 字距;Hear the light. 300 字重)。--**字体**:Inter Tight(OFL,Google Fonts),整片只用这一个家族。-------## 八、视觉规格(摘要)--- **布光**:暗场。左右后方两根竖灯条(勾轮廓)、背后一根横灯条(地平线轮廓光)、顶部大柔光(弱)、前方低位补光(很弱)、一根移动的"光扫"灯条、一张随光纹亮度变化的冰蓝反光卡。环境贴图每帧由灯条场景重烘(PMREM)。-- **玻璃**:透明 = transmission 1 / roughness 0.015 / IOR 1.52 / dispersion 5 / 近中性衰减色;磨砂 = transmission 0.82 / roughness 0.4 / 奶白。-- **金属**:钛腰线、镀铬磁铁、拉丝钢电池、香槟色驱动振膜(同心拉丝粗糙度贴图)、石墨 PCB 带金色走线。-- **强调色**:光纹只用一组冰蓝 #62DCFF → 淡紫 #A98BFF,脉冲中心带白热核心。-- **地面**:黑色亮面,模糊镜面反射(手动每帧更新一次)+ 焦散 + 声波环。-- **后期**:2× 超采样、物理景深(微距光圈大、爆炸镜头光圈小)、辉光(只让导光 > 1.1 的亮部发光)、Neutral 色调映射(AgX 会把冰蓝洗成白)。-------## 九、关卡 1 之后的变更(按审片意见与制作中发现)--| 变更 | 原方案 | 现方案 | 理由 |-|---|---|---|---|-| 充电盒开盖方式 | 旋盖绕 +X 端金属销水平旋开 | **后缘铰链翻盖**:4.5–7.6 s 缓慢立起约 99°,停在盒子后方 | 平放的旋盖像锅盖;立起来的玻璃盖被背光和背景渐变折射成一圈"玻璃光环",正好给悬浮的耳机做背景 |-| 磨砂底座 | 暗场里是一块深灰 | 底座内加不透明发光盘 + 弱点光源,经磨砂玻璃模糊成柔光;开盖后微亮,结尾落槽后"充电"全亮 | 磨砂玻璃要"透" |-| 结尾耳机姿态 | 竖直悬浮(读成两朵蘑菇) | 悬浮时 3/4 朝向镜头,透镜正面和导光圈可见;落槽时回正 | 审片意见 |-| 爆炸视图 | 零件一条扁平直线,只占左 40% | 轴与视线夹角 40°、略上扬的纵深斜线,横跨 ~80% 画面;每个零件确定性的不同倾斜;顶部真实面光源(RectAreaLight)+ 顶前方环境柔光箱;背景深灰径向渐变 sweep;合拢后镜头顺势推近 | 审片意见 |-| 光纹 | 高斯脉冲 + 整圈底色 | 彗星形脉冲:窄高斯头 + 身后指数拖尾(4× 宽度)+ 白热核心;整圈底色压到几乎为零 | 审片意见:别整圈亮 |-| 旁白第 3 句 | "Aura." | **"Meet Aura."**(24.5 s),第 4 句移到 25.8 s | 单独一个 "Aura." 被 whisper 听成 VORA / Dora / Laura,观众也会听错;画面上补一个小字 MEET,让烧录文字与旁白一致 |-| 片尾卡 | 画面压暗 + 文字居中压在产品上 | 片名一直留在上方,署名从底部淡入,镜头同时后拉给署名让位,最后 0.6 s 淡出到黑 | 不遮挡产品,不重复出现片名 |-| pair 镜头 | 左耳机从地面以下升起(穿过地面) | 从画左飞入 | 穿地是穿帮 |diff --git a/styles/glass-product/demo/fonts/InterTight-var.woff2 b/styles/glass-product/demo/fonts/InterTight-var.woff2deleted file mode 100644index 228154f..0000000Binary files a/styles/glass-product/demo/fonts/InterTight-var.woff2 and /dev/null differdiff --git a/styles/glass-product/style.json b/styles/glass-product/style.jsonnew file mode 100644index 0000000..562c992--- /dev/null+++ b/styles/glass-product/style.json@@ -0,0 +1,18 @@+{+ "slug": "glass-product",+ "num": "44",+ "en": "Glass Product Render",+ "cn": "玻璃质感产品",+ "category_en": "Materials & 3D",+ "category_cn": "材质与 3D",+ "film": "Aura — Hear the Light",+ "line": "Unboxing and close-ups of Aura, fictional glass earbuds, in strip-light sweeps and caustics.",+ "line_cn": "虚构玻璃耳机 Aura 的开箱与特写。",+ "uses": [+ "Product launches",+ "Consumer tech",+ "Beauty"+ ],+ "frame_sec": 19.2,+ "dur": 32.0+}diff --git a/styles/halftone-dossier/DEMO.md b/styles/halftone-dossier/DEMO.mdnew file mode 100644index 0000000..bca4133--- /dev/null+++ b/styles/halftone-dossier/DEMO.md@@ -0,0 +1,197 @@+# Halftone Dossier — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *胖橘案卷 Case File: Chubby* (30.0 s) · `halftone-dossier.mp4` · source in [`demo/`](demo/) · engine: one self-contained `demo/index.html` (SVG scene graph + two Canvas 2D overlays), rendered frame by frame by Playwright headless Chromium at 1920×1080 / 30 fps; score and SFX synthesized in `demo/music.py`.+++**The demo's on-screen text is Chinese** (title cards, captions, stamps). There is no narration. See "Making an English version" below.++## Story & structure++A mock investigation of a chubby orange cat. Structure is a dossier: **title → accusation → suspect profile (mugshot) → Count 01 / 02 / 03 → "in summary" → verdict stamp → reason → case closed**. A case-number HUD in the corner and a chapter chip ("罪状 01 · 测试重力") keep the viewer oriented. The joke is the gap between bureaucratic seriousness (case numbers, height chart, stamps, "Count 01") and a trivial, lovable subject.++It is loud but readable: one idea per 2–4 second card, a big headline, one visual gag, one caption line.++How the demo used the native moves:++| Native power | How the demo used it |+|---|---|+| **The accusation frame** | Any topic becomes "the case against X". A product, a habit, a pet, a colleague, a historical figure — list its "crimes". |+| **Numbered counts** | Each beat is Count 01/02/03 with a giant halftone numeral behind it. Three counts is the sweet spot for 30 s; five for 60 s. |+| **The stamp** | Every verdict is a physical stamp slam: 惯犯 (repeat offender), 无罪释放 (acquitted), 结案 (case closed). Stamps are the punctuation of the film. |+| **The mugshot** | A frontal subject in front of a height chart with a name plate and a flash. Great for introducing any "suspect". |+| **Exhibit cards** | The "in summary" beat: the counts come back as three pinned evidence cards with icons, then shake. |+| **Dot density = emotion** | Dots swell into a halo around the hero, pile up at the frame edges for tension, bloom radially for joy. |++How we shaped this topic: a **lovable offender** and three **specific, visual** misdeeds (a cup that falls, 04:00 on a clock, a document that fills with garbage). Our twist was a verdict that contradicts the evidence ("guilty on every count → acquitted: too cute").++**Demo arc (30 s, 120 BPM, one bar = 2 s)**: title (1 bar) → accusation + first stamp (1 bar) → mugshot (2 bars) → Count 01 (2) → Count 02 (2, the "night" change of palette) → Count 03 (2) → summary + build (1) → verdict stamp on the drop (1) → reason (1) → case closed + credit (2). Every cut sits on a bar line.++## Shots++The camera is a 2D group (`#cam`); there is no 3D.++| Beat | Camera |+|---|---|+| Title / accusation | Locked, frontal, with a 0.6 % **beat pulse** on every beat (`pulse`, only in "groove" sections). |+| Mugshot, summary | Slow push-in on the scene group: 1 → 1.05 over 4 s (mugshot), 1 → 1.08 with ease-in over 2 s (summary, rising tension). |+| Impacts | `SHAKES = [t0, amplitude px, duration]`: 16 px at the first stamp, 14 px at the cup crash, 26 px / 0.45 s at the verdict, 5–7 px for small landings; quadratic decay, different sin/cos frequencies on x/y. |+| Mugshot flash | Two camera-flash frames (white overlay 0.95 → 0 over 0.3 s) with the mascot squinting. |+| Ending | Fade to navy `#1D2340` over 29.25–29.95 s. |++Compose flat and frontal like a printed page: headline top-left, hero right-centre, caption bar bottom-centre (y = 980), HUD in the corners.++Demo motion numbers: CHUBBY letters fall 700 px in 0.2 s each, 0.25 s apart (one per 8th note), then squash with a damped `cos` wobble. Stamp slam (`stampAnim`) 0.09 s from 2.6× to 1× with a white flash at 23.0 s. Squash landings: loaf at 17.45, curl at 26.6 (`sq = 1 − k·e^(−a·7)·cos(a·20…22)`). Run cycle (`runCycle`): 4 capsule legs swinging ±50° at 30 rad/s, body bob `|sin(28t)|·12`, stretch `scaleX 1 + 0.35·speed`, 4 speed lines. Dot wipe (`wipeUpdate`): 80 px grid, r → 62, 0.44 s centred on each cut; cuts at 22 and 24 are hard cuts on the drop. The original "Motion language" section in full:++- **Everything enters with overshoot**: `E.back` (overshoot 1.9) over 0.3–0.45 s. Objects rise from below the frame (`lerp(1200, 470, E.back(...))`) or scale from 0 (`pop()`).+- **Per-character pop** (`charsPop`): each glyph drops 30–100 px and scales in with squash-and-stretch, stagger 0.05–0.08 s (0.02 s for small subtitles). Headlines always build this way; never fade text in.+- **Title letters fall and squash**: CHUBBY letters fall 700 px in 0.2 s each, 0.25 s apart (one per 8th note), then squash with a damped `cos` wobble.+- **Stamp slam** (`stampAnim`): 0.09 s from 2.6× to 1× (`E.in`), then a 5 % damped bounce; at the same instant a camera shake (`SHAKES`), a white flash (23.0 s) and the stamp SFX.+- **Squash landing**: characters that land (loaf at 17.45, curl at 26.6) use `sq = 1 − k·e^(−a·7)·cos(a·20…22)` with `scale(1/sq, sq)` so volume is preserved.+- **Idle life**: breathing (±2 % y-scale), tail sway, ear twitches, blinks at scripted times (`blinkAt`), hearts/Zz loops, stars twinkling, REC dot blinking at 1 Hz, colon of the clock blinking.+- **Run cycle** (`runCycle`): 4 capsule legs swinging ±50° at 30 rad/s, body bob `|sin(28t)|·12`, plus stretch `scaleX 1 + 0.35·speed` and 4 speed lines behind.+- **Line boil at 10 fps** on characters while their transforms move at 30 fps — hand-drawn feel without jitter in position.+- **Transitions are a dot wipe** (`wipeUpdate`): an 80 px grid of circles grows to r = 62 (full cover) and shrinks back over 0.44 s centred on each cut, with a diagonal delay; each cut has its own wipe colour (`WIPES`). The scene switch happens while the frame is fully covered. Some cuts (22, 24) are hard cuts on the drop for contrast.++## Score structure++- **No voice.** The film is carried by cards and music; if a topic needs narration, add it, but keep captions as the main channel.+- **Score** (`music.py`, 44.1 kHz stereo, fully synthesized, seeded RNG → bit-identical output): 120 BPM, bar = 2 s, C major with a chord per bar (`PLAN`, 15 bars). Instruments: synth kick/snare/clap/hat, square-ish bass on an 8th-note pattern, triangle pad, **marimba-like `pluck`** melody (fundamental + 3.99× partial) with a quiet octave echo, `pizz` pizzicato and finger snaps for the sneaking night section (bars 6–7 = Count 02), a snare roll + rising sine sweep for the **build** (bar 10 = "in summary"), a **drop** that leaves the first half of bar 11 empty so the verdict stamp lands alone at 23.0, then music-box `bell` outro and a final bell arpeggio.+- **SFX follow the picture** (SFX table at the end of `music.py`, times copied from `index.html`): pops per title letter, boing for the head peeking, `stamp()` (pitch-dropping boom + click; `big=True` adds a crackle) for every stamp, `shutter()` for the mugshot flashes, synthesized `meow()` (formant sweep /i/→/a/→/u/), `clink` for the cup nudges, `crash_glass()` at the break, whooshes before every wipe, `plop` + a stream of `key_click` for the cat lying on the keyboard, `sparkle` for "too cute".+- **Master**: peak-normalize ×1.6 → `tanh` soft clip ×0.9 → 1.2 s fade-out. At mux, −1.6 dB and AAC 256 k / 48 kHz → the demo measures −14.5 LUFS integrated, −1.2 dBTP.+- For a new film: keep the bar grid, re-write `PLAN` (which bar is intro/full/sneak/build/drop/outro/end) and re-time the SFX list to your new scene times. Keep one sonic "silence before the stamp".++## Palette & props++**Palette** (`C` in `index.html` lines 56–60) — use only these:++| Token | Hex | Use |+|---|---|---|+| `paper` | `#F4ECDD` | background of light scenes |+| `navy` | `#1D2340` | all outlines, body text, caption bar, fade-out colour |+| `blue` | `#2E55D6` | title background, halo dots, tables, one ink layer |+| `pink` | `#FF5A87` | accents, misregistration shadow, caption offset, verdict stamp |+| `yellow` | `#FFC628` | highlight words, numerals, starburst, folder |+| `orange` / `ored` | `#F58A34` / `#D9621E` | the mascot's fur / stripes |+| `cream` | `#FFF4E2` | bellies, paws, text on dark |+| `red` | `#E8384F` | stamps, "17", REC dot |+| `night` / `night2` | `#18203F` / `#2A3568` | night-scene background / dots |+| `mint`, `skin` | `#56C29E`, `#F7C9A1` | tiny accents only |++**Halftone** (`halftone()`): a rotated grid of circles in a single SVG path. `step` 20–26 px, screen `angle` different per layer (15°/20°/25°/30°/45°/60°/70°), dot radius = `density × step × maxK` with `maxK` 0.6–0.72 (at ~0.7 dots merge into solid ink at full density). Density fields: `radial(cx, cy, R, pw)` for halos/blooms/corner glows, `edge(R, pw)` for a vignette of dots crowding the frame edge, or a linear ramp `(x,y) => 0.25 + 0.75*clamp((y-250)/650)` for "lit from above" fills. Put the second layer in `class="mul"` (mix-blend multiply) so inks overprint.++**Halftone-filled numerals**: giant Bagel Fat One numerals (700–760 px) bleeding off the right edge, filled flat (`yellow` / `#FFD3DF`) and then overprinted with a darker halftone clipped to the glyph (`<clipPath>` with the same `<text>`). Lines 513–518 and 709–714.++**Paper** (`buildPaper()`, `#paper` canvas, multiply over everything, built once): 96×54 random tile upscaled (242–255 grey) for mottling + per-pixel noise ±13 with a −4 blue bias (warmth) + radial vignette `rgba(120,100,80,.35)` + a faint fold line at x = 960. Dark scenes are multiplied too, which keeps them "printed", not glowing.++**Grain** (`drawFx(frame)`, `#fx` canvas, per frame): 520 cream specks (r 0.6–2.4, α .75) + 90 navy specks, reseeded every 2 frames — dust on the print, not film grain.++**Line boil** (`#boil` SVG filter): `feTurbulence` 0.022 → `feDisplacementMap` scale 5, reseeded every 0.1 s (`render()` sets `boilT` seed, 40-seed cycle), plus a fine ink-grain mask (0.75 frequency) that eats a little of every fill. Apply it to characters and hand-drawn props only — never to text, halftone, HUD or captions.++**Characters**: chunky kawaii shapes with a **7 px navy outline** (`LW`), flat fills, cream belly/paws, pink ear-insides and cheeks, darker-orange stripes as round-capped strokes. Big glossy eyes (navy ellipse + two cream highlights) that can squint, close into a happy arc (`happy`) or blink. One head (`catHead`) shared by every body pose.++**Typography** (`F` lines 61–64; all Google Fonts, OFL):+- Headlines: **Noto Serif SC 900**, 100–230 px, left-aligned at x ≈ 120–170, with a **misregistration shadow** (`chars(..., {shadow:{fill: pink|yellow, dx: 8, dy: 8}})`, drawn multiply).+- Display / numerals: **Bagel Fat One** (CHUBBY 330 px, 01/03 700+ px, 99+, 17, 18:00, Zz).+- Cute interjections: **ZCOOL KuaiLe** (喵。 呼噜~ 啪! 太可爱了). "太可爱了" uses cream fill + 16 px navy stroke + blue offset shadow.+- Data / HUD: **JetBrains Mono 800** (case numbers, "PANG JU, O.", clock 04:00, cm ruler, file names).+- Captions and stamps: **Noto Sans SC 900**.++**Stamps** (`stampEl`): double rounded rectangle (outer border 10–14 px, inner 0.35×) + 120–210 px text, all through `#stampInk` (displacement 7 + coarse ink-grain mask) so the ink is mottled and the edges are rough. Opacity 0.93, tilted −10° … +12°.++**Props & gags**: starburst (24-point star, yellow + navy stroke, "啪!" in red), speech bubbles (cream, navy 6 px stroke, tail patch), hearts (`heartPath`), confetti (5-colour rectangles with flipping `scaleY`), radial rays (28 alternating wedges, rotating 12°/s), paw prints, sticky note, laptop with typed garbage, digital clock. All flat fills + navy outline.++## Titles & subtitles++- **Cards are the subtitles.** Every beat has a headline (serif 900, per-char pop) and, for counts, one **caption bar** (`caption`): navy rounded pill (r 14) with a pink offset shadow (+8/+8, multiply), Noto Sans SC 900 46 px in cream, with the **keyword in yellow or pink** via tspans. It pops in (0.4 s, slight −1.2° tilt) ~1 s after the headline and stays to the end of the scene (≥ 1.8 s).+- **HUD** (`hudUpdate`): top-left case number (`案卷 No.2026-CAT-001`, JetBrains Mono 22) above a chip with section + title (`罪状 01 | 测试重力`); top-right REC dot + date. Colours invert on dark scenes. Hidden on the title card, which has its own corner labels.+- **Title card**: blue background, big Bagel Fat One word (the subject's nickname) in cream with a navy offset shadow, subtitle line below, the mascot peeking from behind the letters with its paws on top.+- `halftone-dossier.srt` lists the cards (Chinese + English gloss); there is no speech to transcribe.++## End card++**End card**: the case folder with the file label, the sleeping mascot, the 结案 stamp, and a speech bubble with the closing joke (「本片由 Claude 用代码一帧一帧画完。胖橘表示:全程没有配合。」). Our demo ends with "LemoLab × Claude Opus 5.5" (× = U+00D7). This sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card or its closing joke. In the demo it is a single centred line at the bottom of the end card (added 2026-09-26, `index.html` S10): `txt(g, 'LemoLab × Claude Opus 5.5', {x: 960, y: 1040, 'font-size': 30, 'font-family': F.mono, 'font-weight': 800, fill: C.navy, 'text-anchor': 'middle', 'letter-spacing': 3})`, faded in with a 12 px rise over 27.6–27.9 s (0.3 s after the bubble pops) and held until the navy fade. Keep it in the empty band under the folder; never cover the mascot or the stamp. Write the string literally in the source so `init()` preloads its glyphs.++## Making an English version++**Making an English version** (all in `index.html`): replace the string literals in each `scene()` (headlines in `chars()`, `caption()` parts, `stampEl()` words, plate/profile/folder texts, end bubble at lines 905–907), the HUD `chips` array (lines 948–951) and `txt(... 'CASE FILE · 2026')`; swap `F.serif`/`F.cute`/`F.sans` to Latin display faces (e.g. a black slab or Bagel Fat One for headlines, a rounded display face for interjections), add them to `fams` in `fetch_fonts.mjs` and to the preload list in `init()` (line 1069); set `lang="en"`. Widths are measured at build time (`measure()`), so bars and stamps resize themselves, but English runs 2–3× longer: drop headline sizes (230 px → ~130 px), shorten stamps to 1–2 words (GUILTY, ACQUITTED, CLOSED), and use a smaller `charsPop` stagger (0.02–0.03 s).++## Build notes++```+styles/halftone-dossier/demo/+ index.html the whole film: helpers, halftone, paper, cat rig, 10 scenes, HUD, wipes, render(t)+ render.mjs Playwright renderer: stills | video [workers] | mux [out.mp4]+ music.py score + SFX + master → music.wav (seeded, deterministic)+ fetch_fonts.mjs downloads the 5 Google Fonts families → fonts/*.woff2 + fonts.css+ fonts/ fonts.css local font slices (OFL) CREDITS licences+ stills/ review stills + styleframe.jpg out/ intermediates (gitignored)+ PRODUCTION_LOG.md production log (local, not published)+```+Run from the repo root (`Lemo-Opuscar/`); all paths inside the scripts are relative to `demo/`.++1. (Only when changing fonts) `cd styles/halftone-dossier/demo && node fetch_fonts.mjs` — needs network; rewrites `fonts/` + `fonts.css`.+2. Voice/TTS: none in this style (skip). If you add narration, time scenes to it first.+3. Music: `.venv/bin/python styles/halftone-dossier/demo/music.py` → `demo/music.wav` (≈1 s). Pass a path to write elsewhere.+4. Review: open `demo/index.html?t=11.2` in Chrome, or `node styles/halftone-dossier/demo/render.mjs stills 3.3 7.2 11.25 23.3 27.8 --dir out/review` (≈0.25 s per frame) → `demo/out/review/t_*.png`.+5. Render: `node styles/halftone-dossier/demo/render.mjs video 2` → `demo/out/seg_*.mp4` + `demo/out/video_noaudio.mp4` (CRF 12 master). 900 frames ≈ 0.24 s/frame/worker → about 2 min with 2 workers on an idle machine (5.6 min measured while six other renders shared the CPU).+6. Mux: `node styles/halftone-dossier/demo/render.mjs mux` → `styles/halftone-dossier/halftone-dossier.mp4` (x264 CRF 16 + music at −1.6 dB, AAC 256 k/48 kHz; ≈15 s; reproduces the published video stream bit-for-bit from the same master). Pass another path to avoid overwriting the published film.++### Pitfalls we hit++- **Fonts must be loaded before `buildAll()`**: layout uses canvas `measureText`; if a Google-Fonts unicode-range slice is not loaded yet, per-character positions are computed with the fallback font and glyphs overlap. `init()` preloads every family against the **whole page source** (`documentElement.innerHTML` includes the script, so every string literal in the code is covered) and then again against the built SVG text. Any string you generate at runtime must contain only characters that also appear literally somewhere in the file (or ASCII).+- Use `font-display: block` (already in `fonts.css`) — `swap` shows fallback glyphs in the first rendered frames.+- `<clipPath>` ids are global: every clipped numeral/table needs a unique id (`num01`, `num03`, `tclip`).+- Keep the boil filter off text and halftone: displacement on 20 px dots turns them into mush and makes text wobble illegibly.+- Scenes are shown/hidden by time window; a scene's update only runs while it is on, so any element that must be invisible before its cue needs an explicit `op(…, 0)` for `t < t0` (see `charsPop`, `stampAnim`).+- The dot wipe must reach full coverage (r 62 on an 80 px grid) at the cut time, otherwise the hard scene switch shows through.+- A 100 % white flash reads as a dropped frame; the verdict flash is capped at 0.5.+- `demo/stills/t_*.png` from the original project partly predate the paper texture (0.5–7.1 s look flat); the film and a fresh render match each other, not those early stills.+- Unused leftovers in `index.html`: `#ink` filter, `charsIdle()`, `E.elastic` — defined, never called.++## Engine reference++Everything lives in `demo/index.html`. It is one file by design; to start a new film, **copy `demo/` to a new folder and rewrite `buildAll()`**. The reusable parts, by line range:++| Lines | Block | What to reuse |+|---|---|---|+| 8–13, 16–49 | Page + SVG skeleton | 1920×1080 body; `<svg id="stage">` with filters `boil`, `stampInk`; layer order `#cam > #world` (scenes), `#hud`, `#wipe`, `#flash`, `#fade`; then `<canvas id="paper">` (multiply) and `<canvas id="fx">`. Copy verbatim. |+| 55–94 | Core helpers | `C` palette, `F` fonts, `el(tag, attrs, parent)`, `txt`, `tf(e, x, y, s, rot, sy)`, `op`, `show`, `clamp`, `seg(t,a,b)` (0..1 progress), `lerp`, easings `E.out/in/io/back`, `pop(t, t0, d)`, seeded `rng(seed)`, `measure(str, size, family, weight)`. |+| 97–132 | Per-char text | `chars(parent, str, {x, y, size, family, weight, fill, anchor, ls, shadow:{fill,dx,dy}, stroke, sw})` → `{g, items}`; animate with `charsPop(c, t, t0, stagger, d, from)`. |+| 135–150 | **Halftone** | `halftone(parent, {x0, y0, w, h, step, angle, color, f, maxK})` returns one `<path>`; density fields `radial(cx, cy, R, pw)`, `edge(R, pw)`; add `.setAttribute('class','mul')` to overprint. |+| 152–171 | Background + caption bar | `bg(parent, color)`; `caption(parent, [[text, colour?], …], {x, y, size})` + `captionAnim(c, t, t0)`. |+| 174–190 | **Stamp** | `stampEl(parent, str, {size, color, family, padX, padY, border})` + `stampAnim(s, t, t0, x, y, rot)`. Pair with a `SHAKES` entry and a `stamp()` SFX at `t0`. |+| 192–194 | Heart | `heartPath(scale)` → path d string. |+| 199–337 | **Mascot rig** | `catHead` (ears, stripes, eyes, mouth, whiskers) + `setFace(cat, {open, lookX, lookY, mouthOpen, earL, earR, happy})` + `blinkAt(t, [times])`; bodies `catSit` (front), `catRun` (side, + `runCycle(c, t, speed, amp)`), `catLoaf` (lying), `catCurl` (sleeping); `tailEl(parent, d, width)` = outlined stroke tail with stripe dash. To make a different mascot, keep the recipe (7 px navy outline, flat fill, cream belly, `boil` filter) and redraw the paths; keep the `setFace` interface. |+| 349–355 | Timeline | `scene(t0, t1, build)`: `build(g, s)` creates the scene's elements once and returns `update(t)`; `render()` shows the scene only for `t0 ≤ t < t1` and calls `update` with **absolute** time. |+| 358–935 | The 10 scenes | Worked examples: title with falling letters (359–403), headline + stamp + paw prints (406–435), mugshot with height chart, plate, flash, heart and bubble (438–508), halftone numeral + cup physics + starburst (511–625), night run with moon, stars, bed, speed lines (628–704), laptop typing gag + loaf (707–782), exhibit cards + shake (785–819), verdict rays + confetti (822–849), reason close-up + hearts burst (852–882), folder + curl + end bubble + credit line (885–935). |+| 937–967 | HUD | case number + chapter chip from the `chips` table `[t0, t1, section, title]`; auto-width; inverts on dark scenes (edit the `dark` test). |+| 969–988 | Dot wipe | `WIPES = [[cutTime, colour], …]`, 80 px grid, 0.44 s window. |+| 995–1032 | Paper + grain | `buildPaper()` once; `drawFx(frame)` every frame. |+| 1037–1064 | `render(t)` | boil reseed, scene switching, `SHAKES` + beat pulse (`inGroove` windows), flash times, final fade window, HUD, wipe, grain. |+| 1066–1084 | `init()` | font preload (two passes) → `buildPaper()` → `buildAll()` → `window.READY = true`; `?t=` query renders a given time in a normal browser. |++The contract with `render.mjs` is only `window.READY` and `window.render(t)`; change `FPS`/`DUR` in both files for a different length.++**Minimal new scene** (paste inside `buildAll()`, then add its cut to `WIPES`, a `chips` row, `SHAKES` for the stamp, and the SFX times in `music.py`):++```js+scene(8, 12, (g) => {+ bg(g, C.paper);+ halftone(g, { color: C.yellow, step: 22, angle: 15, f: radial(1500, 520, 700, 1.0), maxK: 0.68 });+ halftone(g, { color: C.pink, step: 22, angle: 70, f: radial(0, 1080, 520, 1.2), maxK: 0.6 }).setAttribute('class', 'mul');+ const h1 = chars(g, '罪状 01', { x: 120, y: 330, size: 150, family: F.serif, fill: C.navy, shadow: { fill: C.yellow, dx: 8, dy: 8 } });+ const catG = el('g', {}, g); const cat = catSit(catG);+ const st = stampEl(g, '属实', { size: 160, color: C.red });+ const cap = caption(g, [['证据确凿,'], ['当场抓获', C.yellow], ['。']]);+ return (t) => {+ charsPop(h1, t, 8.05, 0.06);+ tf(catG, 960, lerp(1200, 470, E.back(seg(t, 8.2, 8.6))), 1.1);+ setFace(cat.head, { open: blinkAt(t, [9.4, 11.2]), lookX: Math.sin(t) * 4 });+ cat.tail.setAttribute('transform', `translate(90 285) rotate(${Math.sin(t * 2.4) * 10})`);+ stampAnim(st, t, 10.0, 1450, 640, -8);+ captionAnim(cap, t, 9.0);+ };+});+```diff --git a/styles/halftone-dossier/STYLE.md b/styles/halftone-dossier/STYLE.mdindex 0a71308..50075ba 100644--- a/styles/halftone-dossier/STYLE.md+++ b/styles/halftone-dossier/STYLE.md@@ -1,194 +1,120 @@# Halftone Dossier — Style Prompt-> A retro print case file: cream archive paper, overprinted halftone dots in four flat inks, huge heavy headlines with misregistered shadows, rubber stamps that slam, and a chubby thick-outlined mascot as the "suspect". Every film is a mock investigation that is read out one exhibit at a time.-> Demo: *胖橘案卷 Case File: Chubby* (30.0 s) · `halftone-dossier.mp4` · source in `demo/` · engine: one self-contained `demo/index.html` (SVG scene graph + two Canvas 2D overlays), rendered frame by frame by Playwright headless Chromium at 1920×1080 / 30 fps; score and SFX synthesized in `demo/music.py`.+> A retro print case file: cream archive paper, overprinted halftone dots in a few flat inks, huge heavy headlines with misregistered shadows, rubber stamps that slam, and thick-outlined characters. The film is a file that is read out one exhibit at a time.> References (grammar only, never copy): Ben-Day-dot pop-art printing (Roy Lichtenstein era comics) for dot density as shading; riso/offset overprint zines for multiply layers and misregistration; police mugshot height charts and case-file folders for the framing device; Japanese variety-show telop captions for the keyword-highlight caption bar.-> **The demo's on-screen text is Chinese** (title cards, captions, stamps). There is no narration. See §7 for what to change to make an English version.-You are directing a film in the **Halftone Dossier** style. The user gives you a topic. You decide everything else — the case, the counts, the exhibits, the timing, the sound — and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not----+- **The whole film is paper.** A warm cream sheet with low-frequency mottling, fine grain, a vignette and a fold; dark scenes are printed on it too, never glowing.+- **Shading is never a gradient**: it is halftone dots whose size follows a density field. Two or three dot layers at different screen angles overprint (multiply); that is the "printed" feel.+- **Bureaucratic apparatus**: case numbers, file chips, numbered exhibits, height charts, name plates, stamps. Their seriousness is the frame; the subject can be grave or trivial.+- **Loud but readable**: one idea per 2–4 s card, one big headline, one visual gag or exhibit, one caption line.++Not Risograph (no grainy two-ink riso texture as the whole look, no zine collage), not Swiss motion (no grid-driven kinetic type on white), not Game Show Flat (no candy sets, no rhythm-game rounds). Dots, paper and stamps must be visible in every frame.-## 1. What this style is+## 2. Materials & rendering-A comic-print **case file** that opens itself. The whole film is paper: a warm cream sheet (`#F4ECDD`) with low-frequency mottling, fine grain, a vignette and a centre fold. On it, everything is printed in a handful of flat inks — navy, cobalt blue, hot pink, yellow, orange, red — and **shading is never a gradient: it is halftone dots whose size follows a density field**. Two or three dot layers at different screen angles overprint (multiply), which is where the "printed" feel comes from.+- **Paper layer** (canvas, multiply over everything, built once): an upscaled random tile for mottling, per-pixel noise with a slight warm bias, a radial vignette, a faint centre fold.+- **Grain layer** (per frame): a few hundred paper-coloured specks and fewer ink specks, reseeded every 2 frames: dust on the print, not film grain.+- **Halftone**: a rotated grid of circles drawn as one path; step 20–26 px; screen angle different per layer; radius = density × step × k with k 0.6–0.72 (around 0.7 dots merge into solid ink). Density fields: radial (halos, blooms, corner glows), edge (dots crowding the frame border), linear ramps ("lit from above"). The second layer is multiplied so inks overprint.+- **Halftone-filled numerals and shapes**: a flat fill overprinted with a darker halftone clipped to the glyph; giant numerals may bleed off the frame.+- **Line boil**: turbulence displacement (small, ~5 px) reseeded ~10×/s plus a fine ink-grain mask that eats a little of every fill. Characters and hand-drawn props only; **never** on text, halftone, HUD or captions.+- **Characters**: chunky shapes with a heavy ink outline (~7 px), flat fills, a lighter belly or face area, glossy eyes (ink ellipse + two highlights) that can squint, blink or close into a happy arc. One head rig shared by all body poses.+- **Stamps**: a double rounded rectangle and bold text through a coarse ink-grain + displacement filter so edges are rough and the ink mottled; ~93 % opacity, tilted ±10°.+- **Props**: starbursts, speech bubbles, confetti, radial rays, sticky notes, folders, clocks: all flat fill + ink outline.-Structure is a dossier: **title → accusation → suspect profile (mugshot) → Count 01 / 02 / 03 → "in summary" → verdict stamp → reason → case closed**. A case-number HUD in the corner and a chapter chip ("罪状 01 · 测试重力") keep the viewer oriented. The joke is the gap between bureaucratic seriousness (case numbers, height chart, stamps, "Count 01") and a trivial, lovable subject.+## 3. Colour logic-It is loud but readable: one idea per 2–4 second card, a big headline, one visual gag, one caption line.+- **A paper ground, one dark ink, and four or five flat spot inks.** The dark ink (navy, black-brown or deep green) carries every outline, body text and the caption bar, and is the fade-out colour.+- One ink is the **overprint shadow** colour (misregistration offsets, caption shadows); one is the **highlight** for keywords and numerals; one warm red is reserved for stamps and alarms.+- Flat inks only. No gradients, no transparency ramps; tone comes from dot size and overprint.+- **Night or "secret" scenes** switch to a dark ink ground with a lighter dot layer of the same family, still multiplied by the paper.+- Characters may own one or two local colours (fur, clothing) that appear nowhere else.+- Example palettes: cream / navy / cobalt / hot pink / yellow / red; manila / sepia-black / teal / mustard / vermilion; off-white / forest green / tomato / sky / ochre.-## 2. Story: what fits this style+## 4. Type & subtitles-| Native power | Story use |-|---|---|-| **The accusation frame** | Any topic becomes "the case against X". A product, a habit, a pet, a colleague, a historical figure — list its "crimes". |-| **Numbered counts** | Each beat is Count 01/02/03 with a giant halftone numeral behind it. Three counts is the sweet spot for 30 s; five for 60 s. |-| **The stamp** | Every verdict is a physical stamp slam: 惯犯 (repeat offender), 无罪释放 (acquitted), 结案 (case closed). Stamps are the punctuation of the film. |-| **The mugshot** | A frontal subject in front of a height chart with a name plate and a flash. Great for introducing any "suspect". |-| **Exhibit cards** | The "in summary" beat: the counts come back as three pinned evidence cards with icons, then shake. |-| **Dot density = emotion** | Dots swell into a halo around the hero, pile up at the frame edges for tension, bloom radially for joy. |+- **Headlines**: a black-weight serif (e.g. Noto Serif SC 900 for CJK; a black slab for Latin), 100–230 px, left-aligned near the margin, with a **misregistration shadow** (+8/+8 px in the overprint ink, multiplied).+- **Display / numerals**: a fat rounded display face (e.g. Bagel Fat One) for names, big numbers, times.+- **Interjections**: a playful hand face (e.g. ZCOOL KuaiLe), paper fill with a thick ink stroke and an offset shadow.+- **Data / HUD**: a heavy monospace (e.g. JetBrains Mono 800) for case numbers, dates, rulers, file names.+- **Captions and stamps**: a black-weight sans.+- **Cards are the subtitles.** A headline per beat, plus a **caption bar**: a dark-ink rounded pill with an overprint-ink offset shadow, paper-coloured text, the **keyword in the highlight ink**. It pops in after the headline and holds ≥ max(1.8 s, speech + 0.6 s). With narration, the caption bar carries the spoken line.+- **HUD**: case number and a chapter chip top-left, a status (REC dot, date) top-right; colours invert on dark scenes.+- Latin runs 2–3× longer than CJK: smaller headlines, 1–2-word stamps (GUILTY, CLOSED), a tighter per-character stagger.-Adapting a topic: pick a **lovable offender** and three **specific, visual** misdeeds (an object that falls, a time on a clock, a document that fills with garbage). The twist is always a verdict that contradicts the evidence ("guilty on every count → acquitted: too cute").+## 5. Motion quality-**Arc (30 s, 120 BPM, one bar = 2 s)**: title (1 bar) → accusation + first stamp (1 bar) → mugshot (2 bars) → Count 01 (2) → Count 02 (2, the "night" change of palette) → Count 03 (2) → summary + build (1) → verdict stamp on the drop (1) → reason (1) → case closed + credit (2). Scale bars ×2 for a 60 s film; keep every cut on a bar line.+- 30 fps transforms; **line boil at ~10 fps** on characters, so the drawing breathes while positions stay smooth.+- **Everything enters with overshoot** (back ease, 0.3–0.45 s): rising from below the frame or scaling from 0. Nothing fades in.+- **Per-character pop** for headlines: each glyph drops 30–100 px and squashes in, stagger 0.05–0.08 s (0.02 s for small text).+- **Stamp slam**: ~0.09 s from ~2.6× to 1× (ease-in), then a small damped bounce; camera shake, flash and stamp sound on the same frame.+- **Squash landings** preserve volume (`scale(1/sq, sq)` with a damped cosine).+- **Idle life**: breathing, tail or hair sway, blinks at scripted times, twinkles, a blinking REC dot or clock colon.+- **Dot wipe transitions**: a coarse grid of circles grows to full cover and shrinks back (~0.44 s) with a diagonal delay; the scene switches while covered. Each cut may take its own wipe colour. A hard cut is the contrast tool, on a big hit.-## 3. Visual language+## 6. Camera grammar-**Palette** (`C` in `index.html` lines 56–60) — use only these:+A 2D camera group over a flat, frontal page. A vocabulary, not a route. Opening and ending come from the topic.-| Token | Hex | Use |+| Move | What it expresses | Can serve ||---|---|---|-| `paper` | `#F4ECDD` | background of light scenes |-| `navy` | `#1D2340` | all outlines, body text, caption bar, fade-out colour |-| `blue` | `#2E55D6` | title background, halo dots, tables, one ink layer |-| `pink` | `#FF5A87` | accents, misregistration shadow, caption offset, verdict stamp |-| `yellow` | `#FFC628` | highlight words, numerals, starburst, folder |-| `orange` / `ored` | `#F58A34` / `#D9621E` | the mascot's fur / stripes |-| `cream` | `#FFF4E2` | bellies, paws, text on dark |-| `red` | `#E8384F` | stamps, "17", REC dot |-| `night` / `night2` | `#18203F` / `#2A3568` | night-scene background / dots |-| `mint`, `skin` | `#56C29E`, `#F7C9A1` | tiny accents only |--**Halftone** (`halftone()`): a rotated grid of circles in a single SVG path. `step` 20–26 px, screen `angle` different per layer (15°/20°/25°/30°/45°/60°/70°), dot radius = `density × step × maxK` with `maxK` 0.6–0.72 (at ~0.7 dots merge into solid ink at full density). Density fields: `radial(cx, cy, R, pw)` for halos/blooms/corner glows, `edge(R, pw)` for a vignette of dots crowding the frame edge, or a linear ramp `(x,y) => 0.25 + 0.75*clamp((y-250)/650)` for "lit from above" fills. Put the second layer in `class="mul"` (mix-blend multiply) so inks overprint.--**Halftone-filled numerals**: giant Bagel Fat One numerals (700–760 px) bleeding off the right edge, filled flat (`yellow` / `#FFD3DF`) and then overprinted with a darker halftone clipped to the glyph (`<clipPath>` with the same `<text>`). Lines 513–518 and 709–714.--**Paper** (`buildPaper()`, `#paper` canvas, multiply over everything, built once): 96×54 random tile upscaled (242–255 grey) for mottling + per-pixel noise ±13 with a −4 blue bias (warmth) + radial vignette `rgba(120,100,80,.35)` + a faint fold line at x = 960. Dark scenes are multiplied too, which keeps them "printed", not glowing.--**Grain** (`drawFx(frame)`, `#fx` canvas, per frame): 520 cream specks (r 0.6–2.4, α .75) + 90 navy specks, reseeded every 2 frames — dust on the print, not film grain.--**Line boil** (`#boil` SVG filter): `feTurbulence` 0.022 → `feDisplacementMap` scale 5, reseeded every 0.1 s (`render()` sets `boilT` seed, 40-seed cycle), plus a fine ink-grain mask (0.75 frequency) that eats a little of every fill. Apply it to characters and hand-drawn props only — never to text, halftone, HUD or captions.--**Characters**: chunky kawaii shapes with a **7 px navy outline** (`LW`), flat fills, cream belly/paws, pink ear-insides and cheeks, darker-orange stripes as round-capped strokes. Big glossy eyes (navy ellipse + two cream highlights) that can squint, close into a happy arc (`happy`) or blink. One head (`catHead`) shared by every body pose.--**Typography** (`F` lines 61–64; all Google Fonts, OFL):-- Headlines: **Noto Serif SC 900**, 100–230 px, left-aligned at x ≈ 120–170, with a **misregistration shadow** (`chars(..., {shadow:{fill: pink|yellow, dx: 8, dy: 8}})`, drawn multiply).-- Display / numerals: **Bagel Fat One** (CHUBBY 330 px, 01/03 700+ px, 99+, 17, 18:00, Zz).-- Cute interjections: **ZCOOL KuaiLe** (喵。 呼噜~ 啪! 太可爱了). "太可爱了" uses cream fill + 16 px navy stroke + blue offset shadow.-- Data / HUD: **JetBrains Mono 800** (case numbers, "PANG JU, O.", clock 04:00, cm ruler, file names).-- Captions and stamps: **Noto Sans SC 900**.--**Stamps** (`stampEl`): double rounded rectangle (outer border 10–14 px, inner 0.35×) + 120–210 px text, all through `#stampInk` (displacement 7 + coarse ink-grain mask) so the ink is mottled and the edges are rough. Opacity 0.93, tilted −10° … +12°.--**Props & gags**: starburst (24-point star, yellow + navy stroke, "啪!" in red), speech bubbles (cream, navy 6 px stroke, tail patch), hearts (`heartPath`), confetti (5-colour rectangles with flipping `scaleY`), radial rays (28 alternating wedges, rotating 12°/s), paw prints, sticky note, laptop with typed garbage, digital clock. All flat fills + navy outline.--## 4. Motion language--- **Everything enters with overshoot**: `E.back` (overshoot 1.9) over 0.3–0.45 s. Objects rise from below the frame (`lerp(1200, 470, E.back(...))`) or scale from 0 (`pop()`).-- **Per-character pop** (`charsPop`): each glyph drops 30–100 px and scales in with squash-and-stretch, stagger 0.05–0.08 s (0.02 s for small subtitles). Headlines always build this way; never fade text in.-- **Title letters fall and squash**: CHUBBY letters fall 700 px in 0.2 s each, 0.25 s apart (one per 8th note), then squash with a damped `cos` wobble.-- **Stamp slam** (`stampAnim`): 0.09 s from 2.6× to 1× (`E.in`), then a 5 % damped bounce; at the same instant a camera shake (`SHAKES`), a white flash (23.0 s) and the stamp SFX.-- **Squash landing**: characters that land (loaf at 17.45, curl at 26.6) use `sq = 1 − k·e^(−a·7)·cos(a·20…22)` with `scale(1/sq, sq)` so volume is preserved.-- **Idle life**: breathing (±2 % y-scale), tail sway, ear twitches, blinks at scripted times (`blinkAt`), hearts/Zz loops, stars twinkling, REC dot blinking at 1 Hz, colon of the clock blinking.-- **Run cycle** (`runCycle`): 4 capsule legs swinging ±50° at 30 rad/s, body bob `|sin(28t)|·12`, plus stretch `scaleX 1 + 0.35·speed` and 4 speed lines behind.-- **Line boil at 10 fps** on characters while their transforms move at 30 fps — hand-drawn feel without jitter in position.-- **Transitions are a dot wipe** (`wipeUpdate`): an 80 px grid of circles grows to r = 62 (full cover) and shrinks back over 0.44 s centred on each cut, with a diagonal delay; each cut has its own wipe colour (`WIPES`). The scene switch happens while the frame is fully covered. Some cuts (22, 24) are hard cuts on the drop for contrast.--## 5. Camera--The camera is a 2D group (`#cam`); there is no 3D.--| Beat | Camera |-|---|---|-| Title / accusation | Locked, frontal, with a 0.6 % **beat pulse** on every beat (`pulse`, only in "groove" sections). |-| Mugshot, summary | Slow push-in on the scene group: 1 → 1.05 over 4 s (mugshot), 1 → 1.08 with ease-in over 2 s (summary, rising tension). |-| Impacts | `SHAKES = [t0, amplitude px, duration]`: 16 px at the first stamp, 14 px at the cup crash, 26 px / 0.45 s at the verdict, 5–7 px for small landings; quadratic decay, different sin/cos frequencies on x/y. |-| Mugshot flash | Two camera-flash frames (white overlay 0.95 → 0 over 0.3 s) with the mascot squinting. |-| Ending | Fade to navy `#1D2340` over 29.25–29.95 s. |--Compose flat and frontal like a printed page: headline top-left, hero right-centre, caption bar bottom-centre (y = 980), HUD in the corners.--## 6. Sound--- **No voice.** The film is carried by cards and music; if a topic needs narration, add it, but keep captions as the main channel.-- **Score** (`music.py`, 44.1 kHz stereo, fully synthesized, seeded RNG → bit-identical output): 120 BPM, bar = 2 s, C major with a chord per bar (`PLAN`, 15 bars). Instruments: synth kick/snare/clap/hat, square-ish bass on an 8th-note pattern, triangle pad, **marimba-like `pluck`** melody (fundamental + 3.99× partial) with a quiet octave echo, `pizz` pizzicato and finger snaps for the sneaking night section (bars 6–7 = Count 02), a snare roll + rising sine sweep for the **build** (bar 10 = "in summary"), a **drop** that leaves the first half of bar 11 empty so the verdict stamp lands alone at 23.0, then music-box `bell` outro and a final bell arpeggio.-- **SFX follow the picture** (SFX table at the end of `music.py`, times copied from `index.html`): pops per title letter, boing for the head peeking, `stamp()` (pitch-dropping boom + click; `big=True` adds a crackle) for every stamp, `shutter()` for the mugshot flashes, synthesized `meow()` (formant sweep /i/→/a/→/u/), `clink` for the cup nudges, `crash_glass()` at the break, whooshes before every wipe, `plop` + a stream of `key_click` for the cat lying on the keyboard, `sparkle` for "too cute".-- **Master**: peak-normalize ×1.6 → `tanh` soft clip ×0.9 → 1.2 s fade-out. At mux, −1.6 dB and AAC 256 k / 48 kHz → the demo measures −14.5 LUFS integrated, −1.2 dBTP.-- For a new film: keep the bar grid, re-write `PLAN` (which bar is intro/full/sneak/build/drop/outro/end) and re-time the SFX list to your new scene times. Keep one sonic "silence before the stamp".--## 7. Subtitles & titles--- **Cards are the subtitles.** Every beat has a headline (serif 900, per-char pop) and, for counts, one **caption bar** (`caption`): navy rounded pill (r 14) with a pink offset shadow (+8/+8, multiply), Noto Sans SC 900 46 px in cream, with the **keyword in yellow or pink** via tspans. It pops in (0.4 s, slight −1.2° tilt) ~1 s after the headline and stays to the end of the scene (≥ 1.8 s).-- **HUD** (`hudUpdate`): top-left case number (`案卷 No.2026-CAT-001`, JetBrains Mono 22) above a chip with section + title (`罪状 01 | 测试重力`); top-right REC dot + date. Colours invert on dark scenes. Hidden on the title card, which has its own corner labels.-- **Title card**: blue background, big Bagel Fat One word (the subject's nickname) in cream with a navy offset shadow, subtitle line below, the mascot peeking from behind the letters with its paws on top.-- **End card**: the case folder with the file label, the sleeping mascot, the 结案 stamp, and a speech bubble with the closing joke (「本片由 Claude 用代码一帧一帧画完。胖橘表示:全程没有配合。」). **Library rule: every film in this repo ends with "LemoLab × Claude Opus 5.5"** (× = U+00D7). In the demo it is a single centred line at the bottom of the end card (added 2026-09-26, `index.html` S10): `txt(g, 'LemoLab × Claude Opus 5.5', {x: 960, y: 1040, 'font-size': 30, 'font-family': F.mono, 'font-weight': 800, fill: C.navy, 'text-anchor': 'middle', 'letter-spacing': 3})`, faded in with a 12 px rise over 27.6–27.9 s (0.3 s after the bubble pops) and held until the navy fade. Keep it in the empty band under the folder; never cover the mascot or the stamp. Write the string literally in the source so `init()` preloads its glyphs.-- `halftone-dossier.srt` lists the cards (Chinese + English gloss); there is no speech to transcribe.-- **Making an English version** (all in `index.html`): replace the string literals in each `scene()` (headlines in `chars()`, `caption()` parts, `stampEl()` words, plate/profile/folder texts, end bubble at lines 905–907), the HUD `chips` array (lines 948–951) and `txt(... 'CASE FILE · 2026')`; swap `F.serif`/`F.cute`/`F.sans` to Latin display faces (e.g. a black slab or Bagel Fat One for headlines, a rounded display face for interjections), add them to `fams` in `fetch_fonts.mjs` and to the preload list in `init()` (line 1069); set `lang="en"`. Widths are measured at build time (`measure()`), so bars and stamps resize themselves, but English runs 2–3× longer: drop headline sizes (230 px → ~130 px), shorten stamps to 1–2 words (GUILTY, ACQUITTED, CLOSED), and use a smaller `charsPop` stagger (0.02–0.03 s).--## 8. Pitfalls we hit--- **Fonts must be loaded before `buildAll()`**: layout uses canvas `measureText`; if a Google-Fonts unicode-range slice is not loaded yet, per-character positions are computed with the fallback font and glyphs overlap. `init()` preloads every family against the **whole page source** (`documentElement.innerHTML` includes the script, so every string literal in the code is covered) and then again against the built SVG text. Any string you generate at runtime must contain only characters that also appear literally somewhere in the file (or ASCII).-- Use `font-display: block` (already in `fonts.css`) — `swap` shows fallback glyphs in the first rendered frames.-- `<clipPath>` ids are global: every clipped numeral/table needs a unique id (`num01`, `num03`, `tclip`).-- Keep the boil filter off text and halftone: displacement on 20 px dots turns them into mush and makes text wobble illegibly.-- Scenes are shown/hidden by time window; a scene's update only runs while it is on, so any element that must be invisible before its cue needs an explicit `op(…, 0)` for `t < t0` (see `charsPop`, `stampAnim`).-- The dot wipe must reach full coverage (r 62 on an 80 px grid) at the cut time, otherwise the hard scene switch shows through.-- A 100 % white flash reads as a dropped frame; the verdict flash is capped at 0.5.-- `demo/stills/t_*.png` from the original project partly predate the paper texture (0.5–7.1 s look flat); the film and a fresh render match each other, not those early stills.-- Unused leftovers in `index.html`: `#ink` filter, `charsIdle()`, `E.elastic` — defined, never called.--## 9. Production recipe (this repo)--```-styles/halftone-dossier/demo/- index.html the whole film: helpers, halftone, paper, cat rig, 10 scenes, HUD, wipes, render(t)- render.mjs Playwright renderer: stills | video [workers] | mux [out.mp4]- music.py score + SFX + master → music.wav (seeded, deterministic)- fetch_fonts.mjs downloads the 5 Google Fonts families → fonts/*.woff2 + fonts.css- fonts/ fonts.css local font slices (OFL) CREDITS licences- stills/ review stills + styleframe.jpg out/ intermediates (gitignored)-```-Run from the repo root (`Lemo-Opuscar/`); all paths inside the scripts are relative to `demo/`.--1. (Only when changing fonts) `cd styles/halftone-dossier/demo && node fetch_fonts.mjs` — needs network; rewrites `fonts/` + `fonts.css`.-2. Voice/TTS: none in this style (skip). If you add narration, time scenes to it first.-3. Music: `.venv/bin/python styles/halftone-dossier/demo/music.py` → `demo/music.wav` (≈1 s). Pass a path to write elsewhere.-4. Review: open `demo/index.html?t=11.2` in Chrome, or `node styles/halftone-dossier/demo/render.mjs stills 3.3 7.2 11.25 23.3 27.8 --dir out/review` (≈0.25 s per frame) → `demo/out/review/t_*.png`.-5. Render: `node styles/halftone-dossier/demo/render.mjs video 2` → `demo/out/seg_*.mp4` + `demo/out/video_noaudio.mp4` (CRF 12 master). 900 frames ≈ 0.24 s/frame/worker → about 2 min with 2 workers on an idle machine (5.6 min measured while six other renders shared the CPU).-6. Mux: `node styles/halftone-dossier/demo/render.mjs mux` → `styles/halftone-dossier/halftone-dossier.mp4` (x264 CRF 16 + music at −1.6 dB, AAC 256 k/48 kHz; ≈15 s; reproduces the published video stream bit-for-bit from the same master). Pass another path to avoid overwriting the published film.+| Locked frontal with a small beat pulse (~0.6 %) | the page as a poster, grooving | a title; a list; an accusation |+| Slow push-in (1 → 1.05–1.08) | scrutiny, rising tension | a profile; a summary before a verdict |+| Shake with quadratic decay (5–26 px) | impact | a stamp; a crash; a landing |+| Flash frames (white overlay ≤ 0.95 → 0, capped at 0.5 for big hits) | being photographed, a revelation | a mugshot; a verdict; evidence found |+| Pan across a pinned board | connection between exhibits | a timeline; suspects; a chain of events |+| Snap zoom into a halftone detail until dots are huge | "look closer" | a fingerprint; a signature; a number |+| Page turn / folder slide | next file, next chapter | a second case; a flashback |+| Pull back to reveal the whole desk | the file is one among many | scale; "this happens every day" |-## 10. Engine usage+Compose like a printed page: headline top-left, subject right-centre, caption bar bottom-centre, HUD in the corners. Transitions: dot wipe or hard cut; no dissolves.-Everything lives in `demo/index.html`. It is one file by design; to start a new film, **copy `demo/` to a new folder and rewrite `buildAll()`**. The reusable parts, by line range:+## 7. Sound palette-| Lines | Block | What to reuse |-|---|---|---|-| 8–13, 16–49 | Page + SVG skeleton | 1920×1080 body; `<svg id="stage">` with filters `boil`, `stampInk`; layer order `#cam > #world` (scenes), `#hud`, `#wipe`, `#flash`, `#fade`; then `<canvas id="paper">` (multiply) and `<canvas id="fx">`. Copy verbatim. |-| 55–94 | Core helpers | `C` palette, `F` fonts, `el(tag, attrs, parent)`, `txt`, `tf(e, x, y, s, rot, sy)`, `op`, `show`, `clamp`, `seg(t,a,b)` (0..1 progress), `lerp`, easings `E.out/in/io/back`, `pop(t, t0, d)`, seeded `rng(seed)`, `measure(str, size, family, weight)`. |-| 97–132 | Per-char text | `chars(parent, str, {x, y, size, family, weight, fill, anchor, ls, shadow:{fill,dx,dy}, stroke, sw})` → `{g, items}`; animate with `charsPop(c, t, t0, stagger, d, from)`. |-| 135–150 | **Halftone** | `halftone(parent, {x0, y0, w, h, step, angle, color, f, maxK})` returns one `<path>`; density fields `radial(cx, cy, R, pw)`, `edge(R, pw)`; add `.setAttribute('class','mul')` to overprint. |-| 152–171 | Background + caption bar | `bg(parent, color)`; `caption(parent, [[text, colour?], …], {x, y, size})` + `captionAnim(c, t, t0)`. |-| 174–190 | **Stamp** | `stampEl(parent, str, {size, color, family, padX, padY, border})` + `stampAnim(s, t, t0, x, y, rot)`. Pair with a `SHAKES` entry and a `stamp()` SFX at `t0`. |-| 192–194 | Heart | `heartPath(scale)` → path d string. |-| 199–337 | **Mascot rig** | `catHead` (ears, stripes, eyes, mouth, whiskers) + `setFace(cat, {open, lookX, lookY, mouthOpen, earL, earR, happy})` + `blinkAt(t, [times])`; bodies `catSit` (front), `catRun` (side, + `runCycle(c, t, speed, amp)`), `catLoaf` (lying), `catCurl` (sleeping); `tailEl(parent, d, width)` = outlined stroke tail with stripe dash. To make a different mascot, keep the recipe (7 px navy outline, flat fill, cream belly, `boil` filter) and redraw the paths; keep the `setFace` interface. |-| 349–355 | Timeline | `scene(t0, t1, build)`: `build(g, s)` creates the scene's elements once and returns `update(t)`; `render()` shows the scene only for `t0 ≤ t < t1` and calls `update` with **absolute** time. |-| 358–935 | The 10 scenes | Worked examples: title with falling letters (359–403), headline + stamp + paw prints (406–435), mugshot with height chart, plate, flash, heart and bubble (438–508), halftone numeral + cup physics + starburst (511–625), night run with moon, stars, bed, speed lines (628–704), laptop typing gag + loaf (707–782), exhibit cards + shake (785–819), verdict rays + confetti (822–849), reason close-up + hearts burst (852–882), folder + curl + end bubble + credit line (885–935). |-| 937–967 | HUD | case number + chapter chip from the `chips` table `[t0, t1, section, title]`; auto-width; inverts on dark scenes (edit the `dark` test). |-| 969–988 | Dot wipe | `WIPES = [[cutTime, colour], …]`, 80 px grid, 0.44 s window. |-| 995–1032 | Paper + grain | `buildPaper()` once; `drawFx(frame)` every frame. |-| 1037–1064 | `render(t)` | boil reseed, scene switching, `SHAKES` + beat pulse (`inGroove` windows), flash times, final fade window, HUD, wipe, grain. |-| 1066–1084 | `init()` | font preload (two passes) → `buildPaper()` → `buildAll()` → `window.READY = true`; `?t=` query renders a given time in a normal browser. |--The contract with `render.mjs` is only `window.READY` and `window.render(t)`; change `FPS`/`DUR` in both files for a different length.--**Minimal new scene** (paste inside `buildAll()`, then add its cut to `WIPES`, a `chips` row, `SHAKES` for the stamp, and the SFX times in `music.py`):--```js-scene(8, 12, (g) => {- bg(g, C.paper);- halftone(g, { color: C.yellow, step: 22, angle: 15, f: radial(1500, 520, 700, 1.0), maxK: 0.68 });- halftone(g, { color: C.pink, step: 22, angle: 70, f: radial(0, 1080, 520, 1.2), maxK: 0.6 }).setAttribute('class', 'mul');- const h1 = chars(g, '罪状 01', { x: 120, y: 330, size: 150, family: F.serif, fill: C.navy, shadow: { fill: C.yellow, dx: 8, dy: 8 } });- const catG = el('g', {}, g); const cat = catSit(catG);- const st = stampEl(g, '属实', { size: 160, color: C.red });- const cap = caption(g, [['证据确凿,'], ['当场抓获', C.yellow], ['。']]);- return (t) => {- charsPop(h1, t, 8.05, 0.06);- tf(catG, 960, lerp(1200, 470, E.back(seg(t, 8.2, 8.6))), 1.1);- setFace(cat.head, { open: blinkAt(t, [9.4, 11.2]), lookX: Math.sin(t) * 4 });- cat.tail.setAttribute('transform', `translate(90 285) rotate(${Math.sin(t * 2.4) * 10})`);- stampAnim(st, t, 10.0, 1450, 640, -8);- captionAnim(cap, t, 9.0);- };-});-```+- **Synth pop-print toolkit**: synth kick, snare, clap, hat; a square-ish 8th-note bass; triangle pad; a **marimba-like pluck** (fundamental + ~4× partial) for melody; pizzicato and finger snaps for sneaking; music-box bell for tenderness.+- **Foley follows the print and the gag**: stamp = pitch-dropping boom + click (a crackle for big ones), camera shutter, paper slides and folder flaps, typewriter or keyboard clicks, whooshes into wipes, pops on every glyph, boings and plops for characters, glass or ceramic for breakables, synthesized animal or creature voices (formant sweeps).+- **Silence before the stamp**: empty the music just before a verdict so the stamp lands alone. Other options: a snare roll + rising sweep into a reveal; stripping to bass and snaps for a secret scene; a bell arpeggio as a tag; a single sustained pad under a sad exhibit.+- **Voice** is optional; cards carry the film. If narrated: a dry, deadpan report voice, never breathless.+- **Mix**: SFX ahead of the music on impacts, soft-clip master, −14 LUFS, true peak ≤ −1 dB.++## 8. Native moves++A menu: use the ones your story needs.++- **The accusation frame.** A topic becomes "the case of X": list its counts. *Fits content like:* a cognitive bias on trial; a city's traffic problem; a plant that won't stop growing.+- **Numbered exhibits.** Each beat gets a giant halftone numeral behind it. *Fits content like:* five causes of a blackout; three clauses of a contract; the stages of a recall.+- **The stamp.** A verdict is a physical slam. *Fits content like:* APPROVED on a grant; EXPIRED on a policy; VERIFIED on a rumour check.+- **The mugshot.** Frontal subject, height chart, name plate, flash. *Fits content like:* a new species; a product teardown; the "suspect" in a bug report.+- **Evidence board.** Exhibits pinned and linked with string, then shaken. *Fits content like:* a supply chain; a family tree; a heist's timeline.+- **Dot density = emotion.** Dots swell into a halo, crowd the edges for tension, bloom radially for joy. *Fits content like:* a record broken; a deadline closing in; a reunion.+- **Redaction.** Black bars print over words and lift one by one. *Fits content like:* a leaked memo; a surprise party plan; spoilers.++## 9. Pitfalls of the medium++- **Fonts not loaded before layout** → per-character positions computed with a fallback font, glyphs overlap. Preload every family against the whole page source and the built text; runtime strings must use only characters that appear in the file. Use `font-display: block`.+- **Boil on text or dots** turns them to mush → filter only characters and props.+- **Clip-path ids are global** → every clipped numeral needs a unique id.+- **Time-windowed scenes** → an element invisible before its cue needs explicit opacity 0 for `t < t0`.+- **A dot wipe short of full coverage** at the cut shows the hard switch; make the max radius cover the grid cell's diagonal.+- **A 100 % white flash** reads as a dropped frame → cap at ~0.5.+- **Dots too small** (< ~14 px step at 1080p) alias into moiré after encoding.+- **Too many inks** lose the print feel → at most five plus paper.++## 10. Engine++Everything lives in `demo/index.html`: helpers (`el`, `txt`, `tf`, `seg`, easings, `measure`), per-character text (`chars` + `charsPop`), **halftone** (`halftone()` with `radial`/`edge` density fields), `caption()` bar, **stamp** (`stampEl` + `stampAnim`), a mascot rig with a `setFace` interface, `scene(t0, t1, build)`, HUD chips, dot wipe (`WIPES`), paper + grain (`buildPaper`, `drawFx`), `render(t)`. `demo/render.mjs` renders stills and video; `demo/music.py` synthesizes score and SFX. Line ranges and a minimal scene: [DEMO.md](DEMO.md#engine-reference).++## 11. Variation space++You decide what the file is about, its counts or exhibits, the characters (or none), the inks within the colour logic, the tone (farce or grave), the opening, the ending and the length (30 s for three exhibits, ~60 s for five).++All far from our demo:++- Structures: **a declassified report** whose pages are unredacted one by one until the real story shows; **a missing-person file** that works backwards from the last sighting; **an insurance claim** where each exhibit contradicts the claimant's statement.+- Openings: **the evidence bag** (one object on a dark ink ground, the file assembles around it); **a fingerprint** in huge dots that resolves into a face as we pull back; **the phone call** (a caption bar alone on paper, the file drops in after).+- Endings: **the file goes into a drawer** full of identical files; **a redacted final page** (the answer stays blacked out); **the stamp misses** (it lands on the table, the subject walks free out of frame).++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/halftone-dossier/demo/fonts/f0.woff2 b/styles/halftone-dossier/demo/fonts/f0.woff2deleted file mode 100644index 4a09e97..0000000Binary files a/styles/halftone-dossier/demo/fonts/f0.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f1.woff2 b/styles/halftone-dossier/demo/fonts/f1.woff2deleted file mode 100644index 4609b8c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f1.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f10.woff2 b/styles/halftone-dossier/demo/fonts/f10.woff2deleted file mode 100644index 6800dd7..0000000Binary files a/styles/halftone-dossier/demo/fonts/f10.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f100.woff2 b/styles/halftone-dossier/demo/fonts/f100.woff2deleted file mode 100644index b20e41b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f100.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f101.woff2 b/styles/halftone-dossier/demo/fonts/f101.woff2deleted file mode 100644index ce8f44f..0000000Binary files a/styles/halftone-dossier/demo/fonts/f101.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f102.woff2 b/styles/halftone-dossier/demo/fonts/f102.woff2deleted file mode 100644index 3f1da20..0000000Binary files a/styles/halftone-dossier/demo/fonts/f102.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f103.woff2 b/styles/halftone-dossier/demo/fonts/f103.woff2deleted file mode 100644index f841724..0000000Binary files a/styles/halftone-dossier/demo/fonts/f103.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f104.woff2 b/styles/halftone-dossier/demo/fonts/f104.woff2deleted file mode 100644index a4de3ca..0000000Binary files a/styles/halftone-dossier/demo/fonts/f104.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f105.woff2 b/styles/halftone-dossier/demo/fonts/f105.woff2deleted file mode 100644index 28447be..0000000Binary files a/styles/halftone-dossier/demo/fonts/f105.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f106.woff2 b/styles/halftone-dossier/demo/fonts/f106.woff2deleted file mode 100644index 1d05eba..0000000Binary files a/styles/halftone-dossier/demo/fonts/f106.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f107.woff2 b/styles/halftone-dossier/demo/fonts/f107.woff2deleted file mode 100644index d5e7f5c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f107.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f108.woff2 b/styles/halftone-dossier/demo/fonts/f108.woff2deleted file mode 100644index 01e7a94..0000000Binary files a/styles/halftone-dossier/demo/fonts/f108.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f109.woff2 b/styles/halftone-dossier/demo/fonts/f109.woff2deleted file mode 100644index 2c98875..0000000Binary files a/styles/halftone-dossier/demo/fonts/f109.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f11.woff2 b/styles/halftone-dossier/demo/fonts/f11.woff2deleted file mode 100644index f4395e3..0000000Binary files a/styles/halftone-dossier/demo/fonts/f11.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f110.woff2 b/styles/halftone-dossier/demo/fonts/f110.woff2deleted file mode 100644index ba8a98c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f110.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f111.woff2 b/styles/halftone-dossier/demo/fonts/f111.woff2deleted file mode 100644index ae1547a..0000000Binary files a/styles/halftone-dossier/demo/fonts/f111.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f112.woff2 b/styles/halftone-dossier/demo/fonts/f112.woff2deleted file mode 100644index 0768db2..0000000Binary files a/styles/halftone-dossier/demo/fonts/f112.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f113.woff2 b/styles/halftone-dossier/demo/fonts/f113.woff2deleted file mode 100644index ac0dbf2..0000000Binary files a/styles/halftone-dossier/demo/fonts/f113.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f114.woff2 b/styles/halftone-dossier/demo/fonts/f114.woff2deleted file mode 100644index 3d959f5..0000000Binary files a/styles/halftone-dossier/demo/fonts/f114.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f115.woff2 b/styles/halftone-dossier/demo/fonts/f115.woff2deleted file mode 100644index 3fa0822..0000000Binary files a/styles/halftone-dossier/demo/fonts/f115.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f116.woff2 b/styles/halftone-dossier/demo/fonts/f116.woff2deleted file mode 100644index b509a1b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f116.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f117.woff2 b/styles/halftone-dossier/demo/fonts/f117.woff2deleted file mode 100644index 5e4411a..0000000Binary files a/styles/halftone-dossier/demo/fonts/f117.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f118.woff2 b/styles/halftone-dossier/demo/fonts/f118.woff2deleted file mode 100644index f342c38..0000000Binary files a/styles/halftone-dossier/demo/fonts/f118.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f119.woff2 b/styles/halftone-dossier/demo/fonts/f119.woff2deleted file mode 100644index 580e247..0000000Binary files a/styles/halftone-dossier/demo/fonts/f119.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f12.woff2 b/styles/halftone-dossier/demo/fonts/f12.woff2deleted file mode 100644index e96ad7a..0000000Binary files a/styles/halftone-dossier/demo/fonts/f12.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f120.woff2 b/styles/halftone-dossier/demo/fonts/f120.woff2deleted file mode 100644index 9a46903..0000000Binary files a/styles/halftone-dossier/demo/fonts/f120.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f121.woff2 b/styles/halftone-dossier/demo/fonts/f121.woff2deleted file mode 100644index 5fc2728..0000000Binary files a/styles/halftone-dossier/demo/fonts/f121.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f122.woff2 b/styles/halftone-dossier/demo/fonts/f122.woff2deleted file mode 100644index f962b11..0000000Binary files a/styles/halftone-dossier/demo/fonts/f122.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f123.woff2 b/styles/halftone-dossier/demo/fonts/f123.woff2deleted file mode 100644index 0cbce88..0000000Binary files a/styles/halftone-dossier/demo/fonts/f123.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f124.woff2 b/styles/halftone-dossier/demo/fonts/f124.woff2deleted file mode 100644index f16ef58..0000000Binary files a/styles/halftone-dossier/demo/fonts/f124.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f125.woff2 b/styles/halftone-dossier/demo/fonts/f125.woff2deleted file mode 100644index bcc5490..0000000Binary files a/styles/halftone-dossier/demo/fonts/f125.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f126.woff2 b/styles/halftone-dossier/demo/fonts/f126.woff2deleted file mode 100644index 2e57204..0000000Binary files a/styles/halftone-dossier/demo/fonts/f126.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f127.woff2 b/styles/halftone-dossier/demo/fonts/f127.woff2deleted file mode 100644index c43d223..0000000Binary files a/styles/halftone-dossier/demo/fonts/f127.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f128.woff2 b/styles/halftone-dossier/demo/fonts/f128.woff2deleted file mode 100644index e07e3c7..0000000Binary files a/styles/halftone-dossier/demo/fonts/f128.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f129.woff2 b/styles/halftone-dossier/demo/fonts/f129.woff2deleted file mode 100644index 7de8e47..0000000Binary files a/styles/halftone-dossier/demo/fonts/f129.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f13.woff2 b/styles/halftone-dossier/demo/fonts/f13.woff2deleted file mode 100644index 72132e1..0000000Binary files a/styles/halftone-dossier/demo/fonts/f13.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f130.woff2 b/styles/halftone-dossier/demo/fonts/f130.woff2deleted file mode 100644index 400e2c7..0000000Binary files a/styles/halftone-dossier/demo/fonts/f130.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f131.woff2 b/styles/halftone-dossier/demo/fonts/f131.woff2deleted file mode 100644index 5795538..0000000Binary files a/styles/halftone-dossier/demo/fonts/f131.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f132.woff2 b/styles/halftone-dossier/demo/fonts/f132.woff2deleted file mode 100644index 0fd86c9..0000000Binary files a/styles/halftone-dossier/demo/fonts/f132.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f133.woff2 b/styles/halftone-dossier/demo/fonts/f133.woff2deleted file mode 100644index 5fcc93b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f133.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f134.woff2 b/styles/halftone-dossier/demo/fonts/f134.woff2deleted file mode 100644index 7c2b375..0000000Binary files a/styles/halftone-dossier/demo/fonts/f134.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f135.woff2 b/styles/halftone-dossier/demo/fonts/f135.woff2deleted file mode 100644index c436543..0000000Binary files a/styles/halftone-dossier/demo/fonts/f135.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f136.woff2 b/styles/halftone-dossier/demo/fonts/f136.woff2deleted file mode 100644index eabe2ba..0000000Binary files a/styles/halftone-dossier/demo/fonts/f136.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f137.woff2 b/styles/halftone-dossier/demo/fonts/f137.woff2deleted file mode 100644index edc7f01..0000000Binary files a/styles/halftone-dossier/demo/fonts/f137.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f138.woff2 b/styles/halftone-dossier/demo/fonts/f138.woff2deleted file mode 100644index 01e9c80..0000000Binary files a/styles/halftone-dossier/demo/fonts/f138.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f139.woff2 b/styles/halftone-dossier/demo/fonts/f139.woff2deleted file mode 100644index 019d8b6..0000000Binary files a/styles/halftone-dossier/demo/fonts/f139.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f14.woff2 b/styles/halftone-dossier/demo/fonts/f14.woff2deleted file mode 100644index ca26e5e..0000000Binary files a/styles/halftone-dossier/demo/fonts/f14.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f140.woff2 b/styles/halftone-dossier/demo/fonts/f140.woff2deleted file mode 100644index 1dd09ba..0000000Binary files a/styles/halftone-dossier/demo/fonts/f140.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f141.woff2 b/styles/halftone-dossier/demo/fonts/f141.woff2deleted file mode 100644index f84c79b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f141.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f142.woff2 b/styles/halftone-dossier/demo/fonts/f142.woff2deleted file mode 100644index cee31e7..0000000Binary files a/styles/halftone-dossier/demo/fonts/f142.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f143.woff2 b/styles/halftone-dossier/demo/fonts/f143.woff2deleted file mode 100644index 4d83f6e..0000000Binary files a/styles/halftone-dossier/demo/fonts/f143.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f144.woff2 b/styles/halftone-dossier/demo/fonts/f144.woff2deleted file mode 100644index d6bc1e4..0000000Binary files a/styles/halftone-dossier/demo/fonts/f144.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f145.woff2 b/styles/halftone-dossier/demo/fonts/f145.woff2deleted file mode 100644index 6171a66..0000000Binary files a/styles/halftone-dossier/demo/fonts/f145.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f146.woff2 b/styles/halftone-dossier/demo/fonts/f146.woff2deleted file mode 100644index 04a61ab..0000000Binary files a/styles/halftone-dossier/demo/fonts/f146.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f147.woff2 b/styles/halftone-dossier/demo/fonts/f147.woff2deleted file mode 100644index 6a12884..0000000Binary files a/styles/halftone-dossier/demo/fonts/f147.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f148.woff2 b/styles/halftone-dossier/demo/fonts/f148.woff2deleted file mode 100644index 40f729d..0000000Binary files a/styles/halftone-dossier/demo/fonts/f148.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f149.woff2 b/styles/halftone-dossier/demo/fonts/f149.woff2deleted file mode 100644index 3367753..0000000Binary files a/styles/halftone-dossier/demo/fonts/f149.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f15.woff2 b/styles/halftone-dossier/demo/fonts/f15.woff2deleted file mode 100644index 4e8c378..0000000Binary files a/styles/halftone-dossier/demo/fonts/f15.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f150.woff2 b/styles/halftone-dossier/demo/fonts/f150.woff2deleted file mode 100644index 42b85ab..0000000Binary files a/styles/halftone-dossier/demo/fonts/f150.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f151.woff2 b/styles/halftone-dossier/demo/fonts/f151.woff2deleted file mode 100644index 027ab14..0000000Binary files a/styles/halftone-dossier/demo/fonts/f151.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f152.woff2 b/styles/halftone-dossier/demo/fonts/f152.woff2deleted file mode 100644index 74502ad..0000000Binary files a/styles/halftone-dossier/demo/fonts/f152.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f153.woff2 b/styles/halftone-dossier/demo/fonts/f153.woff2deleted file mode 100644index 9311f9b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f153.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f154.woff2 b/styles/halftone-dossier/demo/fonts/f154.woff2deleted file mode 100644index e5f2e38..0000000Binary files a/styles/halftone-dossier/demo/fonts/f154.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f155.woff2 b/styles/halftone-dossier/demo/fonts/f155.woff2deleted file mode 100644index 04b95f8..0000000Binary files a/styles/halftone-dossier/demo/fonts/f155.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f156.woff2 b/styles/halftone-dossier/demo/fonts/f156.woff2deleted file mode 100644index f3828cd..0000000Binary files a/styles/halftone-dossier/demo/fonts/f156.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f157.woff2 b/styles/halftone-dossier/demo/fonts/f157.woff2deleted file mode 100644index dd6d3d3..0000000Binary files a/styles/halftone-dossier/demo/fonts/f157.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f158.woff2 b/styles/halftone-dossier/demo/fonts/f158.woff2deleted file mode 100644index 1907a88..0000000Binary files a/styles/halftone-dossier/demo/fonts/f158.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f159.woff2 b/styles/halftone-dossier/demo/fonts/f159.woff2deleted file mode 100644index 0c22d5b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f159.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f16.woff2 b/styles/halftone-dossier/demo/fonts/f16.woff2deleted file mode 100644index c0a017e..0000000Binary files a/styles/halftone-dossier/demo/fonts/f16.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f160.woff2 b/styles/halftone-dossier/demo/fonts/f160.woff2deleted file mode 100644index 2cece3c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f160.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f161.woff2 b/styles/halftone-dossier/demo/fonts/f161.woff2deleted file mode 100644index 7c1d93e..0000000Binary files a/styles/halftone-dossier/demo/fonts/f161.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f162.woff2 b/styles/halftone-dossier/demo/fonts/f162.woff2deleted file mode 100644index 1613bae..0000000Binary files a/styles/halftone-dossier/demo/fonts/f162.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f163.woff2 b/styles/halftone-dossier/demo/fonts/f163.woff2deleted file mode 100644index a87daae..0000000Binary files a/styles/halftone-dossier/demo/fonts/f163.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f164.woff2 b/styles/halftone-dossier/demo/fonts/f164.woff2deleted file mode 100644index 76516f7..0000000Binary files a/styles/halftone-dossier/demo/fonts/f164.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f165.woff2 b/styles/halftone-dossier/demo/fonts/f165.woff2deleted file mode 100644index 44585ff..0000000Binary files a/styles/halftone-dossier/demo/fonts/f165.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f166.woff2 b/styles/halftone-dossier/demo/fonts/f166.woff2deleted file mode 100644index 5e580a3..0000000Binary files a/styles/halftone-dossier/demo/fonts/f166.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f167.woff2 b/styles/halftone-dossier/demo/fonts/f167.woff2deleted file mode 100644index 1c918ff..0000000Binary files a/styles/halftone-dossier/demo/fonts/f167.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f168.woff2 b/styles/halftone-dossier/demo/fonts/f168.woff2deleted file mode 100644index 7daf820..0000000Binary files a/styles/halftone-dossier/demo/fonts/f168.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f169.woff2 b/styles/halftone-dossier/demo/fonts/f169.woff2deleted file mode 100644index 792282f..0000000Binary files a/styles/halftone-dossier/demo/fonts/f169.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f17.woff2 b/styles/halftone-dossier/demo/fonts/f17.woff2deleted file mode 100644index 5d3f0b2..0000000Binary files a/styles/halftone-dossier/demo/fonts/f17.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f170.woff2 b/styles/halftone-dossier/demo/fonts/f170.woff2deleted file mode 100644index b66e2ad..0000000Binary files a/styles/halftone-dossier/demo/fonts/f170.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f171.woff2 b/styles/halftone-dossier/demo/fonts/f171.woff2deleted file mode 100644index bccca3f..0000000Binary files a/styles/halftone-dossier/demo/fonts/f171.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f172.woff2 b/styles/halftone-dossier/demo/fonts/f172.woff2deleted file mode 100644index 532951f..0000000Binary files a/styles/halftone-dossier/demo/fonts/f172.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f173.woff2 b/styles/halftone-dossier/demo/fonts/f173.woff2deleted file mode 100644index b026edc..0000000Binary files a/styles/halftone-dossier/demo/fonts/f173.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f174.woff2 b/styles/halftone-dossier/demo/fonts/f174.woff2deleted file mode 100644index 2fbfa1f..0000000Binary files a/styles/halftone-dossier/demo/fonts/f174.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f175.woff2 b/styles/halftone-dossier/demo/fonts/f175.woff2deleted file mode 100644index 18c48e7..0000000Binary files a/styles/halftone-dossier/demo/fonts/f175.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f176.woff2 b/styles/halftone-dossier/demo/fonts/f176.woff2deleted file mode 100644index df4e31b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f176.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f177.woff2 b/styles/halftone-dossier/demo/fonts/f177.woff2deleted file mode 100644index c329573..0000000Binary files a/styles/halftone-dossier/demo/fonts/f177.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f178.woff2 b/styles/halftone-dossier/demo/fonts/f178.woff2deleted file mode 100644index 800288d..0000000Binary files a/styles/halftone-dossier/demo/fonts/f178.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f179.woff2 b/styles/halftone-dossier/demo/fonts/f179.woff2deleted file mode 100644index c8b5eec..0000000Binary files a/styles/halftone-dossier/demo/fonts/f179.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f18.woff2 b/styles/halftone-dossier/demo/fonts/f18.woff2deleted file mode 100644index 7c2ac1f..0000000Binary files a/styles/halftone-dossier/demo/fonts/f18.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f180.woff2 b/styles/halftone-dossier/demo/fonts/f180.woff2deleted file mode 100644index 47c4368..0000000Binary files a/styles/halftone-dossier/demo/fonts/f180.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f181.woff2 b/styles/halftone-dossier/demo/fonts/f181.woff2deleted file mode 100644index 1311be8..0000000Binary files a/styles/halftone-dossier/demo/fonts/f181.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f182.woff2 b/styles/halftone-dossier/demo/fonts/f182.woff2deleted file mode 100644index 7adfe55..0000000Binary files a/styles/halftone-dossier/demo/fonts/f182.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f183.woff2 b/styles/halftone-dossier/demo/fonts/f183.woff2deleted file mode 100644index 5e6ecff..0000000Binary files a/styles/halftone-dossier/demo/fonts/f183.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f184.woff2 b/styles/halftone-dossier/demo/fonts/f184.woff2deleted file mode 100644index 71fd6f9..0000000Binary files a/styles/halftone-dossier/demo/fonts/f184.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f185.woff2 b/styles/halftone-dossier/demo/fonts/f185.woff2deleted file mode 100644index 468a92f..0000000Binary files a/styles/halftone-dossier/demo/fonts/f185.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f186.woff2 b/styles/halftone-dossier/demo/fonts/f186.woff2deleted file mode 100644index 5b8e902..0000000Binary files a/styles/halftone-dossier/demo/fonts/f186.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f187.woff2 b/styles/halftone-dossier/demo/fonts/f187.woff2deleted file mode 100644index dd1db12..0000000Binary files a/styles/halftone-dossier/demo/fonts/f187.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f188.woff2 b/styles/halftone-dossier/demo/fonts/f188.woff2deleted file mode 100644index d1f3f41..0000000Binary files a/styles/halftone-dossier/demo/fonts/f188.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f189.woff2 b/styles/halftone-dossier/demo/fonts/f189.woff2deleted file mode 100644index f7ace23..0000000Binary files a/styles/halftone-dossier/demo/fonts/f189.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f19.woff2 b/styles/halftone-dossier/demo/fonts/f19.woff2deleted file mode 100644index 3d4b80a..0000000Binary files a/styles/halftone-dossier/demo/fonts/f19.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f190.woff2 b/styles/halftone-dossier/demo/fonts/f190.woff2deleted file mode 100644index 01fb3fe..0000000Binary files a/styles/halftone-dossier/demo/fonts/f190.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f191.woff2 b/styles/halftone-dossier/demo/fonts/f191.woff2deleted file mode 100644index 007550d..0000000Binary files a/styles/halftone-dossier/demo/fonts/f191.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f192.woff2 b/styles/halftone-dossier/demo/fonts/f192.woff2deleted file mode 100644index cf0edde..0000000Binary files a/styles/halftone-dossier/demo/fonts/f192.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f193.woff2 b/styles/halftone-dossier/demo/fonts/f193.woff2deleted file mode 100644index 7d27d66..0000000Binary files a/styles/halftone-dossier/demo/fonts/f193.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f194.woff2 b/styles/halftone-dossier/demo/fonts/f194.woff2deleted file mode 100644index e9ab385..0000000Binary files a/styles/halftone-dossier/demo/fonts/f194.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f195.woff2 b/styles/halftone-dossier/demo/fonts/f195.woff2deleted file mode 100644index b324c03..0000000Binary files a/styles/halftone-dossier/demo/fonts/f195.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f196.woff2 b/styles/halftone-dossier/demo/fonts/f196.woff2deleted file mode 100644index 100925c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f196.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f197.woff2 b/styles/halftone-dossier/demo/fonts/f197.woff2deleted file mode 100644index ac894a4..0000000Binary files a/styles/halftone-dossier/demo/fonts/f197.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f198.woff2 b/styles/halftone-dossier/demo/fonts/f198.woff2deleted file mode 100644index 7e5bb08..0000000Binary files a/styles/halftone-dossier/demo/fonts/f198.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f199.woff2 b/styles/halftone-dossier/demo/fonts/f199.woff2deleted file mode 100644index edd3325..0000000Binary files a/styles/halftone-dossier/demo/fonts/f199.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f2.woff2 b/styles/halftone-dossier/demo/fonts/f2.woff2deleted file mode 100644index 21671b7..0000000Binary files a/styles/halftone-dossier/demo/fonts/f2.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f20.woff2 b/styles/halftone-dossier/demo/fonts/f20.woff2deleted file mode 100644index 4f66a29..0000000Binary files a/styles/halftone-dossier/demo/fonts/f20.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f200.woff2 b/styles/halftone-dossier/demo/fonts/f200.woff2deleted file mode 100644index 91d0923..0000000Binary files a/styles/halftone-dossier/demo/fonts/f200.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f201.woff2 b/styles/halftone-dossier/demo/fonts/f201.woff2deleted file mode 100644index 5f6cd1e..0000000Binary files a/styles/halftone-dossier/demo/fonts/f201.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f202.woff2 b/styles/halftone-dossier/demo/fonts/f202.woff2deleted file mode 100644index cf43570..0000000Binary files a/styles/halftone-dossier/demo/fonts/f202.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f203.woff2 b/styles/halftone-dossier/demo/fonts/f203.woff2deleted file mode 100644index b99ed29..0000000Binary files a/styles/halftone-dossier/demo/fonts/f203.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f204.woff2 b/styles/halftone-dossier/demo/fonts/f204.woff2deleted file mode 100644index 0b7aebb..0000000Binary files a/styles/halftone-dossier/demo/fonts/f204.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f205.woff2 b/styles/halftone-dossier/demo/fonts/f205.woff2deleted file mode 100644index d556e98..0000000Binary files a/styles/halftone-dossier/demo/fonts/f205.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f206.woff2 b/styles/halftone-dossier/demo/fonts/f206.woff2deleted file mode 100644index 7300c35..0000000Binary files a/styles/halftone-dossier/demo/fonts/f206.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f207.woff2 b/styles/halftone-dossier/demo/fonts/f207.woff2deleted file mode 100644index 46baef8..0000000Binary files a/styles/halftone-dossier/demo/fonts/f207.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f208.woff2 b/styles/halftone-dossier/demo/fonts/f208.woff2deleted file mode 100644index c5b38cc..0000000Binary files a/styles/halftone-dossier/demo/fonts/f208.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f209.woff2 b/styles/halftone-dossier/demo/fonts/f209.woff2deleted file mode 100644index 4eb2251..0000000Binary files a/styles/halftone-dossier/demo/fonts/f209.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f21.woff2 b/styles/halftone-dossier/demo/fonts/f21.woff2deleted file mode 100644index 1f4b414..0000000Binary files a/styles/halftone-dossier/demo/fonts/f21.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f210.woff2 b/styles/halftone-dossier/demo/fonts/f210.woff2deleted file mode 100644index 20751f9..0000000Binary files a/styles/halftone-dossier/demo/fonts/f210.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f211.woff2 b/styles/halftone-dossier/demo/fonts/f211.woff2deleted file mode 100644index c41061d..0000000Binary files a/styles/halftone-dossier/demo/fonts/f211.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f212.woff2 b/styles/halftone-dossier/demo/fonts/f212.woff2deleted file mode 100644index adb170e..0000000Binary files a/styles/halftone-dossier/demo/fonts/f212.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f213.woff2 b/styles/halftone-dossier/demo/fonts/f213.woff2deleted file mode 100644index d74be0c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f213.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f214.woff2 b/styles/halftone-dossier/demo/fonts/f214.woff2deleted file mode 100644index 0f3e424..0000000Binary files a/styles/halftone-dossier/demo/fonts/f214.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f215.woff2 b/styles/halftone-dossier/demo/fonts/f215.woff2deleted file mode 100644index 7d18a4d..0000000Binary files a/styles/halftone-dossier/demo/fonts/f215.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f216.woff2 b/styles/halftone-dossier/demo/fonts/f216.woff2deleted file mode 100644index 3f97e9f..0000000Binary files a/styles/halftone-dossier/demo/fonts/f216.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f217.woff2 b/styles/halftone-dossier/demo/fonts/f217.woff2deleted file mode 100644index 5903051..0000000Binary files a/styles/halftone-dossier/demo/fonts/f217.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f218.woff2 b/styles/halftone-dossier/demo/fonts/f218.woff2deleted file mode 100644index 162512b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f218.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f219.woff2 b/styles/halftone-dossier/demo/fonts/f219.woff2deleted file mode 100644index 432871b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f219.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f22.woff2 b/styles/halftone-dossier/demo/fonts/f22.woff2deleted file mode 100644index dafe39a..0000000Binary files a/styles/halftone-dossier/demo/fonts/f22.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f220.woff2 b/styles/halftone-dossier/demo/fonts/f220.woff2deleted file mode 100644index aad0699..0000000Binary files a/styles/halftone-dossier/demo/fonts/f220.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f221.woff2 b/styles/halftone-dossier/demo/fonts/f221.woff2deleted file mode 100644index 68ceb64..0000000Binary files a/styles/halftone-dossier/demo/fonts/f221.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f222.woff2 b/styles/halftone-dossier/demo/fonts/f222.woff2deleted file mode 100644index b562574..0000000Binary files a/styles/halftone-dossier/demo/fonts/f222.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f223.woff2 b/styles/halftone-dossier/demo/fonts/f223.woff2deleted file mode 100644index 8fa4827..0000000Binary files a/styles/halftone-dossier/demo/fonts/f223.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f224.woff2 b/styles/halftone-dossier/demo/fonts/f224.woff2deleted file mode 100644index 1cd5a97..0000000Binary files a/styles/halftone-dossier/demo/fonts/f224.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f225.woff2 b/styles/halftone-dossier/demo/fonts/f225.woff2deleted file mode 100644index 28a4b0c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f225.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f226.woff2 b/styles/halftone-dossier/demo/fonts/f226.woff2deleted file mode 100644index 82a82ae..0000000Binary files a/styles/halftone-dossier/demo/fonts/f226.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f227.woff2 b/styles/halftone-dossier/demo/fonts/f227.woff2deleted file mode 100644index 2b95f7a..0000000Binary files a/styles/halftone-dossier/demo/fonts/f227.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f228.woff2 b/styles/halftone-dossier/demo/fonts/f228.woff2deleted file mode 100644index 0a1971c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f228.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f229.woff2 b/styles/halftone-dossier/demo/fonts/f229.woff2deleted file mode 100644index d15025a..0000000Binary files a/styles/halftone-dossier/demo/fonts/f229.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f23.woff2 b/styles/halftone-dossier/demo/fonts/f23.woff2deleted file mode 100644index 70bd1ea..0000000Binary files a/styles/halftone-dossier/demo/fonts/f23.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f230.woff2 b/styles/halftone-dossier/demo/fonts/f230.woff2deleted file mode 100644index 45f6231..0000000Binary files a/styles/halftone-dossier/demo/fonts/f230.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f231.woff2 b/styles/halftone-dossier/demo/fonts/f231.woff2deleted file mode 100644index bcd9b91..0000000Binary files a/styles/halftone-dossier/demo/fonts/f231.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f232.woff2 b/styles/halftone-dossier/demo/fonts/f232.woff2deleted file mode 100644index a1762e8..0000000Binary files a/styles/halftone-dossier/demo/fonts/f232.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f233.woff2 b/styles/halftone-dossier/demo/fonts/f233.woff2deleted file mode 100644index e227031..0000000Binary files a/styles/halftone-dossier/demo/fonts/f233.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f234.woff2 b/styles/halftone-dossier/demo/fonts/f234.woff2deleted file mode 100644index 04c5416..0000000Binary files a/styles/halftone-dossier/demo/fonts/f234.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f235.woff2 b/styles/halftone-dossier/demo/fonts/f235.woff2deleted file mode 100644index c8fda47..0000000Binary files a/styles/halftone-dossier/demo/fonts/f235.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f236.woff2 b/styles/halftone-dossier/demo/fonts/f236.woff2deleted file mode 100644index bae3ea7..0000000Binary files a/styles/halftone-dossier/demo/fonts/f236.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f237.woff2 b/styles/halftone-dossier/demo/fonts/f237.woff2deleted file mode 100644index 78d8d67..0000000Binary files a/styles/halftone-dossier/demo/fonts/f237.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f238.woff2 b/styles/halftone-dossier/demo/fonts/f238.woff2deleted file mode 100644index c311d0f..0000000Binary files a/styles/halftone-dossier/demo/fonts/f238.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f239.woff2 b/styles/halftone-dossier/demo/fonts/f239.woff2deleted file mode 100644index d261250..0000000Binary files a/styles/halftone-dossier/demo/fonts/f239.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f24.woff2 b/styles/halftone-dossier/demo/fonts/f24.woff2deleted file mode 100644index 9718e07..0000000Binary files a/styles/halftone-dossier/demo/fonts/f24.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f240.woff2 b/styles/halftone-dossier/demo/fonts/f240.woff2deleted file mode 100644index 6ebd759..0000000Binary files a/styles/halftone-dossier/demo/fonts/f240.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f241.woff2 b/styles/halftone-dossier/demo/fonts/f241.woff2deleted file mode 100644index 042fbe0..0000000Binary files a/styles/halftone-dossier/demo/fonts/f241.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f242.woff2 b/styles/halftone-dossier/demo/fonts/f242.woff2deleted file mode 100644index 91eb468..0000000Binary files a/styles/halftone-dossier/demo/fonts/f242.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f243.woff2 b/styles/halftone-dossier/demo/fonts/f243.woff2deleted file mode 100644index fae22db..0000000Binary files a/styles/halftone-dossier/demo/fonts/f243.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f244.woff2 b/styles/halftone-dossier/demo/fonts/f244.woff2deleted file mode 100644index 50ffa36..0000000Binary files a/styles/halftone-dossier/demo/fonts/f244.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f245.woff2 b/styles/halftone-dossier/demo/fonts/f245.woff2deleted file mode 100644index 5f89467..0000000Binary files a/styles/halftone-dossier/demo/fonts/f245.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f246.woff2 b/styles/halftone-dossier/demo/fonts/f246.woff2deleted file mode 100644index af59477..0000000Binary files a/styles/halftone-dossier/demo/fonts/f246.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f247.woff2 b/styles/halftone-dossier/demo/fonts/f247.woff2deleted file mode 100644index b027992..0000000Binary files a/styles/halftone-dossier/demo/fonts/f247.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f248.woff2 b/styles/halftone-dossier/demo/fonts/f248.woff2deleted file mode 100644index 6e55bfc..0000000Binary files a/styles/halftone-dossier/demo/fonts/f248.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f249.woff2 b/styles/halftone-dossier/demo/fonts/f249.woff2deleted file mode 100644index 8968d1f..0000000Binary files a/styles/halftone-dossier/demo/fonts/f249.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f25.woff2 b/styles/halftone-dossier/demo/fonts/f25.woff2deleted file mode 100644index 520229d..0000000Binary files a/styles/halftone-dossier/demo/fonts/f25.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f250.woff2 b/styles/halftone-dossier/demo/fonts/f250.woff2deleted file mode 100644index 9d602fa..0000000Binary files a/styles/halftone-dossier/demo/fonts/f250.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f251.woff2 b/styles/halftone-dossier/demo/fonts/f251.woff2deleted file mode 100644index 3bae225..0000000Binary files a/styles/halftone-dossier/demo/fonts/f251.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f252.woff2 b/styles/halftone-dossier/demo/fonts/f252.woff2deleted file mode 100644index 6c68e28..0000000Binary files a/styles/halftone-dossier/demo/fonts/f252.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f253.woff2 b/styles/halftone-dossier/demo/fonts/f253.woff2deleted file mode 100644index e7d3f80..0000000Binary files a/styles/halftone-dossier/demo/fonts/f253.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f254.woff2 b/styles/halftone-dossier/demo/fonts/f254.woff2deleted file mode 100644index 6fc2d32..0000000Binary files a/styles/halftone-dossier/demo/fonts/f254.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f255.woff2 b/styles/halftone-dossier/demo/fonts/f255.woff2deleted file mode 100644index 17c44ae..0000000Binary files a/styles/halftone-dossier/demo/fonts/f255.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f256.woff2 b/styles/halftone-dossier/demo/fonts/f256.woff2deleted file mode 100644index 71927d9..0000000Binary files a/styles/halftone-dossier/demo/fonts/f256.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f257.woff2 b/styles/halftone-dossier/demo/fonts/f257.woff2deleted file mode 100644index f177a7a..0000000Binary files a/styles/halftone-dossier/demo/fonts/f257.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f258.woff2 b/styles/halftone-dossier/demo/fonts/f258.woff2deleted file mode 100644index b10e302..0000000Binary files a/styles/halftone-dossier/demo/fonts/f258.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f259.woff2 b/styles/halftone-dossier/demo/fonts/f259.woff2deleted file mode 100644index 409ac14..0000000Binary files a/styles/halftone-dossier/demo/fonts/f259.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f26.woff2 b/styles/halftone-dossier/demo/fonts/f26.woff2deleted file mode 100644index c15b35c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f26.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f260.woff2 b/styles/halftone-dossier/demo/fonts/f260.woff2deleted file mode 100644index dd026fc..0000000Binary files a/styles/halftone-dossier/demo/fonts/f260.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f261.woff2 b/styles/halftone-dossier/demo/fonts/f261.woff2deleted file mode 100644index 47944e0..0000000Binary files a/styles/halftone-dossier/demo/fonts/f261.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f262.woff2 b/styles/halftone-dossier/demo/fonts/f262.woff2deleted file mode 100644index b4b5363..0000000Binary files a/styles/halftone-dossier/demo/fonts/f262.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f263.woff2 b/styles/halftone-dossier/demo/fonts/f263.woff2deleted file mode 100644index 9750496..0000000Binary files a/styles/halftone-dossier/demo/fonts/f263.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f264.woff2 b/styles/halftone-dossier/demo/fonts/f264.woff2deleted file mode 100644index bbe978f..0000000Binary files a/styles/halftone-dossier/demo/fonts/f264.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f265.woff2 b/styles/halftone-dossier/demo/fonts/f265.woff2deleted file mode 100644index 507dba0..0000000Binary files a/styles/halftone-dossier/demo/fonts/f265.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f266.woff2 b/styles/halftone-dossier/demo/fonts/f266.woff2deleted file mode 100644index aa07668..0000000Binary files a/styles/halftone-dossier/demo/fonts/f266.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f267.woff2 b/styles/halftone-dossier/demo/fonts/f267.woff2deleted file mode 100644index b2d3276..0000000Binary files a/styles/halftone-dossier/demo/fonts/f267.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f268.woff2 b/styles/halftone-dossier/demo/fonts/f268.woff2deleted file mode 100644index 21dc52b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f268.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f269.woff2 b/styles/halftone-dossier/demo/fonts/f269.woff2deleted file mode 100644index e6cc7d6..0000000Binary files a/styles/halftone-dossier/demo/fonts/f269.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f27.woff2 b/styles/halftone-dossier/demo/fonts/f27.woff2deleted file mode 100644index e60b1a0..0000000Binary files a/styles/halftone-dossier/demo/fonts/f27.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f270.woff2 b/styles/halftone-dossier/demo/fonts/f270.woff2deleted file mode 100644index e1cb48f..0000000Binary files a/styles/halftone-dossier/demo/fonts/f270.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f271.woff2 b/styles/halftone-dossier/demo/fonts/f271.woff2deleted file mode 100644index 2e8a02b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f271.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f272.woff2 b/styles/halftone-dossier/demo/fonts/f272.woff2deleted file mode 100644index ef5490c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f272.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f273.woff2 b/styles/halftone-dossier/demo/fonts/f273.woff2deleted file mode 100644index 338eff4..0000000Binary files a/styles/halftone-dossier/demo/fonts/f273.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f274.woff2 b/styles/halftone-dossier/demo/fonts/f274.woff2deleted file mode 100644index 8d3a59a..0000000Binary files a/styles/halftone-dossier/demo/fonts/f274.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f275.woff2 b/styles/halftone-dossier/demo/fonts/f275.woff2deleted file mode 100644index 3c24ea8..0000000Binary files a/styles/halftone-dossier/demo/fonts/f275.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f276.woff2 b/styles/halftone-dossier/demo/fonts/f276.woff2deleted file mode 100644index 471102c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f276.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f277.woff2 b/styles/halftone-dossier/demo/fonts/f277.woff2deleted file mode 100644index ce16b64..0000000Binary files a/styles/halftone-dossier/demo/fonts/f277.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f278.woff2 b/styles/halftone-dossier/demo/fonts/f278.woff2deleted file mode 100644index fe6d6d2..0000000Binary files a/styles/halftone-dossier/demo/fonts/f278.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f279.woff2 b/styles/halftone-dossier/demo/fonts/f279.woff2deleted file mode 100644index 01fd87b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f279.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f28.woff2 b/styles/halftone-dossier/demo/fonts/f28.woff2deleted file mode 100644index b92eac4..0000000Binary files a/styles/halftone-dossier/demo/fonts/f28.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f280.woff2 b/styles/halftone-dossier/demo/fonts/f280.woff2deleted file mode 100644index a20b361..0000000Binary files a/styles/halftone-dossier/demo/fonts/f280.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f281.woff2 b/styles/halftone-dossier/demo/fonts/f281.woff2deleted file mode 100644index ab31ac8..0000000Binary files a/styles/halftone-dossier/demo/fonts/f281.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f282.woff2 b/styles/halftone-dossier/demo/fonts/f282.woff2deleted file mode 100644index af5fd40..0000000Binary files a/styles/halftone-dossier/demo/fonts/f282.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f283.woff2 b/styles/halftone-dossier/demo/fonts/f283.woff2deleted file mode 100644index f606681..0000000Binary files a/styles/halftone-dossier/demo/fonts/f283.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f284.woff2 b/styles/halftone-dossier/demo/fonts/f284.woff2deleted file mode 100644index 816bac5..0000000Binary files a/styles/halftone-dossier/demo/fonts/f284.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f285.woff2 b/styles/halftone-dossier/demo/fonts/f285.woff2deleted file mode 100644index 0b76173..0000000Binary files a/styles/halftone-dossier/demo/fonts/f285.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f286.woff2 b/styles/halftone-dossier/demo/fonts/f286.woff2deleted file mode 100644index 024a1af..0000000Binary files a/styles/halftone-dossier/demo/fonts/f286.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f287.woff2 b/styles/halftone-dossier/demo/fonts/f287.woff2deleted file mode 100644index 1b61cf9..0000000Binary files a/styles/halftone-dossier/demo/fonts/f287.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f288.woff2 b/styles/halftone-dossier/demo/fonts/f288.woff2deleted file mode 100644index 06f0936..0000000Binary files a/styles/halftone-dossier/demo/fonts/f288.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f289.woff2 b/styles/halftone-dossier/demo/fonts/f289.woff2deleted file mode 100644index d37ea35..0000000Binary files a/styles/halftone-dossier/demo/fonts/f289.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f29.woff2 b/styles/halftone-dossier/demo/fonts/f29.woff2deleted file mode 100644index 89b0d21..0000000Binary files a/styles/halftone-dossier/demo/fonts/f29.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f290.woff2 b/styles/halftone-dossier/demo/fonts/f290.woff2deleted file mode 100644index 310fadd..0000000Binary files a/styles/halftone-dossier/demo/fonts/f290.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f291.woff2 b/styles/halftone-dossier/demo/fonts/f291.woff2deleted file mode 100644index 2ca6ac6..0000000Binary files a/styles/halftone-dossier/demo/fonts/f291.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f292.woff2 b/styles/halftone-dossier/demo/fonts/f292.woff2deleted file mode 100644index c607829..0000000Binary files a/styles/halftone-dossier/demo/fonts/f292.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f293.woff2 b/styles/halftone-dossier/demo/fonts/f293.woff2deleted file mode 100644index 23433c5..0000000Binary files a/styles/halftone-dossier/demo/fonts/f293.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f294.woff2 b/styles/halftone-dossier/demo/fonts/f294.woff2deleted file mode 100644index ece6c36..0000000Binary files a/styles/halftone-dossier/demo/fonts/f294.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f295.woff2 b/styles/halftone-dossier/demo/fonts/f295.woff2deleted file mode 100644index dae3066..0000000Binary files a/styles/halftone-dossier/demo/fonts/f295.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f296.woff2 b/styles/halftone-dossier/demo/fonts/f296.woff2deleted file mode 100644index 076ef6e..0000000Binary files a/styles/halftone-dossier/demo/fonts/f296.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f297.woff2 b/styles/halftone-dossier/demo/fonts/f297.woff2deleted file mode 100644index 9560fee..0000000Binary files a/styles/halftone-dossier/demo/fonts/f297.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f298.woff2 b/styles/halftone-dossier/demo/fonts/f298.woff2deleted file mode 100644index f831fc4..0000000Binary files a/styles/halftone-dossier/demo/fonts/f298.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f299.woff2 b/styles/halftone-dossier/demo/fonts/f299.woff2deleted file mode 100644index 215421d..0000000Binary files a/styles/halftone-dossier/demo/fonts/f299.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f3.woff2 b/styles/halftone-dossier/demo/fonts/f3.woff2deleted file mode 100644index 1257849..0000000Binary files a/styles/halftone-dossier/demo/fonts/f3.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f30.woff2 b/styles/halftone-dossier/demo/fonts/f30.woff2deleted file mode 100644index 958b0b6..0000000Binary files a/styles/halftone-dossier/demo/fonts/f30.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f300.woff2 b/styles/halftone-dossier/demo/fonts/f300.woff2deleted file mode 100644index bbc1a79..0000000Binary files a/styles/halftone-dossier/demo/fonts/f300.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f301.woff2 b/styles/halftone-dossier/demo/fonts/f301.woff2deleted file mode 100644index 473e1a7..0000000Binary files a/styles/halftone-dossier/demo/fonts/f301.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f302.woff2 b/styles/halftone-dossier/demo/fonts/f302.woff2deleted file mode 100644index 39f8ff1..0000000Binary files a/styles/halftone-dossier/demo/fonts/f302.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f303.woff2 b/styles/halftone-dossier/demo/fonts/f303.woff2deleted file mode 100644index d5d6409..0000000Binary files a/styles/halftone-dossier/demo/fonts/f303.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f304.woff2 b/styles/halftone-dossier/demo/fonts/f304.woff2deleted file mode 100644index 0e6ee28..0000000Binary files a/styles/halftone-dossier/demo/fonts/f304.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f305.woff2 b/styles/halftone-dossier/demo/fonts/f305.woff2deleted file mode 100644index e37648b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f305.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f306.woff2 b/styles/halftone-dossier/demo/fonts/f306.woff2deleted file mode 100644index 8407f1e..0000000Binary files a/styles/halftone-dossier/demo/fonts/f306.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f307.woff2 b/styles/halftone-dossier/demo/fonts/f307.woff2deleted file mode 100644index 855fbef..0000000Binary files a/styles/halftone-dossier/demo/fonts/f307.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f308.woff2 b/styles/halftone-dossier/demo/fonts/f308.woff2deleted file mode 100644index ca985fb..0000000Binary files a/styles/halftone-dossier/demo/fonts/f308.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f309.woff2 b/styles/halftone-dossier/demo/fonts/f309.woff2deleted file mode 100644index dfea7bb..0000000Binary files a/styles/halftone-dossier/demo/fonts/f309.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f31.woff2 b/styles/halftone-dossier/demo/fonts/f31.woff2deleted file mode 100644index 3674f3d..0000000Binary files a/styles/halftone-dossier/demo/fonts/f31.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f310.woff2 b/styles/halftone-dossier/demo/fonts/f310.woff2deleted file mode 100644index 2499dd6..0000000Binary files a/styles/halftone-dossier/demo/fonts/f310.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f311.woff2 b/styles/halftone-dossier/demo/fonts/f311.woff2deleted file mode 100644index 48834f2..0000000Binary files a/styles/halftone-dossier/demo/fonts/f311.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f312.woff2 b/styles/halftone-dossier/demo/fonts/f312.woff2deleted file mode 100644index 2b312a7..0000000Binary files a/styles/halftone-dossier/demo/fonts/f312.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f313.woff2 b/styles/halftone-dossier/demo/fonts/f313.woff2deleted file mode 100644index d36a8ee..0000000Binary files a/styles/halftone-dossier/demo/fonts/f313.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f314.woff2 b/styles/halftone-dossier/demo/fonts/f314.woff2deleted file mode 100644index 1470867..0000000Binary files a/styles/halftone-dossier/demo/fonts/f314.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f315.woff2 b/styles/halftone-dossier/demo/fonts/f315.woff2deleted file mode 100644index bb7c721..0000000Binary files a/styles/halftone-dossier/demo/fonts/f315.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f316.woff2 b/styles/halftone-dossier/demo/fonts/f316.woff2deleted file mode 100644index 0290043..0000000Binary files a/styles/halftone-dossier/demo/fonts/f316.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f317.woff2 b/styles/halftone-dossier/demo/fonts/f317.woff2deleted file mode 100644index 185d8de..0000000Binary files a/styles/halftone-dossier/demo/fonts/f317.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f318.woff2 b/styles/halftone-dossier/demo/fonts/f318.woff2deleted file mode 100644index 1cfb864..0000000Binary files a/styles/halftone-dossier/demo/fonts/f318.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f319.woff2 b/styles/halftone-dossier/demo/fonts/f319.woff2deleted file mode 100644index 774c3c6..0000000Binary files a/styles/halftone-dossier/demo/fonts/f319.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f32.woff2 b/styles/halftone-dossier/demo/fonts/f32.woff2deleted file mode 100644index d3e8bd8..0000000Binary files a/styles/halftone-dossier/demo/fonts/f32.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f320.woff2 b/styles/halftone-dossier/demo/fonts/f320.woff2deleted file mode 100644index 009d0e8..0000000Binary files a/styles/halftone-dossier/demo/fonts/f320.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f321.woff2 b/styles/halftone-dossier/demo/fonts/f321.woff2deleted file mode 100644index 65ff7a0..0000000Binary files a/styles/halftone-dossier/demo/fonts/f321.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f322.woff2 b/styles/halftone-dossier/demo/fonts/f322.woff2deleted file mode 100644index f47d887..0000000Binary files a/styles/halftone-dossier/demo/fonts/f322.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f323.woff2 b/styles/halftone-dossier/demo/fonts/f323.woff2deleted file mode 100644index ec395c3..0000000Binary files a/styles/halftone-dossier/demo/fonts/f323.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f324.woff2 b/styles/halftone-dossier/demo/fonts/f324.woff2deleted file mode 100644index adbfcdb..0000000Binary files a/styles/halftone-dossier/demo/fonts/f324.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f325.woff2 b/styles/halftone-dossier/demo/fonts/f325.woff2deleted file mode 100644index 2be1a90..0000000Binary files a/styles/halftone-dossier/demo/fonts/f325.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f326.woff2 b/styles/halftone-dossier/demo/fonts/f326.woff2deleted file mode 100644index 7b14254..0000000Binary files a/styles/halftone-dossier/demo/fonts/f326.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f327.woff2 b/styles/halftone-dossier/demo/fonts/f327.woff2deleted file mode 100644index 7c163c9..0000000Binary files a/styles/halftone-dossier/demo/fonts/f327.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f328.woff2 b/styles/halftone-dossier/demo/fonts/f328.woff2deleted file mode 100644index 898387c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f328.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f329.woff2 b/styles/halftone-dossier/demo/fonts/f329.woff2deleted file mode 100644index ae0d63e..0000000Binary files a/styles/halftone-dossier/demo/fonts/f329.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f33.woff2 b/styles/halftone-dossier/demo/fonts/f33.woff2deleted file mode 100644index a438a04..0000000Binary files a/styles/halftone-dossier/demo/fonts/f33.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f330.woff2 b/styles/halftone-dossier/demo/fonts/f330.woff2deleted file mode 100644index 6323694..0000000Binary files a/styles/halftone-dossier/demo/fonts/f330.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f331.woff2 b/styles/halftone-dossier/demo/fonts/f331.woff2deleted file mode 100644index 8de69ae..0000000Binary files a/styles/halftone-dossier/demo/fonts/f331.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f332.woff2 b/styles/halftone-dossier/demo/fonts/f332.woff2deleted file mode 100644index e807378..0000000Binary files a/styles/halftone-dossier/demo/fonts/f332.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f333.woff2 b/styles/halftone-dossier/demo/fonts/f333.woff2deleted file mode 100644index 40fa655..0000000Binary files a/styles/halftone-dossier/demo/fonts/f333.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f334.woff2 b/styles/halftone-dossier/demo/fonts/f334.woff2deleted file mode 100644index 4c0b3ac..0000000Binary files a/styles/halftone-dossier/demo/fonts/f334.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f335.woff2 b/styles/halftone-dossier/demo/fonts/f335.woff2deleted file mode 100644index 2cde0b2..0000000Binary files a/styles/halftone-dossier/demo/fonts/f335.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f336.woff2 b/styles/halftone-dossier/demo/fonts/f336.woff2deleted file mode 100644index 25a5e32..0000000Binary files a/styles/halftone-dossier/demo/fonts/f336.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f337.woff2 b/styles/halftone-dossier/demo/fonts/f337.woff2deleted file mode 100644index 6992fc6..0000000Binary files a/styles/halftone-dossier/demo/fonts/f337.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f338.woff2 b/styles/halftone-dossier/demo/fonts/f338.woff2deleted file mode 100644index 026b742..0000000Binary files a/styles/halftone-dossier/demo/fonts/f338.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f339.woff2 b/styles/halftone-dossier/demo/fonts/f339.woff2deleted file mode 100644index 19131de..0000000Binary files a/styles/halftone-dossier/demo/fonts/f339.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f34.woff2 b/styles/halftone-dossier/demo/fonts/f34.woff2deleted file mode 100644index f7544df..0000000Binary files a/styles/halftone-dossier/demo/fonts/f34.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f340.woff2 b/styles/halftone-dossier/demo/fonts/f340.woff2deleted file mode 100644index 0923095..0000000Binary files a/styles/halftone-dossier/demo/fonts/f340.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f341.woff2 b/styles/halftone-dossier/demo/fonts/f341.woff2deleted file mode 100644index 6774192..0000000Binary files a/styles/halftone-dossier/demo/fonts/f341.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f342.woff2 b/styles/halftone-dossier/demo/fonts/f342.woff2deleted file mode 100644index d20c2f9..0000000Binary files a/styles/halftone-dossier/demo/fonts/f342.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f343.woff2 b/styles/halftone-dossier/demo/fonts/f343.woff2deleted file mode 100644index 67bb80a..0000000Binary files a/styles/halftone-dossier/demo/fonts/f343.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f344.woff2 b/styles/halftone-dossier/demo/fonts/f344.woff2deleted file mode 100644index 5c5ec0c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f344.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f345.woff2 b/styles/halftone-dossier/demo/fonts/f345.woff2deleted file mode 100644index 6655561..0000000Binary files a/styles/halftone-dossier/demo/fonts/f345.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f346.woff2 b/styles/halftone-dossier/demo/fonts/f346.woff2deleted file mode 100644index f49ddd3..0000000Binary files a/styles/halftone-dossier/demo/fonts/f346.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f347.woff2 b/styles/halftone-dossier/demo/fonts/f347.woff2deleted file mode 100644index e1fd2c1..0000000Binary files a/styles/halftone-dossier/demo/fonts/f347.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f348.woff2 b/styles/halftone-dossier/demo/fonts/f348.woff2deleted file mode 100644index 051e4c9..0000000Binary files a/styles/halftone-dossier/demo/fonts/f348.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f349.woff2 b/styles/halftone-dossier/demo/fonts/f349.woff2deleted file mode 100644index cd5035d..0000000Binary files a/styles/halftone-dossier/demo/fonts/f349.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f35.woff2 b/styles/halftone-dossier/demo/fonts/f35.woff2deleted file mode 100644index 0aa50b2..0000000Binary files a/styles/halftone-dossier/demo/fonts/f35.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f350.woff2 b/styles/halftone-dossier/demo/fonts/f350.woff2deleted file mode 100644index 123b529..0000000Binary files a/styles/halftone-dossier/demo/fonts/f350.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f351.woff2 b/styles/halftone-dossier/demo/fonts/f351.woff2deleted file mode 100644index 6e5e548..0000000Binary files a/styles/halftone-dossier/demo/fonts/f351.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f352.woff2 b/styles/halftone-dossier/demo/fonts/f352.woff2deleted file mode 100644index a1a9881..0000000Binary files a/styles/halftone-dossier/demo/fonts/f352.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f353.woff2 b/styles/halftone-dossier/demo/fonts/f353.woff2deleted file mode 100644index c440dc0..0000000Binary files a/styles/halftone-dossier/demo/fonts/f353.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f354.woff2 b/styles/halftone-dossier/demo/fonts/f354.woff2deleted file mode 100644index 075e69c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f354.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f355.woff2 b/styles/halftone-dossier/demo/fonts/f355.woff2deleted file mode 100644index b48d396..0000000Binary files a/styles/halftone-dossier/demo/fonts/f355.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f356.woff2 b/styles/halftone-dossier/demo/fonts/f356.woff2deleted file mode 100644index 8f5510d..0000000Binary files a/styles/halftone-dossier/demo/fonts/f356.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f357.woff2 b/styles/halftone-dossier/demo/fonts/f357.woff2deleted file mode 100644index 06947e6..0000000Binary files a/styles/halftone-dossier/demo/fonts/f357.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f358.woff2 b/styles/halftone-dossier/demo/fonts/f358.woff2deleted file mode 100644index d637ca0..0000000Binary files a/styles/halftone-dossier/demo/fonts/f358.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f359.woff2 b/styles/halftone-dossier/demo/fonts/f359.woff2deleted file mode 100644index a901268..0000000Binary files a/styles/halftone-dossier/demo/fonts/f359.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f36.woff2 b/styles/halftone-dossier/demo/fonts/f36.woff2deleted file mode 100644index 75229e4..0000000Binary files a/styles/halftone-dossier/demo/fonts/f36.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f360.woff2 b/styles/halftone-dossier/demo/fonts/f360.woff2deleted file mode 100644index a112778..0000000Binary files a/styles/halftone-dossier/demo/fonts/f360.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f361.woff2 b/styles/halftone-dossier/demo/fonts/f361.woff2deleted file mode 100644index 15966db..0000000Binary files a/styles/halftone-dossier/demo/fonts/f361.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f362.woff2 b/styles/halftone-dossier/demo/fonts/f362.woff2deleted file mode 100644index 1801266..0000000Binary files a/styles/halftone-dossier/demo/fonts/f362.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f363.woff2 b/styles/halftone-dossier/demo/fonts/f363.woff2deleted file mode 100644index 222e4fe..0000000Binary files a/styles/halftone-dossier/demo/fonts/f363.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f364.woff2 b/styles/halftone-dossier/demo/fonts/f364.woff2deleted file mode 100644index 68f0a2e..0000000Binary files a/styles/halftone-dossier/demo/fonts/f364.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f365.woff2 b/styles/halftone-dossier/demo/fonts/f365.woff2deleted file mode 100644index b549b46..0000000Binary files a/styles/halftone-dossier/demo/fonts/f365.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f366.woff2 b/styles/halftone-dossier/demo/fonts/f366.woff2deleted file mode 100644index c4b20c4..0000000Binary files a/styles/halftone-dossier/demo/fonts/f366.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f367.woff2 b/styles/halftone-dossier/demo/fonts/f367.woff2deleted file mode 100644index a78dbf8..0000000Binary files a/styles/halftone-dossier/demo/fonts/f367.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f368.woff2 b/styles/halftone-dossier/demo/fonts/f368.woff2deleted file mode 100644index f77c099..0000000Binary files a/styles/halftone-dossier/demo/fonts/f368.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f369.woff2 b/styles/halftone-dossier/demo/fonts/f369.woff2deleted file mode 100644index 8f6efef..0000000Binary files a/styles/halftone-dossier/demo/fonts/f369.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f37.woff2 b/styles/halftone-dossier/demo/fonts/f37.woff2deleted file mode 100644index 64b04a7..0000000Binary files a/styles/halftone-dossier/demo/fonts/f37.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f370.woff2 b/styles/halftone-dossier/demo/fonts/f370.woff2deleted file mode 100644index 6b2b7c8..0000000Binary files a/styles/halftone-dossier/demo/fonts/f370.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f371.woff2 b/styles/halftone-dossier/demo/fonts/f371.woff2deleted file mode 100644index e91de30..0000000Binary files a/styles/halftone-dossier/demo/fonts/f371.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f372.woff2 b/styles/halftone-dossier/demo/fonts/f372.woff2deleted file mode 100644index 2ed6649..0000000Binary files a/styles/halftone-dossier/demo/fonts/f372.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f373.woff2 b/styles/halftone-dossier/demo/fonts/f373.woff2deleted file mode 100644index fb82d9b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f373.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f374.woff2 b/styles/halftone-dossier/demo/fonts/f374.woff2deleted file mode 100644index 5fb9896..0000000Binary files a/styles/halftone-dossier/demo/fonts/f374.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f375.woff2 b/styles/halftone-dossier/demo/fonts/f375.woff2deleted file mode 100644index f392885..0000000Binary files a/styles/halftone-dossier/demo/fonts/f375.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f376.woff2 b/styles/halftone-dossier/demo/fonts/f376.woff2deleted file mode 100644index 0ed7954..0000000Binary files a/styles/halftone-dossier/demo/fonts/f376.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f377.woff2 b/styles/halftone-dossier/demo/fonts/f377.woff2deleted file mode 100644index c28cad7..0000000Binary files a/styles/halftone-dossier/demo/fonts/f377.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f378.woff2 b/styles/halftone-dossier/demo/fonts/f378.woff2deleted file mode 100644index b7a8cdc..0000000Binary files a/styles/halftone-dossier/demo/fonts/f378.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f379.woff2 b/styles/halftone-dossier/demo/fonts/f379.woff2deleted file mode 100644index f1860e5..0000000Binary files a/styles/halftone-dossier/demo/fonts/f379.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f38.woff2 b/styles/halftone-dossier/demo/fonts/f38.woff2deleted file mode 100644index 2344409..0000000Binary files a/styles/halftone-dossier/demo/fonts/f38.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f380.woff2 b/styles/halftone-dossier/demo/fonts/f380.woff2deleted file mode 100644index 86c330e..0000000Binary files a/styles/halftone-dossier/demo/fonts/f380.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f381.woff2 b/styles/halftone-dossier/demo/fonts/f381.woff2deleted file mode 100644index c3ae901..0000000Binary files a/styles/halftone-dossier/demo/fonts/f381.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f382.woff2 b/styles/halftone-dossier/demo/fonts/f382.woff2deleted file mode 100644index 47fcdab..0000000Binary files a/styles/halftone-dossier/demo/fonts/f382.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f383.woff2 b/styles/halftone-dossier/demo/fonts/f383.woff2deleted file mode 100644index af275e8..0000000Binary files a/styles/halftone-dossier/demo/fonts/f383.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f384.woff2 b/styles/halftone-dossier/demo/fonts/f384.woff2deleted file mode 100644index 0ae81cb..0000000Binary files a/styles/halftone-dossier/demo/fonts/f384.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f385.woff2 b/styles/halftone-dossier/demo/fonts/f385.woff2deleted file mode 100644index f4e5be8..0000000Binary files a/styles/halftone-dossier/demo/fonts/f385.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f386.woff2 b/styles/halftone-dossier/demo/fonts/f386.woff2deleted file mode 100644index ea270e3..0000000Binary files a/styles/halftone-dossier/demo/fonts/f386.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f387.woff2 b/styles/halftone-dossier/demo/fonts/f387.woff2deleted file mode 100644index 3ec7888..0000000Binary files a/styles/halftone-dossier/demo/fonts/f387.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f388.woff2 b/styles/halftone-dossier/demo/fonts/f388.woff2deleted file mode 100644index 5f2505c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f388.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f389.woff2 b/styles/halftone-dossier/demo/fonts/f389.woff2deleted file mode 100644index ec8065d..0000000Binary files a/styles/halftone-dossier/demo/fonts/f389.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f39.woff2 b/styles/halftone-dossier/demo/fonts/f39.woff2deleted file mode 100644index 9ae4eae..0000000Binary files a/styles/halftone-dossier/demo/fonts/f39.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f390.woff2 b/styles/halftone-dossier/demo/fonts/f390.woff2deleted file mode 100644index 2cf6e46..0000000Binary files a/styles/halftone-dossier/demo/fonts/f390.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f391.woff2 b/styles/halftone-dossier/demo/fonts/f391.woff2deleted file mode 100644index 7e62ac5..0000000Binary files a/styles/halftone-dossier/demo/fonts/f391.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f392.woff2 b/styles/halftone-dossier/demo/fonts/f392.woff2deleted file mode 100644index 2b3f407..0000000Binary files a/styles/halftone-dossier/demo/fonts/f392.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f4.woff2 b/styles/halftone-dossier/demo/fonts/f4.woff2deleted file mode 100644index ff1aa50..0000000Binary files a/styles/halftone-dossier/demo/fonts/f4.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f40.woff2 b/styles/halftone-dossier/demo/fonts/f40.woff2deleted file mode 100644index bae75dd..0000000Binary files a/styles/halftone-dossier/demo/fonts/f40.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f41.woff2 b/styles/halftone-dossier/demo/fonts/f41.woff2deleted file mode 100644index 95da259..0000000Binary files a/styles/halftone-dossier/demo/fonts/f41.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f42.woff2 b/styles/halftone-dossier/demo/fonts/f42.woff2deleted file mode 100644index 641d2a7..0000000Binary files a/styles/halftone-dossier/demo/fonts/f42.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f43.woff2 b/styles/halftone-dossier/demo/fonts/f43.woff2deleted file mode 100644index 33bc3fa..0000000Binary files a/styles/halftone-dossier/demo/fonts/f43.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f44.woff2 b/styles/halftone-dossier/demo/fonts/f44.woff2deleted file mode 100644index 9fa6131..0000000Binary files a/styles/halftone-dossier/demo/fonts/f44.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f45.woff2 b/styles/halftone-dossier/demo/fonts/f45.woff2deleted file mode 100644index 72a6731..0000000Binary files a/styles/halftone-dossier/demo/fonts/f45.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f46.woff2 b/styles/halftone-dossier/demo/fonts/f46.woff2deleted file mode 100644index bde61a5..0000000Binary files a/styles/halftone-dossier/demo/fonts/f46.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f47.woff2 b/styles/halftone-dossier/demo/fonts/f47.woff2deleted file mode 100644index 0b6f71b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f47.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f48.woff2 b/styles/halftone-dossier/demo/fonts/f48.woff2deleted file mode 100644index 6c2e2eb..0000000Binary files a/styles/halftone-dossier/demo/fonts/f48.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f49.woff2 b/styles/halftone-dossier/demo/fonts/f49.woff2deleted file mode 100644index 3b9b6b9..0000000Binary files a/styles/halftone-dossier/demo/fonts/f49.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f5.woff2 b/styles/halftone-dossier/demo/fonts/f5.woff2deleted file mode 100644index d974610..0000000Binary files a/styles/halftone-dossier/demo/fonts/f5.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f50.woff2 b/styles/halftone-dossier/demo/fonts/f50.woff2deleted file mode 100644index 707e716..0000000Binary files a/styles/halftone-dossier/demo/fonts/f50.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f51.woff2 b/styles/halftone-dossier/demo/fonts/f51.woff2deleted file mode 100644index da841c3..0000000Binary files a/styles/halftone-dossier/demo/fonts/f51.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f52.woff2 b/styles/halftone-dossier/demo/fonts/f52.woff2deleted file mode 100644index 82eff8c..0000000Binary files a/styles/halftone-dossier/demo/fonts/f52.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f53.woff2 b/styles/halftone-dossier/demo/fonts/f53.woff2deleted file mode 100644index d0663b0..0000000Binary files a/styles/halftone-dossier/demo/fonts/f53.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f54.woff2 b/styles/halftone-dossier/demo/fonts/f54.woff2deleted file mode 100644index 90078ea..0000000Binary files a/styles/halftone-dossier/demo/fonts/f54.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f55.woff2 b/styles/halftone-dossier/demo/fonts/f55.woff2deleted file mode 100644index 92ec03e..0000000Binary files a/styles/halftone-dossier/demo/fonts/f55.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f56.woff2 b/styles/halftone-dossier/demo/fonts/f56.woff2deleted file mode 100644index ddf18e9..0000000Binary files a/styles/halftone-dossier/demo/fonts/f56.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f57.woff2 b/styles/halftone-dossier/demo/fonts/f57.woff2deleted file mode 100644index 7d835a3..0000000Binary files a/styles/halftone-dossier/demo/fonts/f57.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f58.woff2 b/styles/halftone-dossier/demo/fonts/f58.woff2deleted file mode 100644index 3859cb3..0000000Binary files a/styles/halftone-dossier/demo/fonts/f58.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f59.woff2 b/styles/halftone-dossier/demo/fonts/f59.woff2deleted file mode 100644index bf5aad7..0000000Binary files a/styles/halftone-dossier/demo/fonts/f59.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f6.woff2 b/styles/halftone-dossier/demo/fonts/f6.woff2deleted file mode 100644index 7886877..0000000Binary files a/styles/halftone-dossier/demo/fonts/f6.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f60.woff2 b/styles/halftone-dossier/demo/fonts/f60.woff2deleted file mode 100644index 8f8a920..0000000Binary files a/styles/halftone-dossier/demo/fonts/f60.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f61.woff2 b/styles/halftone-dossier/demo/fonts/f61.woff2deleted file mode 100644index 8c071ec..0000000Binary files a/styles/halftone-dossier/demo/fonts/f61.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f62.woff2 b/styles/halftone-dossier/demo/fonts/f62.woff2deleted file mode 100644index 25c0ed2..0000000Binary files a/styles/halftone-dossier/demo/fonts/f62.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f63.woff2 b/styles/halftone-dossier/demo/fonts/f63.woff2deleted file mode 100644index 6f3b56d..0000000Binary files a/styles/halftone-dossier/demo/fonts/f63.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f64.woff2 b/styles/halftone-dossier/demo/fonts/f64.woff2deleted file mode 100644index e8dbc90..0000000Binary files a/styles/halftone-dossier/demo/fonts/f64.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f65.woff2 b/styles/halftone-dossier/demo/fonts/f65.woff2deleted file mode 100644index cc3b911..0000000Binary files a/styles/halftone-dossier/demo/fonts/f65.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f66.woff2 b/styles/halftone-dossier/demo/fonts/f66.woff2deleted file mode 100644index 30abe46..0000000Binary files a/styles/halftone-dossier/demo/fonts/f66.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f67.woff2 b/styles/halftone-dossier/demo/fonts/f67.woff2deleted file mode 100644index 8c59296..0000000Binary files a/styles/halftone-dossier/demo/fonts/f67.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f68.woff2 b/styles/halftone-dossier/demo/fonts/f68.woff2deleted file mode 100644index e06adf1..0000000Binary files a/styles/halftone-dossier/demo/fonts/f68.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f69.woff2 b/styles/halftone-dossier/demo/fonts/f69.woff2deleted file mode 100644index e0dbefe..0000000Binary files a/styles/halftone-dossier/demo/fonts/f69.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f7.woff2 b/styles/halftone-dossier/demo/fonts/f7.woff2deleted file mode 100644index ce55521..0000000Binary files a/styles/halftone-dossier/demo/fonts/f7.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f70.woff2 b/styles/halftone-dossier/demo/fonts/f70.woff2deleted file mode 100644index 7afc951..0000000Binary files a/styles/halftone-dossier/demo/fonts/f70.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f71.woff2 b/styles/halftone-dossier/demo/fonts/f71.woff2deleted file mode 100644index b6039a2..0000000Binary files a/styles/halftone-dossier/demo/fonts/f71.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f72.woff2 b/styles/halftone-dossier/demo/fonts/f72.woff2deleted file mode 100644index 2fa4768..0000000Binary files a/styles/halftone-dossier/demo/fonts/f72.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f73.woff2 b/styles/halftone-dossier/demo/fonts/f73.woff2deleted file mode 100644index bde604b..0000000Binary files a/styles/halftone-dossier/demo/fonts/f73.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f74.woff2 b/styles/halftone-dossier/demo/fonts/f74.woff2deleted file mode 100644index 39d8c61..0000000Binary files a/styles/halftone-dossier/demo/fonts/f74.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f75.woff2 b/styles/halftone-dossier/demo/fonts/f75.woff2deleted file mode 100644index 6905742..0000000Binary files a/styles/halftone-dossier/demo/fonts/f75.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f76.woff2 b/styles/halftone-dossier/demo/fonts/f76.woff2deleted file mode 100644index d1ca101..0000000Binary files a/styles/halftone-dossier/demo/fonts/f76.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f77.woff2 b/styles/halftone-dossier/demo/fonts/f77.woff2deleted file mode 100644index 8d9f386..0000000Binary files a/styles/halftone-dossier/demo/fonts/f77.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f78.woff2 b/styles/halftone-dossier/demo/fonts/f78.woff2deleted file mode 100644index ebf94f8..0000000Binary files a/styles/halftone-dossier/demo/fonts/f78.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f79.woff2 b/styles/halftone-dossier/demo/fonts/f79.woff2deleted file mode 100644index ce08d15..0000000Binary files a/styles/halftone-dossier/demo/fonts/f79.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f8.woff2 b/styles/halftone-dossier/demo/fonts/f8.woff2deleted file mode 100644index 68ab53a..0000000Binary files a/styles/halftone-dossier/demo/fonts/f8.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f80.woff2 b/styles/halftone-dossier/demo/fonts/f80.woff2deleted file mode 100644index c1a10a2..0000000Binary files a/styles/halftone-dossier/demo/fonts/f80.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f81.woff2 b/styles/halftone-dossier/demo/fonts/f81.woff2deleted file mode 100644index 697f8b6..0000000Binary files a/styles/halftone-dossier/demo/fonts/f81.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f82.woff2 b/styles/halftone-dossier/demo/fonts/f82.woff2deleted file mode 100644index d46aa28..0000000Binary files a/styles/halftone-dossier/demo/fonts/f82.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f83.woff2 b/styles/halftone-dossier/demo/fonts/f83.woff2deleted file mode 100644index 17a0d12..0000000Binary files a/styles/halftone-dossier/demo/fonts/f83.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f84.woff2 b/styles/halftone-dossier/demo/fonts/f84.woff2deleted file mode 100644index 1e39d51..0000000Binary files a/styles/halftone-dossier/demo/fonts/f84.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f85.woff2 b/styles/halftone-dossier/demo/fonts/f85.woff2deleted file mode 100644index 9dc232e..0000000Binary files a/styles/halftone-dossier/demo/fonts/f85.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f86.woff2 b/styles/halftone-dossier/demo/fonts/f86.woff2deleted file mode 100644index 03ec362..0000000Binary files a/styles/halftone-dossier/demo/fonts/f86.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f87.woff2 b/styles/halftone-dossier/demo/fonts/f87.woff2deleted file mode 100644index 6b41913..0000000Binary files a/styles/halftone-dossier/demo/fonts/f87.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f88.woff2 b/styles/halftone-dossier/demo/fonts/f88.woff2deleted file mode 100644index 2795b41..0000000Binary files a/styles/halftone-dossier/demo/fonts/f88.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f89.woff2 b/styles/halftone-dossier/demo/fonts/f89.woff2deleted file mode 100644index 46f53b9..0000000Binary files a/styles/halftone-dossier/demo/fonts/f89.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f9.woff2 b/styles/halftone-dossier/demo/fonts/f9.woff2deleted file mode 100644index bbec631..0000000Binary files a/styles/halftone-dossier/demo/fonts/f9.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f90.woff2 b/styles/halftone-dossier/demo/fonts/f90.woff2deleted file mode 100644index e0fb0a1..0000000Binary files a/styles/halftone-dossier/demo/fonts/f90.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f91.woff2 b/styles/halftone-dossier/demo/fonts/f91.woff2deleted file mode 100644index 9135a4d..0000000Binary files a/styles/halftone-dossier/demo/fonts/f91.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f92.woff2 b/styles/halftone-dossier/demo/fonts/f92.woff2deleted file mode 100644index 647dea6..0000000Binary files a/styles/halftone-dossier/demo/fonts/f92.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f93.woff2 b/styles/halftone-dossier/demo/fonts/f93.woff2deleted file mode 100644index 64cd782..0000000Binary files a/styles/halftone-dossier/demo/fonts/f93.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f94.woff2 b/styles/halftone-dossier/demo/fonts/f94.woff2deleted file mode 100644index d1600f2..0000000Binary files a/styles/halftone-dossier/demo/fonts/f94.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f95.woff2 b/styles/halftone-dossier/demo/fonts/f95.woff2deleted file mode 100644index 3a66685..0000000Binary files a/styles/halftone-dossier/demo/fonts/f95.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f96.woff2 b/styles/halftone-dossier/demo/fonts/f96.woff2deleted file mode 100644index 3c47263..0000000Binary files a/styles/halftone-dossier/demo/fonts/f96.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f97.woff2 b/styles/halftone-dossier/demo/fonts/f97.woff2deleted file mode 100644index 0e39294..0000000Binary files a/styles/halftone-dossier/demo/fonts/f97.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f98.woff2 b/styles/halftone-dossier/demo/fonts/f98.woff2deleted file mode 100644index 8ef2313..0000000Binary files a/styles/halftone-dossier/demo/fonts/f98.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/demo/fonts/f99.woff2 b/styles/halftone-dossier/demo/fonts/f99.woff2deleted file mode 100644index 9bca42d..0000000Binary files a/styles/halftone-dossier/demo/fonts/f99.woff2 and /dev/null differdiff --git a/styles/halftone-dossier/style.json b/styles/halftone-dossier/style.jsonnew file mode 100644index 0000000..fe3b6a4--- /dev/null+++ b/styles/halftone-dossier/style.json@@ -0,0 +1,18 @@+{+ "slug": "halftone-dossier",+ "num": "13",+ "en": "Halftone Dossier",+ "cn": "复古半调案卷",+ "category_en": "Print & Printmaking",+ "category_cn": "印刷与版画",+ "film": "Case File: Chubby",+ "line": "A chubby orange cat stands trial for testing gravity and 4 a.m. parkour, and walks free.",+ "line_cn": "橘猫胖橘被立案审查:测试重力、凌晨跑酷,最后无罪释放。",+ "uses": [+ "Humour",+ "Pet content",+ "Social shorts"+ ],+ "frame_sec": 9.0,+ "dur": 30.0+}diff --git a/styles/hd-2d/DEMO.md b/styles/hd-2d/DEMO.mdnew file mode 100644index 0000000..f8e35be--- /dev/null+++ b/styles/hd-2d/DEMO.md@@ -0,0 +1,228 @@+# HD-2D — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *The Lampbearer* (76.5 s, 1920×1080, 60 fps) · `hd-2d.mp4` (the **tilt-shift cut**) · source in [`demo/`](demo/) (local only) · engine: three.js r170 scenes + procedural pixel textures + custom physical DOF / tilt-shift post (`demo/post_ts.js`) + Canvas2D overlay UI, rendered frame-by-frame with `core/render/video.mjs`.+++## Story & structure++A harbour town's lighthouse goes out; the old keeper hands the last flame to his granddaughter Wren, who carries her lantern through a night forest and up a storm-beaten cliff stair to relight the lighthouse, so the ships at sea can find their way home. Tagline: *Every path begins with a single light.*++How the demo spent the style's native powers:++| Native power | Story use |+|---|---|+| **A light the hero carries** | The lantern is both key light and plot: Wren carries one small light that must reach the lighthouse. Its brightness is the emotional meter: bright → guttering → almost out → relit. |+| **Tabletop world** | Places read as *maps*: a harbour town, a forest path, a cliff stair, a tower top. One location per chapter, each with its own light key. The opening set returns at the end to show the change (harbour: lighthouse dark → lit, ships' lamps appear). |+| **RPG grammar** | "Chapter I" card, a named NPC who hands over the quest in a dialogue box, a journey through two biomes, a climax at a landmark, a title card. |+| **Sprite shadows** | The first lighting (brazier taper → lantern) happens on screen, next to two characters, so both shadows jump onto the planks. |+| **Tilt-shift** | Extra-wide establishing shots with the focus band on a single tiny subject (the lighthouse, a boat). |++**Our story shape:** cold chapter card → wide establishing shot where the landmark light **fails** → quest handed over in a dialogue box (the light is passed) → travel through a darker biome (forest) → the ordeal (storm; the light almost dies; the music drops out) → the light survives → the landmark is relit (climax on a music downbeat) → the opening set, transformed → title and tagline.++We kept it to 6 shots, one set per 1–2 shots, 7 narrated lines + 1 dialogue line. The "one small light" was a lantern; in another film it could be a first commit, a seed, a letter, a signal — or no carried light at all.++## Shots++| Shot | Camera |+|---|---|+| Establishing (harbour wide, 5.5–15) | Very high and far (`[-17,15,38] → [-13,12,31]`, fov 36), slow push. Focus 44 m, aperture 520; tilt band fixed at 34 % screen height (no character to track). |+| Dialogue (pier, 15–25.5) | Medium-high 3/4 (≈5 m up, 8–10 m away, fov 30), almost static drift. Focus on the hero every frame, aperture 300. |+| Travel (forest, 25.5–35.5) | **Lateral tracking**, camera leads the walker slightly (`monotone` look-ahead), fov 30, 6.3 m up; near ferns in front of the lens blur into dark shapes; she walks behind a foreground trunk at the end. Aperture 380. |+| Ordeal (storm stairs, 35.5–49.5) | Starts as a huge establishing view of the cliff, eases into a follow cam (37–39 s), then **dives low and close** as she kneels (camera to ~2.2 m up, 6 m away), and pulls back as she climbs on. Aperture 140–170 (closer = less blur). |+| Climax (lamp room, 49.5–58) | Medium on the hero at the lens; after ignition, a rising pull-back to a wide of the tower (fov 30 → 40, aperture 150 → 320), focus switches from hero to lens. |+| Resolution (harbour end + title, 58–76.5) | Mirror of the opening but wider and higher (`[-22,26,44] → [-27,33,55]`, fov 42), focus 70, aperture 380, tilt band at 36 %. |++Rules: always look *down* on the world (never eye level); every camera path is a `track()` of 2–7 keys (monotone cubic, no overshoot); focus distance is recomputed each frame from camera to the hero (`post.dof.focus = cam.position.distanceTo(hero + (0,.7,0))`); in the tilt cut the sharp band follows the hero's projected screen height (`tiltCenter`, clamped .2–.8).++## Score structure++- **Voices (Kokoro via `core/tts/tts.py`)**: narrator `af_heart`, speed .82–.90 (slow, storybook); the quest-giver `bm_george`, speed .84, low-passed at 7 kHz in the mix so he sits "in the world". 7 narrated lines + 1 dialogue line, each 1–5.4 s. Check with `core/tts/asr_check.py`; put invented names in the `asr` field (`Graywater`, `Ren`, `whisper would`), otherwise whisper flags them.+- **Music**: one licensed track, edited to picture: Scott Buckley, *Precipice* (CC BY 4.0), cut by `music/edit.py` into five sections (intro pad → **0.8 s breath when the lighthouse dies** → continuous build through forest and storm → **hard stop into a reverb tail at 42.0 when the flame nearly dies**, only the intro pad under it → the composer's own build → **its D→G♭ key-change downbeat placed at 53.500 s = ignition**, located automatically by the steepest < 250 Hz onset (error < 5 ms) → jump to the final E♭ arrival for the title). All cut points are in `music/CUES.md`. Pick one piece whose own arc matches the story; cut inside it rather than stitching tracks.+- **Ambience & foley (`mix.py`, synthesized with `core/audio/sfx.py`)**: per-set beds with crossfaded gain curves (harbour waves + rope creaks, brazier crackle, forest crickets + leaves, storm rain + wind with a gust swell), and events: lamp-out "fwoomp" 12.3, match strike 16.15, UI chime on the dialogue box 17.3, footsteps from `sfx_events.json` (wood / dirt / stone), thunder 0.25 s after each flash, wind whoosh at the gust, two heartbeats in the silence, the ignition boom (42 Hz drop + air + high shimmer) at 53.5, six small bells as the ships light up.+- **Mix**: each voice line compressed and RMS-matched; buses levelled to voice −17, music −21, ambience −30, foley −27 dB RMS; music ducks ~2.2 dB under voice, then a **per-line auto-duck** pulls music + ambience to ≈10 dB under each line (only down, never up; the script prints the achieved gap per line, 7–14 dB in the demo); `tanh` soft-clip; final loudness by `core/render/mux.sh` (two-pass loudnorm −14 LUFS, TP −1.2).++## Palette & props++The demo is a night film: cold blue against warm amber fire, strong bloom, heavy vignette.++**Resolution & pixels.** Scene textures are drawn per pixel on small canvases (`PX` class, `px.js`) and uploaded with `NearestFilter`; world-space UVs (`worldUV`, `kit.js`) keep **24 px/m** on every surface. Characters are 34×50 px frames at `SPX = 1/30` m per pixel (≈1.67 m tall). Colour comes from **ramps** (3–6 swatches) chosen by brightness with a 4×4 Bayer dither; the dither band `dz` must be narrow: **.22 for characters, .45 for textures** (wider = checkerboard noise everywhere). Sprites get an automatic 1 px **selout** outline (`PX.outline(.3)`: transparent pixels next to the sprite become the neighbour colour darkened toward `#16 0e 1e`).++**Palette (night).** Sky `#050818 → #101d3e → #2c4262` (horizon), fog `#16223a` (harbour) / `#152a48` (forest) / `#1c2334` (storm), moon light `#8fa8e0`, hemisphere `#3a4c7a / #0a0a12`. Fire and windows `#ff9d4a`, `#ffae55`, `#ff8c3a`, lantern `#ffb050`, lighthouse `#fff0c8`. Cool character fill `#9fb2e8`. Hero cloak ramp `#2e0b14 … #c9503f` (crimson), scarf gold `#b08424`; keeper coat navy `#10131f … #5a6c98`, beard greys. Ink `#1a1016`.++**Materials.** Boxes and cylinders only: houses with plaster + timber beams (`plaster`), shingle roofs (`shingles`), planks with nail dots (`woodPlanks`), Worley cobbles (`cobbles`), layered rock (`rock`), bark/canopy/fern/grass/mushroom sprites (`forest_art.js`). Foliage, grass, ferns, mushrooms, distant ships and ridges are **billboards** (instanced where many). Windows are emissive pixel panes (`windowMat`, emissive 2.2). Fire is a 6-frame pixel atlas billboard at 10 fps (`fire`). Sea is a custom shader: quantized pixel ripples, crest bands, light reflection columns stretched toward the camera, sparkle glints.++**Light rig per set.** One dim shadow-casting moon (DirectionalLight 1.1–1.2, 2048 map) + hemisphere fill + **practical point lights** (windows 8, street lamps 12–14, brazier 16 with shadows, lantern 2.6–14 with shadows) + a **cool front fill** (`#9fb2e8`/`#8fa6e0`, 1.2–1.8, range 6–8 m) placed ~2 m in front of the hero. Additive `glow` sprites sit on every light source so bloom has something to grab.++**Post chain** (`post_ts.js`, `makePost(renderer, scene, camera, 1920, 1080, { ssaa: 2 })`): render at 2× (3840×2160 internal) with MSAA → physical DOF (CoC = `aper × (1/focus − 1/z)` px, 96-tap spiral gather, far samples cannot bleed over a sharp foreground) **+ tilt-shift** → UnrealBloom (strength .55, radius .75, threshold .85) → vignette/grade (amt .62, warm .1, contrast .2, sat 1.05) → ACES filmic, exposure 1.15. Tilt-shift cut adds: `tiltAmt 17`, band half-width `tiltW .075`, feather `tiltF .3` (fractions of screen height), `maxCoc ≥ 24`, saturation ×1.16, contrast .28.++**Type.** Cinzel 500/700 (chapter label, title), Cormorant Garamond italic 500 (subtitles, tagline), Cormorant 500/600 (dialogue text, name plate). Gold `#d8c28e / #e2c989 / #c9a863`, parchment white `#f3ead6 / #f6f0e2`.++Motion as built:++- **Sprites step, everything else glides.** Walk cycles use 4 frames at 6–10 fps (`['w0','w1','w2','w3'][Math.floor(t*9)%4]`), idles alternate two frames at ~1.4 Hz, blinks every few seconds, poses swap instantly (`upE → up → idle`). Camera, lights, particles, beams and focus update every frame at 60 fps.+- **Poses are data**: a frame is a parameter object (`{ step, arm:'low'|'fwd'|'up'|'hug'|'pour', kneel, lit, bob, hem, scarf, blink, closed, look }`) drawn by `drawWren` / `drawKeeper`. Add a pose by adding a table entry (or pass `extra` to `makeChar`).+- **The light breathes**: `flick(t, seed)` (three summed sines, ±20 %) on every flame; the lantern's `lit` value (0–1) redraws the flame size in the sprite *and* drives the point light (`intensity ∝ lit^1.3`), glow opacity and scale.+- **Events are timestamps** in `story.js` `T` (lighthouse flicker 11.5 → out 12.35, taper 16.2, gust 40.6, dim 41.3, dark 42.0, relight 45.6, stand 47.6, pour 52.6, ignite 53.5, beams 54.4, ships 59.2). Scenes blend with `ss(seg(t,a,b))`.+- **Signature beats:** lighthouse flickers twice and dies; brazier taper lights the lantern and both sprites' shadows jump onto the planks; the gust shrinks the flame to an ember (sprite `lit .27`), world goes almost black, then the flame re-grows; the lens ignites with an exposure burst (`exp(-(t-53.5)/.22)`) and two beam cards start sweeping; ships' lamps pop on one every 0.7 s and drift toward the harbour.+- **Weather is procedural**: rain = wind-slanted line segments (`rain`), lightning = a scripted flash curve (`flash(t)`: 150 ms strike, dip, 60 ms re-strike, exp decay) that boosts hemisphere, a "bolt" light, sky, clouds, sea and exposure together.++## End card++- **Narration subtitles**: Cormorant Garamond italic 500, 50 px, `#f6f0e2`, centred at y = H − 88, on a soft horizontal dark band (gradient, max .38 alpha), drop shadow 10 px. Fade in .35 s before the voice, out 0.45–0.8 s after it ends. One line per voice clip.+- **Dialogue box** (for a character who speaks on screen, instead of a subtitle): 1180×210 px, bottom-centred, navy gradient `rgba(14,18,34,.86) → rgba(6,8,18,.9)`, 2 px gold border `rgba(214,190,130,.9)` + inner 1 px line, gold diamond corners; name plate (Cormorant 600 34 px) overlapping the top-left edge; body Cormorant 500 44 px, **typed out over 92 % of the voice duration**; blinking gold ▼ caret when done; slides up 14 px on entry. A soft chime marks it.+- **Chapter card** (0–5.5 s): radial navy background `#11172a → #020308`, `CHAPTER I` (Cinzel 500 34 px, 10 px tracking, `#d8c28e`) over a gold ornament line with diamond, then the chapter name in Cormorant italic 78 px with a warm glow; one pixel ember drifts across.+- **Title** (67.4–76.4 s): screen dimmed 50 %, `THE LAMPBEARER` in Cinzel 700 118 px, 14 px tracking, vertical gold gradient `#fff3cf → #e2c27c → #a8803e` with glow; ornament; tagline in Cormorant italic 50 px; music/voice credit at the bottom (24 px, 75 % alpha).+- **End credit line (library rule)**: every film ends with **"LemoLab × Claude Opus 5.5"**. In the demo it is part of the title card (`ui.js` `title()`, on by default): Cinzel 500 30 px, `#d8c28e` at 85 % alpha, 4 px tracking, centred at y = 668, fading in 70.6–71.6 s, between the tagline and the music credit, which it does not replace. `?nocredit=1` hides it (reproduces the pre-sign-off `hd-2d_v1.mp4`). Draw it the same way in a new film.+- **End credit line (this library's demo only)**: our demo ends with **"LemoLab × Claude Opus 5.5"**. It is part of the title card (`ui.js` `title()`, on by default): Cinzel 500 30 px, `#d8c28e` at 85 % alpha, 4 px tracking, centred at y = 668, fading in 70.6–71.6 s, between the tagline and the music credit, which it does not replace. `?nocredit=1` hides it (reproduces the pre-sign-off `hd-2d_v1.mp4`). This sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card — when you adapt `ui.js`, delete the credit line.+- Export the `.srt` from the same data (`tools/srt.py`: story.js `VO` + `voices/dur.json`, +0.5 s hold, dialogue prefixed `OLD KEEPER:`).+++## Build notes++```+styles/hd-2d/demo/+ index.html main.js page, renderer (ACES, PCF soft shadows), shot → set routing, tilt-shift driver (?tilt=1)+ story.js DUR, SHOTS, event times T, VO lines (single source of truth)+ px.js PX pixel canvas, ramps + Bayer, surface textures, billboard / glow / blob+ kit.js worldUV, mat/mesh/box, cached materials, house, crate, barrel, pixel fire, windows, ridges+ fx.js sky, stars, pixel sea shader, particles, rain, shaft, beamCard, flick+ chars.js procedural pixel characters (Wren, Old Keeper), pose tables, atlas, makeChar+ harbor.js forest.js(+forest_art.js) cliff.js the three sets; each exports build*() → { scene, update }+ ui.js Canvas2D overlay: chapter card, dialogue box, subtitles, title, fades, credits+ post_ts.js makePost: DOF + tilt-shift + bloom + grade (local copy of core/three/post.js)+ lines.json vo_times.json sfx_events.json TTS lines, voice start times, foley timestamps+ music/edit.py src/ score edit of "Precipice" → music/score.wav, CUES.md, measure.json+ mix.py ambience + foley + voices + ducking → mix.wav+ tools/srt.py tools/render_range.mjs tools/sheet/index.html srt export, partial re-render, sprite sheet page+```++All commands from the repo root. `.venv` is the shared Python env (kokoro-onnx, faster-whisper, librosa).++```sh+PY=.venv/bin/python; D=styles/hd-2d/demo++# 0. fresh clone: voices/*.wav, music/score.wav and mix.wav are git-ignored (rebuilt below); if music/src/ is empty, fetch the source+curl -L -o $D/music/src/sb_precipice.mp3 https://www.scottbuckley.com.au/library/wp-content/uploads/2021/01/sb_precipice.mp3++# 1. voices (Kokoro) + whisper check → voices/*.wav, dur.json, words.json+$PY core/tts/tts.py $D/lines.json $D/voices+$PY core/tts/asr_check.py $D/lines.json $D/voices # demo: 1 expected DIFF (n1 "Graywater" → "gray water")++# 2. score edit → music/score.wav (+ CUES.md, measure.json); set OUT_DIR=... to write elsewhere+(cd $D/music && ../../../../.venv/bin/python edit.py)++# 3. mix → demo/mix.wav (optional arg: another output path)+$PY $D/mix.py++# 4. subtitles → styles/hd-2d/hd-2d.srt+$PY $D/tools/srt.py++# 5. review stills of the tilt-shift cut (≈0.1–0.2 s per frame)+node core/render/still.mjs $D 8 16.9 30.5 42.8 53.8 62 71 --q tilt=1 --out $D/out/review++# 6. render the TILT-SHIFT CUT (the version in the library): 4590 frames at 60 fps+# measured 26–37 fps with 2 workers (≈2.5 min); the shipped file used 6 workers+node core/render/video.mjs $D --fps 60 --workers 2 --q tilt=1 --out $D/out/video_tilt.mp4++# 7. mux: loudnorm −14 LUFS, grain 0 (pixel art: no film grain)+sh core/render/mux.sh $D/out/video_tilt.mp4 $D/mix.wav styles/hd-2d/hd-2d.mp4 60 0+```++`?tilt=1` is what makes the tilt-shift cut: it is a **render-time post effect** inside `post_ts.js` (not a second pass over a finished video). Without it you get the plain DOF version. Other page switches: `ss=1` (no supersampling, faster previews), `only=harbor|forest|cliff` (build one set), `nobloom`, `nodof`, `noglow`, `nocredit=1` (hide the end credit line).++**Partial re-render** (e.g. after changing the title card; this is how the end credit was added to the shipped film): render only the tail and splice it onto the existing `out/video_tilt.mp4` (frames 0–4019 are untouched by title-card changes), then mux again. Back up the current film first (`hd-2d_v1.mp4`). Audio is untouched (same `mix.wav` → bit-identical decoded audio).+```sh+node $D/tools/render_range.mjs 67 76.5 --workers 2 --q tilt=1 --out $D/out/tail.mp4 # 570 frames ≈ 15 s+ffmpeg -y -i $D/out/video_tilt.mp4 -i $D/out/tail.mp4 -filter_complex \+ "[0:v]trim=end_frame=4020,setpts=PTS-STARTPTS[a];[1:v]setpts=PTS-STARTPTS[b];[a][b]concat=n=2:v=1:a=0[v]" \+ -map "[v]" -c:v libx264 -preset medium -crf 14 -pix_fmt yuv420p $D/out/video_tilt_new.mp4 # 25–150 s (CPU-bound, slower when other renders run)+sh core/render/mux.sh $D/out/video_tilt_new.mp4 $D/mix.wav styles/hd-2d/hd-2d.mp4 60 0 # 35–245 s, same caveat+```++When you change the story: edit `story.js` first, then copy the voice start times into `vo_times.json` (mix.py reads that file, not story.js), keep `sfx_events.json` footsteps in step with the sets' walk frames, and move the cue constants at the top of `music/edit.py` (`T_CAESURA`, `T_SILENCE`, `T_HIT`, `NARRATION`).++Pitfalls as we hit them, with the demo's props and numbers:++- **Checkerboard everywhere**: a wide dither band on ramps. Keep `dz` ≈ .22 on sprites, ≈ .45 on textures.+- **The lantern blows out the sprite**: a point light sitting on the billboard plane saturates it. Put the light **0.42–0.45 m from the lantern toward the camera** (`lp + toCam * .45`), and in the forest cap sprite lighting in the shader (`outgoingLight = min(outgoingLight, diffuseColor.rgb * 1.35 + emissive)` via `onBeforeCompile`).+- **Lights behind a billboard don't light it** (it only has a front normal). Always add a cool front fill light ~2 m in front of the hero.+- **Cylinder light beams facing the camera produced NaN**; bloom spread them into large black blocks. Use `beamCard` (an axis-aligned billboard strip that fades as it turns toward the camera) and let the glow sprite take over (`face` factor enlarges the lighthouse glow).+- **Sea reflection column division by zero**: clamp the width with `max(.35, …)`.+- **Storm too dark to read** in the first pass. Add a "readability" fill outside the story-dark beat: hemisphere +1.0, sun +1.3, sky +.35 (the `ext` term in `cliff.js`), i.e. roughly ×2–2.5 on environment mid-tones, and let it drop to nothing only during the flame-almost-out beat.+- **Distant ship glows hidden by fog/geometry**: `depthTest = false` + `renderOrder 5` on those glow sprites.+- **Tilt-shift on shots with no character**: the tracker has nothing to follow; use fixed band heights per shot (`TILT_C`).+- **Tilt-shift and occlusion**: the tilt blur is folded into the same signed CoC as depth DOF (above the band = far, below = near) so the gather keeps the "far can't bleed over sharp near" rule; don't add it as a separate blur pass.+- **Near-identical frames diverge around a flash**: the ignition burst decays with a 0.22 s time constant, so a still at 53.8 s differs visibly from the neighbouring 60 fps frame. That is expected, not a bug.+- **Node render scripts may not exit** after `done` because the static server keeps connections alive (`demo/tools/render_range.mjs` ends with `process.exit(0)` for that reason). The output file is complete once `done` is printed.++## Engine reference++### Page contract (`main.js`)+`window.render(t)` picks the shot (`shotAt(t)`), maps it to a set (`SET_OF`), points the DOF pass at that set's scene, resets post defaults (bloom .55/.85, exposure 1.15, warm .1, sat 1.05, vignette .62), calls `set.update(t, shot, camera, post, renderer)`, applies tilt-shift if `?tilt`, renders the composer, then draws the overlay (`drawOverlay(t, shot)`). One `PerspectiveCamera(32, 16/9, .3, 2000)` is shared by all sets; each set sets fov/position/lookAt every frame.++### Modules and key functions+| Module | Function | What / key params |+|---|---|---|+| `px.js` | `new PX(w,h)` | `.set/.get/.rect/.fill(f)/.ellipse/.poly/.line/.outline(k,tint)/.done()` → canvas |+| | `ramp(cols, dz=.45)` | `(v,x,y) → rgb` with Bayer dither; `dz` = dither band width |+| | `texOf(canvas, {repeat, mip, linear})` | NearestFilter texture |+| | `woodPlanks / cobbles / rock / plaster / shingles / ground(w,h,o)` | procedural surface canvases (`seed`, `cols`, `pw`, `len`, `cell`, `beams`, `snow`) |+| | `billboard(tex, wM, hM, {ax, ay, em, emCol, emI, shadow, receive})` | upright lit sprite plane (Lambert + alphaTest .5) with custom depth/distance materials so it casts cut-out shadows |+| | `glow(col, size, i)` · `blob(r, a)` · `radialTex` | additive halo sprite · ground contact shadow |+| `kit.js` | `worldUV(geo, tile)` · `mat(canvas, o)` · `mesh(geo, m)` · `box(w,h,d,m)` | planar UVs by normal so texel density is constant (`tile = canvas.width / 24` m) |+| | `mats()` | cached `plank, plankDark, beam, wall, wall2, wall3, roof, roof2, roof3` |+| | `house({x,z,w,d,h,wall,roof,door,windows,upper,side,chimney,ry})` | timber house with emissive windows (`g.userData.windows`) |+| | `crate(s)` · `barrel(r,h)` · `fire(size,{seed,i})` · `windowQuad` · `ridge(wM,hM,col,seed)` | props; `fire.userData.update(t, cam, scale)` |+| `fx.js` | `sky({top,mid,hor,moonDir,moonCol})` → `{mesh,u}` | gradient dome + moon halo; `u.k` = brightness |+| | `stars(n, seed)` · `sea(size,{ppm,deep,shallow,crest})` → `{mesh,u,setLights([{p,c,i}])}` | per frame set `u.t`, `u.camPos`, fog uniforms, `u.bright`, `u.calm` |+| | `particles(n, fn(i,t,o), {soft, blend})` | deterministic CPU particles; `fn` fills `o.x,y,z,a,s,r,g,b`; call `.userData.update(t)` |+| | `rain(n, box, {speed,len,opacity})` · `.userData.update(t, [windX,0])` | slanted streaks |+| | `beamCard(len, w0, w1, col, {k, fall})` · `.userData.aim(origin, dir, cam)` → side factor | light beam that never shows its edge |+| | `flick(t, seed)` | flame flicker multiplier ≈ 1 ± .2 |+| `chars.js` | `makeChar('wren'|'keeper', extraPoses)` → `{root, mesh, frame(name), face(cam, flip), lanternPos(name, flip)}` | 34×50 px atlas + emissive atlas (lantern glass); `root.userData.char` is what the tilt tracker looks for |+| `post_ts.js` | `makePost(renderer, scene, cam, w, h, {ssaa, ao})` → `{composer, dof, bloom, vig}` | `dof.focus` (m), `dof.aper` (px·m), `dof.maxCoc` (px), `dof.tiltAmt/tiltC/tiltW/tiltF`; `vig.uniforms.amt/warm/sat/contrast/fade` |+| `ui.js` | `drawOverlay(t, shot)` · `overlayReady()` | reads `story.js` `VO` and `voices/dur.json` |+| `/core/lib.js` | `track(keys)` · `monotone` · `seg` · `ss` · `eio` · `eo` · `lerp` · `clamp` | camera paths and easing |++### Minimal new set+```js+// myset.js — a lantern-lit alley; register in main.js: sets.alley = buildAlley(); SET_OF.alley = 'alley'; add { id:'alley', a, b } to story.js SHOTS+import * as THREE from 'three';+import { cobbles, glow } from './px.js';+import { mat, mesh, house } from './kit.js';+import { sky, particles, flick } from './fx.js';+import { makeChar } from './chars.js';+import { track, seg, ss } from '/core/lib.js';++export function buildAlley() {+ const scene = new THREE.Scene(); scene.fog = new THREE.FogExp2('#16223a', .03);+ const SK = sky(); scene.add(SK.mesh);+ const moon = new THREE.DirectionalLight('#8fa8e0', 1.1); moon.position.set(-20, 30, -20); moon.castShadow = true; moon.shadow.mapSize.set(2048, 2048);+ scene.add(moon, new THREE.HemisphereLight('#3a4c7a', '#0a0a12', .9));+ scene.add(mesh(new THREE.BoxGeometry(30, .4, 12).translate(0, -.2, 0), mat(cobbles(96, 96))));+ scene.add(house({ x: -4, z: -5, w: 6, d: 5, h: 4.5, door: 1.2 }), house({ x: 4, z: -5, w: 5, d: 5, h: 5, wall: 'wall3', roof: 'roof2' }));+ const hero = makeChar('wren'); scene.add(hero.root);+ const lamp = new THREE.PointLight('#ffb050', 3, 10, 2); lamp.castShadow = true; lamp.shadow.bias = -.004; scene.add(lamp);+ const halo = glow('#ffc070', 1.1, 1.2); scene.add(halo);+ const fill = new THREE.PointLight('#9fb2e8', 1.5, 7, 2); scene.add(fill); // cool front fill: never skip+ const dust = particles(80, (i, t, o) => { o.x = (i * 7.3 % 20) - 10 + t * .1; o.y = (i * 3.1 % 4); o.z = (i * 5.7 % 6) - 3; o.a = .3; o.s = .05; o.r = .7; o.g = .8; o.b = 1; }, { soft: 1 });+ scene.add(dust);+ const camP = track([[0, [-2, 5.5, 10]], [8, [2, 5, 9]]]), camL = track([[0, [-1, .8, 0]], [8, [2, .8, 0]]]);++ function update(t, shot, cam, post) {+ const lt = t - shot.a;+ cam.position.set(...camP(lt)); cam.fov = 30; cam.updateProjectionMatrix(); cam.lookAt(...camL(lt));+ const x = -3 + ss(seg(lt, .5, 7.5)) * 6, walking = lt > .5 && lt < 7.5;+ hero.root.position.set(x, 0, 0); hero.frame(walking ? ['w0', 'w1', 'w2', 'w3'][Math.floor(t * 9) % 4] : 'idle0'); hero.face(cam);+ const lp = hero.lanternPos('w0'), toCam = cam.position.clone().sub(lp).setY(0).normalize();+ lamp.position.copy(lp).addScaledVector(toCam, .45); lamp.intensity = 2.6 * flick(t, 3); halo.position.copy(lp); // light 0.45 m toward the lens+ fill.position.set(x + .4, 1.6, 2.2);+ dust.userData.update(t);+ post.dof.focus = cam.position.distanceTo(hero.root.position.clone().setY(.7)); post.dof.aper = 350; post.dof.maxCoc = 22;+ }+ return { scene, update };+}+```+Then check it with `node core/render/still.mjs styles/hd-2d/demo <t> --q 'tilt=1&only=alley'` (add `alley` to the `ONLY` switch in `main.js`).diff --git a/styles/hd-2d/STYLE.md b/styles/hd-2d/STYLE.mdindex 86a15fa..db6e3f8 100644--- a/styles/hd-2d/STYLE.md+++ b/styles/hd-2d/STYLE.md@@ -1,232 +1,108 @@# HD-2D — Style Prompt-> Hand-made pixel sprites standing like paper cut-outs inside a lit, fogged, fully 3D diorama, shot from a high three-quarter angle through a tilt-shift lens: a toy world at night, where every lamp throws a real shadow.-> Demo: *The Lampbearer* (76.5 s, 1920×1080, 60 fps) · `hd-2d.mp4` (the **tilt-shift cut**) · source in `demo/` · engine: three.js r170 scenes + procedural pixel textures + custom physical DOF / tilt-shift post (`demo/post_ts.js`) + Canvas2D overlay UI, rendered frame-by-frame with `core/render/video.mjs`.-> References (grammar only): *Octopath Traveler* (Square Enix × Acquire, 2018) and its sequel (2023), the games that defined the HD-2D look. Learn the grammar: sprite-in-diorama, high 3/4 camera, tilt-shift focus band, point lights with shadows, heavy bloom and vignette, gold-framed dialogue box. Never use their characters, places, logos, UI ornaments or music.+> Hand-made pixel sprites standing like paper cut-outs inside a lit, fogged, fully 3D diorama, shot from a high three-quarter angle through a tilt-shift lens: a toy world where every lamp throws a real shadow.+> References (grammar only): *Octopath Traveler* (Square Enix × Acquire, 2018) and its sequel (2023), the games that defined the HD-2D look. Learn the grammar: sprite-in-diorama, high 3/4 camera, tilt-shift focus band, point lights with shadows, heavy bloom and vignette, framed dialogue box. Never use their characters, places, logos, UI ornaments or music, and never name them in the film.-You are directing a film in the **HD-2D** style. The user gives you a topic. You decide everything else (story, locations, characters, shots, timing, sound) and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not------## 1. What this style is--A **3D miniature set** built from simple boxes and cylinders, textured with **pixel-art textures** (nearest-neighbour, 24 px per metre, Bayer-dithered colour ramps), and populated by **2D pixel sprites** (34×50 px per frame) that are flat billboards but **receive light and cast shadows** like real objects. The camera sits high and far with a longish lens (fov 30–42°), and a **tilt-shift blur** keeps only a thin horizontal band sharp, so the whole world reads as a tabletop model.--Light is the real subject: lanterns, braziers, windows and lighthouses are point lights that throw the sprites' shadows across planks; moonlight comes down as volumetric shafts; fog, dust, fireflies and rain hang in the air. The grade is **cold blue night against warm amber fire**, with strong bloom and a heavy vignette. On top sits a small, elegant **RPG UI**: chapter card, dialogue box with a name plate and typewriter text, serif subtitles.--What makes it HD-2D rather than "3D with pixel textures": the characters stay **flat, low-res and stepped** (6–10 fps poses) while camera, light, particles and focus move smoothly every frame. Keep that contrast.--## 2. Story: what fits this style+A **3D miniature set** of boxes and cylinders wrapped in **pixel-art textures**, populated by **flat 2D pixel sprites that receive light and cast shadows**, seen from a **high, far camera** through a **tilt-shift band** so the world reads as a tabletop model. **Light is the subject**: practicals throw sprite shadows across the floor; shafts, fog, dust or rain hang in the air; strong bloom, heavy vignette. On top, a small **RPG UI**: chapter card, framed dialogue box with typewriter text, serif subtitles.-| Native power | Story use |-|---|---|-| **A light the hero carries** | The lantern is both key light and plot. Whatever the topic, give the hero one small light (a lamp, a spark, a candle, a screen) that must be carried somewhere. Its brightness is the emotional meter: bright → guttering → almost out → relit. |-| **Tabletop world** | Places read as *maps*: a harbour town, a forest path, a cliff stair, a tower top. One location per chapter, each with its own light key. Reuse the opening set at the end to show the change (the demo's harbour: lighthouse dark → lit, ships' lamps appear). |-| **RPG grammar** | "Chapter I" card, a named NPC who hands over the quest in a dialogue box, a journey through 2–3 biomes, a climax at a landmark, a title card. Audiences decode it instantly. |-| **Sprite shadows** | Shadows stretching when a light is lit is the style's special effect. Put the first lighting on screen, next to two characters. |-| **Tilt-shift** | Makes big moments feel precious and small. Use extra-wide establishing shots with the focus band on a single tiny subject (a lighthouse, a boat). |+The key contrast: characters stay **flat, low-res and stepped** while camera, light, particles and focus move smoothly every frame.-**Story shape (proven in the demo):** cold chapter card → wide establishing shot where the landmark light **fails** → quest handed over in a dialogue box (the light is passed) → travel through a darker biome (forest) → the ordeal (storm; the light almost dies; the music drops out) → the light survives → the landmark is relit (climax on a music downbeat) → the opening set, transformed → title and tagline.+Not a voxel game (no cubic characters), not a flat 2D pixel RPG (the set is real 3D with real light), not a tilt-shift photo of a real miniature (textures are pixels, not materials).-Adapting any topic: find the "one small light" in it (a first commit, a seed, a letter, a signal), the landmark it must reach, and the ordeal between. Keep 6–8 shots, one set per 1–2 shots, 7–8 narrated lines.+## 2. Materials & rendering-## 3. Visual language+- **Constant texel density**: surfaces drawn per pixel on small canvases, `NearestFilter`, world-space UVs at one density (e.g. 24 px/m); sprites on a similar scale (a character ~30–60 px tall).+- **Colour from ramps**: 3–6 swatches picked by brightness through a narrow 4×4 Bayer dither. Sprites get a 1 px *selout* outline (neighbour colour darkened toward the ink).+- **Boxes and cylinders** for buildings, floors, rock; **billboards** (instanced) for foliage, distant props, ridges. Windows are emissive pixel panes; fire is a pixel atlas stepping at ~10 fps; water a shader with quantized ripples and light columns toward the camera.+- **Light rig per set**: one dim shadow-casting key, a hemisphere fill, **practical point lights** with shadows (lamps, fires, windows, screens), and a **front fill** ~2 m before the hero (a billboard lit from behind stays black). An additive glow sprite on every source gives bloom something to grab.+- **Post chain, at render time**: supersampled render → physical DOF with tilt-shift in the same signed circle of confusion (above the band = far, below = near; far never bleeds over a sharp foreground) → bloom → vignette/grade → filmic tone map. No film grain.-**Resolution & pixels.** Scene textures are drawn per pixel on small canvases (`PX` class, `px.js`) and uploaded with `NearestFilter`; world-space UVs (`worldUV`, `kit.js`) keep **24 px/m** on every surface. Characters are 34×50 px frames at `SPX = 1/30` m per pixel (≈1.67 m tall). Colour comes from **ramps** (3–6 swatches) chosen by brightness with a 4×4 Bayer dither; the dither band `dz` must be narrow: **.22 for characters, .45 for textures** (wider = checkerboard noise everywhere). Sprites get an automatic 1 px **selout** outline (`PX.outline(.3)`: transparent pixels next to the sprite become the neighbour colour darkened toward `#16 0e 1e`).+## 3. Colour logic-**Palette (night).** Sky `#050818 → #101d3e → #2c4262` (horizon), fog `#16223a` (harbour) / `#152a48` (forest) / `#1c2334` (storm), moon light `#8fa8e0`, hemisphere `#3a4c7a / #0a0a12`. Fire and windows `#ff9d4a`, `#ffae55`, `#ff8c3a`, lantern `#ffb050`, lighthouse `#fff0c8`. Cool character fill `#9fb2e8`. Hero cloak ramp `#2e0b14 … #c9503f` (crimson), scarf gold `#b08424`; keeper coat navy `#10131f … #5a6c98`, beard greys. Ink `#1a1016`.+- **Two temperatures**: one large ambient key (cold, or pale, or dusty) against small warm or saturated practicals. The practicals carry the story; the ambient carries the mood.+- The darkest value is a warm ink, never pure black; the brightest is the light source itself, bloomed.+- Each set owns one fog colour and one light key, so a cut to a new place reads instantly.+- The hero wears the one saturated costume colour that no set uses, so the tiny sprite is findable in a wide.+- UI is one metal (gold, silver, copper) plus one paper white over a dark translucent plate.+- Examples: night harbour (blue fog, amber windows); autumn market at dusk (violet sky, pink paper lanterns); snowy mine at noon (grey-white daylight, green mineral glow).-**Materials.** Boxes and cylinders only: houses with plaster + timber beams (`plaster`), shingle roofs (`shingles`), planks with nail dots (`woodPlanks`), Worley cobbles (`cobbles`), layered rock (`rock`), bark/canopy/fern/grass/mushroom sprites (`forest_art.js`). Foliage, grass, ferns, mushrooms, distant ships and ridges are **billboards** (instanced where many). Windows are emissive pixel panes (`windowMat`, emissive 2.2). Fire is a 6-frame pixel atlas billboard at 10 fps (`fire`). Sea is a custom shader: quantized pixel ripples, crest bands, light reflection columns stretched toward the camera, sparkle glints.+## 4. Type & subtitles-**Light rig per set.** One dim shadow-casting moon (DirectionalLight 1.1–1.2, 2048 map) + hemisphere fill + **practical point lights** (windows 8, street lamps 12–14, brazier 16 with shadows, lantern 2.6–14 with shadows) + a **cool front fill** (`#9fb2e8`/`#8fa6e0`, 1.2–1.8, range 6–8 m) placed ~2 m in front of the hero. Additive `glow` sprites sit on every light source so bloom has something to grab.+- An inscriptional capital serif (Cinzel, wide tracking) for chapter labels and titles; an old-style serif (Cormorant, Cormorant Garamond italic) for subtitles, dialogue, taglines. All OFL.+- **Narration subtitles**: italic serif ~46–54 px, centred low on a soft dark gradient band, one line per voice clip, in ~0.35 s before the voice.+- **On-screen speech gets a dialogue box**, not a subtitle: dark plate, thin metal border, corner ornaments, name plate on its top edge, text **typed over ~90 % of the voice**, blinking caret, soft chime on entry.+- Chapter cards and a title card belong to the grammar. Hold ≥ max(1.8 s, speech + 0.6 s). Export the `.srt` from the data that drives the overlay.-**Post chain** (`post_ts.js`, `makePost(renderer, scene, camera, 1920, 1080, { ssaa: 2 })`): render at 2× (3840×2160 internal) with MSAA → physical DOF (CoC = `aper × (1/focus − 1/z)` px, 96-tap spiral gather, far samples cannot bleed over a sharp foreground) **+ tilt-shift** → UnrealBloom (strength .55, radius .75, threshold .85) → vignette/grade (amt .62, warm .1, contrast .2, sat 1.05) → ACES filmic, exposure 1.15. Tilt-shift cut adds: `tiltAmt 17`, band half-width `tiltW .075`, feather `tiltF .3` (fractions of screen height), `maxCoc ≥ 24`, saturation ×1.16, contrast .28.+## 5. Motion quality-**Type.** Cinzel 500/700 (chapter label, title), Cormorant Garamond italic 500 (subtitles, tagline), Cormorant 500/600 (dialogue text, name plate). Gold `#d8c28e / #e2c989 / #c9a863`, parchment white `#f3ead6 / #f6f0e2`.+- **Sprites step, everything else glides.** Walk cycles 4 frames at 6–10 fps, idles alternate two frames at ~1–2 Hz, blinks every few seconds, pose changes are instant cuts between drawings. Camera, lights, particles, beams and focus update every output frame (60 fps).+- **Poses are data**: a parameter object per drawing; a new pose is a new table entry.+- **Lights breathe**: every flame flickers (a few summed sines, about ±20 %). A light's level is one value that drives the sprite drawing, the point light (intensity ∝ level^~1.3), the glow opacity and its scale together.+- **Weather is procedural**: slanted rain streaks; lightning as a scripted flash curve (strike, dip, re-strike, decay) lifting sky, fill and exposure together.+- The world never shakes except for impact; the set never moves, only the camera and what lives in it.-## 4. Motion language+## 6. Camera grammar-- **Sprites step, everything else glides.** Walk cycles use 4 frames at 6–10 fps (`['w0','w1','w2','w3'][Math.floor(t*9)%4]`), idles alternate two frames at ~1.4 Hz, blinks every few seconds, poses swap instantly (`upE → up → idle`). Camera, lights, particles, beams and focus update every frame at 60 fps.-- **Poses are data**: a frame is a parameter object (`{ step, arm:'low'|'fwd'|'up'|'hug'|'pour', kneel, lit, bob, hem, scarf, blink, closed, look }`) drawn by `drawWren` / `drawKeeper`. Add a pose by adding a table entry (or pass `extra` to `makeChar`).-- **The light breathes**: `flick(t, seed)` (three summed sines, ±20 %) on every flame; the lantern's `lit` value (0–1) redraws the flame size in the sprite *and* drives the point light (`intensity ∝ lit^1.3`), glow opacity and scale.-- **Events are timestamps** in `story.js` `T` (lighthouse flicker 11.5 → out 12.35, taper 16.2, gust 40.6, dim 41.3, dark 42.0, relight 45.6, stand 47.6, pour 52.6, ignite 53.5, beams 54.4, ships 59.2). Scenes blend with `ss(seg(t,a,b))`.-- **Signature beats:** lighthouse flickers twice and dies; brazier taper lights the lantern and both sprites' shadows jump onto the planks; the gust shrinks the flame to an ember (sprite `lit .27`), world goes almost black, then the flame re-grows; the lens ignites with an exposure burst (`exp(-(t-53.5)/.22)`) and two beam cards start sweeping; ships' lamps pop on one every 0.7 s and drift toward the harbour.-- **Weather is procedural**: rain = wind-slanted line segments (`rain`), lightning = a scripted flash curve (`flash(t)`: 150 ms strike, dip, 60 ms re-strike, exp decay) that boosts hemisphere, a "bolt" light, sky, clouds, sea and exposure together.+A vocabulary, not a route. Opening and ending come from the topic. Always look **down** on the world (never at eye level); every path is a monotone spline of a few keys, no overshoot; focus is recomputed every frame from camera to the subject.-## 5. Camera language--| Shot | Camera |-|---|---|-| Establishing (harbour wide, 5.5–15) | Very high and far (`[-17,15,38] → [-13,12,31]`, fov 36), slow push. Focus 44 m, aperture 520; tilt band fixed at 34 % screen height (no character to track). |-| Dialogue (pier, 15–25.5) | Medium-high 3/4 (≈5 m up, 8–10 m away, fov 30), almost static drift. Focus on the hero every frame, aperture 300. |-| Travel (forest, 25.5–35.5) | **Lateral tracking**, camera leads the walker slightly (`monotone` look-ahead), fov 30, 6.3 m up; near ferns in front of the lens blur into dark shapes; she walks behind a foreground trunk at the end. Aperture 380. |-| Ordeal (storm stairs, 35.5–49.5) | Starts as a huge establishing view of the cliff, eases into a follow cam (37–39 s), then **dives low and close** as she kneels (camera to ~2.2 m up, 6 m away), and pulls back as she climbs on. Aperture 140–170 (closer = less blur). |-| Climax (lamp room, 49.5–58) | Medium on the hero at the lens; after ignition, a rising pull-back to a wide of the tower (fov 30 → 40, aperture 150 → 320), focus switches from hero to lens. |-| Resolution (harbour end + title, 58–76.5) | Mirror of the opening but wider and higher (`[-22,26,44] → [-27,33,55]`, fov 42), focus 70, aperture 380, tilt band at 36 %. |--Rules: always look *down* on the world (never eye level); every camera path is a `track()` of 2–7 keys (monotone cubic, no overshoot); focus distance is recomputed each frame from camera to the hero (`post.dof.focus = cam.position.distanceTo(hero + (0,.7,0))`); in the tilt cut the sharp band follows the hero's projected screen height (`tiltCenter`, clamped .2–.8).+| Move | Expresses | Can serve |+|---|---|---|+| Very high, very far, slow push; band on one tiny subject | Preciousness, a whole place as a map | where we are; scale; a landmark |+| Medium-high 3/4, near-static drift | Two figures on one stage | a conversation; a handover; a choice |+| Lateral tracking, camera leading slightly, foreground passing blurred | A path through a world | travel; a process with steps; a commute |+| Dive low and close while a figure kneels or stops | The toy world suddenly personal | exhaustion; care; a secret |+| Rising pull-back, focus handed from figure to object | The act spreads outward | consequence; a system switching on |+| Orbit half-way round a building or prop | An object seen from all sides | a workshop; a machine; a monument |+| Top-down, straight overhead, tilt band as a strip | A board game, a plan | routes; a schedule; a queue |+| Rack focus between two depths in a locked frame | Attention changing hands | a memory; someone watching; before/after |+| Return to an earlier framing, changed | The rhyme shows what changed | aftermath; growth; a season later |-## 6. Sound+Framing: characters ~1/12–1/8 of frame height; the sharp band follows the subject's projected height (clamped ~.2–.8 of screen); with no character, use a fixed band height per shot. Transitions: short fades to black or cuts between sets; no wipes, no 3D spins.-- **Voices (Kokoro via `core/tts/tts.py`)**: narrator `af_heart`, speed .82–.90 (slow, storybook); the quest-giver `bm_george`, speed .84, low-passed at 7 kHz in the mix so he sits "in the world". 7 narrated lines + 1 dialogue line, each 1–5.4 s. Check with `core/tts/asr_check.py`; put invented names in the `asr` field (`Graywater`, `Ren`, `whisper would`), otherwise whisper flags them.-- **Music**: one licensed track, edited to picture: Scott Buckley, *Precipice* (CC BY 4.0), cut by `music/edit.py` into five sections (intro pad → **0.8 s breath when the lighthouse dies** → continuous build through forest and storm → **hard stop into a reverb tail at 42.0 when the flame nearly dies**, only the intro pad under it → the composer's own build → **its D→G♭ key-change downbeat placed at 53.500 s = ignition**, located automatically by the steepest < 250 Hz onset (error < 5 ms) → jump to the final E♭ arrival for the title). All cut points are in `music/CUES.md`. Pick one piece whose own arc matches the story; cut inside it rather than stitching tracks.-- **Ambience & foley (`mix.py`, synthesized with `core/audio/sfx.py`)**: per-set beds with crossfaded gain curves (harbour waves + rope creaks, brazier crackle, forest crickets + leaves, storm rain + wind with a gust swell), and events: lamp-out "fwoomp" 12.3, match strike 16.15, UI chime on the dialogue box 17.3, footsteps from `sfx_events.json` (wood / dirt / stone), thunder 0.25 s after each flash, wind whoosh at the gust, two heartbeats in the silence, the ignition boom (42 Hz drop + air + high shimmer) at 53.5, six small bells as the ships light up.-- **Mix**: each voice line compressed and RMS-matched; buses levelled to voice −17, music −21, ambience −30, foley −27 dB RMS; music ducks ~2.2 dB under voice, then a **per-line auto-duck** pulls music + ambience to ≈10 dB under each line (only down, never up; the script prints the achieved gap per line, 7–14 dB in the demo); `tanh` soft-clip; final loudness by `core/render/mux.sh` (two-pass loudnorm −14 LUFS, TP −1.2).+## 7. Sound palette-## 7. Subtitles & titles+- **Music**: chamber-fantasy or cinematic colours (harp, celesta, strings, horns, low choir, timpani) or small folk instruments (lute, recorder, hand drum). Either one piece whose own arc matches the story, **cut inside it** at downbeats, or an original score; a downbeat can land on the frame of a visual event.+- **Silence as a tool**: a hard stop into a reverb tail, a pad alone, or one heartbeat when the light nearly dies; a short breath (< 1 s) when something fails.+- **Foley follows the diorama's matter**: footsteps per surface (wood, dirt, stone, snow), fire crackle, cloth, a UI chime for dialogue boxes and menus, small bells for things switching on, thunder after each flash, a deep boom with shimmer for a big ignition; ambience beds per set, crossfaded.+- **Voice**: storybook narrator, slow (speed ~.82–.90); on-screen characters low-passed (~7 kHz) so they sit "in the world". Put invented names in the TTS `asr` field.+- **Mix**: lines compressed and RMS-matched; per-line auto-duck ~10 dB (down only); −14 LUFS via `core/render/mux.sh`, grain 0.-- **Narration subtitles**: Cormorant Garamond italic 500, 50 px, `#f6f0e2`, centred at y = H − 88, on a soft horizontal dark band (gradient, max .38 alpha), drop shadow 10 px. Fade in .35 s before the voice, out 0.45–0.8 s after it ends. One line per voice clip.-- **Dialogue box** (for a character who speaks on screen, instead of a subtitle): 1180×210 px, bottom-centred, navy gradient `rgba(14,18,34,.86) → rgba(6,8,18,.9)`, 2 px gold border `rgba(214,190,130,.9)` + inner 1 px line, gold diamond corners; name plate (Cormorant 600 34 px) overlapping the top-left edge; body Cormorant 500 44 px, **typed out over 92 % of the voice duration**; blinking gold ▼ caret when done; slides up 14 px on entry. A soft chime marks it.-- **Chapter card** (0–5.5 s): radial navy background `#11172a → #020308`, `CHAPTER I` (Cinzel 500 34 px, 10 px tracking, `#d8c28e`) over a gold ornament line with diamond, then the chapter name in Cormorant italic 78 px with a warm glow; one pixel ember drifts across.-- **Title** (67.4–76.4 s): screen dimmed 50 %, `THE LAMPBEARER` in Cinzel 700 118 px, 14 px tracking, vertical gold gradient `#fff3cf → #e2c27c → #a8803e` with glow; ornament; tagline in Cormorant italic 50 px; music/voice credit at the bottom (24 px, 75 % alpha).-- **End credit line (library rule)**: every film ends with **"LemoLab × Claude Opus 5.5"**. In the demo it is part of the title card (`ui.js` `title()`, on by default): Cinzel 500 30 px, `#d8c28e` at 85 % alpha, 4 px tracking, centred at y = 668, fading in 70.6–71.6 s, between the tagline and the music credit, which it does not replace. `?nocredit=1` hides it (reproduces the pre-sign-off `hd-2d_v1.mp4`). Draw it the same way in a new film.-- Scene changes are short fades to black (`FADES` in `ui.js`: out .25–.5 s, in .35–.7 s), plus a final 0.9 s fade.-- Export the `.srt` from the same data (`tools/srt.py`: story.js `VO` + `voices/dur.json`, +0.5 s hold, dialogue prefixed `OLD KEEPER:`).+## 8. Native moves-## 8. Pitfalls we hit+A menu: use the ones your story needs.-- **Checkerboard everywhere**: a wide dither band on ramps. Keep `dz` ≈ .22 on sprites, ≈ .45 on textures.-- **The lantern blows out the sprite**: a point light sitting on the billboard plane saturates it. Put the light **0.42–0.45 m from the lantern toward the camera** (`lp + toCam * .45`), and in the forest cap sprite lighting in the shader (`outgoingLight = min(outgoingLight, diffuseColor.rgb * 1.35 + emissive)` via `onBeforeCompile`).-- **Lights behind a billboard don't light it** (it only has a front normal). Always add a cool front fill light ~2 m in front of the hero.-- **Cylinder light beams facing the camera produced NaN**; bloom spread them into large black blocks. Use `beamCard` (an axis-aligned billboard strip that fades as it turns toward the camera) and let the glow sprite take over (`face` factor enlarges the lighthouse glow).-- **Sea reflection column division by zero**: clamp the width with `max(.35, …)`.-- **Storm too dark to read** in the first pass. Add a "readability" fill outside the story-dark beat: hemisphere +1.0, sun +1.3, sky +.35 (the `ext` term in `cliff.js`), i.e. roughly ×2–2.5 on environment mid-tones, and let it drop to nothing only during the flame-almost-out beat.-- **Distant ship glows hidden by fog/geometry**: `depthTest = false` + `renderOrder 5` on those glow sprites.-- **Tilt-shift on shots with no character**: the tracker has nothing to follow; use fixed band heights per shot (`TILT_C`).-- **Tilt-shift and occlusion**: the tilt blur is folded into the same signed CoC as depth DOF (above the band = far, below = near) so the gather keeps the "far can't bleed over sharp near" rule; don't add it as a separate blur pass.-- **Near-identical frames diverge around a flash**: the ignition burst decays with a 0.22 s time constant, so a still at 53.8 s differs visibly from the neighbouring 60 fps frame. That is expected, not a bug.-- **Node render scripts may not exit** after `done` because the static server keeps connections alive (`demo/tools/render_range.mjs` ends with `process.exit(0)` for that reason). The output file is complete once `done` is printed.+- **Shadows jump when a light is lit.** A practical turns on next to sprites and their shadows swing across the floor. *Fits content like:* a shop opening at dawn; a server rack powering up; a teacher switching on a projector.+- **The carried light as a meter.** One small light the hero holds is key light and emotion at once: bright → guttering → almost out → relit. *Fits content like:* a phone battery on a long trip; a patient's heart monitor; a candle vigil.+- **Tilt-shift preciousness.** An extra-wide with the band on one tiny subject. *Fits content like:* a single delivery van in a city; a newborn's room in a whole hospital; one stall in a night market.+- **Lights popping on one by one.** Windows, lamps or boats light up at a steady cadence across the map. *Fits content like:* users joining a network; a village getting electricity; a festival beginning.+- **RPG grammar.** Chapter card, named character in a dialogue box, biomes, a landmark, a title card. *Fits content like:* onboarding a new employee; a history in eras; a recipe in stages.+- **Weather passes over the diorama.** Rain, snow or lightning sweeps the tabletop with the flash curve. *Fits content like:* a market crash; a harvest threatened; a hard week at work.-## 9. Production recipe (this repo)+## 9. Pitfalls of the medium-```-styles/hd-2d/demo/- index.html main.js page, renderer (ACES, PCF soft shadows), shot → set routing, tilt-shift driver (?tilt=1)- story.js DUR, SHOTS, event times T, VO lines (single source of truth)- px.js PX pixel canvas, ramps + Bayer, surface textures, billboard / glow / blob- kit.js worldUV, mat/mesh/box, cached materials, house, crate, barrel, pixel fire, windows, ridges- fx.js sky, stars, pixel sea shader, particles, rain, shaft, beamCard, flick- chars.js procedural pixel characters (Wren, Old Keeper), pose tables, atlas, makeChar- harbor.js forest.js(+forest_art.js) cliff.js the three sets; each exports build*() → { scene, update }- ui.js Canvas2D overlay: chapter card, dialogue box, subtitles, title, fades, credits- post_ts.js makePost: DOF + tilt-shift + bloom + grade (local copy of core/three/post.js)- lines.json vo_times.json sfx_events.json TTS lines, voice start times, foley timestamps- music/edit.py src/ score edit of "Precipice" → music/score.wav, CUES.md, measure.json- mix.py ambience + foley + voices + ducking → mix.wav- tools/srt.py tools/render_range.mjs tools/sheet/index.html srt export, partial re-render, sprite sheet page-```+- **Checkerboard everywhere** → the dither band is too wide (≈ .22 on sprites, ≈ .45 on textures).+- **A light burns out the sprite that holds it** → move the light ~0.45 m toward the camera; cap sprite lighting in the shader (`min(outgoingLight, diffuse * 1.35 + emissive)`).+- **Lights behind a billboard don't light it** (front normal only) → always the front fill.+- **Cylinder beams facing the camera give NaN** that bloom spreads into black blocks → billboard beam cards that fade toward the lens, glow sprite takes over.+- **Dark scenes unreadable** → lift environment mid-tones ~×2–2.5 outside the one beat that must go dark.+- **Distant glows hidden by fog** → `depthTest = false`, higher `renderOrder`.+- **Tilt-shift with no character to track** → fixed band height per shot. **Tilt as a separate blur pass** breaks occlusion → fold it into the DOF's signed CoC.+- **Node render scripts may not exit** after `done` (server keep-alive) → `process.exit(0)`; the file is complete once `done` prints.-All commands from the repo root. `.venv` is the shared Python env (kokoro-onnx, faster-whisper, librosa).+## 10. Engine-```sh-PY=.venv/bin/python; D=styles/hd-2d/demo+In `demo/`: `px.js` (pixel canvas, Bayer ramps, surfaces, lit billboards, glow), `kit.js` (world UVs, materials, houses, props, pixel fire), `fx.js` (sky, pixel sea, particles, rain, beam cards, `flick`), `chars.js` (pose-table pixel characters, `makeChar`), `post_ts.js` (`makePost`: DOF + tilt-shift + bloom + grade), `ui.js` (chapter card, dialogue box, subtitles, title), `main.js` (page contract, `?tilt=1`). Module table, parameters and a minimal new set (a lantern-lit alley): [DEMO.md § Engine reference](DEMO.md#engine-reference).-# 0. fresh clone: voices/*.wav, music/score.wav and mix.wav are git-ignored (rebuilt below); if music/src/ is empty, fetch the source-curl -L -o $D/music/src/sb_precipice.mp3 https://www.scottbuckley.com.au/library/wp-content/uploads/2021/01/sb_precipice.mp3+## 11. Variation space-# 1. voices (Kokoro) + whisper check → voices/*.wav, dur.json, words.json-$PY core/tts/tts.py $D/lines.json $D/voices-$PY core/tts/asr_check.py $D/lines.json $D/voices # demo: 1 expected DIFF (n1 "Graywater" → "gray water")+You decide the places, the characters, the light the story turns on, the chapters, the opening, the ending, the camera path, the key temperature and the music. All far from our demo:-# 2. score edit → music/score.wav (+ CUES.md, measure.json); set OUT_DIR=... to write elsewhere-(cd $D/music && ../../../../.venv/bin/python edit.py)+- Structures: **a day-cycle map** (one set, dawn to night, each hour lit by different practicals as the town's routine unfolds); **a party of three** (three short chapters, each character's biome and light, converging in one room); **a menu of places** (a top-down overworld; the camera dives into one location per topic point and pulls back to the map between).+- Openings: **in the middle of the room** (a dialogue box already typing over a close 3/4 shot); **overhead map** (straight top-down, the band as a strip, then tilt down into the 3/4 view); **daylight** (a bright noon wide with no practicals at all, so the first lamp later is an event).+- Endings: **a save point** (the hero rests at a small glowing object, the UI shows a save line, fade); **the band narrows** (the sharp strip thins onto one sprite until everything else is blur); **the party leaves frame** (a locked wide holds after the characters walk out; only ambience and flicker remain).-# 3. mix → demo/mix.wav (optional arg: another output path)-$PY $D/mix.py+----# 4. subtitles → styles/hd-2d/hd-2d.srt-$PY $D/tools/srt.py--# 5. review stills of the tilt-shift cut (≈0.1–0.2 s per frame)-node core/render/still.mjs $D 8 16.9 30.5 42.8 53.8 62 71 --q tilt=1 --out $D/out/review--# 6. render the TILT-SHIFT CUT (the version in the library): 4590 frames at 60 fps-# measured 26–37 fps with 2 workers (≈2.5 min); the shipped file used 6 workers-node core/render/video.mjs $D --fps 60 --workers 2 --q tilt=1 --out $D/out/video_tilt.mp4--# 7. mux: loudnorm −14 LUFS, grain 0 (pixel art: no film grain)-sh core/render/mux.sh $D/out/video_tilt.mp4 $D/mix.wav styles/hd-2d/hd-2d.mp4 60 0-```--`?tilt=1` is what makes the tilt-shift cut: it is a **render-time post effect** inside `post_ts.js` (not a second pass over a finished video). Without it you get the plain DOF version. Other page switches: `ss=1` (no supersampling, faster previews), `only=harbor|forest|cliff` (build one set), `nobloom`, `nodof`, `noglow`, `nocredit=1` (hide the end credit line).--**Partial re-render** (e.g. after changing the title card; this is how the end credit was added to the shipped film): render only the tail and splice it onto the existing `out/video_tilt.mp4` (frames 0–4019 are untouched by title-card changes), then mux again. Back up the current film first (`hd-2d_v1.mp4`). Audio is untouched (same `mix.wav` → bit-identical decoded audio).-```sh-node $D/tools/render_range.mjs 67 76.5 --workers 2 --q tilt=1 --out $D/out/tail.mp4 # 570 frames ≈ 15 s-ffmpeg -y -i $D/out/video_tilt.mp4 -i $D/out/tail.mp4 -filter_complex \- "[0:v]trim=end_frame=4020,setpts=PTS-STARTPTS[a];[1:v]setpts=PTS-STARTPTS[b];[a][b]concat=n=2:v=1:a=0[v]" \- -map "[v]" -c:v libx264 -preset medium -crf 14 -pix_fmt yuv420p $D/out/video_tilt_new.mp4 # 25–150 s (CPU-bound, slower when other renders run)-sh core/render/mux.sh $D/out/video_tilt_new.mp4 $D/mix.wav styles/hd-2d/hd-2d.mp4 60 0 # 35–245 s, same caveat-```--When you change the story: edit `story.js` first, then copy the voice start times into `vo_times.json` (mix.py reads that file, not story.js), keep `sfx_events.json` footsteps in step with the sets' walk frames, and move the cue constants at the top of `music/edit.py` (`T_CAESURA`, `T_SILENCE`, `T_HIT`, `NARRATION`).--## 10. Engine usage--### Page contract (`main.js`)-`window.render(t)` picks the shot (`shotAt(t)`), maps it to a set (`SET_OF`), points the DOF pass at that set's scene, resets post defaults (bloom .55/.85, exposure 1.15, warm .1, sat 1.05, vignette .62), calls `set.update(t, shot, camera, post, renderer)`, applies tilt-shift if `?tilt`, renders the composer, then draws the overlay (`drawOverlay(t, shot)`). One `PerspectiveCamera(32, 16/9, .3, 2000)` is shared by all sets; each set sets fov/position/lookAt every frame.--### Modules and key functions-| Module | Function | What / key params |-|---|---|---|-| `px.js` | `new PX(w,h)` | `.set/.get/.rect/.fill(f)/.ellipse/.poly/.line/.outline(k,tint)/.done()` → canvas |-| | `ramp(cols, dz=.45)` | `(v,x,y) → rgb` with Bayer dither; `dz` = dither band width |-| | `texOf(canvas, {repeat, mip, linear})` | NearestFilter texture |-| | `woodPlanks / cobbles / rock / plaster / shingles / ground(w,h,o)` | procedural surface canvases (`seed`, `cols`, `pw`, `len`, `cell`, `beams`, `snow`) |-| | `billboard(tex, wM, hM, {ax, ay, em, emCol, emI, shadow, receive})` | upright lit sprite plane (Lambert + alphaTest .5) with custom depth/distance materials so it casts cut-out shadows |-| | `glow(col, size, i)` · `blob(r, a)` · `radialTex` | additive halo sprite · ground contact shadow |-| `kit.js` | `worldUV(geo, tile)` · `mat(canvas, o)` · `mesh(geo, m)` · `box(w,h,d,m)` | planar UVs by normal so texel density is constant (`tile = canvas.width / 24` m) |-| | `mats()` | cached `plank, plankDark, beam, wall, wall2, wall3, roof, roof2, roof3` |-| | `house({x,z,w,d,h,wall,roof,door,windows,upper,side,chimney,ry})` | timber house with emissive windows (`g.userData.windows`) |-| | `crate(s)` · `barrel(r,h)` · `fire(size,{seed,i})` · `windowQuad` · `ridge(wM,hM,col,seed)` | props; `fire.userData.update(t, cam, scale)` |-| `fx.js` | `sky({top,mid,hor,moonDir,moonCol})` → `{mesh,u}` | gradient dome + moon halo; `u.k` = brightness |-| | `stars(n, seed)` · `sea(size,{ppm,deep,shallow,crest})` → `{mesh,u,setLights([{p,c,i}])}` | per frame set `u.t`, `u.camPos`, fog uniforms, `u.bright`, `u.calm` |-| | `particles(n, fn(i,t,o), {soft, blend})` | deterministic CPU particles; `fn` fills `o.x,y,z,a,s,r,g,b`; call `.userData.update(t)` |-| | `rain(n, box, {speed,len,opacity})` · `.userData.update(t, [windX,0])` | slanted streaks |-| | `beamCard(len, w0, w1, col, {k, fall})` · `.userData.aim(origin, dir, cam)` → side factor | light beam that never shows its edge |-| | `flick(t, seed)` | flame flicker multiplier ≈ 1 ± .2 |-| `chars.js` | `makeChar('wren'|'keeper', extraPoses)` → `{root, mesh, frame(name), face(cam, flip), lanternPos(name, flip)}` | 34×50 px atlas + emissive atlas (lantern glass); `root.userData.char` is what the tilt tracker looks for |-| `post_ts.js` | `makePost(renderer, scene, cam, w, h, {ssaa, ao})` → `{composer, dof, bloom, vig}` | `dof.focus` (m), `dof.aper` (px·m), `dof.maxCoc` (px), `dof.tiltAmt/tiltC/tiltW/tiltF`; `vig.uniforms.amt/warm/sat/contrast/fade` |-| `ui.js` | `drawOverlay(t, shot)` · `overlayReady()` | reads `story.js` `VO` and `voices/dur.json` |-| `/core/lib.js` | `track(keys)` · `monotone` · `seg` · `ss` · `eio` · `eo` · `lerp` · `clamp` | camera paths and easing |--### Minimal new set-```js-// myset.js — a lantern-lit alley; register in main.js: sets.alley = buildAlley(); SET_OF.alley = 'alley'; add { id:'alley', a, b } to story.js SHOTS-import * as THREE from 'three';-import { cobbles, glow } from './px.js';-import { mat, mesh, house } from './kit.js';-import { sky, particles, flick } from './fx.js';-import { makeChar } from './chars.js';-import { track, seg, ss } from '/core/lib.js';--export function buildAlley() {- const scene = new THREE.Scene(); scene.fog = new THREE.FogExp2('#16223a', .03);- const SK = sky(); scene.add(SK.mesh);- const moon = new THREE.DirectionalLight('#8fa8e0', 1.1); moon.position.set(-20, 30, -20); moon.castShadow = true; moon.shadow.mapSize.set(2048, 2048);- scene.add(moon, new THREE.HemisphereLight('#3a4c7a', '#0a0a12', .9));- scene.add(mesh(new THREE.BoxGeometry(30, .4, 12).translate(0, -.2, 0), mat(cobbles(96, 96))));- scene.add(house({ x: -4, z: -5, w: 6, d: 5, h: 4.5, door: 1.2 }), house({ x: 4, z: -5, w: 5, d: 5, h: 5, wall: 'wall3', roof: 'roof2' }));- const hero = makeChar('wren'); scene.add(hero.root);- const lamp = new THREE.PointLight('#ffb050', 3, 10, 2); lamp.castShadow = true; lamp.shadow.bias = -.004; scene.add(lamp);- const halo = glow('#ffc070', 1.1, 1.2); scene.add(halo);- const fill = new THREE.PointLight('#9fb2e8', 1.5, 7, 2); scene.add(fill); // cool front fill: never skip- const dust = particles(80, (i, t, o) => { o.x = (i * 7.3 % 20) - 10 + t * .1; o.y = (i * 3.1 % 4); o.z = (i * 5.7 % 6) - 3; o.a = .3; o.s = .05; o.r = .7; o.g = .8; o.b = 1; }, { soft: 1 });- scene.add(dust);- const camP = track([[0, [-2, 5.5, 10]], [8, [2, 5, 9]]]), camL = track([[0, [-1, .8, 0]], [8, [2, .8, 0]]]);-- function update(t, shot, cam, post) {- const lt = t - shot.a;- cam.position.set(...camP(lt)); cam.fov = 30; cam.updateProjectionMatrix(); cam.lookAt(...camL(lt));- const x = -3 + ss(seg(lt, .5, 7.5)) * 6, walking = lt > .5 && lt < 7.5;- hero.root.position.set(x, 0, 0); hero.frame(walking ? ['w0', 'w1', 'w2', 'w3'][Math.floor(t * 9) % 4] : 'idle0'); hero.face(cam);- const lp = hero.lanternPos('w0'), toCam = cam.position.clone().sub(lp).setY(0).normalize();- lamp.position.copy(lp).addScaledVector(toCam, .45); lamp.intensity = 2.6 * flick(t, 3); halo.position.copy(lp); // light 0.45 m toward the lens- fill.position.set(x + .4, 1.6, 2.2);- dust.userData.update(t);- post.dof.focus = cam.position.distanceTo(hero.root.position.clone().setY(.7)); post.dof.aper = 350; post.dof.maxCoc = 22;- }- return { scene, update };-}-```-Then check it with `node core/render/still.mjs styles/hd-2d/demo <t> --q 'tilt=1&only=alley'` (add `alley` to the `ONLY` switch in `main.js`).+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/hd-2d/TREATMENT.md b/styles/hd-2d/TREATMENT.mddeleted file mode 100644index e030aac..0000000--- a/styles/hd-2d/TREATMENT.md+++ /dev/null@@ -1,48 +0,0 @@-# HD-2D · 导演方案《The Lampbearer 守灯人》--**时长** 76.5 秒 | **画幅** 1920×1080 | **帧率** 60fps 输出;像素角色 8fps 步进,机位/光/粒子每帧平滑-**一句话** 港镇的灯塔熄灭了,老守灯人把最后一簇火交给孙女 Wren;她提着灯穿过夜林、顶着风暴爬上悬崖,把火送回灯塔,让海上的船找到回家的路。-**主题** Every path begins with a single light.--> 收录版本:**移轴版**(`hd-2d.mp4`,渲染参数 `?tilt=1`,见 STYLE.md §9)。本文是开拍前的导演方案,个别数值以源码为准(见文末「与成片的差异」)。--## 对标(只学语法)--《Octopath Traveler》(Square Enix × Acquire,2018)与续作(2023),UE4 制作,HD-2D 画风的开山作。--**学什么**-- 像素角色是"纸片"站在全 3D 场景里:角色约占画面高度 1/12–1/8,场景是低多边形 + 像素贴图(近看能看到像素颗粒)。-- 固定的高位 3/4 俯角(约 30–40°),长焦感,像在看一个桌面微缩模型。-- 移轴景深是灵魂:焦平面只落在角色那一条带上,前景石头/草和远景房屋、船都糊成大光斑。-- 光是主角:点光源(灯笼、火盆、窗)会让角色在地面投下影子;月光/阳光打成体积光柱;雾、浮尘、萤火虫、雨丝。-- 暗角很重,辉光很重,夜景偏蓝青、火光偏橙琥珀——冷暖对撞。-- UI:深色半透明对话框 + 细金边 + 衬线字 + 说话人名牌;章节卡"Chapter One · 名字"。-- 配乐:竖琴/钢琴分解和弦起,弦乐铺底,高潮全编制管弦。--**不学什么**:不用原作角色、地名、Logo、UI 纹样与旋律;片名、人物、地名、配乐全部原创或取自 CC 授权曲库。--## 结构与分镜--| # | 时间 | 场景 / 机位 | 画面 | 声音 |-|---|---|---|---|---|-| 0 | 0.0–5.5 | 章节卡 | 深色羊皮纸底、金色细纹,`CHAPTER I` → `Wren, the Lampbearer` 逐行显现,一粒火星飘过 | 竖琴分解和弦起 |-| 1 | 5.5–15.0 | 港镇夜景,高位大全景,缓慢推近 | 木码头、木筋房屋的暖窗、泊着的帆船、海面碎光,雾。远处崖顶灯塔亮着 → **在 "Tonight, it did." 前闪两下熄灭** | N1 6.8 · 灯灭"嗡"声 · N2 12.6 |-| 2 | 15.0–25.5 | 码头中景,3/4 俯角 | 老守灯人在火盆边点燃小提灯,**灯一亮,两人的影子被拉长投在木板上**;对话框弹出;Wren 接过灯,转身跑出画 | 火盆噼啪 · K1 17.8(对话框) |-| 3 | 25.5–35.5 | 夜林,横移跟拍 | 巨树剪影、月光柱穿过树冠、萤火虫;Wren 从左向右走,灯光在树干和草上摇晃,树影随她转动 | N3 27.0 · 虫鸣、脚步 |-| 4 | 35.5–49.5 | 悬崖石阶,风暴 | 斜雨、闪电照亮崖壁;一阵狂风,火苗缩成一粒火星,Wren 跪下用斗篷护住,画面几乎全黑——**音乐抽空**;火苗重新燃起,她站起来 | N4 36.3 · 风、雷 · 静默 · N5 44.3 |-| 5 | 49.5–58.0 | 灯塔顶灯室 | Wren 把火倒进大灯 → **白光爆开**,透镜转动,光柱扫出去 | 53.5 高潮全奏 |-| 6 | 58.0–67.0 | 港镇超大全景(与镜头 1 同一场景) | 光柱扫过海面,雨停,海上船灯一盏接一盏亮起,码头上老人抬头 | N6 59.5 |-| 7 | 67.0–76.5 | 片名 | `THE LAMPBEARER` + 小字 `Every path begins with a single light.` | N7 69.3 · 收束 |--## 画面规范(Look Bible)--- **场景**:three.js,像素贴图 16 px/米、NearestFilter;房屋、码头、石阶是简单几何体;树、草、灌木是像素公告板(和原作一样)。-- **角色**:Canvas 低分辨率程序化绘制(约 32×44 像素 / 帧),自动 1px 深色描边,平面贴在 3D 中接受光照并投影。-- **后期**:物理景深(焦点跟角色,光圈大)→ 辉光 → 暗角 + 冷暖调色;雾用 FogExp2;体积光用加色半透明光柱几何体。-- **字幕**:烧录英文字幕,衬线斜体,底部居中;守灯人台词走对话框,不另出字幕。--## 与成片的差异(收录时补记)--- 成片 76.5 s(片名段延长到 76.5,75.6–76.5 淡黑)。-- 场景贴图密度实际是 `PPM = 24` px/米(px.js),角色帧 34×50 像素(chars.js),不是方案里的 16 px/米、32×44。-- 移轴版在物理景深之上叠加了按屏幕高度的移轴模糊(`post_ts.js`,清晰带跟随 Wren 的屏幕高度),并把饱和度 ×1.16、对比度 .28。diff --git a/styles/hd-2d/demo/fonts/h0.woff2 b/styles/hd-2d/demo/fonts/h0.woff2deleted file mode 100644index ae41e54..0000000Binary files a/styles/hd-2d/demo/fonts/h0.woff2 and /dev/null differdiff --git a/styles/hd-2d/demo/fonts/h1.woff2 b/styles/hd-2d/demo/fonts/h1.woff2deleted file mode 100644index ae41e54..0000000Binary files a/styles/hd-2d/demo/fonts/h1.woff2 and /dev/null differdiff --git a/styles/hd-2d/demo/fonts/h2.woff2 b/styles/hd-2d/demo/fonts/h2.woff2deleted file mode 100644index 985d477..0000000Binary files a/styles/hd-2d/demo/fonts/h2.woff2 and /dev/null differdiff --git a/styles/hd-2d/demo/fonts/h3.woff2 b/styles/hd-2d/demo/fonts/h3.woff2deleted file mode 100644index 8c0c6df..0000000Binary files a/styles/hd-2d/demo/fonts/h3.woff2 and /dev/null differdiff --git a/styles/hd-2d/demo/fonts/h4.woff2 b/styles/hd-2d/demo/fonts/h4.woff2deleted file mode 100644index 8c0c6df..0000000Binary files a/styles/hd-2d/demo/fonts/h4.woff2 and /dev/null differdiff --git a/styles/hd-2d/demo/tools/render_range.mjs b/styles/hd-2d/demo/tools/render_range.mjsindex 8775044..4eac060 100644--- a/styles/hd-2d/demo/tools/render_range.mjs+++ b/styles/hd-2d/demo/tools/render_range.mjs@@ -1,6 +1,6 @@// 只渲一段时间:node styles/hd-2d/demo/tools/render_range.mjs <a> <b> [--fps 60] [--workers 2] [--q 'tilt=1'] [--out styles/hd-2d/demo/out/range.mp4]// 与 core/render/video.mjs 同一套逐帧截图管线(同样的 JPEG q95 → x264 crf14),只是帧号范围是 [round(a*fps), round(b*fps))。-// 用途:改片尾字卡后只重渲最后几秒,再与原 video_tilt.mp4 的前段拼接(见 STYLE.md §9 / PRODUCTION_LOG.md)。+// 用途:改片尾字卡后只重渲最后几秒,再与原 video_tilt.mp4 的前段拼接(见 ../../DEMO.md「Build notes」的 Partial re-render / ../PRODUCTION_LOG.md)。import fs from 'fs'; import path from 'path'; import { spawn, execFileSync } from 'child_process';import { fileURLToPath } from 'url';import { openDemo, closeServer } from '../../../../core/render/page.mjs';diff --git a/styles/hd-2d/style.json b/styles/hd-2d/style.jsonnew file mode 100644index 0000000..19a3004--- /dev/null+++ b/styles/hd-2d/style.json@@ -0,0 +1,18 @@+{+ "slug": "hd-2d",+ "num": "31",+ "en": "HD-2D",+ "cn": "HD-2D",+ "category_en": "Games",+ "category_cn": "游戏",+ "film": "The Lampbearer",+ "line": "The lighthouse goes dark; a girl carries the last flame through a night forest and up the storm cliffs.",+ "line_cn": "灯塔熄灭,孙女提着最后一簇火穿过夜林、爬上风暴悬崖。",+ "uses": [+ "Game trailers",+ "Fantasy",+ "Story films"+ ],+ "frame_sec": 55.08,+ "dur": 76.5+}diff --git a/styles/hologram-hud/DEMO.md b/styles/hologram-hud/DEMO.mdnew file mode 100644index 0000000..6046ba5--- /dev/null+++ b/styles/hologram-hud/DEMO.md@@ -0,0 +1,178 @@+# Sci-fi Hologram HUD — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Volt · Spec Scan* (39 s: a 34 s scene plus a 5 s end card) · `hologram-hud.mp4` · source in [`demo/`](demo/)+++## Story & structure++The spec walkthrough of a fictional city e-bike, the first use case of STYLE.md §11: a hardware product is scanned into a glowing wireframe, three parts are locked one at a time (battery, motor, brakes), and at the end the wireframe lights up into a solid hologram and settles into a spec sheet you could use as a poster.++Shot structure: scan-in → title → 3 × (lock → camera move → local explode → leader → value) → regroup → solid-hologram turn → spec-sheet lockup → end card. Part 1 gets 3 bars, the others 2 bars each. Each value stays on the big card ≥ 2.5 s, then docks in the left rail until the end, so every spec is on screen for 10–25 s.++**Signature shot**: part 1 as one move. Lock, push, the cover slides, the cells glow, the leader pulls out, and "80 km" rolls amber.++## Shots++| Beat | Camera | Why |+|---|---|---|+| Hook (0–2.6 s) | 3/4 front, pitch 14°, slow **orbit** yaw 57° → 24° while it **cranes down** | From above, the scan plane reads as an ellipse rising. Then it drops to near eye level and leaves room for the title on the left. Frame 1 already shows the plane at wheel height |+| Part 1 (slow) | **Push-in** 2.85 → 1.6 (1.5 s ease-out), then drift | The first spec gets the most time |+| Part 2 | **Whip** (following the box) + **orbit** around the hub axis, yaw −11° → 46° | An axial explode only reads when you orbit around the axis |+| Part 3 (fast) | **Pull back** to full + **loupe** (×4.3, its own counter-orbit) | Brakes are small: both scales on screen at once |+| Regroup | **Pull back + crane down** to pitch 0 | A low angle makes the object stand up before the light-up |+| High point | **Turntable 360°** + **crane up** 0 → 13° + slight push | The only moment the viewer sees every side |+| Lockup | Nearly static, a slow **dolly** 3.5 → 3.4 | The viewer reads |+| End | **Scan-erase** top-down, then the end card | Mirrors the hook |++Why this route, for this product: the hook's orbit craning down made the rising scan plane read as an ellipse; the regroup pulled back and craned down to eye level so the bike stood up before the light-up; the turntable was the only moment every side showed; the ending scan-erased top-down to mirror the hook. Each is one choice from STYLE.md §6, not the style's default opening or ending. The title rolled in after the scan and returned in the same place in the final lockup; the three-frame glitch was spent at ignition.++Framing numbers: fov 0.6. Big cards at x ≥ 1240, the rail at x 110–470, subtitles fixed at the bottom centre (baseline y 962), the loupe above y 580. In the wide loupe shot the target sits at x 0.49 → 0.475 of the frame.++Motion numbers: the target box starts at 1.9× the rest-pose bounding box, at 30 % alpha, snaps in 0.22 s; tag `TGT 0N · LOCK`. Explodes: the battery cover slides *along the down tube* while the cells stay and turn hot; the motor splits axially (cap / rotor / stator / cap) while rotor and stator counter-rotate; the brake caliper halves part on either side of the rotor, pistons separating *less* than the body so they appear to extend. Open over 1 beat (part 1: 2 beats), close over 0.5 s. Rolling value: 0.5 s (part 1: 1 s). Chip dock: card fades 0.35 s, chip slides x 140 → 110; rail step `min(112, 410 / (n − 1))` px, so 5 chips fit. Whip: 0.5 s cubic in-out, starting 0.45 s before the next lock; 5 sub-frames over 1/48 s.++## Score structure++- Score arc: sparse on the first spec, a layer added per part, deceleration before the high point, one beat of true silence, the drop at ignition (the loudest moment), half-time under the lockup.+- 120 BPM (1 bar = 2 s); `tools/cuecheck.py` checks every key event against `music/score.json` (all on the 1/16 grid, 0 ms offset).+- Original numpy synthesis, D minor with Dorian colour; chords Dm9 → B♭maj7 → Fmaj9 → G6. A D1 square pulse on quarters.+- No drums on part 1, + hats on part 2, + claps and the arpeggio up an octave on part 3. Regroup decelerates (16ths → 8ths → one quarter gliding down). One beat of true silence. Drop at ignition (808-style sine glide + 7-voice wide saw chord). Half-time under the lockup. The arpeggio is removed note by note under the end card.+- Silences: the half beat before the first lock (only the room hum remains; the lock hit is the first sound after it) and one full beat of true zero before ignition.+- Detect blips D–F–A; amber confirm = D6 + A6 + E7. J/L-cuts: the motor whine starts 0.4 s before the whip lands on the motor, the hydraulic hiss 0.4 s before the brake lock; hum and chord tail carry over the scan-erase into the end card.+- Voice: Kokoro `af_heart`, speed 1.0 (`af_nicole` was too breathy and slow: 7.0 s against 4.4 s for the same line). Music ducks −16.5 dB and foley −15 dB under the voice, with a 0.5 s max-filter hold; only the first 0.2 s of lock / confirm hits escape.++## Palette & props++- Stage `hsl(hue+12, 70%, 2.4%)` with a radial lift `hsl(hue+6, 65%, 7%)`; 48 px dot grid (parallax 0.2); vignette 0.5.+- Pad rings at r = 0.7 / 1.05 (bright) / 1.12 (dashed) / 1.45 / 2.1, 120 ticks (every 10th long), 24 radial rays, rotating 0.12 rad/s.+- Wireframe: `lighter` strokes 1.3 px in 7 alpha levels; glow ¼-res blur 3 px ×0.85 and ⅛-res blur 4 px ×0.7; colour `hsla(hue, 100%, 50–80%, a)`; hot edges `hsla(hue, 70%, 92%)`, the 7 cm under the scan front.+- Solid: Fresnel `0.3 + 0.7·(1 − facing)^1.6` (facing = projected area / edge product), interlace 2 px full / 2 px at 38 % scrolling 1 px per frame; line width ×1.5 at ignition easing to ×1.12; light wave ±7 cm at ignition and on the chord change. Beam gradient 10 % → 0, 26 rays, 70 dust motes.+- Colour: `hue` 188 (cyan), `accent` 38 (amber); the alternate content uses 204 / 18 (blue / orange).+- Type: Rajdhani 300 for big numbers and the product name (26 px tracking), 500/600 labels (2–3 px tracking); Share Tech Mono 20–22 px. Plates `rgba(1,8,12,.72)`, border 28 %, 10 px corner ticks (`plate()` in hud.js).+- HUD: 46 px corner brackets 44 px from the edge; rulers tick every 24 px (every 5th long). Top-left: product // SPEC SCAN. Status: SCANNING 042% → SCAN COMPLETE · 3 SYSTEMS → TARGET 2/3 · MOTOR → HOLO SOLID · 360° → SPEC SHEET · READY.+- Subtitles: plate `rgba(1,8,12,.62)`, two diagonal cyan brackets, four voiceprint bars, Rajdhani Medium 38 px, wrap 1180 px; in 0.1 s before the voice, out 0.12 s before the next line.+- The e-bike model: tube frame, wheels with tyre (3 rings + cross ribs), rim, spokes and hub; battery in the down tube; hub motor; disc brake with caliper. The caliper needed an arc-shaped body hugging the rotor edge, round piston faces, pads following the rotor curve and vent holes on the rotor.++## End card++After the lockup: film title, SCI-FI HOLOGRAM HUD, Lemo-Opuscar, LemoLab × Claude Opus 5.5 and credits, each line rolling in. The LemoLab sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/hologram-hud/demo/+ content.json all text, numbers, colours, model path, voice lines content_alt.json the swap test (drone)+ engine/holo.js wireframe engine (projection, scan, explode, Fresnel faces, glow, pad, scan plane, normalise, modelFromPath)+ engine/hud.js HUD layer (target box, leader, rolling text, spec card, chip, marker, beam, subtitle, chrome, glitch)+ models/mkmodel.mjs primitive builder (tube, ring, disc, box, saddle, fender, wheel, cells, stator, rotor, caliper…)+ models/gen_volt.mjs the e-bike models/gen_kite.mjs the drone+ film.js timeline + cameras + states (only calls the engine) frames.js engine demo scene (?scene=star)+ music/score.py original score from timeline.json mix.py UI + mechanical foley + ambience + voice + ducking+ tools/ make_lines.mjs export.mjs cuecheck.py final_asr.py+```+1. Write the model generator (parts → pieces with explode vectors; `internal`, `hot`, `box:false`, `anchor`, `center`, `tagDir`), then `content.json`.+2. `tools/export.mjs` dumps `events.json` / `timeline.json` / subtitles. Hand `timeline.json` and the cue map to a music sub-agent while you animate.+3. Review stills (`node core/render/still.mjs <demo> t… [--q content=…]`) and 1 s contact sheets, twice, plus strips around every lock, whip, silence and ignition.+4. `sh demo/build.sh` rebuilds everything: model → TTS → whisper → export → score → cuecheck → mix → srt → render (~45 s for 936 frames with 2 workers; whip frames cost 5×) → mux (−14 LUFS, grain 0) → final whisper check.++Pitfalls met in this build:+- Scrolling the interlace with `setTransform(…, offset)` and then `destination-in` cleared everything outside the shifted rect → `offset % patternHeight`, or the fills vanish after the first second.+- The brake hose inflated the target box → `box:false`.+- Hotspot labels on long diagonal leaders read as pointing to the wrong part → ring on the part body, chip beside it, flash the part.+- A whip written inside the next segment played as a hard cut → start it in the previous segment and check a 0.1 s frame strip.+- The light with no bracket and the saddle with no clamp; in the swap model, the drone's landing legs started outside the hull (belly mounts and fold hinges at the arm roots fixed it).+- Two parallel boxes (cover and cells both moved) didn't read as an explode.+- In-band (300–4 kHz), rolls, servos and the confirm chord were only 3 dB under the voice.+- The beam drawn from separate shapes gave dark wedges or double-bright seams → one path with three subpaths, nonzero winding.+- Scan-erase first clipped only edges, and translucent faces lingered.++## content.json fields++Every word, number, colour and the model come from `demo/content.json`; the code holds no copy text. Swapping it re-flows the timeline, music, cues and rail spacing, which makes it a good **technical check** of the engine. It is not how a user's film is made: a user's film gets its own treatment, order, camera path and timeline (STYLE.md §11).++| Field | Type | Allowed | If out of range |+|---|---|---|---|+| `product` | string | 1–10 chars | Longer names still roll, but 176 px type will overflow the 410 px column: keep it short or lower the size in `titleBlock` |+| `model_code`, `category` | string | ≤ 30 chars together | Shown in mono 22 px on one line |+| `tagline` | string | ≤ 60 chars | Auto-wraps at 420 px and shrinks to 20 px |+| `model` | path | a model JSON (below) | Any size: it is normalised. Parts named in `callouts[].part` must exist |+| `hue`, `accent` | 0–360 | any | The whole film re-themes |+| `voice` | `{id, speed}` | a Kokoro voice | Check with whisper |+| `intro_vo`, `outro_vo`, `callouts[].vo` | string | intro ≤ 5 s spoken; part 1 ≤ 4.8 s; other parts ≤ 3.5 s | Subtitles are clamped to the next line; longer lines overlap the next lock |+| `*_vo_asr` / `callouts[].vo_asr` | string | optional | What whisper should hear (digits etc.) |+| `callouts[]` | array | **2–5** items: `part`, `label` (≤ 24 chars), `value` (≤ 6 chars), `unit` (≤ 4), `detail` (≤ 40, optional), `vo` | Part 1 gets 3 bars, the others 2 bars each. More than 5 won't fit the rail |+| `footer.weight`, `footer.price` | `{label, value, unit}` | value ≤ 7 chars | Auto-fits down to 40 px |+| `footer.cta` | string | ≤ 34 chars | Auto-fits down to 14 px |+| `film_title`, `credits[]` | strings | | End card |++Parts in the model can set `tagDir: -1` so the lockup hotspot chip sits to the left of its ring.++The check, from the repo root (voice, whisper check, score, cue check, mix, subtitles, render and mux for the other content):+```+CONTENT=content_alt.json NAME=kite sh styles/hologram-hud/demo/build.sh+```+Outputs go to `demo/out/kite/` (`kite.mp4`, `kite.srt`, `poster.jpg`). The swap test (a four-part folding drone in blue / orange) came out at 43 s, 4 parts, −14.0 LUFS, 0 cue mismatches; stills `demo/stills/alt_title.jpg`, `alt_signature.jpg`, `alt_lockup.jpg`. Preview content without building: `node core/render/still.mjs styles/hologram-hud/demo 12 --q content=<file>.json`.++Minimal content example (two parts):+```json+{ "product": "ORBIT", "model_code": "S1", "category": "Smart speaker", "tagline": "Room-filling sound.",+ "model": "models/orbit.json", "hue": 170, "accent": 40,+ "voice": { "id": "af_heart", "speed": 1.0 }, "intro_vo": "This is Orbit.",+ "callouts": [+ { "part": "driver", "label": "Woofer", "value": "4", "unit": "in", "vo": "A four inch woofer." },+ { "part": "mics", "label": "Far-field mics", "value": "6", "unit": "", "vo": "Six microphones hear you across the room." } ],+ "footer": { "weight": { "label": "Weight", "value": "1.2", "unit": "kg" }, "price": { "label": "From", "value": "199", "unit": "USD" }, "cta": "Available now" },+ "outro_vo": "Orbit. Available now.", "film_title": "Orbit · Spec Scan", "credits": ["…"] }+```++## Engine reference++The engine draws **any shape** in this style. Give it a wireframe (vertices, edges, optional quads), or build one from a 2D path with `modelFromPath`. For your own object, write a generator with the primitives in `models/mkmodel.mjs` (or convert a CAD export into the format below).++**`engine/holo.js`**+| Function | Purpose |+|---|---|+| `loadModel(url, {normalize=true, diag=2.3117})` | Load a model JSON, prepare typed arrays, and **normalise** it to the stage size (bounding-box diagonal) so cameras work for any product |+| `prepModel(json)` / `normalizeModel(m, diag)` | The same for in-memory models |+| `modelFromPath(pts2d, {depth, id, slices, explode})` | Extrude any closed 2D path into a wireframe body with side faces |+| `makeCamera(cam, W, H)` | `{project(x,y,z,out)}` for cam `{target, yaw, pitch, dist, fov, cx, cy, roll}` |+| `new Holo(W,H).draw(ctx, model, cam, opts)` | Draw with glow. opts: `hue`, `spin` (turntable), `scan:{y,band}` (grow up to y), `scanDown:{y}` (erase down to y), `explode:{partOrPiece:0–1}`, `angle:{piece:rad}` (spin about piece.axis), `solid:0–1`, `wave:{y,w}`, `focus`+`dim`, `flash:{part:0–1}`, `keep:{piece:'#hex'}` (**the single-colour exception**), `lineWidth`, `gain`, `glow`, `only`. Returns `{bbox:{part:[x0,y0,x1,y1]}, anchor:{part:[sx,sy,z]}}` |+| `drawPad(ctx, cam, W, H, {hue, rot, alpha})` / `drawScanPlane(ctx, cam, W, H, y, {hue, r, rot, alpha})` | The projector pad and the scan plane |++**`engine/hud.js`**: `theme(hue, accent)`, `background`, `vignette`, `chrome`, `plate(ctx,T,x,y,w,h,a)` (dark text plate), `targetBox(ctx,T,bbox,k,{flash,tag,lockK})`, `leader(ctx,T,from,elbow,to,prog,{pulse})`, `rollText(str,k,frame)`, `monoText`, `specCard(ctx,T,x,y,{label,value,unit,detail},{reveal,roll,detail,frame,flash})`, `chip`, `marker(ctx,T,p,label,a,pulse,dir)`, `beam(ctx,T,project,a,t,{y1})`, `subtitle`, `glitch`, `fitFont`, `wrap`.++Minimal example: a warm-orange `#D97757` four-point star with a cursor tail, scanned in and then locked (`demo/frames.js`, `?scene=star`):+```js+import { Holo, modelFromPath, normalizeModel } from './engine/holo.js';+import * as U from './engine/hud.js';+const P = []; for (let i = 0; i < 8; i++) { const a = Math.PI/2 + i*Math.PI/4, r = i % 2 ? .16 : .5; P.push([Math.cos(a)*r, Math.sin(a)*r + .6]); }+const star = modelFromPath(P, { depth: .12, id: 'star' });+const tail = modelFromPath([[.62,.1],[.7,.1],[.7,.55],[.62,.55]], { depth: .06, id: 'caret' });+const m = { parts: [...star.parts, ...tail.parts] }; m.byId = Object.fromEntries(m.parts.map(p => [p.id, p])); normalizeModel(m, 1.6);+const T = U.theme(188, 38), cam = { target:[0,.55,0], yaw:.6, pitch:.18, dist:2.6, fov:.6, cx:960, cy:540 };+const info = new Holo(1920,1080).draw(ctx, m, cam, { hue: T.hue, scan: { y: .8 }, keep: { star: '#D97757' } });+U.targetBox(ctx, T, info.bbox.star, 1, { tag: 'TGT 01 · LOCK' });+```++**Model data format** (one JSON file, metres, **y up**, x = the product's front, z = towards the viewer's side; any scale works, because it is normalised on load):+```json+{ "name": "VOLT CE-01",+ "parts": [ // part = one thing a callout can target (battery, motor, brakes…)+ { "id": "brakes", // referenced by content.json callouts[].part+ "anchor": [0.527, 0.416, 0.09], // hotspot: where leader lines and the lockup ring land (ON the part's surface)+ "center": [0.524, 0.428, 0.08], // optional: what the close-up / loupe camera looks at (defaults to anchor)+ "tagDir": -1, // optional: lockup number chip left (-1) or right (1) of the ring+ "pieces": [ // piece = a rigid sub-assembly that moves on its own in the explode+ { "id": "brake-caliperA",+ "v": [x0,y0,z0, x1,y1,z1, …], // vertices, flat+ "e": [0,1, 1,2, …], // edges: index pairs into v (the wireframe lines)+ "q": [0,1,5,4, …], // optional quads: 4 indices each (the translucent solid-hologram faces + Fresnel)+ "explode": [0, 0, 0.10], // offset at explode = 1, along the assembly axis+ "axis": { "c": [x,y,z], "d": [0,0,1] }, // optional spin axis (rotors, fans)+ "internal": true, // optional: hidden until the part opens (cells, stator)+ "hot": true, // optional: glows near-white while open (the thing that makes the number true)+ "box": false } // optional: excluded from the target-box bounds (long hoses, cables)+ ] } ] }+```+Rules: every piece must physically touch its neighbour. Tubes are rings plus longitudinal lines. Keep the total around 5k vertices / 6k edges for fast renders. Give the part that carries the key number a `hot` inner piece and a shell that slides *along its own axis*.diff --git a/styles/hologram-hud/STYLE.md b/styles/hologram-hud/STYLE.mdindex d9901e2..d4d505d 100644--- a/styles/hologram-hud/STYLE.md+++ b/styles/hologram-hud/STYLE.md@@ -1,230 +1,127 @@# Sci-fi Hologram HUD — Style Prompt-> A hardware product is scanned into a glowing wireframe. Target boxes lock onto parts one at a time; each part splits into a local exploded view, a leader line pulls out, and its number rolls from garbage glyphs into the real value. At the end, the wireframe lights up into a solid hologram and settles into a spec sheet you could use as a poster.-> Demo: *Volt · Spec Scan* (39 s: a 34 s scene plus a 5 s end card) · `hologram-hud.mp4` · source in `demo/`. It is the spec walkthrough of a fictional city e-bike.-> References (grammar only): the HUD and holo-table language of the *Iron Man* / *Avengers* films (Territory Studio, Perception): target boxes, leader-line callouts, rolling numbers, layered depth. The *Oblivion* interfaces: one restrained colour, hairlines, lots of empty space. Industrial CAD wireframes and exploded views. Never copy their layouts, icons, fonts, colours or props.+> An object is scanned into a glowing wireframe. Target boxes lock onto its parts; each opens in a local exploded view, a leader pulls out, and its number rolls from garbage glyphs into the real value. It may light up, once, into a solid hologram.+> References (grammar only): the *Iron Man* / *Avengers* HUDs (target boxes, callouts, rolling numbers, layered depth); the *Oblivion* interfaces (one colour, hairlines, space); CAD exploded views. Copy none of their layouts, icons, fonts or colours.-You are directing a 30–40 second **scene film** in the **Sci-fi Hologram HUD** style. The user gives you a product, a device or any object with parts, plus the facts to show. You decide the model, the order, the timing, the sound and the look, and you deliver a finished film. Follow this guide.+A **scene style**: it does a practical job (a spec walkthrough, a teardown, a loop screen) for any object with parts. See §11 for the jobs.----+## 1. Essence, and what it is not-## 1. What this style is+The subject is always a **line wireframe made of light** above a round projector pad on a near-black stage, never a rendered object. Everything reads as *scanned data*: a scan plane grows the model, parts pull apart along their assembly axes, numbers are *computed* on screen.-The subject is always a **line wireframe made of light**, projected in perspective above a round projector pad on a near-black stage. It is never a rendered object. Everything reads as *scanned data*. A scan plane rises and the model grows under it. Parts can be pulled apart along their assembly axes. Numbers are *computed* on screen and roll into place.+Three depth layers are always present: a **background dot grid** (slow parallax), the **subject** with its pad and floor, and the **foreground HUD** (corner brackets, rulers that parallax faster, status text).-Three depth layers are always present: a **background dot grid** (slow parallax), the **subject** (with its perspective pad and floor), and the **foreground HUD** (corner brackets, rulers that parallax faster, status text).+Not a type-driven keynote (dark-keynote), not a drafting sheet (blueprint), not a product render (glass-product). The subject stays a wireframe; it may gain translucent faces once, and even then the lines stay on top.-The palette is **one cold hue plus one warm accent**. The hue carries the lines, the HUD and the fills. The accent (amber in the demo) is spent on **locked values only**. A number turns amber at the frame it becomes true. Nothing else is amber.+## 2. Materials & rendering-It is *not* a font-driven keynote (dark-keynote), a paper drafting sheet (blueprint) or a realistic product render (glass-product). Keep the subject a wireframe the whole time. Only at the high point does it gain translucent faces, and even then the lines stay on top.+- **Stage**: near-black tinted by the hue, a radial lift behind the subject, a fading dot grid, a strong vignette.+- **Projector pad** in true perspective: concentric rings (one bright, one dashed), ticks, faint rays; it rotates slowly and spins with any turntable move.+- **Wireframe**: additive ~1.3 px strokes in a few alpha levels set by **depth fog** (near bright, far ~25 %), plus two low-res glow passes.+- **Hot edges** (near-white of the hue) only for what matters now: the scan front, inner pieces flagged `hot` when opened, a light wave, a part being pinged.+- **Real CAD topology**: tubes are rings plus longitudinal lines. **Every part is physically connected**: a floating piece is noticed first.+- **Solid hologram**: faces filled with a screen-space **Fresnel** × a scrolling **interlace**; lines thicken as it ignites; a light wave climbs the model. A **beam** (one path, nonzero winding) with faint rays and dust.+- **HUD furniture**: corner brackets, parallaxing rulers, subject // mode top left, a live status line top right, telemetry at the bottom.+- **Text never sits on the wireframe**: every text block has its own **dark plate** (translucent near-black, 1 px border, corner ticks); the camera still keeps the subject clear of text.-## 2. Use cases: what this style is for+## 3. Colour logic-| Use case | Shot structure | Information layers (in order) | Hold per layer | Length |-|---|---|---|---|---|-| **Product spec walkthrough** (the demo: product page hero, spec section of a crowdfunding video) | Scan-in → title → N × (lock → camera move → local explode → leader → value) → regroup → solid-hologram turn → spec-sheet lockup → end card | Name + category + tagline → key spec per part (label + value + unit + one detail line) → weight / price → call to action | Title ≥ 5 s. Each part: value visible ≥ 2.5 s on the big card, then it **stays** as a chip in the left rail until the end (so every spec is on screen for 10–25 s). Lockup ≥ 3 s with everything present | 30–40 s, 2–5 parts |-| **Trade-show loop screen** | The same engine with no VO. Callouts cycle, and the last frame matches the first scan frame so the film loops | Name → 3–5 specs → CTA | 3 s per spec, lockup 5 s | 20–30 s loop |-| **"What's inside" teardown** (repair guide, component story) | One part per shot. Deeper explode (internals flagged `internal` so they appear only when opened). The loupe mode is used for small parts | Part name → what it does → one number | 4–6 s per part | 40–60 s |-| **Before / after upgrade (v1 → v2)** | Two models in the same pad position. Scan v1, lock a part, scan-erase it top-down, scan-in the v2 part in the same place, then roll the old number to the new one | Part → old value (dim) → new value (amber) | 3 s per upgrade | 20–30 s |-| **Assembly / unboxing order** | Parts start fully exploded and snap home one by one on the bar. The target box leads each one in | Step number → part name | 1 bar (2 s) per part | 20–40 s |+- **One cold hue plus one warm accent**, both parameters (e.g. mint/orange, violet/lime, ice-blue/red; choose from the subject).+- The hue carries lines, HUD and fills. The **accent is spent on locked values only**: a number turns accent-coloured at the frame it becomes true. Nothing else ever uses it.+- White is heat: near-white edges and one-frame flashes mark what is active. Everything at rest sits in the hue's alpha levels.+- One object may keep its own colour (the single-colour exception, `keep`), for a brand mark, never for decoration.-The demo shows the first row. Every other row uses the same `Holo.draw` options (`scan`, `scanDown`, `explode`, `focus`, `solid`, `keep`) plus the HUD functions. Only the timeline in `film.js` changes.+## 4. Type & subtitles-**How the native moves serve information (not story):**-- **Scan growth = "this is real data."** The object is built in front of you, so it is believable before a word is said. It is also the hook: frame 1 already shows the plane at wheel height.-- **Target box lock = "look here now."** One box at a time, landing on a bar downbeat. The eye is taken to exactly one place, and the box *is* the camera: the camera follows it from part to part (the whip transition).-- **Local explode = "why the number is true."** Show the thing that makes the spec possible (the cells in the tube, the stator in the hub, the caliper halves) before the number rolls in.-- **Rolling digits = the payoff beat.** Each value is a small reveal. It locks right-to-left and turns amber on a downbeat.-- **Chip accumulation = reading time.** A spec never disappears. It docks into the left rail, name + value + detail, and stays there until the poster frame.-- **Solid hologram + beam = "the whole is ready."** It happens once only, after a true silence.-- **Controlled glitch = the power surge.** Three frames at ignition and never again.+- Rajdhani, all caps: Light for big numbers and the product name (wide tracking), Medium/SemiBold for labels. Share Tech Mono for micro data (coordinates, counters, zoom).+- Numbers are **monospaced** so rolls never jitter; the decimal point is a small square (a glowing "." reads as a comma).+- Subtitles are HUD: a dark plate with corner brackets and "voiceprint" bars moving with the speech, near-white Rajdhani Medium, bottom centre; in just before the voice, hold ≥ max(1.8 s, speech + 0.6 s).+- The title is part of the scene (no title card): the name rolls in like a value, then code, category and tagline.-## 3. Visual language+## 5. Motion quality-- **Stage**: background `hsl(hue+12, 70%, 2.4%)` with a radial lift `hsl(hue+6, 65%, 7%)` behind the subject. A 48 px dot grid fades with distance from the centre (parallax 0.2). Vignette 0.5.-- **Projector pad** (on the floor, in true perspective): rings at r = 0.7 / 1.05 (bright) / 1.12 (dashed) / 1.45 / 2.1, 120 ticks (every 10th long), 24 faint radial rays. It rotates slowly (0.12 rad/s) and spins with the turntable.-- **Wireframe**: additive (`lighter`) strokes, 1.3 px, in 7 alpha levels driven by **depth fog** (near = bright, far = 25 %). Two glow passes: ¼-res blur 3 px ×0.85 and ⅛-res blur 4 px ×0.7. Colour `hsla(hue, 100%, 50–80%, a)`.-- **Hot edges** (near-white `hsla(hue, 70%, 92%)`): the 7 cm under the scan front, pieces flagged `hot` when opened (battery cells, motor cores), the travelling light wave, and a part at the moment its hotspot pings.-- **Tubes are real CAD wireframes**: rings every few cm plus 3–6 longitudinal lines, never a single line. Wheels have a tyre (3 rings plus cross ribs), rim, spokes and hub. **Every part must be physically connected**: brackets, clamps, stays. A floating light or saddle reads as a modelling error.-- **Solid hologram**: every quad of the mesh is filled with a **screen-space Fresnel** (`0.3 + 0.7·(1 − facing)^1.6`, where facing = projected area / edge product), multiplied by an **interlace pattern** (2 px full, 2 px at 38 %) that scrolls 1 px per frame. Line width goes up ×1.5 at ignition and eases back to ×1.12. A **light wave** (±7 cm band) climbs the model at ignition and again on the chord change.-- **Beam**: the union of the pad ellipse, the top ellipse and the side trapezoid, filled once with nonzero winding (so there are no double-bright seams). Gradient 10 % → 0, 26 faint vertical rays, 70 rising dust motes.-- **Colour**: `hue` 188 (cyan) and `accent` 38 (amber) in the demo, both set in content.json. The alternate content uses 204 / 18 (blue / orange), and the whole film re-themes.-- **Type**: Rajdhani (300 for big numbers and the product name with 26 px tracking; 500/600 for labels with 2–3 px tracking; all caps) and Share Tech Mono 20–22 px for micro data (coordinates, frame counter, zoom). Numbers are laid out **monospaced digit by digit** so rolling never jitters. The decimal point is drawn as a small square, because a light-weight "." glowing reads as a comma.-- **Text never sits on the wireframe**: every text block (rail chips, the big spec card, the price column, hotspot numbers, subtitles) has its own **dark plate**: `rgba(1,8,12,.72)`, a 1 px border at 28 % and 10 px corner ticks (`plate()` in hud.js). Also move the camera so the subject clears the rail where you can. In the demo's wide loupe shot, the target sits at x 0.49 → 0.475 of the frame.-- **HUD furniture**: 46 px corner brackets 44 px from the frame edge. Side rulers tick every 24 px (every 5th long) and parallax with the camera yaw. Top-left: product // SPEC SCAN. Top-right: live status (SCANNING 042% → SCAN COMPLETE · 3 SYSTEMS → TARGET 2/3 · MOTOR → HOLO SOLID · 360° → SPEC SHEET · READY). Bottom: frame counter, scan height, camera yaw / pitch / distance.+- **Everything on ones at 24 fps.** Only glyph scrambling steps, every frame.+- **Target lock**: oversized, rotated 45°, faint; snaps to fit in ~0.2 s (cubic ease-out), flashes white 3 frames on the downbeat.+- **Explode** along each piece's assembly axis: the shell slides *along its own axis*, the contents stay in place and glow. Open over a beat or two, close fast.+- **Leader**: anchor ring → diagonal → horizontal to the card in ~0.5 s. **Rolling value**: characters lock right-to-left and turn accent on the downbeat with a one-frame flash.+- **Chip dock**: a finished value slides into a side rail and stays until the end.+- **The camera follows the box**: cubic ease, starting *before* the next lock, **real motion blur** only inside the whip (sub-frames, 180° shutter); HUD stays sharp.+- **No cuts or fades inside the scene**: only the scan plane (scanning in or erasing) and a loupe iris. A **glitch** of three frames at most once, on the biggest change.-## 4. Motion language+## 6. Camera grammar-- **Everything runs on ones at 24 fps.** The only stepped element is glyph scrambling, which changes every frame.-- **Target box lock**: it starts 1.9× the part's rest-pose bounding box, rotated 45°, at 30 % alpha, and snaps to fit in 0.22 s (cubic ease-out). It flashes white for 3 frames on the downbeat, then the tag `TGT 0N · LOCK` appears. The box is sized from the **rest pose** (no explode offsets, no internal pieces), so it doesn't balloon when the part opens.-- **Explode**: every piece has its own vector along its assembly axis. The e-bike battery cover slides *along the down tube*, out of the way, while the cells stay in place and turn hot, so the relationship reads at a glance. The motor splits axially (cap / rotor / stator / cap) while the rotor and stator counter-rotate. The brake caliper halves part on either side of the rotor. It opens over 1 beat (long part: 2 beats) and closes over 0.5 s at the end of the segment.-- **Leader**: an anchor ring, then a diagonal to the elbow, then a horizontal to the card, drawn out over 0.5 s. The anchor pulses once when the value locks.-- **Rolling value**: characters lock right-to-left over 0.5 s (long part: 1 s) and turn amber on the downbeat, with a one-frame white flash and a full progress bar under the number. The detail line rolls in **on the same beat**.-- **Chip dock**: at the end of each segment the big card fades (0.35 s) while its chip slides into the left rail (x 140 → 110). The rail step is `min(112, 410 / (n − 1))` px, so 5 chips still fit.-- **Camera follows the box (the transition grammar)**: going from part N to part N+1, the camera interpolates over 0.5 s with a cubic ease in-out. The move starts 0.45 s *before* the next lock, still inside the previous segment. It gets **real motion blur**: 5 sub-frames averaged over a 180° shutter (1/48 s), only inside the whip window, plus faint horizontal speed streaks. Static HUD stays sharp because it doesn't move between sub-frames. There are no cuts or fades anywhere in the scene. The only other transitions are the scan plane itself (in at the start, erase top-down at the end) and the loupe iris.+An orbit camera (yaw, pitch, distance, narrow fov) with a screen position for the target, so the subject can sit beside text. A vocabulary, not a route. Opening and ending come from the topic.-## 5. Camera language+| Move | Expresses | Can serve |+|---|---|---|+| High 3/4, slow orbit craning down | Examination; a scan plane reads as an ellipse | a scan-in; a survey |+| Top-down plan view | Layout, order | a parts inventory; an assembly sequence |+| Eye-level profile, locked | The object as it stands in use | a height; a before/after |+| Push-in, then drift, 3/4 | This part matters; internals come towards the lens | the key spec; a flaw |+| Whip following the target box | Attention jumps to the next part | a list of parts |+| Orbit around a part's own axis | Axial structure only reads in rotation | rotors, stacks, hinges, lenses |+| Lateral dolly along a long part | Length, a path | a beam; a cable run |+| Pull back + loupe (frame in frame) | Where (wide) and what (loupe) | small parts; a sensor |+| Crane to eye level or back up | Status change: the object stands up or settles | a transformation; scale |+| Turntable 360° | Every side | a whole object; a symmetry |+| Nearly static, slow dolly | Reading time without a dead frame | a spec sheet; a checklist |-The camera orbits a target point: yaw, pitch, distance, fov 0.6, and a screen position for the target (so the subject can sit left or right of the text).+Framing: the subject is ≥ ⅓ of frame height at every key moment. Cards on one side, the chip rail on the other, subtitles bottom centre, a loupe above them: never colliding. Shorten explode vectors rather than fly a piece into text.-| Beat | Camera | Why |-|---|---|---|-| Hook (0–2.6 s) | 3/4 front, pitch 14°, slow **orbit** yaw 57° → 24° while it **cranes down** | From above, the scan plane reads as an ellipse, a plane that is rising. Then it drops to near eye level and leaves room for the title on the left |-| Part 1 (slow) | **Push-in** 2.85 → 1.6 (1.5 s ease-out), then drift | The first spec gets the most time. 3/4 so internals come out towards the lens |-| Part 2 | **Whip** (following the box) + **orbit** around the hub axis, yaw −11° → 46° | An axial explode only reads when you orbit around the axis |-| Part 3 (fast) | **Pull back** to full + **loupe** (frame in frame, ×4.3, its own counter-orbit) | Small parts: the wide shot shows *where*, the loupe shows *what*. Both scales are on screen at once |-| Regroup | **Pull back + crane down** to pitch 0 | A low angle makes the object stand up before the light-up |-| High point | **Turntable 360°** + **crane up** 0 → 13° + slight push | The only moment the viewer sees every side |-| Lockup | Nearly static, a slow **dolly** 3.5 → 3.4 | The viewer reads, and the frame doesn't die |-| End | **Scan-erase** top-down, then the end card | Mirrors the hook |--Framing rules: the subject is ≥ ⅓ of frame height in every key moment. Big cards live at x ≥ 1240. The rail lives at x 110–470. Subtitles are fixed at the bottom centre (baseline y 962), and the loupe stays above y 580 so the three never collide. Keep exploded pieces out of the rail (reduce explode vectors rather than let a cap fly into the text).--**Signature shot**: part 1 as one move. Lock, push, the cover slides, the cells glow, the leader pulls out, and "80 km" rolls amber.--## 6. Sound--- **Music first, 120 BPM** (1 bar = 2 s). Locks and value locks land on bar downbeats. `tools/cuecheck.py` checks every key event against `music/score.json` (all on the 1/16 grid, 0 ms offset in the demo).-- **Score** (original, numpy synthesis, D minor with Dorian colour; chords Dm9 → B♭maj7 → Fmaj9 → G6): a 16-step saw/square arpeggio with a ping-pong delay, 1–4 kHz scooped for the voice. A D1 square pulse on quarters, an 8th-note bass, synthesised hats and claps, detuned saw pads. **Density follows the info arc**: no drums on part 1, + hats on part 2, + claps and the arpeggio up an octave on part 3. Regroup **decelerates** (16ths → 8ths → one quarter gliding down). Then a **true digital silence** for one beat. **Drop** at ignition (808-style sine glide + 7-voice wide saw chord). Half-time breathing under the lockup. The arpeggio is removed note by note under the end card.-- **Silences**: (1) the half beat before the first lock, where only the room hum remains and the lock hit is the first sound after it. (2) One full beat before ignition, which is true zero, so the ignition is the loudest moment in the film.-- **Foley follows the material**: light = clean sines and FM blips *in the key* (detect blips D–F–A, amber confirm = D6 + A6 + E7). Machines = servo slides (filtered saw), pneumatic "pff", hydraulic hiss, metal tinks, a low thump + clack + two-tone beep for every lock. Number rolls tick at 24 fps.-- **Ambience**: projector hum (40/80/120 Hz), a low room tone, and after ignition a band-passed "light" noise with a slow tremolo.-- **J/L-cuts**: the motor whine starts 0.4 s before the whip lands on the motor. The hydraulic hiss starts 0.4 s before the brake lock. The hum and the chord tail carry over the scan-erase into the end card.-- **Voice**: Kokoro `af_heart`, speed 1.0: calm and confident. (`af_nicole` was tested and was too breathy and slow: 7.0 s against 4.4 s for the same line.) The music ducks −16.5 dB and the foley −15 dB under the voice, using a **held** envelope (0.5 s max-filter) so the bed doesn't pump between words. Only the first 0.2 s of lock / confirm hits escape the duck.--## 7. Subtitles & titles--- Subtitles are part of the HUD: a dark translucent plate (`rgba(1,8,12,.62)`), two diagonal cyan corner brackets and four "voiceprint" bars that move with the speech. Rajdhani Medium 38 px in near-white. Fixed at the bottom centre, with a wrap width of 1180 px.-- Timing: they appear 0.1 s before the voice, hold ≥ max(1.8 s, speech + 0.6 s) and end 0.12 s before the next line starts.-- The product title is part of the first scene (no separate title card): the name rolls in on the downbeat after the scan, then the model code and category, then the tagline. It returns in the same position in the lockup, which is also the poster.-- End card (after the lockup): film title, SCI-FI HOLOGRAM HUD, Lemo-Opuscar, LemoLab × Claude Opus 5.5, and credits, each line rolling in.--## 8. Pitfalls we hit--- **A light-weight period under glow reads as a comma** ("17,4"). Draw the decimal point as a square.-- **Scrolling a pattern with `setTransform(…, offset)` and then `destination-in`** clears everything outside the shifted rect. Use `offset % patternHeight`, or the fills vanish after the first second.-- **Target boxes sized from the live bounding box** balloon when the part explodes, or when a long piece (the brake hose) is included. Use the rest pose, skip `internal` pieces, and flag long attachments `box:false`.-- **Hotspot labels read as pointing to the wrong part** when they sit on a long diagonal leader. Put the ring on the part body and the number chip right next to the ring. Flash the part white on the ping.-- **Floating components** (the light with no bracket, the saddle with no clamp) are the first thing a viewer notices in a wireframe. Model every connector.-- **Two parallel boxes** (cover and cells both moved) don't read as an explode. Move the shell along its own axis and leave the contents in place, glowing.-- **Voice masked by foley, not music**: in-band (300–4 kHz), rolls, servos and the confirm chord were only 3 dB under the voice. Duck the foley too, and hold the duck through word gaps.-- **Detect blips inside a silence** break the silence. Run cuecheck with the silence windows.-- **The beam polygon** drawn from separate shapes gave dark wedges or double-bright seams. Fill one path with three subpaths using nonzero winding.-- **Text over wireframe** fights with the lines, even when the lines are dim. Put every text block on a plate, and still move the camera so the subject clears the rail.-- **A caliper built from two boxes doesn't read as a caliper.** You need an arc-shaped body that hugs the rotor edge, round piston faces, pads that follow the rotor curve, and vent holes on the rotor. On the explode, the pistons separate *less* than the body, so they appear to extend towards the rotor.-- **Whip written inside the next segment** only starts at that segment's first frame, so it plays as a hard cut. Start the interpolation in the previous segment. Check with a 0.1 s frame strip.-- **Floating parts in a swap model** (the drone's landing legs started outside the hull) break the same rule as the demo. Every connector gets modelled: belly mounts, fold hinges at the arm roots.-- **Scan-erase** has to clip faces as well as edges. Otherwise translucent faces linger after the lines are gone.--## 9. Production recipe (this repo)--```-styles/hologram-hud/demo/- content.json all text, numbers, colours, model path, voice lines content_alt.json the swap test (drone)- engine/holo.js wireframe engine (projection, scan, explode, Fresnel faces, glow, pad, scan plane, normalise, modelFromPath)- engine/hud.js HUD layer (target box, leader, rolling text, spec card, chip, marker, beam, subtitle, chrome, glitch)- models/mkmodel.mjs primitive builder (tube, ring, disc, box, saddle, fender, wheel, cells, stator, rotor, caliper…)- models/gen_volt.mjs the e-bike models/gen_kite.mjs the drone- film.js timeline + cameras + states (only calls the engine) frames.js engine demo scene (?scene=star)- music/score.py original score from timeline.json mix.py UI + mechanical foley + ambience + voice + ducking- tools/ make_lines.mjs export.mjs cuecheck.py final_asr.py-```-1. Write the model generator (parts → pieces with explode vectors; `internal`, `hot`, `box:false`, `anchor`, `center`, `tagDir`), then `content.json`.-2. `tools/export.mjs` dumps `events.json` / `timeline.json` / subtitles. Hand `timeline.json` and the cue map to a music sub-agent while you animate.-3. Review stills (`node core/render/still.mjs <demo> t… [--q content=…]`) and 1 s contact sheets, twice, plus strips around every lock, whip, silence and ignition.-4. `sh demo/build.sh` rebuilds everything: model → TTS → whisper → export → score → cuecheck → mix → srt → render (~45 s for 936 frames with 2 workers; whip frames cost 5×) → mux (−14 LUFS, grain 0) → final whisper check.--## 10. Engine usage--The engine draws **any shape** in this style. Give it a wireframe (vertices, edges, optional quads), or build one from a 2D path with `modelFromPath`.--**`engine/holo.js`**-| Function | Purpose |-|---|---|-| `loadModel(url, {normalize=true, diag=2.3117})` | Load a model JSON, prepare typed arrays, and **normalise** it to the demo's stage size (bounding-box diagonal) so cameras work for any product |-| `prepModel(json)` / `normalizeModel(m, diag)` | The same for in-memory models |-| `modelFromPath(pts2d, {depth, id, slices, explode})` | Extrude any closed 2D path into a wireframe body with side faces |-| `makeCamera(cam, W, H)` | `{project(x,y,z,out)}` for cam `{target, yaw, pitch, dist, fov, cx, cy, roll}` |-| `new Holo(W,H).draw(ctx, model, cam, opts)` | Draw with glow. opts: `hue`, `spin` (turntable), `scan:{y,band}` (grow up to y), `scanDown:{y}` (erase down to y), `explode:{partOrPiece:0–1}`, `angle:{piece:rad}` (spin about piece.axis), `solid:0–1`, `wave:{y,w}`, `focus`+`dim`, `flash:{part:0–1}`, `keep:{piece:'#hex'}` (**the single-colour exception**: that piece keeps its own colour), `lineWidth`, `gain`, `glow`, `only`. Returns `{bbox:{part:[x0,y0,x1,y1]}, anchor:{part:[sx,sy,z]}}` |-| `drawPad(ctx, cam, W, H, {hue, rot, alpha})` / `drawScanPlane(ctx, cam, W, H, y, {hue, r, rot, alpha})` | The projector pad and the scan plane |--Model JSON: `{parts:[{id, anchor, center?, tagDir?, pieces:[{id, v:[x,y,z…], e:[a,b…], q:[a,b,c,d…], explode:[dx,dy,dz], axis?:{c,d}, internal?, hot?, box?}]}]}`.--**`engine/hud.js`**: `theme(hue, accent)`, `background`, `vignette`, `chrome`, `plate(ctx,T,x,y,w,h,a)` (dark text plate), `targetBox(ctx,T,bbox,k,{flash,tag,lockK})`, `leader(ctx,T,from,elbow,to,prog,{pulse})`, `rollText(str,k,frame)`, `monoText`, `specCard(ctx,T,x,y,{label,value,unit,detail},{reveal,roll,detail,frame,flash})`, `chip`, `marker(ctx,T,p,label,a,pulse,dir)`, `beam(ctx,T,project,a,t,{y1})`, `subtitle`, `glitch`, `fitFont`, `wrap`.--Minimal example: a warm-orange `#D97757` four-point star with a cursor tail, scanned in and then locked (`demo/frames.js`, `?scene=star`):-```js-import { Holo, modelFromPath, normalizeModel } from './engine/holo.js';-import * as U from './engine/hud.js';-const P = []; for (let i = 0; i < 8; i++) { const a = Math.PI/2 + i*Math.PI/4, r = i % 2 ? .16 : .5; P.push([Math.cos(a)*r, Math.sin(a)*r + .6]); }-const star = modelFromPath(P, { depth: .12, id: 'star' });-const tail = modelFromPath([[.62,.1],[.7,.1],[.7,.55],[.62,.55]], { depth: .06, id: 'caret' });-const m = { parts: [...star.parts, ...tail.parts] }; m.byId = Object.fromEntries(m.parts.map(p => [p.id, p])); normalizeModel(m, 1.6);-const T = U.theme(188, 38), cam = { target:[0,.55,0], yaw:.6, pitch:.18, dist:2.6, fov:.6, cx:960, cy:540 };-const info = new Holo(1920,1080).draw(ctx, m, cam, { hue: T.hue, scan: { y: .8 }, keep: { star: '#D97757' } });-U.targetBox(ctx, T, info.bbox.star, 1, { tag: 'TGT 01 · LOCK' });-```--## 11. Swap in your content--Every word, number, colour and the model come from `demo/content.json`. The code holds no copy text.--| Field | Type | Allowed | If out of range |+## 7. Sound palette++- **Music first**, on a grid (a bar = one information beat); locks land on downbeats, checked against the score.+- **Synth palette**: saw/square arpeggio with ping-pong delay (scooped 1–4 kHz for the voice), square pulse, 8th bass, synth hats and claps, detuned saw pads.+- **Density follows information.** Tools to pick from, in any order (most films need two or three): half-time for reading time; one beat of **true digital silence** (nothing, not even UI blips); a drop (808-style glide + wide saw chord) for the biggest change; a layer added or removed per part; deceleration by longer note values; a key change; a single sustained tone under a long hold.+- **Foley follows the material**: light = sines and FM blips **in the key**; machines = servo slides, pneumatic puffs, hydraulic hiss, metal tinks (J-cuts); a lock = thump + clack + two-tone beep; rolls tick at frame rate. Ambience: projector hum (40/80/120 Hz) and room tone.+- **Voice**: calm, confident. Duck music *and* foley with a **held** envelope (no pumping between words); lock transients escape. −14 LUFS.++## 8. Native moves++Each move serves information, not story. A menu: use the ones your film needs.++- **Scan growth = "this is real data."** *Fits content like:* a coffee machine; a satellite; an architectural model.+- **Target lock = "look here now."** The box is the camera. *Fits content like:* a car's sensors; a laptop's ports; a robot arm's joints.+- **Local explode = "why the number is true."** *Fits content like:* the burr set of a grinder; the layers of a running shoe sole; the elements of a camera lens.+- **Rolling digits = the payoff beat.** *Fits content like:* a brew temperature; a tolerance in microns; a price.+- **Chip accumulation = reading time.** *Fits content like:* 3–5 facts that must all be read.+- **Loupe = two scales at once.** *Fits content like:* a screw inside a watch; a chip on a board; a valve in an engine.+- **Solid hologram + beam = "the whole is ready."** Once, if at all. *Fits content like:* a launch reveal; a finished assembly; a v2 replacing v1.++## 9. Pitfalls of the medium++- Target boxes balloon → rest pose, skip `internal` pieces, long attachments `box:false`.+- Long diagonal leaders point at the wrong part → ring on the part body, flash the part.+- Two parallel boxes moving don't read as an explode → shell slides on its axis, contents stay and glow.+- A part built from generic boxes doesn't read as that part → give it its characteristic silhouette.+- Voice masked by foley, not music → duck foley too, hold the duck through word gaps.+- UI blips inside a silence break it → check cues against silence windows.+- A whip written inside the next segment plays as a hard cut → start it in the previous one.++## 10. Engine++`demo/engine/holo.js` (wireframe engine: projection, scan, explode, Fresnel faces, glow, pad, scan plane, `normalizeModel`, `modelFromPath` to extrude any 2D path), `demo/engine/hud.js` (theme, plate, target box, leader, rolling text, spec card, chip, marker, beam, subtitle, chrome, glitch), `demo/models/mkmodel.mjs` (primitives: tube, ring, disc, box, wheel, cells…). Models are normalised on load, so cameras work for any object. API, model format and an example: [DEMO.md](DEMO.md#engine-reference).++## 11. Variation space++You decide the object, its model, which parts and in what order, the opening, the ending, the camera path, the colours, the pacing and the music. Use cases are **grammar for the order and duration of information**; build your own timeline from the user's facts.++| Use case | Information order | Hold per layer | Length ||---|---|---|---|-| `product` | string | 1–10 chars | Longer names still roll, but 176 px type will overflow the 410 px column: keep it short or lower the size in `titleBlock` |-| `model_code`, `category` | string | ≤ 30 chars together | Shown in mono 22 px on one line |-| `tagline` | string | ≤ 60 chars | Auto-wraps at 420 px and shrinks to 20 px |-| `model` | path | a model JSON (see §10) | Any size: it is normalised. Parts named in `callouts[].part` must exist |-| `hue`, `accent` | 0–360 | any | The whole film re-themes |-| `voice` | `{id, speed}` | a Kokoro voice | Check with whisper |-| `intro_vo`, `outro_vo`, `callouts[].vo` | string | intro ≤ 5 s spoken; part 1 ≤ 4.8 s; other parts ≤ 3.5 s | Subtitles are clamped to the next line; longer lines overlap the next lock: shorten them or raise speed |-| `*_vo_asr` / `callouts[].vo_asr` | string | optional | What whisper should hear (digits etc.) |-| `callouts[]` | array | **2–5** items: `part`, `label` (≤ 24 chars), `value` (≤ 6 chars), `unit` (≤ 4), `detail` (≤ 40, optional), `vo` | Part 1 gets 3 bars, the others 2 bars each. The timeline, music, cues and rail spacing all re-flow. More than 5 won't fit the rail |-| `footer.weight`, `footer.price` | `{label, value, unit}` | value ≤ 7 chars | Auto-fits down to 40 px |-| `footer.cta` | string | ≤ 34 chars | Auto-fits down to 14 px |-| `film_title`, `credits[]` | strings | | End card |--Parts in the model can set `tagDir: -1` so the lockup hotspot chip sits to the left of its ring.--**One command** (from the repo root; it redoes voice, whisper check, score, cue check, mix, subtitles, render and mux for the new content):-```-CONTENT=content_alt.json NAME=kite sh styles/hologram-hud/demo/build.sh-```-The outputs go to `demo/out/kite/`: `kite.mp4`, `kite.srt`, `poster.jpg`. The swap test in this repo was built exactly this way: 43 s, 4 parts, −14.0 LUFS, cue check 0 mismatches. Preview any content without building with `node core/render/still.mjs styles/hologram-hud/demo 12 --q content=<file>.json`.--**Steps for your own product**: 1) Write `models/gen_<yours>.mjs` with the primitives in `models/mkmodel.mjs` (or convert a CAD export into the format below) and run `node … > models/<yours>.json`. 2) Copy `content.json`, point `"model"` at your JSON and name your parts in `callouts[].part`. 3) Run the one command above.--**Model data format** (one JSON file, metres, **y up**, x = the product's front, z = towards the viewer's side. Any scale works, because it is normalised on load):-```json-{ "name": "VOLT CE-01",- "parts": [ // part = one thing a callout can target (battery, motor, brakes…)- { "id": "brakes", // referenced by content.json callouts[].part- "anchor": [0.527, 0.416, 0.09], // hotspot: where leader lines and the lockup ring land (ON the part's surface)- "center": [0.524, 0.428, 0.08], // optional: what the close-up / loupe camera looks at (defaults to anchor)- "tagDir": -1, // optional: lockup number chip left (-1) or right (1) of the ring- "pieces": [ // piece = a rigid sub-assembly that moves on its own in the explode- { "id": "brake-caliperA",- "v": [x0,y0,z0, x1,y1,z1, …], // vertices, flat- "e": [0,1, 1,2, …], // edges: index pairs into v (the wireframe lines)- "q": [0,1,5,4, …], // optional quads: 4 indices each (the translucent solid-hologram faces + Fresnel)- "explode": [0, 0, 0.10], // offset at explode = 1, along the assembly axis- "axis": { "c": [x,y,z], "d": [0,0,1] }, // optional spin axis (rotors, fans)- "internal": true, // optional: hidden until the part opens (cells, stator)- "hot": true, // optional: glows near-white while open (the thing that makes the number true)- "box": false } // optional: excluded from the target-box bounds (long hoses, cables)- ] } ] }-```-Rules: every piece must physically touch its neighbour (no floating parts). Tubes are rings plus longitudinal lines, not single lines. Keep the total around 5k vertices / 6k edges for fast renders. Give the part that carries the key number a `hot` inner piece and a shell that slides *along its own axis*.--Minimal example (two parts):-```json-{ "product": "ORBIT", "model_code": "S1", "category": "Smart speaker", "tagline": "Room-filling sound.",- "model": "models/orbit.json", "hue": 170, "accent": 40,- "voice": { "id": "af_heart", "speed": 1.0 }, "intro_vo": "This is Orbit.",- "callouts": [- { "part": "driver", "label": "Woofer", "value": "4", "unit": "in", "vo": "A four inch woofer." },- { "part": "mics", "label": "Far-field mics", "value": "6", "unit": "", "vo": "Six microphones hear you across the room." } ],- "footer": { "weight": { "label": "Weight", "value": "1.2", "unit": "kg" }, "price": { "label": "From", "value": "199", "unit": "USD" }, "cta": "Available now" },- "outro_vo": "Orbit. Available now.", "film_title": "Orbit · Spec Scan", "credits": ["…"] }-```-The swap test in this repo is `content_alt.json`: a four-part folding drone in blue / orange. Its stills are `demo/stills/alt_title.jpg`, `alt_signature.jpg` and `alt_lockup.jpg`.+| **Spec walkthrough** | Name + tagline → one spec per part (label, value, unit, detail) → weight / price → CTA | Title ≥ 5 s; value ≥ 2.5 s, then docked; final sheet ≥ 3 s | 30–40 s, 2–5 parts |+| **Loop screen** | Name → 3–5 specs → CTA, no voice; last frame = first | 3 s per spec, 5 s final | 20–30 s loop |+| **Teardown** | Part → what it does → one number; internals only when opened | 4–6 s per part | 40–60 s |+| **Upgrade** | Part → old value (dim) → new value (accent); old part scan-erased, new one scanned in | 3 s per upgrade | 20–30 s |+| **Assembly order** | Step number → part name; parts snap home one by one | one bar per part | 20–40 s |++All far from our demo:++- Structures: **a loop screen** that never names a product and cycles five sensors; **a teardown** one layer deeper per shot until the core is a single hot piece; **an upgrade** where two versions share the pad and every number rolls from old to new.+- Openings: **a part first** (one component locked in close-up; the rest scans out from it); **a flat outline** (a 2D silhouette extrudes into the wireframe, `modelFromPath`); **plan view** (top-down, the pad as a dial, the object arriving as its footprint).+- Endings: **one value at eye level** (the wireframe dims around the single number that matters); **knolling** (parts fly into a labelled top-down layout); **power-down** (edges cool, HUD panels switch off until only the pad glows).++Swapping `demo/content.json` and rebuilding is a technical check that the engine re-flows, not a way to make a film.++---++How our demo was made (story, shots, score, end card, build, content fields): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/hologram-hud/TREATMENT.md b/styles/hologram-hud/TREATMENT.mddeleted file mode 100644index 52f1532..0000000--- a/styles/hologram-hud/TREATMENT.md+++ /dev/null@@ -1,254 +0,0 @@-# Sci-fi Hologram HUD · 导演方案(Treatment)--**片名** *Volt · Spec Scan*(片内第一个画面就是产品名 VOLT,不单独做片名卡)-**场景** 硬件产品的卖点与参数讲解:产品页首屏视频 / 众筹视频的参数段 / 展会屏循环片-**产品** 虚构城市电助力车 **VOLT CE-01**(品牌、造型、参数全部原创)-**时长** 39 s(120 BPM,4/4,1 小节 = 2 s;场景 34 s + 片尾卡 5 s)| **画幅** 1920×1080 | **帧率** 24 fps,全部逐帧平滑(全息界面是精确的机器运动,不做步进;只有乱码滚动按 24 fps 每帧换字形)-**旁白** 要。平静、自信的产品讲解,Kokoro 候选 af_nicole / af_heart(制作时两条都试,挑更"冷静而不冷漠"的那条)。字幕做成界面里的"语音转写条"。-**一句话** 一道扫描光带从投影台升起,把一辆自行车"扫"成发光的线框;目标框逐个锁定电池、电机、刹车,每次锁定都推近、局部拆开、拉出引线、数字从乱码滚到真值;三个部件归位后全场静音一拍,线框亮成实心的全息体转一圈,最后停成一张能直接当产品页首屏的参数海报。-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么(语法) | 刻意不学 |-|---|---|---|-| **《钢铁侠》《复仇者联盟》的 HUD 与全息工作台**(Territory Studio、Perception 的界面设计) | 目标框"先大后小、斜着转正"的锁定动作;引线标注从锚点圈出发、先斜后平;数字滚动;前景界面 / 主体 / 背景网格三层视差;全息物体被手势"拆开"后悬浮;界面元素每一个出现都有声音 | 不做满屏堆叠的信息瀑布(那是"炫"不是"讲");不用红金配色、不出现任何角色、盔甲、logo、片中界面的具体布局与字体 |-| **《遗落战境》的全息界面**(GMUNK 等) | 克制的单色:几乎只有一种冷色 + 一个暖色;大量留白;细线(1–2 px);界面文字小而疏;动效慢而稳 | 不用它的白色塑料质感和具体图标;不做无人机、地图等片中物件 |-| **工业 CAD 线框与爆炸图** | 管件是"环 + 纵线"组成的网格;零件沿装配轴线拆开并保持对齐;拆开的距离说明结构层级;爆炸时镜头给 3/4 角度让层与层分开 | 不做纸面工程图的线型、图框、标题栏(那是 blueprint 的事);不做写实材质 |-| **产品页首屏 / 众筹参数段**(功能用途的对标) | 一屏一个卖点、大数字 + 单位 + 一行解释;最后一屏"所有参数 + 价格 + 行动号召"可以直接截图 | 不做滚动网页的排版;不出现任何真实品牌与价格体系 |--### 和库内已有风格的区别--| 容易撞的风格 | 它是什么 | 本风格怎么区分 |-|---|---|---|-| **dark-keynote 暗色科技发布** | 软件 app 发布,主角是界面、窗口、字体排版;青柠色光标 | 本片主角始终是**发光的三维线框实物**,文字只做标注;主色是青色全息 + 琥珀色数值,没有窗口、没有排版秀 |-| **blueprint 蓝图 / 工程制图** | 晒图纸上的白线正交制图,纸、图框、手写标注 | 本片没有纸:黑场里的**加法发光线**,**透视**投影、会转、会被扫描出来;标注是 HUD 引线不是尺寸线 |-| **glass-product 玻璃质感产品** | three.js 写实玻璃耳机开箱,灯光、折射、色散 | 本片**不做写实渲染**,纯 2D Canvas 线框投影;产品"是扫描出来的数据",不是被灯照亮的物体 |-| **iso-infographic / dataviz / living-screencast** | 等距沙盘旅程 / 数据折线 / 软件录屏教程 | 场景不同:本片是**硬件参数讲解**,信息单位是"部件 → 一个数值" |--媒介(发光线框 + 界面层)、配色(冷青单色 + 唯一暖色琥珀)、镜头语法(目标框带镜头)、配乐(120 BPM 精准电子脉冲 + 界面音)、场景用途(硬件参数页)都与现有风格不重合。-------## 二、信息弧(替代情绪弧)--| 层 | 时间 | 信息 | 这一层的动作 | 这一层的声音 | 节拍 |-|---|---|---|---|---|---|-| **钩子** | 0–2.6 | (无字)一辆东西正在被扫出来 | 扫描光带从投影台往上升,线框随光带长出,交点闪白点 | 扫描上升音(滤波噪声 + 上行正弦)、投影台低频嗡鸣 | 第一帧光带已在车轮高度,不从空白开始 |-| **主标题** | 2.0–8.0 | VOLT / CE-01 · City e-bike / Stripped to what matters. | 产品名乱码滚到真值;副标题、标语按拍依次出现;镜头缓慢环绕 | 琶音进入(低通);每行字一个"确认"细音 | 2.0 / 3.0 / 3.5 |-| **关键数据 ×3** | 8–22 | 电池 80 km → 电机 250 W → 刹车 160 mm | 每个部件:目标框锁定 → 镜头动作 → 局部爆炸 → 引线 → 数字滚动 → 细节行 → 收成左栏芯片 | 锁定 = 小节头的重击;数字锁定 = 琥珀色和弦音 | 第一个 3 小节慢讲,后两个各 2 小节(加速) |-| **细节** | 同上 | 540 Wh · hidden in the down tube 等 | 数值锁定后半拍出现,停到段末 | 细碎打字 tick | |-| **高点** | 24–28 | (无新字)整车归位成立 | 静音一拍 → 线框亮成实心全息体 + 投影光柱 + 故障闪 3 帧 → 转 360° | 全片唯一的低频 drop + 宽和弦 | 小节头 24.0 |-| **行动号召 / 落版** | 28–34 | 左:VOLT + 三项参数;车上 01/02/03 热点;右:重量 17.4 kg、价格 1,990 EUR、Reserve now · ships spring 2027 | 标题回到左栏;热点按八分音符依次打点;重量、价格滚动;CTA 框画出 | 三声 ping + 两次数字滚动 + 一次确认 | 30.85 起全部在场,停到 34.0(≥3.1 s) |-| **片尾卡** | 34–39 | 片名、风格名、Lemo-Opuscar、LemoLab × Claude Opus 5.5、素材署名 | 扫描光带反向从上往下把车擦成光点,字卡滚出 | 全息嗡鸣和最后的和弦拖尾(L-cut)| |--### 阅读时间核对(≥ 字数 ÷ 12 + 1 s,最短 1.5 s)--| 文字 | 字数 | 需要 | 实际在场 |-|---|---|---|---|-| VOLT + CE-01 · CITY E-BIKE + 标语 | 44 | 4.7 s | 2.5–7.9 = 5.4 s(落版再出现) |-| 电池:BATTERY RANGE / 80 km | 18 | 2.5 s | 11.0–13.6 = 2.6 s,之后常驻左栏到 34.0 |-| 电池细节 540 Wh · hidden in the down tube | 32 | 3.7 s | 11.5–13.6 = 2.1 s ✗ → **制作时把细节提前到 10.75,与数值同一拍滚动**,并在 13.6 后随芯片保留一行缩略 |-| 电机:REAR HUB MOTOR / 250 W | 19 | 2.6 s | 15.0–17.6 = 2.6 s,之后常驻 |-| 电机细节 45 Nm · sealed, silent | 22 | 2.8 s | 16.5–17.6 ✗ → 同上处理:细节与数值同拍,段末不急着收,收进芯片后保留 1.0 s |-| 刹车:HYDRAULIC DISC / 160 mm | 19 | 2.6 s | 19.0–21.6 = 2.6 s,之后常驻 |-| 落版全部信息 | — | ≥ 3 s | 30.85–34.0 = 3.15 s(HUD 34.0–34.5 才淡出) |--> 细节行是三条里最容易被"闪过去"的,已列为最没把握的点之一;如果加提前量仍不够,就把后两个部件的细节行删掉(宁可少放一条)。-------## 三、原生招式(只有"全息线框 + 界面"能做到的)--| 招式 | 放在哪里 | 怎么做 |-|---|---|---|-| **扫描生长** | 开场钩子;片尾反向擦除 | 世界高度 y 的扫描面:只画 y 以下的边,跨过扫描面的边在交点截断并画白点;扫描前沿 7 cm 内的边发白("刚被扫到");扫描面本身是投影出来的椭圆 + 刻度 + 横向光幕 |-| **局部爆炸图** | 三个部件各一次 | 每个零件由若干 piece 组成,piece 自带爆炸向量;内部件(电芯、定子、转子)平时隐藏,爆炸时才出现;转子 / 定子反向自转、碟片慢转 |-| **目标框带镜头** | 贯穿全片的转场语法 | 目标框从 1.9 倍、45° 斜角缩到贴合零件;下一个部件时目标框飞过去,镜头跟着目标框甩过去(带速度线),所以每次转场都是"眼睛追框" |-| **滚动数字** | 每个数值、产品名、价格 | 每个字符先乱码(数字位用 0–9,字母位用 A–Z#%/),从右往左按拍锁定;锁定瞬间变琥珀色并闪白一帧 |-| **多层视差** | 全程 | 背景点阵(视差 0.2)、投影台(跟相机透视)、主体、前景刻度尺(视差 1.4)、界面文字(不动) |-| **放大镜画中画** | 刹车段 | 第二个相机在圆形取景框里以 3.9 倍放大卡钳和碟片,里面单独做爆炸;两条切线把放大镜和车上的小圈连起来 |-| **实心全息体 + 投影光柱** | 高点 | 四边面按屏幕空间菲涅尔(侧面越亮)填色,再乘隔行扫描纹理;投影台升起光锥和上升光尘 |-| **克制的故障闪烁** | 只在 24.0 点亮那 3 帧 | 横向切片错位 + 轻微色偏,不做第二次 |-------## 四、镜头表--| # | 时间 | 景别 | 角度 | 运动 | 为什么这样拍 |-|---|---|---|---|---|---|-| 1 | 0–8 | 全景(车占画高 ~55%) | 3/4 前侧,俯角 14° → 7° | **环绕**(yaw 57° → 24°)+ **降**(俯角变小)+ 轻微拉远 | 开场从高处看扫描面(椭圆读得出是"一个面在升"),扫完后降到接近平视,让车立起来、给左边标题留位置 |-| 2 | 8–14 | 中近景(电池占画高 ~40%) | 3/4 前侧、俯 11° | **推**(2.85 m → 1.6 m,1.5 s 缓出)+ 之后极慢漂移 | 第一个卖点讲得最慢:推近 = "看这里";3/4 让电芯从管里往镜头方向拆出来,层次分开 |-| 3 | 13.55–14.05 | — | — | **甩**(目标框带镜头,0.5 s) | 转场在媒介里:眼睛追着目标框飞向后轮 |-| 4 | 14–18 | 近景(后轮毂) | 从车后侧 → 车侧前方 | **环绕**(yaw −14° → 49°) | 轮毂电机沿轴向拆开(左盖 / 转子 / 定子 / 右盖),只有绕着轴转才看得出层层分开 |-| 5 | 17.55–18.05 | — | — | **甩** + **拉**回全景 | 第三个卖点加速:不再推近,而是拉远 |-| 6 | 18–22 | 全景 + 画中画特写 | 侧前方 | **横移**(极慢)+ 放大镜内**反向环绕** | 画框内的画框:全景交代刹车在哪,放大镜交代它是什么,两个景别同时在场 |-| 7 | 22–24 | 全景 | 降到平视 | **拉** + **降** | 重组:部件归位,参数收进左栏;低机位让车显得更"立",为点亮蓄力 |-| 8 | 24–28 | 全景 → 中全景 | 平视 → 俯 13° | **转台 360°**(主体转)+ **升** + 轻**推** | 高点:尺度与体量的展示,唯一一次让观众看全车每一面 |-| 9 | 28–34 | 全景(海报构图) | 3/4、俯 10° | 极慢**推**(3.5 → 3.4 m) | 落版:几乎不动,让观众读;轻推防止画面"死" |-| 10 | 34–39 | — | — | 扫描面**从上往下擦除** → 片尾卡 | 首尾呼应:开场扫出来,结尾扫回去 |--镜头运动种类:环绕、推、拉、甩、横移、升 / 降、转台、画中画,共 8 种。景别:全 / 中近 / 近 / 特写(放大镜)。--**签名镜头**:镜头 2(8–14 s)——目标框锁定 → 推近 → 下管外壳滑开、两排电芯拆出来 → 引线拉出 → "80 km" 从乱码滚到琥珀色真值,一镜完成,所有 HUD 语法都在这一个镜头里。-**高点**:镜头 8 的 24.0 点亮。-------## 五、分镜节拍表(按秒;所有剪辑点和重要动作在拍点上)--| 时间 | 画面 | 旁白 / 字幕 | 声音 |-|---|---|---|---|-| 0.0 | 扫描面已在车轮高度,车轮下半圈和踏板在发光;投影台刻度在转 | — | 投影台嗡鸣(40 Hz + 80 Hz)、扫描上升音起 |-| 0.0–2.6 | 光带升过车架、车把;前沿发白、交点白点闪烁;右上 SCANNING 000→100% | — | 上升音随光带升高;每过一个部件(轮、架、把)一个细 tick |-| 2.0 | **VOLT** 乱码滚到真值 | — | 琶音进(低通 400 Hz)+ 标题"确认"音 |-| 2.5 | 扫描完成,扫描面消散 | — | 上升音收在一个短"叮" |-| 3.0 | CE-01 · CITY E-BIKE | **VO1** "This is Volt. A city e-bike, stripped to what matters." | 音乐让路 −6 dB |-| 3.5 | 标语 | | |-| 4.0–7.5 | 镜头环绕下降;右上 SCAN COMPLETE · 3 SYSTEMS | | 低频脉冲四分音符进 |-| 6.5 / 7.0 / 7.5 | 三个预备目标框在电池、电机、刹车上各闪一下 | | 三声短"探测"音(上行三度) |-| 7.5–8.0 | 标题收起,画面停住 | | **静音 ①**(只剩房间嗡鸣) |-| **8.0** | **锁定 01**:目标框从大斜框砸到电池上,闪白 | | 锁定重击(低频 thump + 金属 clack + 高频 lock 音) |-| 8.0–9.5 | 推近到电池 | | 琶音打开、低音八分 |-| 9.0 | | **VO2** "The battery hides inside the down tube. Eighty kilometres on one charge." | |-| 9.0–10.0 | 下管外壳滑开,电芯、管理板拆出 | | 滑轨 + 伺服音、每排电芯落位一个 click |-| 10.0 | 引线从锚点拉出,卡片标题出现 | | 引线 zip |-| 10.0–11.0 | 80 滚动 | | 滚动 tick(十六分音符) |-| **11.0** | **80 km 锁定**(琥珀色) | | 确认和弦音(琥珀色 = 这个音色,全片数值统一) |-| 11.5 | 细节行 | | |-| 13.4–13.9 | 电池归位 | | 归位 click |-| 13.55–14.05 | 目标框飞向后轮,镜头甩过去 + 速度线 | | **J-cut ①**:电机的高频电磁啸叫从 13.6 先进 → whoosh |-| **14.0** | **锁定 02** 后轮毂 | | 锁定重击;hi-hat 十六分加入(密度 +1) |-| 14.5 | 左右盖沿轴拆开,转子 / 定子反向转 | **VO3** "A two hundred and fifty watt hub motor. Silent, and sealed." | 电机嗡鸣随转速升 |-| 15.0 | 卡片 | | |-| 15.5–16.0 | 250 滚动 → **16.0 锁定** | | 确认和弦 |-| 16.5 | 细节行 | | |-| 17.55–18.05 | 甩回全景 | | **J-cut ②**:油压"嘶"声 17.6 先进 |-| **18.0** | **锁定 03**:放大镜打开 | | 锁定重击;拍手 / 军鼓 2、4 拍加入(密度最高)|-| 18.25 | 放大镜里的目标框锁定卡钳 | | 高频 lock |-| 18.5 | 碟片前移、卡钳两半分开 | **VO4** "Hydraulic disc brakes. Sure stops, even in the rain." | 油压嘶声 + 金属片 tink |-| 19.5–20.0 | 160 滚动 → **20.0 锁定** | | 确认和弦 |-| 22.0 | 放大镜收拢(光圈式),部件归位 | | 琶音减速:十六分 → 八分 → 四分(**明显减速**) |-| 22.0–23.0 | 镜头拉远降到平视;第三张芯片停进左栏 | | 三声归位 click |-| 23.0–23.5 | 线框电量下降,亮度降到 30% | | 下行"断电"音 |-| 23.5–24.0 | 全场停住 | | **静音 ②(真静音,一拍)** |-| **24.0** | **点亮**:线框变实心全息体,投影光柱升起,故障闪 3 帧 | | **全片最重要的声音**:低频 drop + 宽和弦 + 故障 burst |-| 24.0–28.0 | 转台 360°,镜头升起 | (无旁白,给音乐) | 满编:琶音、低音、鼓、和弦;转台 whoosh(多普勒) |-| 28.0 | 转回 3/4,停 | | 音乐退到"呼吸":只剩脉冲 + 琶音(半速感) |-| 28.25 | 标题回到左栏 | | |-| 28.5 / 28.75 / 29.0 | 车上 01、02、03 热点依次打点 | | 三声 ping(八分音符) |-| 29.0 | | **VO5** "Seventeen point four kilos. Ready when you are." | |-| 29.5 / 30.0 | 重量、价格滚动锁定 | | 两次滚动 + 确认 |-| 30.5 | CTA 框画出 | | 最后一个确认音 |-| 30.85–34.0 | **落版停住**(可截图) | | 和弦长音 |-| 34.0–35.25 | 扫描面从上往下把车擦成光点,HUD 淡出 | | **L-cut ①**:全息嗡鸣和和弦拖尾延续到片尾卡;反向扫描下行音 |-| 35.0–39.0 | 片尾卡字逐行滚出 | | 每行一个细 tick,嗡鸣淡出到零 |-------## 六、Cue map(音乐先行,画面卡这张表)--**120 BPM,4/4,1 拍 = 0.5 s,1 小节 = 2 s,共 19.5 小节。调性 D 小调(Dorian 色彩),琶音用 D–F–A–C–E 五音循环。**--| 小节 | 时间 | 段落 | 配器 | 密度 / 情绪 | 卡点 |-|---|---|---|---|---|---|-| 1–2 | 0–4 | 扫描 | 投影台嗡鸣(D1 正弦 + 八度)、扫描上升(噪声带通 + 上行正弦 0→2.6 s);2.0 起琶音(十六分,低通 400 Hz) | 神秘、克制 | 2.0 标题 / 2.5 扫描完成"叮" |-| 3–4 | 4–8 | 定场 | + 低频脉冲(四分,D1 方波低通);琶音滤波缓开 | 稳 | 6.5/7.0/7.5 探测音;**7.5–8.0 静音 ①** |-| 5–7 | 8–14 | 电池(慢讲) | + 低音八分(D2–A1);琶音全开;无鼓 | 专注 | **8.0 锁定**(小节头)、11.0 数值确认(小节头)、13.6 J-cut |-| 8–9 | 14–18 | 电机 | + hi-hat 十六分 | 加速 | **14.0 锁定**、16.0 确认 |-| 10–11 | 18–22 | 刹车 | + 拍手 2、4 拍,琶音升八度 | 最密 | **18.0 锁定**、20.0 确认 |-| 12 | 22–24 | 重组 | 鼓撤掉;琶音减速十六分 → 八分 → 四分;23.0 下行断电音 | **减速、呼吸** | 22.0 / 22.5 / 23.0 归位 click;**23.5–24.0 真静音 ②** |-| 13–14 | 24–28 | 点亮 360° | **24.0 drop**:808 式低频 + 宽锯齿和弦(Dm9)+ 全部回来 | 全片最高 | 24.0;26.0 和弦换到 B♭maj7 |-| 15–17 | 28–34 | 落版 | 只留脉冲 + 琶音 + 和弦垫(半速感) | 呼吸、确定 | 28.5/28.75/29.0 ping、29.5/30.0/30.5 确认 |-| 18–19.5 | 34–39 | 片尾 | 和弦拖尾 + 嗡鸣(L-cut),琶音一个音一个音拿掉 | 余韵 | 34.0 反向扫描、39.0 归零 |--- **每个锁定落在小节头**(8.0 / 14.0 / 18.0),**每个数值确认也在小节头**(11.0 / 16.0 / 20.0);整车点亮前静音一拍(23.5–24.0)。-- 条目数变化时(2–5 个),第一个部件 3 小节,其余各 2 小节,时间线和卡点自动顺延(`film.js` 的 `buildTimeline`),配乐脚本读同一份时间线生成。-- 配乐 fork 一个子 agent 按本表和导出的 `timeline.json` 写(numpy 合成为主:方波 / 锯齿 / FM 琶音、808 式低频;界面音单独做成音效库)。画面并行。-- 卡点自检:仿 microgame 的 `cuecheck.py`,比对配乐音符表与画面事件(EV),偏差 ≤ 1 帧。-------## 七、声音设计表--| 段落 | 环境底 | 主要拟音(跟"光与机器"的材质走:发光线 = 高频电子,机械部件 = 低沉的伺服和金属) | 音乐状态 |-|---|---|---|---|-| 扫描 0–2.6 | 投影台嗡鸣(40/80 Hz + 轻微 60 Hz 交流声)、机房空调底噪 | 扫描上升音;扫描面刻度转动的细 tick;过部件的 tick | 2.0 起琶音(低通) |-| 标题 2–8 | 同上 | 字符滚动 tick(24 fps 颗粒);每行确认音;三声探测 | 琶音 + 脉冲,VO 时让路 −6 dB |-| 静音 ① 7.5–8.0 | 只留房间嗡鸣 | — | 全停 |-| 电池 8–14 | 嗡鸣 | 锁定重击;外壳滑轨 + 伺服;电芯落位 click;引线 zip;数字滚动;琥珀确认 | 低音 + 琶音,VO 让路 |-| 电机 14–18 | 嗡鸣 + 电机电磁啸叫(J-cut 进) | 甩镜 whoosh;锁定;左右盖分开的气压"噗";转子转动的调制嗡声 | + hi-hat |-| 刹车 18–22 | 嗡鸣 + 油压嘶声(J-cut 进) | 放大镜光圈开合;卡钳分开的金属 tink;碟片转动的细铃音 | + 拍手 |-| 重组 22–24 | 嗡鸣渐弱 | 归位 click × 3;断电下行 | 减速 → **真静音** |-| 点亮 24–28 | 投影光柱的高频"光"噪(带通白噪 + 慢颤音) | 故障 burst(3 帧数码爆裂);转台 whoosh(多普勒) | 满编 drop |-| 落版 28–34 | 光柱噪声压低 | 三声 ping;两次滚动;CTA 确认 | 呼吸 |-| 片尾 34–39 | 嗡鸣(L-cut)淡出 | 反向扫描下行;字卡 tick | 和弦拖尾 |--混音:旁白最高优先级,音乐和环境底在旁白期间侧链压 6 dB;锁定重击和确认音不让路(它们是信息的"落点")。响度 −14 LUFS,不加颗粒(grain 0)。-------## 八、字幕设计(界面的一部分)--- 位置固定:画面底部居中(基线 y = 962),不随镜头移动。-- 样式:深色半透明底板(rgba(1,8,12,.62))+ 对角两个青色括角 + 左侧 4 根跳动的"声纹"竖条,字体 Rajdhani Medium 38 px、近白青色。像 HUD 里的实时语音转写。-- 每条在语音开始前 0.1 s 出现,停留 ≥ max(1.8 s, 语音 + 0.6 s),不和参数卡、放大镜重叠(参数卡右侧 x ≥ 1240、y ≤ 870;放大镜 y ≤ 580)。-- 另交 `.srt`。-------## 九、可替换内容(`demo/content.json`)--所有文字、数值、配色、模型路径、旁白都从 content.json 读,代码里不写死文案。--| 字段 | 类型 | 说明 |-|---|---|---|-| `product` / `model_code` / `category` / `tagline` | 字符串 | 左栏标题块;标语超宽自动换行、缩字号 |-| `model` | 路径 | 线框模型 JSON(顶点 / 边 / 面 + 零件 / piece / 爆炸向量),由 `models/gen_*.mjs` 生成 |-| `hue` / `accent` | 0–360 | 全息主色相 / 唯一暖色(数值锁定色) |-| `voice` | {id, speed} | Kokoro 声线 |-| `intro_vo` / `outro_vo` | 字符串 | 开场与落版旁白 |-| `callouts[]` | 2–5 项 | `part`(模型里的零件 id)、`label`、`value`、`unit`、`detail`(可选)、`vo` |-| `footer` | 对象 | `weight` / `price`(label + value + unit)、`cta` |-| `film_title` / `credits[]` | | 片尾卡 |--时间线规则:第一个部件 3 小节,其余各 2 小节;镜头模式按 推 → 环绕 → 放大镜 循环;左栏芯片按条目数排(最多 5 条,间距 92 px)。关卡 2 交 `content_alt.json`(换一台完全不同的硬件,暂定折叠无人机)和 3 张静帧。-------## 十、技术方案--- `demo/engine/holo.js`:线框引擎(透视投影、转台、扫描生长 / 擦除、局部爆炸、piece 自转、菲涅尔实心面 + 隔行纹理、景深雾化、两级辉光、扫描面、投影台)。纯 Canvas 2D。-- `demo/engine/hud.js`:界面层(目标框、引线、滚动数字、参数卡、芯片、热点、投影光柱、字幕条、取景框、故障闪)。-- `demo/models/mkmodel.mjs` + `gen_volt.mjs`:用基本体(管、环、盘、盒、座垫、辐条轮、电芯、定子、碟片)拼线框模型,输出 JSON。换产品 = 写一个新的 gen 脚本。-- `demo/film.js`:只做编排(时间线、相机、状态),调用引擎。-- 字体:Rajdhani(界面、数字)、Share Tech Mono(小字数据),均为 OFL,已放进 `demo/fonts/`。-------## 十一、制作阶段修订(关卡 1 意见落实后,以成片为准)--| 项 | 方案原稿 | 成片 | 理由 |-|---|---|---|---|-| 阅读时间 | 细节行段末收起,后两条可能删掉 | **芯片累积**:每个部件结束时,参数卡收成左栏芯片(名称 + 数值 + 细节),一直留到落版;细节行与数值同拍滚出 | 关卡 1 意见 1:每条参数实际在场 13–25 s |-| 实心全息 | 面填充偏淡 | 管件的截面环之间填半透明四边形(菲涅尔 0.3 + 0.7·(1−正对)^1.6)× 隔行纹理;点亮瞬间线宽 ×1.5 再回落到 ×1.12;24.0 和 26.0 各有一道沿车身上行的光波;投影光柱改成"底椭圆 + 顶椭圆 + 侧面"一次填充 | 关卡 1 意见 2:t=25 自检帧见 `demo/stills/styleframe.jpg`(25.5) |-| 落版热点 | 引线斜出,编号牌离得远 | 圈钉在部件本体(01 = 下管中段、02 = 后轮毂中心、03 = 卡钳),编号牌紧贴圈的一侧;打点时整个部件闪白一帧 | 关卡 1 意见 3 |-| 模型连接 | 车灯、车把、座垫看起来悬空 | 加车灯支架(从头管伸出)、车把夹、座杆夹 + 座垫导轨、前后挡泥板撑杆 | 关卡 1 意见 4 |-| 放大镜 | 卡钳偏小、偏上 | 放大镜相机对准两半卡钳的中点,×4.3;卡钳两半沿 z 轴向两侧分开(+10 cm / −5 cm),占放大框约 75% 宽 | 关卡 1 意见 5 |-| 电池爆炸 | 外壳下盖和电芯各自平移,像两根平行体 | 下盖沿下管方向滑出(朝五通方向),电芯留在原位并变白发亮 | 关卡 1 意见 6 |-| 旁白起点 | 后两个部件锁定后 0.5 s | 锁定后 0.25 s | "sealed""rain" 原先压在下一次锁定和归位声上,被 whisper 听错 |-| 预备目标框 | 6.5 / 7.0 / 7.5 | 6.0 / 6.5 / 7.0 | 7.5 是静音 ①,不能有声音 |-| 芯片停靠 | 段末 −0.3 s | 段末 −0.25 s(1/16 网格) | 卡点自检 |-| 旁白声线 | af_nicole / af_heart 待选 | **af_heart** | af_nicole 气声太重、太慢(同一句 7.0 s 对 4.4 s),放不进 2 小节 |-| 模型尺度 | 相机参数按自行车写死 | 引擎加 `normalizeModel`:任意模型按包围盒对角线缩放到同一舞台尺寸;扫描高度、镜头目标高度按模型高度缩放 | 换内容(无人机)时镜头仍然成立 |--## 十二、关卡 2 返修(v2,旧版备份为 hologram-hud_v1.mp4 / demo_v1/)--| 项 | v1 | v2 |-|---|---|---|-| 刹车段左栏芯片压在车上 | 芯片直接叠在后挡泥板和后轮线框上 | 两种都做了:①所有文字块(左栏芯片、参数卡、落版价格栏、热点编号、字幕)加深色半透明底板(72%、1 px 细边框、四角短刻);②刹车段全景机位右移(目标屏幕位置 x 0.43 → 0.49,距离 3.35 → 3.5),后轮离开左栏 |-| 放大镜卡钳 | 两个方盒子 | 贴着碟片边缘的弧形钳体两半,每半两个活塞(端面同心圆 + 短圆柱,拆开时发白),弧形刹车片(背板 + 摩擦块)贴在碟片两侧,碟片两圈交错通风孔;拆开时钳体分开 16 cm,活塞比钳体少分开 2 cm,读成"活塞伸出夹住碟片";目标框只框卡钳(碟片不计入),放大镜对准卡钳中点,×5.0 |-| 无人机起落架悬空 | 从机身外侧空中伸出 | 从机身腹部安装座伸出,落地处有脚垫;四个机臂根部加竖直销轴的折叠铰链 + 铰链座,对上"Folds into a jacket pocket" |-| 甩镜 | 插值 + 速度线 | 另加真运动模糊:甩的 0.5 s 里按 180° 快门(1/48 s)取 5 个子帧平均;静止的界面不受影响 |-| 换内容 | 只能出静帧 | 一条命令整片重做:`CONTENT=content_alt.json NAME=kite sh styles/hologram-hud/demo/build.sh`(已实跑:43 s、−14.0 LUFS、卡点 0 偏差) |diff --git a/styles/hologram-hud/demo/stills/alt_lockup.jpg b/styles/hologram-hud/demo/stills/alt_lockup.jpgnew file mode 100644index 0000000..7954ce2Binary files /dev/null and b/styles/hologram-hud/demo/stills/alt_lockup.jpg differdiff --git a/styles/hologram-hud/demo/stills/alt_signature.jpg b/styles/hologram-hud/demo/stills/alt_signature.jpgnew file mode 100644index 0000000..5264e99Binary files /dev/null and b/styles/hologram-hud/demo/stills/alt_signature.jpg differdiff --git a/styles/hologram-hud/demo/stills/alt_title.jpg b/styles/hologram-hud/demo/stills/alt_title.jpgnew file mode 100644index 0000000..53c4402Binary files /dev/null and b/styles/hologram-hud/demo/stills/alt_title.jpg differdiff --git a/styles/hologram-hud/demo/stills/styleframe.jpg b/styles/hologram-hud/demo/stills/styleframe.jpgnew file mode 100644index 0000000..53923d7Binary files /dev/null and b/styles/hologram-hud/demo/stills/styleframe.jpg differdiff --git a/styles/hologram-hud/style.json b/styles/hologram-hud/style.jsonnew file mode 100644index 0000000..a88de6d--- /dev/null+++ b/styles/hologram-hud/style.json@@ -0,0 +1,18 @@+{+ "slug": "hologram-hud",+ "num": "52",+ "en": "Sci-fi Hologram HUD",+ "cn": "科幻全息界面",+ "category_en": "Information & Keynote",+ "category_cn": "信息与发布",+ "film": "Volt · Spec Scan",+ "line": "An e-bike is scanned into a hologram; target boxes lock onto the battery, motor and brakes, and each spec rolls into place.",+ "line_cn": "一辆电助力车被扫描成全息线框,目标框依次锁定电池、电机、刹车,参数逐个滚到真值。",+ "uses": [+ "Product spec walkthroughs",+ "Launch & crowdfunding videos",+ "Trade-show screens"+ ],+ "frame_sec": 25.5,+ "dur": 39.0+}diff --git a/styles/impasto/DEMO.md b/styles/impasto/DEMO.mdnew file mode 100644index 0000000..3e80c7d--- /dev/null+++ b/styles/impasto/DEMO.md@@ -0,0 +1,123 @@+# Impasto · Palette Knife — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *The Colour of Rain* (39.7 s) · `impasto.mp4` · source in [`demo/`](demo/)+++## Story & structure++A grey square in the rain. A street cellist plays and nobody stops; halfway through he gives up. A little girl opens a red umbrella in front of him: the film's first colour. The cello starts again as a waltz, and umbrella after umbrella turns to colour on the beat. From overhead, the crowd's waltz paints a coloured mandala on the cobbles. The last chord lands, the rain stops, colour fills the whole square.++Arc: loneliness (grey) → giving up (silence) → one touch of colour (the red umbrella) → being heard (the waltz) → the crowd (overhead choreography) → echo (same camera, grey turned to colour; the phrase that broke off on E resolves to D).++Why it fits the medium: colour is the story, and the knife can re-lay any stroke in a new colour. It is a music film with no narration: the title is laid in with the knife over the grey sky and washed off by the rain (it drifts down and fades).++Native moves spent: colour re-laid by the knife (the umbrella opening, the cellist's recovery, the final chord filling the square); the one coloured thing (the red umbrella is the only colour in the first half); motion paints the picture (overhead, each umbrella drips its colour along its path, and the pull-back reveals a mandala); raking light (the sun grazes the ground at the final chord, then settles); paint-over transitions with a knife scrape.++## Shots++| # | Time | Shot / camera | Why |+|---|---|---|---|+| 1 | 0–2.65 | CU cello body + bow, slight push | 3 s hook: the only colour in the grey world is the note (an amber ribbon), soon washed out by the rain |+| 2 | 2.65–7.15 | Extreme wide, slow truck + push, paint-over in | The world: grey square, people hurrying. Title knifed in, then carried away by the rain |+| 3 | 7.15–12.4 | Medium, one continuous push through the silence | Nobody stops: passers-by cross close to camera and block him; push to his face as he gives up |+| 4 | 12.18–16.66 | Low CU on a puddle → tilt-up, hard cut | A boot lands on the splash; up to her, him, the umbrella; anticipation, POP, impact zoom |+| 5 | 16.66–19.39 | Face CU → pull-back, hard cut on the downbeat | He looks up, lifts the bow; at 18.03 the bow lands and colour pours out of the cello |+| 6 | 19.39–23.48 | Closer framing of the same wide, paint-over | The ribbon carries colour to each umbrella, one per beat |+| 7 | 23.48–31.66 | Overhead, rotating + crane-out | Signature shot: choreography and the coloured trails on the ground |+| 8 | 31.66–35.75 | Extreme wide (same set-up as 2), push toward the arch | Rhyme with the opening: grey to colour, raking light, umbrellas closing, birdsong |+| 9 | 35.75–39.66 | End card, paint-over | Title, a red dot (an umbrella seen from above), credits |++Six moves (push, truck, tilt-up, pull, rotate, crane-out overhead); sizes from CU to extreme wide and overhead. The same wide camera serves the opening (grey), the middle (umbrellas in colour) and the finale (all colour): for this story, the change was the story. Keep the camera inside the painted plate.++## Score structure++`demo/timeline.js` holds the grids; picture and score both read it.++- **Part A**: solo cello, D minor, 3/4 at 80 BPM from 0.4 s. The phrase stops on an unresolved E3 at 10.15 s; the bow leaves the string 0.3 s later.+- **Silence** 10.45–12.4: rain nearly gone, one drip at 11.15, two small steps at 11.5 / 11.95 enter before the picture (J-cut), a big splash at 12.4 is the first sound after it.+- **Part B**: street-musette waltz, D major, 3/4 at 132 BPM.+ - 15.3 POP (pickup bar): glockenspiel + rising harp glissando.+ - 16.66 accompaniment enters: pizzicato bass + accordion "oom-pah-pah".+ - 18.03 the cello melody enters.+ - 19.39–23.03 nine umbrellas, one per beat; glockenspiel pitches climb G→B→D / A→C#→E / D→F#→A.+ - 23.48–31.21 overhead, six bars of choreography; accordion repeats the melody an octave up, one harp arpeggio per bar.+ - 31.21 grand pause, digital zero; the rain freezes in the air.+ - 31.66 final chord (tutti + timpani + suspended cymbal).+ - Coda F#→E→D resolves the phrase that broke off at the start.+ - 35.75 last pizzicato, end card.+- Other voices: violin pizz, shaker.++Sound design, section by section:++| Section | Bed | Foley | Music |+|---|---|---|---|+| CU | rain (slightly distant) | bow rosin, raindrops on varnished wood | the solo's first note |+| Grey square | full rain + gutter trickle | wet cobble footsteps (placed by the walk algorithm, panned), knife scrape on the title | solo |+| Medium | rain under the arcade (low-passed) | passers-by footsteps close + umbrella fabric brushing | solo, breaks off |+| Silence | almost nothing | one drip, small steps (J-cut), big splash | none |+| Girl | rain | nylon rustle, rib click, umbrella "fwump", paint dabs landing | POP |+| Reaction | muffled rain | bow-lift air | accompaniment, then cello |+| Street | rain (lowered) | each umbrella's "fwump" + a soft hiss as the ribbon arrives | waltz + glockenspiel arpeggios |+| Overhead | rain | the crowd's water steps on the waltz (beat 1 heavy) | tutti |+| Grand pause | digital zero | — | — |+| Ending | rain stopped | drips, umbrellas closing, birdsong | chord → coda |++Palette-knife scrapes sit on every repaint.++## Palette & props++- After-rain sunset sky: cobalt `#34507e` → peach `#d99a78` → gold `#f7dca0`. Facades ochre `#dca064` and rose `#c98d7e`, shutter green `#3f7a6c`, awning red `#b8342a`.+- Umbrellas at full chroma: cadmium red `#dc2f28`, yellow `#f4bc2a`, cobalt `#2f62c0`, viridian `#23906c`, magenta `#cc3a82`, orange `#ee7a2a`, turquoise `#26aab4`, violet `#6e4cc0`.+- Grey world = luminance of the same strokes, slightly cool, 5 % colour residue; its specular is slightly higher (wet).+- Light: `light [-.55,-.6,.7]`, `norm 3.2`, `amb .8`, `dif .28`, `spec .16–.3`, `ao 1.2`.+- Stroke sizes: 40–60 px planes in sky and walls, 3–6 px only at edges and faces. Knife stroke: skew ±0.55, angle jitter ±13°, value jitter ±6 %. Figures and umbrellas use `run: 0–0.25` so they stay solid.+- Figures: the cellist (IK bow arm, bow direction changes on each note), the girl (dips the umbrella before it snaps open), the crowd (rings swell on every downbeat; umbrellas pop on beats with a scale bounce and a burst of paint dabs, swing down to hang after closing). Faces: eyes, brows and mouth are separate procedural strokes so they can act.+- Wet reflections: stacks of short horizontal dabs under each lamp and window.++## End card++Knife-painted title on deep ultramarine, a red dot (an umbrella from above), and crisp DOM text for the credits (small text must stay legible): "an impasto palette-knife study", then "Lemo-Opuscar · LemoLab × Claude Opus 5.5", then the sample and font credits. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card (the line lives in `demo/film.js`: remove it if you adapt that file).++## Build notes++```+styles/impasto/demo/+ engine/impasto.js WebGL2 knife-stroke renderer engine/plate.js reference illustration → strokes+ timeline.js BPM grids, cut times, melodies (MEL_A, MEL_B), pops+ scenes/*.js sets as reference illustrations (Ref.fill/line/text/tint) → paintRef()+ film.js shots, cameras, transitions (EDIT table), post looks, end card+ music/score.py sampler score (CC0 instruments) mix.py foley + ambience + ducking + true silence+ tools/dump_timeline.mjs timeline → out/timeline.json build.sh+```++1. `timeline.js` first: BPM grids, cut times, melodies, pops. `tools/dump_timeline.mjs` writes `out/timeline.json` for the score.+2. Sets in `scenes/*.js` → `paintRef()`.+3. `film.js`: shots, cameras, transitions, post.+4. `music/score.py`, then `mix.py`.+5. `sh styles/impasto/demo/build.sh` renders everything (≈ 30 s of GPU render for 952 frames), muxed with grain 0.++Engine-level traps: `half` is a reserved word in GLSL ES 3.00; binding the composite quad while a stroke VAO is still bound silently rewires attribute 0 ("vertex buffer not big enough" on the next frame): unbind the VAO first.++Pitfalls tied to this demo's props:+- Umbrella radius 0.46 × body height looked like a parasol table; 0.34 reads as an umbrella.+- Coats as plain rectangles read as bollards: A-line taper + lit edge + shoulder dab + hair dab.+- A global index in the per-shot ribbon loop flung control points off-screen (a streak from the sky).+- Painting the ground after the buildings covered their feet.++## Engine reference++`demo/engine/impasto.js` (renderer) and `demo/engine/plate.js` (reference → strokes).++| API | What it does |+|---|---|+| `new Impasto(canvas, {W, H, ss})` | WebGL2 renderer, supersampled colour + height buffers |+| `E.begin()` / `E.finish(post)` | start a frame / light + grade (`light, norm, amb, dif, spec, ao, expo, sat, vig…`) |+| `E.batch(Float32Array)` → `E.draw(batch, o)` | static stroke set. `o = {M, cam:{x,y,zoom,rot}, t, grey, reveal, revDur, appear, appDur, alpha, run, hgt}` |+| `E.drawNow(Float32Array, o)` | transient strokes (figures, weather, ribbons) |+| `E.texture(canvas)` + `E.under(tex, w, h, o)` | thin underpainting (supports `revC:[x,y,speed]` reveal wave) |+| `new Strokes().push({x,y,ang,len,wid,c,c2,type,taper,bend,skew,alpha,hgt,rev,app,seed})` | build strokes; `type`: `KNIFE`, `BRUSH`, `DAB`, `LINE` |+| `new Ref(w, h, scale)` + `.fill(path, fill, props)` / `.line` / `.text` / `.tint` | reference illustration; props `{dir, maxR, detail, group, type, hgt, jit, len, wid, aj, fallback}` |+| `paintRef(ref, {R:[radii], T, rev(x,y), app(x,y,level)})` | coarse→fine knife strokes confined to shape groups |+| `strokePath(out, pts, {wid, c, type, step})` | strokes along a polyline |diff --git a/styles/impasto/STYLE.md b/styles/impasto/STYLE.mdindex 1ef0ee6..87eb6d8 100644--- a/styles/impasto/STYLE.md+++ b/styles/impasto/STYLE.md@@ -1,87 +1,101 @@# Impasto · Palette Knife — Style Prompt> Thick oil paint laid with a palette knife: big, flat, sharp-edged planes of colour, raked by light so every ridge of paint shows. Clarity first: value structure before texture, hard edges at the focus, calm planes everywhere else.-> Demo: *The Colour of Rain* (39.7 s) · `impasto.mp4` · source in `demo/`-> References (grammar only): the opening titles of *The Umbrellas of Cherbourg* (1964) — overhead umbrellas choreographed to music; palette-knife rainy-street paintings (Leonid Afremov and the genre around him) — knife mosaic, vertical wet reflections, warm lamps against cool dusk; Sorolla / Sargent — few, decisive strokes and strong light; Edgar Wright's music-locked editing — one action, one sound, one cut. Never copy their images, compositions, melodies or characters.+> References (grammar only): the opening titles of *The Umbrellas of Cherbourg* (1964) (overhead choreography read as moving colour); palette-knife street paintings (Leonid Afremov and the genre around him) (knife mosaic, vertical wet reflections, warm lights against cool shadow); Sorolla / Sargent (few, decisive strokes and strong light); Edgar Wright's music-locked editing (one action, one sound, one cut). Never copy their images, compositions, melodies or characters, and never name them in the film.-## 1. What this style is-A moving oil painting made of knife strokes. Each stroke is a real object: a slanted plane of paint with a ridge where the blade pressed, a lip where it lifted off, broken streaks where the paint ran out, two colours dragged into each other. The world is **repainted from its strokes every frame** but static paint never moves — only things that move in the story move. Light rakes across a height field, so the paint has body.+## 1. Essence, and what it is not-The look is clear and graphic (children's-book readable at thumbnail size) but has the tactile surface of impasto at 100 % crop.+A moving oil painting made of knife strokes. Each stroke is a real object: a slanted plane of paint with a ridge where the blade pressed, a lip where it lifted off, broken streaks where the paint ran out, two colours dragged into each other. The world is **repainted from its strokes every frame**, but static paint never moves: only things that move in the story move. Light rakes across a height field, so the paint has body.-## 2. Story: what fits this style-- Stories about **colour, light and weather**: grey → colour, night → dawn, rain → sun. The medium can "re-lay" any stroke in a new colour, so a colour change becomes an event (a knife sweeping new paint over old).-- Music stories: sound made visible as paint ribbons; choreography seen from above as moving colour discs that leave painted trails.-- Small casts, readable silhouettes (a musician, a child, a crowd of umbrellas). Faces are simple: eyes/brows/mouth are separate procedural strokes so they can act.-- Native moves that only this medium does well:- 1. **Colour re-laid by the knife** — every stroke keeps a grey version and a colour version; a reveal wave re-paints them stroke by stroke (`reveal`, `revC`).- 2. **Choreography paints the picture** — moving objects drip their colour as knife dabs; seen from above, the dance leaves a mandala on the ground.- 3. **Raking light** — at the emotional peak, drop the light to a grazing angle so every ridge of paint catches it, then let it settle.- 4. **Paint-over transitions** — the next shot's strokes are laid over the previous one in a sweep (`appear`), with a palette-knife scrape on the soundtrack.+The look is clear and graphic (readable like a children's book at thumbnail size) but has the tactile surface of impasto at 100 % crop.++Not a Van Gogh swirl filter (strokes boiling everywhere), not a brush texture over flat vector art, not watercolour (paint is opaque), not a "painterly" photo filter (strokes are designed, not sampled from noise).++## 2. Materials & rendering-## 3. Visual language- **Value first.** Design each set as a flat, value-planned illustration (3 values minimum), then convert it to strokes. If the reference doesn't read at 480 px wide, no brushwork will save it.-- **Stroke sizes by importance and depth.** Coarse-to-fine layering: 40–60 px planes in sky/walls, 3–6 px only at edges and faces. Per shape: `maxR` (largest stroke), `detail` (higher = fewer small strokes), `dir` (angle, `'edge'`, radial field, or function).-- **Strokes never cross shape groups** → silhouettes stay crisp. Lost edges are opt-in (put two shapes in the same `group`).-- **Thin underpainting** (the reference itself, blurred 1.5 px) under the strokes, so the canvas never peeks through as outlines.-- Knife stroke: length 1.7–3.1 × radius, width 0.95–1.45 × radius, slanted ends (skew ±0.55), angle jitter ±13°, value jitter ±6 %. Figures and umbrellas use `run: 0–0.25` (no ragged run-out) so they stay solid.-- Light: `light [-.55,-.6,.7]`, `norm 3.2`, `amb .8`, `dif .28`, `spec .16–.3`, `ao 1.2`. Grey world gets slightly higher spec (wet).-- Palette of the demo: after-rain sunset — cobalt `#34507e` → peach `#d99a78` → gold `#f7dca0` sky; ochre `#dca064` and rose `#c98d7e` facades, shutter green `#3f7a6c`, awning red `#b8342a`; umbrellas at full chroma (cadmium red `#dc2f28`, yellow `#f4bc2a`, cobalt `#2f62c0`, viridian `#23906c`, magenta `#cc3a82`, orange `#ee7a2a`, turquoise `#26aab4`, violet `#6e4cc0`). Grey world = luminance of the same strokes, slightly cool, 5 % colour residue.-- Wet reflections are **explicit stacks of short horizontal knife dabs** under each light source, broken and fading — not a painted rectangle.-- No film grain: grain + compression eats the knife edges.--## 4. Motion language-- Static paint is static. Only rain, figures, bows, umbrellas, ribbons and light move. Smooth 24 fps (no stepping) — clarity was the brief.-- Figures are procedural strokes rebuilt each frame from fixed seeds (walk cycles, IK bow arm, umbrella open/close/hang).-- Every action on the music grid: bow direction changes on each note; umbrellas pop on beats with a scale bounce and a burst of paint dabs; the crowd's rings swell on every downbeat.-- Anticipation → action → follow-through: bow lifts before the downbeat, the girl dips the umbrella before it snaps open, umbrellas swing down to hang after closing.--## 5. Camera language-- Same wide camera for opening (grey), middle (umbrellas in colour) and finale (all colour): the change is the story.-- Moves used: slow truck + push (wide), push-in through a silence (medium), tilt-up from a puddle (girl), pull-back from a face CU (reaction), rotating crane-out from overhead (dance), push toward the arch (finale).-- Keep the camera inside the painted plate (`half = W/2/zoom`), or the canvas shows.--## 6. Sound-- Three layers: rain bed (hiss + drops + gutter trickle; low-passed when under the arch), material foley (wet cobble footsteps, nylon rustle, umbrella "fwump", raindrops on varnished wood, bow rosin, palette-knife scrapes on every repaint), music.-- Two real silences: after the cellist gives up (rain nearly gone, one drip, a child's steps as a J-cut, then a big splash), and a grand pause of digital zero before the final chord (the rain freezes in the air).-- Score: solo cello in D minor that breaks off on an unresolved E; a street-musette waltz in D major (accordion vamp, pizzicato bass, violin pizz, shaker, harp arpeggios, glockenspiel pops pitched as a rising arpeggio); the coda resolves E → D.--## 7. Subtitles & titles-- No narration: it's a music film. Title is laid in with the knife (`appear` sweep, 1.1 s) over the grey sky and washed off by the rain (drifts down and fades).-- End card: knife-painted title on deep ultramarine + crisp DOM text for credits (small text must stay legible).--## 8. Pitfalls we hit-- `half` is a reserved word in GLSL ES 3.00.-- Binding the composite quad while a stroke VAO is still bound silently rewires attribute 0 → "vertex buffer not big enough" on the next frame. Unbind VAO first.-- Painting the ground after the buildings covered their feet — draw order in the reference matters.+- **Stroke sizes by importance and depth.** Coarse to fine: large planes in sky and walls, a few px only at edges and faces (per shape: `maxR`, `detail`, `dir`).+- **Strokes never cross shape groups**, so silhouettes stay crisp. Lost edges are opt-in (put two shapes in the same `group`).+- **Thin underpainting** (the reference itself, blurred ~1.5 px) under the strokes, so the canvas never peeks through as outlines.+- **Knife stroke**: longer than wide (≈ 1.7–3.1 × radius long, 0.95–1.45 × radius wide), slanted ends, small angle and value jitter (≈ ±13°, ±6 %). Solid objects that must read as silhouettes (figures, props) get little or no ragged run-out.+- **Light** rakes over a height field; wet or glossy surfaces get slightly more specular.+- **Reflections** (wet ground, glass, water) are **explicit stacks of short horizontal knife dabs** under each light source, broken and fading; never a painted rectangle.+- Render supersampled (2×). **No film grain**: grain plus compression eats the knife edges.++## 3. Colour logic++- Planes of mixed, slightly broken colour; each stroke may drag a second colour (`c2`) into the first. No gradients made by blending pixels: gradients are made by stroke-to-stroke steps.+- Warm light against cool shadow is the default temperature structure; the brightest, purest chroma is reserved for the story's subject (a prop, a crowd, a light source), not the background.+- **Colour can be an event.** Every stroke can hold a grey and a colour version; a monochrome world with one coloured exception, or a world re-laid from grey to colour, is native to the medium. The grey version is the luminance of the same strokes, slightly cool, with a small colour residue.+- Examples of palettes that fit: an after-rain sunset (cobalt → peach → gold sky, ochre facades, full-chroma props); a harvest field (straw yellow, burnt sienna earth, one viridian tractor); a night kitchen (umber shadows, sodium-lamp orange, one cold blue window). Choose from the topic.++## 4. Type & subtitles++- Titles are **laid in with the knife** (a stroke-by-stroke `appear` sweep of about a second) and can be taken off by the world (washed by rain, scraped, painted over). They move with the world.+- Small text (credits, data, captions) stays crisp DOM text over the painting: knife strokes can't carry small letters.+- A serif display face (e.g. Cormorant, OFL). Subtitles, if there is a voice: plain serif, ≤ 2 lines, in a calm plane; hold ≥ max(1.8 s, speech + 0.6 s).++## 5. Motion quality++- Static paint is static. Only the things the story moves move (weather, figures, props, ribbons, light). Smooth 24 fps, no stepping: clarity is the brief.+- Moving figures are procedural strokes rebuilt each frame from **fixed seeds**, so their paint doesn't boil (walk cycles, IK arms, props that open and close).+- Actions sit on the music grid: a change of direction, a pop, a swell lands on a beat.+- Anticipation → action → follow-through on every gesture (lift before the strike, dip before the snap, swing after the stop).++## 6. Camera grammar++A vocabulary, not a route. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Slow truck + push on a wide | a world observed; patience | a place; a routine; a crowd |+| Push-in through a silence | inner pressure | a doubt; a decision; giving up |+| Tilt-up from the ground or a reflection | discovery from below | a small character entering; a first sight |+| Pull-back from a close-up | reaction; the world answering | consequence; a reveal of who is watching |+| Rotating crane-out, overhead | pattern emerging from many | choreography; traffic; a gathering |+| Same wide, repeated | before/after | change of colour, season or time |+| Locked frame, light moves | time and weather as the actor | a day passing; a storm arriving |+| Macro slide along the paint surface | the matter itself | a texture; a crafted object; a map |+| Whip-pan into a new painted plate | energy, a jump | a list; montage; travel |++Framing: keep the camera **inside the painted plate** (`half = W/2/zoom`), or the canvas shows. The subject gets the hard edges and the smallest strokes; everything else stays in big calm planes. Transitions: paint-over sweeps and scrapes, hard cuts on beats; no dissolves (two layers of knife ridges turn to mud).++## 7. Sound palette++- **Foley follows the paint and the world**: palette-knife scrapes on every repaint or paint-over, wet dabs, the materials of the scene (wet stone, nylon, wood, fabric, glass).+- **Beds** in layers (a hiss, near grains, one distinct detail), filtered when the camera goes under cover.+- **Acoustic instruments with a hand-made grain**: solo strings, accordion, pizzicato, harp arpeggios, glockenspiel or celesta for pops, piano, guitar, woodwinds; a solo instrument for a lonely world, an ensemble for a shared one.+- Options: **one action = one sound = one cut** (music-locked edit); pops pitched as a rising arpeggio so a sequence of events climbs; an unresolved phrase that the film resolves later; a hard silence that cuts music and beds to digital zero, containing at most one sound; a J-cut of the next scene's foley into a silence.+- Mix: music and ambience duck under any voice (~8 dB); −14 LUFS. Music and foley can carry a film without narration.++## 8. Native moves++A menu: use the ones your story needs.++- **Colour re-laid by the knife.** Every stroke keeps a grey and a colour version; a reveal wave re-paints them stroke by stroke (`reveal`, `revC`). *Fits content like:* a town waking up; a patient recovering; a brand relaunch; a season turning.+- **The one coloured thing.** The world drawn with `grey: 1`, one object with `grey: 0`. *Fits content like:* one person in a crowd; the fruit that ripened; a warning light.+- **Motion paints the picture.** Moving objects drip their colour as knife dabs; seen from above, their paths leave a painted pattern. *Fits content like:* a dance; delivery routes across a city; a football play; migration.+- **Raking light.** At the peak, drop the light to a grazing angle so every ridge catches it, then let it settle. *Fits content like:* a sunrise; a moment of recognition; unveiling a sculpture.+- **Paint-over transition.** The next shot's strokes are laid over the previous one in a sweep (`appear`), with a scrape on the soundtrack. *Fits content like:* a renovation; memory replacing the present; a timeline of versions.+- **Sound made visible.** A note or a voice becomes a paint ribbon that carries colour to what it touches. *Fits content like:* a song reaching listeners; a radio broadcast; a rumour spreading.++## 9. Pitfalls of the medium+- Confined strokes shrink near edges and leave canvas-coloured outlines → add the underpainting texture.-- Global index in a per-shot loop flung ribbon control points off-screen (a streak from the sky). Use local indices.-- Umbrella radius 0.46 × body height looks like a parasol table; 0.34 reads as an umbrella.-- Coats as plain rectangles read as bollards: A-line taper + lit edge + shoulder dab + hair dab.--## 9. Production recipe (this repo)-1. `timeline.js`: BPM grids, cut times, melodies (`MEL_A`, `MEL_B`), pops. Picture and score both read it (`tools/dump_timeline.mjs` → `out/timeline.json`).-2. Sets in `scenes/*.js` as reference illustrations (`Ref.fill/line/text/tint`) → `paintRef()`.-3. `film.js`: shots, cameras, transitions (`EDIT` table), post looks.-4. `music/score.py` (sampler), `mix.py` (foley + ambience + ducking + true silence).-5. `demo/build.sh` renders everything (≈30 s of GPU render for 952 frames).--## 10. Engine usage+- Draw order in the reference matters: painting the ground after the buildings covers their feet.+- Plain rectangles read as posts or blocks → give silhouettes taper, a lit edge, and one or two defining dabs (shoulder, hair, handle).+- Proportions carry the object's identity at this stroke size: a prop drawn too wide reads as a different thing. Check silhouettes at thumbnail size.+- Film grain or heavy compression destroys the knife edges → no grain, supersample, high bitrate.+- Strokes that are re-seeded every frame boil → fixed seeds per stroke.+- Engine-level WebGL traps (reserved words, VAO binding) are listed in DEMO.md build notes.++## 10. Engine+Files: `demo/engine/impasto.js` (renderer), `demo/engine/plate.js` (reference → strokes).-| API | What it does |-|---|---|-| `new Impasto(canvas, {W, H, ss})` | WebGL2 renderer, `ss`× supersampled colour + height buffers |-| `E.begin()` / `E.finish(post)` | start a frame / light + grade to screen (`light, norm, amb, dif, spec, shin, ao, expo, sat, contrast, vig, lightCol`) |-| `E.batch(Float32Array)` → `E.draw(batch, o)` | static stroke set. `o = {M, cam:{x,y,zoom,rot}, t, grey, reveal, revDur, appear, appDur, alpha, run, hgt}` |-| `E.drawNow(Float32Array, o)` | transient strokes (figures, rain, ribbons) |-| `E.texture(canvas)` + `E.under(tex, w, h, o)` | thin underpainting (supports `revC:[x,y,speed]` reveal wave) |-| `new Strokes().push({x,y,ang,len,wid,c,c2,type,taper,bend,skew,alpha,hgt,rev,app,seed})` | build strokes; `type`: `KNIFE`, `BRUSH`, `DAB`, `LINE` |-| `new Ref(w, h, scale)` + `.fill(path, fill, props)` / `.line` / `.text` / `.tint` | reference illustration; props `{dir, maxR, detail, group, type, hgt, jit, len, wid, aj, fallback}` |-| `paintRef(ref, {R:[radii], T, rev(x,y), app(x,y,level)})` | coarse→fine knife strokes confined to shape groups |-| `strokePath(out, pts, {wid, c, type, step})` | strokes along a polyline |--Minimal example — a warm-orange four-point sparkle with a short cursor tail, in knife paint:+Main calls: `new Impasto(canvas,{W,H,ss})`, `E.begin()` / `E.finish(post)` (raking light + grade), `E.batch()` → `E.draw(batch,o)` for static plates (`cam`, `grey`, `reveal`, `appear`), `E.drawNow()` for moving strokes, `E.under()` for the underpainting, `new Strokes().push({...})` (`KNIFE`, `BRUSH`, `DAB`, `LINE`), `new Ref()` + `paintRef()` (reference illustration → coarse-to-fine strokes confined to shape groups), `strokePath()`. Full parameter table: DEMO.md "Engine reference".++Minimal example: a warm-orange four-point sparkle with a short cursor tail, in knife paint.```jsimport { Impasto, Strokes, KNIFE, DAB, hex } from './engine/impasto.js';const E = new Impasto(canvas), s = new Strokes(), c = hex('#D97757');@@ -93,4 +107,16 @@ s.push({ x: 960, y: 540, len: 40, wid: 40, c: hex('#f6c0a0'), type: DAB, seed: 9s.push({ x: 1060, y: 610, ang: .6, len: 90, wid: 16, c, type: KNIFE, alpha: .8, seed: 10 }); // cursor tailE.begin(); E.drawNow(s.data(), { grey: 0, run: 0 }); E.finish();```-"Only one colour" (monochrome with one exception): draw the world with `grey: 1, reveal: 1e6`, draw the exception with `grey: 0` — exactly how the red umbrella is the only colour in the demo's first half.+"Only one colour" (monochrome with one exception): draw the world with `grey: 1, reveal: 1e6`, draw the exception with `grey: 0`.++## 11. Variation space++You decide the structure, the cast (or none), the sets, the opening, the ending, the camera path, the pacing, whether there is a voice, and where colour lives. All far from our demo:++- Structures: **one object, many hands** (a bowl or a boat passes through the people who make and use it, one painted plate per hand); **a still life comes alive** (a locked table whose objects move in turn, the light crossing it hour by hour); **a portrait in layers** (a face painted coarse to fine as a voice tells one life, each layer a decade).+- Openings: **the bare canvas** (underpainting only; the first knife stroke is the first event); **macro on a ridge of paint** that pulls back to become a mountain or a roof; **mid-action** (a figure already running across a finished plate).+- Endings: **scraped back** (the knife takes the painting off to the underpainting, leaving one mark); **the light goes out** (raking light sinks until only the ridges glow, then black); **the frame in a room** (the film was a painting hanging somewhere, seen by someone).++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/impasto/TREATMENT.md b/styles/impasto/TREATMENT.mddeleted file mode 100644index c217801..0000000--- a/styles/impasto/TREATMENT.md+++ /dev/null@@ -1,65 +0,0 @@-# 厚涂油画 · 第二版(调色刀)导演方案-**片名** *The Colour of Rain*(雨的颜色) · **时长** 39.7 秒 · 1920×1080 · 24fps(全平滑,不步进)· 无旁白音乐片--**为什么重做**:第一版被评"不清晰"。这一版把清晰当硬指标:调色刀大块锐边;先定明暗再上笔触;焦点硬边、其余平整;静止的颜料不抖;2 倍超采样;成片不加颗粒。--**一句话**:雨中灰色的广场,一位街头大提琴手拉琴没人停下,他拉到一半放弃了。一个小女孩在他面前撑开了一把红伞,这是全片第一抹颜色。琴声重新响起,变成圆舞曲,伞一把接一把在拍子上变色。俯拍时,人群的圆舞在石板上画出一幅彩色曼陀罗。最后一个和弦落下,雨停了,颜色铺满整个广场。--**情绪弧**:孤独(灰)→ 放弃(静音)→ 一点颜色(红伞)→ 被听见(圆舞曲)→ 群体(俯拍编舞)→ 回响(同机位,灰变彩;开头断在 E 的乐句在结尾解决到 D)。--## 对标-| 对标 | 学什么 | 刻意不学 |-|---|---|---|-| 《瑟堡的雨伞》片头 | 俯拍彩伞随音乐编排的调度语法 | 具体走位、配色顺序、旋律 |-| Afremov 一类调色刀雨夜街景 | 刀块马赛克、积水竖向倒影、暖灯冷夜 | 任何具体画作;整体更克制,灰→彩才是戏 |-| Sorolla / Sargent | 少而准的笔触、强明暗 | — |-| Edgar Wright 的卡点剪辑 | 一个动作 = 一个声音 = 一个剪辑点 | 不每拍都切,留看清的时间 |--## 原生招式-1. **颜色被刀重新铺上**:每一笔都存了灰和彩两种颜色,揭示波沿着笔的方向一笔一笔扫过去。这招用在女孩开伞、大提琴手复苏、结尾和弦铺满广场三处。-2. **舞蹈画出画面**:俯拍时每把伞沿路径滴下自己的颜色,拉远后是一幅曼陀罗。-3. **掠射光**:和弦落下时太阳贴地斜照,每一道颜料脊都亮起来,随后回落。-4. **重涂转场**:下一个镜头的笔触扫着盖上来,声轨上配刀刮声。--## 音乐网格(cue map)-- A 段:大提琴独奏,D 小调 3/4,80 BPM,从 0.4s 开始。乐句在 10.15s 停在没解决的 E3 上,0.3s 后弓离弦。-- 静音:10.45–12.4。雨声几乎消失,11.15 一滴水,11.5 / 11.95 两声小脚步先入画(J-cut),12.4 大水花 = 静音后的第一个声音。-- B 段:街头圆舞曲,D 大调 3/4,132 BPM。- - 15.3 POP(弱起小节):钟琴 + 竖琴上行刮奏。- - 16.66 伴奏进,低音拨奏 + 手风琴"嘭-嚓-嚓"。- - 18.03 大提琴主旋律进。- - 19.39–23.03 九把伞,每拍一把,钟琴音高按 G→B→D / A→C#→E / D→F#→A 逐级升高。- - 23.48–31.21 俯拍,六小节编舞;手风琴高八度重复旋律,每小节一个竖琴琶音。- - 31.21 大停顿,数字全零;雨停在半空。- - 31.66 终止和弦(全体 + 定音鼓 + 吊镲)。- - 尾声 F#→E→D,把开头断掉的乐句解决掉。- - 35.75 最后一个拨奏,片尾卡。--## 镜头表-| # | 时间 | 景别 / 运动 | 为什么 |-|---|---|---|---|-| 1 | 0–2.65 | 特写,琴面 + 弓,微推 | 3 秒钩子:灰色世界里唯一的颜色是那个音(琥珀色丝带),随后被雨冲淡 |-| 2 | 2.65–7.15 | 大全,慢移 + 微推,重涂转场 | 交代世界:灰广场、行人匆匆。片名用刀抹上,再被雨带走 |-| 3 | 7.15–12.4 | 中景,一路推进,穿过静音 | 没人停下:路人贴着镜头走过,挡住他。放弃时推到脸 |-| 4 | 12.18–16.66 | 水坑低位特写 → 上摇,硬切 | 靴子正落在水花那一刻;抬头、看他、看伞,预备,POP,冲击变焦 |-| 5 | 16.66–19.39 | 脸部近景 → 拉开,卡强拍硬切 | 他抬头;预备抬弓;18.03 落弓,颜色从琴上涌出 |-| 6 | 19.39–23.48 | 同一大全的近机位,重涂转场 | 丝带把颜色送到每把伞,每拍一把 |-| 7 | 23.48–31.66 | 俯拍,旋转 + 拉远 | 签名镜头:编舞与地上的彩色轨迹 |-| 8 | 31.66–35.75 | 大全(与 2 同机位),推向拱门 | 首尾呼应:灰变彩,掠射光,收伞,鸟鸣 |-| 9 | 35.75–39.66 | 片尾卡,重涂转场 | 片名、红点(俯视的伞)、署名 |--镜头运动共 6 种:推、移、上摇、拉、旋转、升(俯拍拉远)。景别覆盖特写、近景、中景、全景、大全、俯拍。--## 声音设计表-| 段落 | 环境底 | 拟音 | 音乐 |-|---|---|---|---|-| 特写 | 雨(稍远) | 松香擦弦声、雨滴打在漆面上 | 大提琴独奏第一个音 |-| 灰广场 | 满雨 | 湿石板上的脚步(按走路算法对位、左右声像)、刀刮片名 | 独奏 |-| 中景 | 拱廊下的闷雨(低通) | 路人贴身走过的脚步 + 伞布擦过 | 独奏,断掉 |-| 静音 | 几乎无声 | 一滴水、小脚步(J-cut)、大水花 | 无 |-| 女孩 | 雨 | 伞布窸窣、伞骨卡扣、开伞"噗"、颜料点落地 | POP |-| 反应 | 闷雨 | 抬弓风声 | 伴奏进,大提琴进 |-| 街道 | 雨(压低) | 每把伞"噗" + 丝带到达的轻嘶声 | 圆舞曲 + 钟琴琶音 |-| 俯拍 | 雨 | 人群踩圆舞曲拍子的水步(第 1 拍重) | 全奏 |-| 大停顿 | 数字零 | — | — |-| 结尾 | 雨停 | 滴水、收伞、鸟鸣 | 和弦 → 尾声 |diff --git a/styles/impasto/demo/fonts/CormorantGaramond-Italic.woff2 b/styles/impasto/demo/fonts/CormorantGaramond-Italic.woff2deleted file mode 100644index 0dbab0b..0000000Binary files a/styles/impasto/demo/fonts/CormorantGaramond-Italic.woff2 and /dev/null differdiff --git a/styles/impasto/demo/fonts/CormorantSC.woff2 b/styles/impasto/demo/fonts/CormorantSC.woff2deleted file mode 100644index 5b82809..0000000Binary files a/styles/impasto/demo/fonts/CormorantSC.woff2 and /dev/null differdiff --git a/styles/impasto/style.json b/styles/impasto/style.jsonnew file mode 100644index 0000000..7f0333d--- /dev/null+++ b/styles/impasto/style.json@@ -0,0 +1,18 @@+{+ "slug": "impasto",+ "num": "04",+ "en": "Impasto Oil Painting",+ "cn": "油画厚涂",+ "category_en": "Hand-drawn & Painting",+ "category_cn": "手绘与绘画",+ "film": "The Colour of Rain",+ "line": "In a grey, rainy square one red umbrella opens, and a waltz paints the whole plaza in colour.",+ "line_cn": "灰色雨中广场,第一把红伞撑开,圆舞曲把整个广场刷上颜色。",+ "uses": [+ "Music videos",+ "Art & culture",+ "Emotional ads"+ ],+ "frame_sec": 28.58,+ "dur": 39.7+}diff --git a/styles/ink-wash/DEMO.md b/styles/ink-wash/DEMO.mdnew file mode 100644index 0000000..47fd6d6--- /dev/null+++ b/styles/ink-wash/DEMO.md@@ -0,0 +1,85 @@+# Chinese Ink Wash — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *The Swordsman and the River* (48 s) · `ink-wash.mp4` · source in [`demo/`](demo/)+++## Story & structure++A swordsman crosses a river on the water and splits a towering wave with one stroke. One character, one goal, one turn. The brush itself is the event: the stroke that cuts the wave is also the character 水 written in the air.++Arc (48 s): emptiness → a drop of ink (creation) → a small figure in vast space → lightness and joy (the qinggong run across the water) → an overwhelming obstacle drawn as mass (a wet splash of dark ink becoming a wave) → silence → one decisive stroke → release → scale reveal (the figure is a tiny mark in the whole painting) → seal. The closing line is philosophical rather than triumphant ("cut water with a sword and it only flows on").++Native moves spent: one stroke is everything (the opening drop), brush = gesture (the written 水), flying white (the cut, after total silence), splitting a mass (the wave), the handscroll (the final pull-back and seal).++## Shots++| Beat | Camera |+|---|---|+| Opening | Locked frame of blank paper; the drop falls into it. |+| Establishing | Slow right-to-left pan (scroll unrolling), ending on a **high wide** frame: the figure 150–180 px tall, the river a huge blank. |+| Travel | Lateral tracking with the figure at ~60 % of the frame, lead room ahead; very slow parallax far mountains; occasional dark reeds passing at the very bottom. |+| Threat | **Low angle**, horizon low, the wave towering, the figure tiny in a corner; slow push-in with growing shake. |+| Silence | Hard cut to an extreme close-up (hat brim, no eyes); then an **over-the-shoulder** frame putting the figure, the written character and the wave on one axis. |+| Release | Back to the same high wide scale as the establishing shot. |+| Ending | Continuous pull-back from the figure to the whole handscroll on its silk mount; seal; end card below the scroll. |++Why this route, for this story: the locked blank paper put "nothing" before "something"; the scroll pan ending high and wide made the figure tiny; the extreme close-up in the silence was the film's only hard cut; the release returned to the establishing scale so the rhyme showed what changed; the pull-back to the mounted scroll turned the whole journey into one painting. Each of these is one choice from STYLE.md §6, not the style's default opening or ending.++The hold before the strike is a slow 5 % push-in; the stroke then crosses the frame in ~4 frames, and the wave only starts splitting after it.++## Score structure++Original guqin score (`demo/music/score.py`), F-gong pentatonic (F G A C D), cued by section rather than looped. Free-time opening, 60 BPM for landscape, 90 BPM for travel (footsteps on beats), drum roll for the threat, **digital silence**, three glassy harmonics for the three written strokes, silence again, then drum + seven-string sweep on the cut; the theme returns for the release; last note = seal.++Foley specific to this film: sword draw (scabbard scrape + long thin metallic ring, cut before the second silence), the cut (tearing air + river roar + low boom). The sword ring and a single drip are the only sounds allowed inside the silences; the ambience hard-cuts into the first silence.++Voice: calm British narrator, Kokoro `bm_george`, lang `en-gb`, speed .82–.86, 4–6 lines. Music ducked ~8 dB under voice, ambience ducked too: a river roar under a line made whisper hear "Halfway" as "This way". Every line checked with whisper and again on the final mix.++## Palette & props++- Paper: base `#F2ECDE`–`#F3EBDD` (rgb .95/.925/.87), cloud mottling ±7 %, three fibre directions (+1.8 % light), vignette ~.22. Ink from cool grey `rgb(.52,.55,.58)` to warm black `rgb(.075,.068,.062)`. Vermilion `#B02E22`: the seal and the hero's **sword tassel**, which finds him in wide shots and rhymes with the final seal.+- Compositor numbers: wet bleed is a 12-tap noisy Poisson blur of ~5 px at 1:1; edge pigment = small blur − large blur.+- Ink tones as used: burnt for calligraphy, sword, hat brim line, moss dots; thick for contours and hat; heavy for folds and scabbard; light for mountain bodies and robe washes; clear for far mountains, face, mist.+- Stroke profiles in `ink.js`: `brush`, `tip`, `nail`, `lens`, `fan`, `rise`, `robe`, `even` + per-point pressure; loaded strokes use `darkDir`, `side`, `brWet` (their bristles go into the wet layer); body fill fades as `(1-dry)^1.6`; `dry` .3 = textured, .6+ = flying white.+- Mountains (`land.js`): per pixel once and cached, pointed exponential peaks with 3-octave roughness; far ranges tone .12–.16 untextured, near .4–.5 textured; range ends faded with a horizontal alpha mask, never by sloping the ridge (it crosses the river). Pine: one crooked loaded trunk, a few tip branches, fan-shaped needle clusters. Reeds: long tip strokes + lens leaves, foreground only.+- Water: ink rings at each footfall, one stroke of 1.86π with an open gap, r ∝ age^0.6, fading over ~2.4 s.+- The wave: a pale wet body + 4–5 huge loaded strokes curled over at the crest + a few thin wave lines + spray as irregular blots.+- The hero (`hero.js`): 100-unit rig (hip, chest, head, arms, legs, hem points, flare, sheath, ribbon). Hat = one wet mass + two dry ridge lines + a burnt-ink brim line; robe = one pale mass + two loaded strokes; legs and sword in burnt ink; one ribbon in the wind. The face stays under the hat; features shown once (sword brows, phoenix-eye lids, one nose line, drooping moustache).+- **Qinggong leap**: body pitched ~30° forward, one knee tucked, the other leg trailing, robe pulled back into a big pale mass with a dark back edge, sleeves streaming. Step cycle: touch (14 %) → rise → glide (45 %) → descend; height `sin(π·phase)`; one ink ring per touch.+- The written 水: traced from Ma Shan Zheng, `solid: true`, dryness .17, exits tapered to .12–.18, 45° hidden-tip lead-in.+- Stable strokes: `gapLen` fixed reference length; boil on a 5-drawing cycle.+- The split wave: the upper half rises and rotates, the lower slumps and squashes, with curling crests along both torn edges and pale wash blocks; splatter flies along the sword direction with gravity.+- Ink bloom: mask `d·(0.62 + 0.8·fbm)`; element blooms use a 1/4-res mask with `destination-in`.++## End card++Title: two vertical columns written on the scroll itself (English letterforms rotated 90°, Cormorant SC 600, wide tracking) + seal; it fades in wet → dry and evaporates when the pan starts. Subtitles: Cormorant Garamond italic 500, 46 px, 1 px tracking, drying in ~0.35 s.++End card: the whole scroll on a dark table with silk borders and rollers; "CHINESE INK WASH" (Cormorant SC 600, 44 px, 14 px tracking) and the credit line (italic 30 px) in pale paper colour below. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/ink-wash/demo/+ ink.js brush engine (strokes, bristles, masses, blots) comp.js WebGL rice-paper compositor (bleed, edge, paper, bloom)+ hero.js xieyi figure rig + poses face.js close-up face (one use)+ land.js mountains, cun, cliffs, pine, reeds, ripples wave.js gestural wave+ glyph.js "水" traced from Ma Shan Zheng + the cut stroke seal.js vermilion seal+ world.js the handscroll world, reveals, shots 1–2 cross.js crossing + rising (shots 3–4)+ climax.js silence, writing, the cut (5–6) passage.js parted river, bow, scroll, end card (7–8)+ story.js timeline (single source of truth) shots.js dispatcher, transitions, subtitle spots, sound events+ subs.js inscription subtitles music/score.py original guqin score mix.py foley + voice + music build.sh+```++1. Write `story.js` times first (voice durations from `core/tts/tts.py`), then brief the score with the same numbers (the composer can run in parallel).+2. `node core/render/still.mjs styles/ink-wash/demo --range a:b:1` + `core/render/sheet.py` for overview sheets; `?test=sheet|pose|shui|frame` pages for design work; `?nosub=1`, `?poster=1`.+3. `node core/render/events.mjs` → `mix.py` → `video.mjs --fps 24 --workers 3` (1152 frames ≈ 60–130 s) → `mux.sh … 24 0` (grain 0: the paper is in the shader).+4. Or simply `sh styles/ink-wash/demo/build.sh`.++Pitfalls tied to this demo's props:+- Subtitles inherited the world camera transform in panning shots and slid off screen.+- A cliff drawn with `flip=-1` put the figure in mid-air; the back of a cliff polygon showed a straight vertical edge; a rock's base was cut by the layer canvas bottom → compute screen extents after flipping, slant the back side, fade layer bottoms with a `destination-in` gradient.+- The cut began splitting the wave while the stroke was still crossing the frame.+- A scene with rare, heavy per-pixel steps can exceed Playwright's default screenshot timeout; just retry the still render (the frame itself is deterministic).diff --git a/styles/ink-wash/STYLE.md b/styles/ink-wash/STYLE.mdindex 721e4f7..b17e52b 100644--- a/styles/ink-wash/STYLE.md+++ b/styles/ink-wash/STYLE.md@@ -1,137 +1,118 @@# Chinese Ink Wash — Style Prompt-> Xieyi ink painting on rice paper, animated: blank paper is space, one brushstroke is a mountain, a wave, or a sword cut.-> Demo: *The Swordsman and the River* (48 s) · `ink-wash.mp4` · source in `demo/`+> Xieyi ink painting on rice paper, animated: blank paper is space, one brushstroke is a mountain, a wave, a gesture or a cut.+> References (grammar only): Shanghai Animation Film Studio's *Feelings of Mountains and Water* (1988) (blank-paper space, ink bloom, guqin pacing, figures in a few strokes); the bamboo-forest fight of *Crouching Tiger, Hidden Dragon* (weightlessness, stillness before action). Copy none of their characters, compositions or music.-You are directing a 30–60 second film in the **Chinese Ink Wash** style. The user gives you a topic. You decide everything else — story, shots, timing, sound — and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not----+An ink painting (水墨) painted and unrolled before you: black ink on warm rice paper in five tones, plus **one** red, the vermilion seal. No Western outlines: forms are made by **loaded brushstrokes** whose dark edge *is* the contour (没骨, "boneless" painting), by **wet washes** that bleed into the paper, and by **dry, fast strokes** where the paper shows through the bristle tracks (飞白, "flying white").++Most of the frame is **empty paper** (留白): water, sky, mist, silence. Things are *painted into existence*, not cut to.-## 1. What this style is+Not watercolour (no colour washes), not vector art with a brush texture (no flat fills or closed outlines), not a calligraphy title sequence.-A film that looks like a Chinese ink painting (水墨, *shuimo*) that is being painted and unrolled in front of you. Everything is black ink on warm rice paper, in five tones, plus **one** red: the vermilion seal. There are no outlines in the Western sense: forms are made by **loaded brushstrokes** whose dark edge *is* the contour (没骨, "boneless" painting), by **wet washes** that bleed into the paper, and by **dry, fast strokes** where the paper shows through the bristle tracks (飞白, "flying white").+## 2. Materials & rendering-Most of the frame is **empty paper** (留白). Emptiness is not background — it is water, sky, mist, silence. A good ink frame is 60–80 % untouched paper.+- **Paper** is procedural, in the compositor, never a texture file: warm rice paper (around `#F2ECDE`), cloud mottling, long fibres, pulp flecks, grain that fades when zoomed out (or it shimmers), a light vignette; anchored to the world.+- **Ink** is stroke opacity multiplied onto paper (never an overlay), in five tones (墨分五色):-Learn the grammar from Shanghai Animation Film Studio's *Feelings of Mountains and Water* (1988) — blank-paper space, ink bloom, guqin-led pacing, figures in a few strokes — and, for action, from the bamboo-forest sequence of *Crouching Tiger, Hidden Dragon* (weightless "qinggong" leaps, stillness before motion). Do not copy their characters, compositions or music.+| Tone | Opacity | Use |+|---|---|---|+| 焦 jiao (burnt) | ~.96 | calligraphy, the sharpest lines, moss dots |+| 浓 nong (thick) | ~.82 | contours, dark edge of loaded strokes |+| 重 zhong (heavy) | ~.60 | secondary lines, folds |+| 淡 dan (light) | ~.34 | mountain bodies, robe and body washes |+| 清 qing (clear) | ~.16 | far mountains, faces, mist |-## 2. Story: what fits this style+- **Brushstroke model**: centreline × pressure profile × width noise, plus 4–60 **bristles** whose ink load drops along the stroke and breaks on long-scale noise. `dry` runs from a solid wet stroke to flying white (dry strokes are bristle tracks only).+- **Loaded stroke**: bristles darker on one side, so the stroke carries its own contour: this makes bodies, rocks and waves read as ink, not vectors.+- **Two layers**: the wet one bleeds in the compositor (noisy blur, **edge pigment accumulation**, granulation); the dry one only gets fibre jitter and paper tooth.+- **Masses**: soft polygons, jittered edges, a gradient; never flat fills.+- **Landscape**: mountains dissolve downward into mist bands, with 披麻皴 texture and 苔点 moss dots on near ranges only; rocks are outline → axe-cut texture → shadow wash → dots.+- **Water is blank paper**, moved by faint dry streaks and open ink rings. Solid water: Song-dynasty **parallel wave lines** (dense near the edge) or a pale body with a few huge loaded strokes along its face.+- **Figures are xieyi**: one pale body mass plus two loaded strokes, burnt-ink lines for limbs; features, if ever shown, in 3–5 strokes.+- **Calligraphy**: an OFL brush font is only a **skeleton**: trace centrelines in stroke order, pressure from glyph thickness, hidden-tip entry (藏锋), tapered exits.-Pick stories where **the brush itself is the event**. Ink has six native powers — use at least three, and put the strongest at the emotional peak:+## 3. Colour logic-| Native power | Story use |-|---|---|-| **One stroke is everything** | A drop of ink lands on blank paper and blooms into mountains. Things are *painted into existence* rather than cut to. |-| **Emptiness is matter** | The river, the sky, the path are blank paper. Cutting something reveals *paper white* — the most powerful "effect" is removing ink. |-| **Brush = gesture = action** | A sword path writes a calligraphic character; a dance is a line; a punch is a dry stroke. Stroke order becomes choreography. |-| **Flying white (飞白)** | The climax is one fast dry stroke across the whole frame — the ink runs out at the speed of the action. Precede it with total silence. |-| **Ink bloom transitions** | Instead of cuts or dissolves, a drop spreads through wet paper and the next scene grows inside it, with a dark tide-line at the front. |-| **The handscroll** | The whole story lives on one long painting. Pan right-to-left like unrolling a scroll; end by pulling back to reveal the full scroll and stamp the seal. |+- Ink only, from cool grey at low density to warm black at full density. No other hue in the world.+- **One vermilion** (around `#B02E22`), for the seal and at most one tiny accent in the story (an object the protagonist carries). The accent finds the protagonist in wide shots and can rhyme with the seal. Never a red wash, never red type.+- Values carry depth: far = pale and soft, near = dark and textured. If a frame gets busy, remove ink rather than add tone.-Adapting any topic: find the **one gesture** at the heart of it and make it a brushstroke. A product launch → the product is written in one stroke. A love story → two strokes that finally meet. A history → a scroll that unrolls through eras and is sealed at the end.+## 4. Type & subtitles-**Emotional arc for 45–60 s:** emptiness → a drop of ink (creation) → a small figure in vast space → lightness/joy → an overwhelming obstacle (drawn as mass: a wet splash of dark ink) → silence → one decisive stroke → release → scale reveal (the figure is a tiny mark in the whole painting) → seal. One character, one goal, one turn. A philosophical closing line lands better than a triumphant one ("cut water with a sword and it only flows on").+- Subtitles are **inscriptions (题跋)**: a classical italic serif (Cormorant Garamond italic), ink-coloured, no box, ≤ 2 lines, placed in each shot's empty paper. A small vermilion square marks the start of each line. They appear wet and dry in a fraction of a second. Hold ≥ max(1.8 s, speech + 0.6 s).+- Titles are written on the painting itself, in vertical columns in its empty space, with a vermilion 白文 seal drawn by code (lines knocked out of a slightly irregular red square, with ink-paste speckles). They move with the world.+- Screen-space overlays reset the camera transform.-## 3. Visual language+## 5. Motion quality-**Paper** (procedural, in the compositor, not a texture file): base `#F2ECDE`–`#F3EBDD` (warm rice paper, rgb .95/.925/.87), large cloud mottling ±7 %, three directions of long thin fibers (+1.8 % light), faint pulp dark flecks, fine grain that fades out when the camera zooms out (else it shimmers). Light vignette (~.22), slight warm grade. Paper texture is anchored to the world, so it pans with the camera.+- **Figures step at 12 fps** (on twos); their position, the camera, blooms, ripples and splatter move on ones at 24 fps.+- **Stable strokes on twos**: seed every stroke by its index and compute bristle breaks along *normalized* arc length × a fixed reference length, so flying-white gaps don't crawl every drawing. Allow only a small "boil" on the width noise.+- **Painted into existence**: strokes appear in drawing order.+- **Stillness before action** (when a decisive stroke is the event): hold, with at most a slow push-in, then let the stroke cross the frame in a few frames. Consequences start only after the stroke has finished.+- Nothing is tweened like a vector shape: things are painted, bloom or dissolve into mist.-**Ink** — five tones (墨分五色), used as stroke opacity on paper (multiply, not overlay):+## 6. Camera grammar-| Tone | Value | Use |+A vocabulary, not a route. Opening and ending come from the topic.++| Move | Expresses | Can serve ||---|---|---|-| 焦 jiao (burnt) | .96 | calligraphy, sword, hat brim line, moss dots |-| 浓 nong (thick) | .82 | contours, hat, dark edge of loaded strokes |-| 重 zhong (heavy) | .60 | secondary lines, folds, scabbard |-| 淡 dan (light) | .34 | mountain bodies, robe washes |-| 清 qing (clear) | .16 | far mountains, face, mist |--Ink colour runs from cool grey `rgb(.52,.55,.58)` at low density to warm black `rgb(.075,.068,.062)` at full density. Vermilion `#B02E22` only for the seal and one tiny accent on the hero (a sword tassel) — it finds him in wide shots and rhymes with the final seal.--**Brushstroke model** (`demo/ink.js`): centreline (Catmull-Rom, resampled by arc length) × pressure profile × width noise, plus 4–60 **bristles**. Each bristle has an ink load that drops along the stroke; a long-scale noise decides where it breaks. `dry` 0 = solid wet stroke, .3 = textured, .6+ = flying white. The body fill fades with dryness `(1-dry)^1.6` so dry strokes are made of bristle tracks only.-- Profiles: `brush` (press-in, taper out), `tip` (both ends pointed), `nail` (heavy head), `lens`, `fan` (narrow → wide), `rise`, `robe`, `even` + per-point pressure.-- **Loaded stroke** (`darkDir`, `side`, `brWet`): bristles darker on one side → the stroke carries its own contour. This single trick is what makes robes, rocks and waves read as ink painting rather than vector shapes. Its bristles go into the *wet* layer so they blend.-- **Wet vs dry layers**: two canvases. The compositor bleeds the wet one (12-tap noisy Poisson blur ~5 px at 1:1, feathered displacement), adds **edge pigment accumulation** (small blur − large blur) and paper granulation; the dry one only gets fiber jitter and paper-tooth breakup.-- Masses (hat cone, mountain bodies) are soft polygons with jittered, subdivided edges and a gradient — never flat fills with straight edges.--**Mountains** (`demo/land.js`): generated per pixel once and cached — ridge (pointed exponential peaks, rounded tops, 3-octave roughness) with a dark rim under the ridge fading downward, dissolving into horizontal mist bands; then 披麻皴 texture strokes down the slopes and clustered 苔点 moss dots on the ridges. Far ranges: tone .12–.16, no texture. Near ranges: .4–.5 with texture. Fade range ends with a horizontal alpha mask, never by sloping the ridge (it crosses the river).--**Rocks/cliffs**: outline (broken, thick-thin 焦墨 segments) → texture (short axe-cut 斧劈 strokes along facet lines) → wash (loaded vertical strokes on the shadow side, fading down into mist) → dots. **Pine**: one loaded crooked trunk, a few tip branches, fan-shaped needle clusters. **Reeds**: long tip strokes + lens leaves; foreground only, at the frame bottom.--**Water**: blank paper. Motion is shown by a few faint dry streaks, ellipse **ink rings** at each footfall (one stroke, 1.86π, open gap, expand as r ∝ age^0.6 and fade over ~2.4 s), and, when water becomes solid (a wall, a wave), by Song-dynasty-style **parallel wave lines** — dense and dark near the edge, sparse and pale away from it — with a few small curls.--**Waves**: a pale wet body + 4–5 huge loaded strokes swept up along the wave face and curled over at the crest (the stroke direction *is* the water's motion) + a few thin wave lines + spray as irregular ink blots. Never hatch the body with uniform lines (it becomes a wire mesh).--**Calligraphy**: use an OFL brush font (Ma Shan Zheng for regular script) as a **skeleton reference**: trace the centreline of each stroke in stroke order over the glyph, set pressure from the glyph thickness, add a 45° lead-in point for the hidden-tip entry (藏锋) and taper to .12–.18 for 撇/钩 exits. Draw with `solid: true` (body in the dry layer + a wet halo) and low dryness (.17). Don't clip brush strokes with the font outline — it creates notches at junctions.--**Characters — xieyi figures** (`demo/hero.js`): 100-unit-tall rig (joint dict: hip, chest, head, arms, legs, hem points, flare, sheath, ribbon) regenerated as strokes every drawing. Few strokes: hat = one wet mass + two dry ridge lines + a burnt-ink brim line; robe = one pale base mass + two loaded strokes (dark edge at back and front); legs/sword = burnt-ink lines; one ribbon trailing in the wind. The face stays hidden under the hat almost always; show features once (a close-up or the final bow) with 3–5 strokes: sword brows, phoenix-eye lids, one nose line, drooping moustache.--**Titles & seal**: title in vertical columns (English letterforms rotated 90°, Cormorant SC 600, wide tracking) placed in the painting's empty space, with a vermilion 白文 seal drawn by code (seal-script-like lines knocked out of a slightly irregular red square, with ink-paste speckles).--## 4. Motion language--- **Characters step at 12 fps** (on twos); their *position*, the camera, blooms, ripples, splatter and the wave move on ones at 24 fps. Poses are keyframed joint dicts blended with smoothstep.-- **Stable strokes on twos**: seed every stroke by its index, and compute bristle breaks and width noise along *normalized* arc length × a fixed reference length (`gapLen`), not the actual length — otherwise flying-white gaps crawl every drawing and the figure flickers into a blur. Allow only a small per-drawing "boil" phase on the width noise (5-drawing cycle).-- **Qinggong (lightness) leap**: body pitched ~30° forward, one knee tucked, the other leg trailing, robe pulled back into a big pale mass with a dark back edge, sleeves streaming. Step cycle: touch (14 %) → rise → glide (45 %) → descend; height `sin(π·phase)`. One ink ring per touch.-- **Painted into existence**: strokes appear in drawing order (`p` progress), each landing on a musical pluck.-- **Stillness before the strike**: hold the frame (only a slow 5 % push-in) through total silence, then the decisive stroke crosses the frame in ~4 frames. Delay the consequences (the wave splitting) until the stroke has finished.-- **Splitting a mass**: render it to a temp layer, draw the two halves through clip paths on either side of the cut line; the upper half rises/rotates and fades, the lower half slumps and squashes; add curling crests along both torn edges and pale wash blocks; splatter flies along the sword direction with gravity and stays on the paper.-- **Ink bloom** (reveal/transition): noisy radial mask `d·(0.62 + 0.8·fbm)` against a growing radius, with a dark tide-line band at the front. For individual world elements use a low-res (1/4) mask computed per frame in world-anchored noise and `destination-in`; for scene transitions do it in the compositor between two layer sets.--## 5. Camera language--| Beat | Camera |-|---|---|-| Opening | Locked frame of blank paper; the drop falls into it. Give "nothing" before "something". |-| Establishing | Slow right-to-left pan (scroll unrolling), ending on a **high wide** frame: the figure 150–180 px tall, the river a huge blank. |-| Travel | Lateral tracking with the figure at ~60 % of the frame, lead room ahead; very slow parallax far mountains; occasional dark reeds passing at the very bottom. |-| Threat | **Low angle**, horizon low, the mass towering, the figure tiny in a corner; slow push-in with growing shake. |-| Silence | Hard cut to an extreme close-up (hat brim, no eyes); then an **over-the-shoulder** frame putting the figure, the written character and the threat on one axis. |-| Release | Back to the same high wide scale as the establishing shot — the rhyme shows what changed. |-| Ending | Continuous pull-back from the figure to the whole handscroll on its silk mount; seal; end card below the scroll. |--## 6. Sound--- **Music — guqin-led, not piano+strings**: guqin (`core/audio/pluck.py` `guqin`: open strings, stopped notes with slides `bend`, vibrato `vib`, harmonics `harmonic=True`, sweeps with `P.strum`), xiao substitute (sampled flute, low octave, low-passed, breath noise following the envelope), big drum (`gran_cassa`) + `timpani`, `frame_drum` for footsteps, a small gong for the seal. F-gong pentatonic (F G A C D). Structure by cue, not by loop: free-time opening, 60 BPM for landscape, 90 BPM for travel (footsteps on beats), drum roll for the threat, **digital silence**, three glassy harmonics for three written strokes, silence again, then drum + seven-string sweep on the cut; the theme returns for the release; last note = seal.-- **Silence is literal**: zero the whole bus (music, ambience, reverb tails) in the silence windows with 20 ms fades; hard-cut ambience at the cut to silence. The only sounds allowed in silence: a single drip, the sword ring.-- **Foley follows material**: ink drop (short falling "tink" + soft wet thud), brush/sword air (band-passed noise with bristle grains, not a metal whoosh), footfall on water (small splash + plop + droplets), sword draw (scabbard scrape + long thin metallic ring, cut before the second silence), the cut (tearing air + river roar + low boom), ink splatter (dozens of tiny wet ticks), seal (dull wooden thump + paper crackle).-- **Voice**: calm British narrator (Kokoro `bm_george`, lang `en-gb`, speed .82–.86), 4–6 lines like colophon inscriptions — they do not explain the picture. Music ducked ~8 dB under voice; ambience ducked too (a river roar under a line made whisper hear "Halfway" as "This way"). Verify every line with whisper *and* re-check the final mix.--## 7. Subtitles & titles--- Subtitles are **inscriptions (题跋)**: Cormorant Garamond italic 500, 46 px, ink colour, 1 px tracking, max two lines, no box — placed in the empty paper of each shot (each shot defines its own subtitle position). A small vermilion square marks the start of each line. They appear "wet" (partly in the bleeding layer) and dry within ~0.35 s. Stay ≥ voice + 0.6 s and ≥ 1.8 s.-- Title: two vertical columns written on the scroll itself (moves with the pan) + seal; fades in wet → dry and evaporates when the pan starts.-- End card: the whole scroll on a dark table with silk borders and rollers; "CHINESE INK WASH" (Cormorant SC 600, 44 px, 14 px tracking) and the credit line (italic 30 px) in pale paper colour below.--## 8. Pitfalls we hit--- Dry brush looked like dashed lines → bristle breaks must use long-scale noise and an ink load that decreases along the stroke.-- Parallel semi-transparent strokes made robes look like organ pipes → one base mass + two loaded strokes.-- Big side-brush strokes at large scale look like a hairbrush (every bristle visible) → use a mass with a gradient plus fewer, low-dryness strokes; keep bristle strokes for smaller widths.-- Mountain gradients drawn in vertical bands left seams and hard bottoms → per-pixel mountain layer, cached.-- Splitting stroke body between wet and dry layers lowered the density (union < alpha) → `solid` mode draws the full body in the dry layer plus a wet halo.-- Clipping calligraphy with the font outline caused notches → use the font only as a skeleton.-- Character strokes regenerated on twos flickered → normalized-arc-length noise with a fixed `gapLen`.-- Subtitles inherited the world camera transform in panning shots and slid off screen → always reset the transform when drawing screen-space overlays (subtitles, seal on posters).-- A cliff drawn with `flip=-1` put the figure in mid-air; the back of a cliff polygon showed a straight vertical edge; a rock's base was cut by the layer canvas bottom → compute screen extents after flipping, slant the back side, fade layer bottoms with a `destination-in` gradient.-- The cut began splitting the wave while the stroke was still crossing the frame → start consequences after the stroke ends.-- A scene with rare, heavy per-pixel steps can exceed Playwright's default screenshot timeout; just retry the still render (the frame itself is deterministic).--## 9. Production recipe (this repo)--```-styles/ink-wash/demo/- ink.js brush engine (strokes, bristles, masses, blots) comp.js WebGL rice-paper compositor (bleed, edge, paper, bloom)- hero.js xieyi figure rig + poses face.js close-up face (one use)- land.js mountains, cun, cliffs, pine, reeds, ripples wave.js gestural wave- glyph.js "水" traced from Ma Shan Zheng + the cut stroke seal.js vermilion seal- world.js the handscroll world, reveals, shots 1–2 cross.js crossing + rising (shots 3–4)- climax.js silence, writing, the cut (5–6) passage.js parted river, bow, scroll, end card (7–8)- story.js timeline (single source of truth) shots.js dispatcher, transitions, subtitle spots, sound events- subs.js inscription subtitles music/score.py original guqin score mix.py foley + voice + music build.sh-```--1. Write `story.js` times first (voice durations from `core/tts/tts.py`), then brief the score with the same numbers (the composer can run in parallel).-2. `node core/render/still.mjs styles/ink-wash/demo --range a:b:1` + `core/render/sheet.py` for overview sheets; `?test=sheet|pose|shui|frame` pages for design work; `?nosub=1`, `?poster=1`.-3. `node core/render/events.mjs` → `mix.py` → `video.mjs --fps 24 --workers 3` (1152 frames ≈ 60–130 s) → `mux.sh … 24 0` (grain 0: the paper is in the shader).-4. Or simply `sh styles/ink-wash/demo/build.sh`.+| Locked frame on the paper | The page is the stage; things are painted in | a thing forming; a line being read; a still decision |+| Right-to-left pan (handscroll) | Time and distance as one painting | a journey; a history; a process |+| Vertical tilt (hanging scroll) | Height, stages stacked | seasons; a climb; generations |+| Lateral tracking, lead room, slow far parallax | Motion through a world | travel; a chase; a commute |+| High wide, a tiny figure in blank paper | Smallness, solitude | loneliness; nature's scale; one life among many |+| Low angle, dark mass towering, slow push-in with shake | Weight, threat | an obstacle; a storm; pressure |+| Hard cut to an extreme close-up | A break in the flow (the style's only hard cuts) | a decision; a shock; a memory |+| Push into an ink bloom or mist | Passing between states | memory; dream; a season turning |+| Pull back until a mark joins the whole | The part was inside something larger | a summing-up; irony of scale |+| Return to an earlier framing | The rhyme shows what changed | aftermath; growth; before/after |++Framing: 60–80 % empty paper; dark foreground may pass along the frame bottom. Transitions are ink blooms, pans along the scroll or mist; never a generic dissolve or a wipe.++## 7. Sound palette++- **Guqin-led, not piano and strings**: guqin (`core/audio/pluck.py` `guqin`: open and stopped strings, slides, vibrato, glassy harmonics, sweeps), a low breathy xiao, big drum and timpani for mass, frame drum for steps, a small gong for a seal. Chinese pentatonic modes.+- **Cue to the picture, never loop**: unmetred plucks suit emptiness, a pulse suits movement, rolls suit mass; painted strokes can each land on a pluck.+- **Silence is literal**: zero the whole bus (music, ambience, reverb tails) with short fades. At most one sound inside it (a drip, one ring). Place it where the story holds its breath.+- **Foley follows the material**: ink drop (short "tink" + soft wet thud), brush air (band-passed noise with bristle grains, never a metal whoosh), steps on water (small splash), splatter (wet ticks), seal (wooden thump + paper crackle).+- **Voice**: calm, few lines, like colophons that don't explain the picture. Duck music ~8 dB and ambience too; verify each line with whisper on the final mix.++## 8. Native moves++A menu: use the ones your story needs.++- **One stroke is everything.** *Fits content like:* a product born from one line; a city growing from a single street; a day beginning with one bird.+- **Emptiness is matter.** Removing ink reveals paper white. *Fits content like:* a door opening in a wall; a crowd parting; an absence in a family portrait.+- **Brush = gesture = action.** Stroke order becomes choreography. *Fits content like:* a dancer's phrase that spells a word; a signature; a chef's knife work.+- **Flying white (飞白).** One fast dry stroke across the frame, strongest out of a silence. *Fits content like:* a sprint finish; a decision; a comet.+- **Ink bloom transition.** The next scene grows inside a spreading drop with a dark tide-line (noisy radial mask; world-anchored for elements, in the compositor for scenes). *Fits content like:* memories; seasons; one era giving way to the next.+- **The handscroll.** One long painting panned right to left, seen whole at last. *Fits content like:* a history; a supply chain from field to hand; a day in a street.+- **Splitting a mass.** Halves clipped either side of the cut; one rises and fades, one slumps; splatter stays. *Fits content like:* breaking a record; a barrier falling; an idea splitting in two.++## 9. Pitfalls of the medium++- Dry brush looks like dashed lines → breaks from long-scale noise and an ink load that drops along the stroke.+- Parallel semi-transparent strokes make bodies look like organ pipes → one base mass + two loaded strokes.+- Big side-brush strokes look like a hairbrush → a gradient mass + a few low-dryness strokes. Gradients in vertical bands leave seams → a cached per-pixel layer.+- A stroke body split between wet and dry layers loses density → full body in the dry layer plus a wet halo.+- Clipping calligraphy with the font outline notches the junctions → font as skeleton only.+- Uniform hatching inside a wave turns it into a wire mesh → loaded strokes along the face.++## 10. Engine++In `demo/`: `ink.js` (brush engine: strokes, bristles, loaded strokes, masses, blots), `comp.js` (WebGL rice-paper compositor: bleed, edge pigment, paper, bloom), `land.js` (mountains, cun, cliffs, pine, reeds, ripples), `wave.js` (gestural wave), `glyph.js` (skeleton-traced calligraphy), `seal.js` (vermilion seal), `hero.js` (xieyi figure rig), `subs.js` (inscription subtitles), `music/score.py` (guqin writing with `core/audio/pluck.py`); `?test=sheet|pose|frame` pages draw model sheets from the real engine.++## 11. Variation space++You decide the structure, the characters (or none), the landscape, the opening, the ending, the camera path, the pacing and where the red goes. All far from our demo:++- Structures: **one character, stroke by stroke** (no figure; each stroke of one large character opens into a vignette of the topic); **a hanging scroll** (a tilt from sky to ground through four stages, tone deepening); **two brushes in dialogue** (alternating strokes answer each other until they meet in one bloom).+- Openings: **in motion** (a figure already painted and moving; the world washes in around it); **ink first** (a fully inked frame; ink is lifted where light or a road appears); **the bristles** (a wet stroke fills the frame; only when it lifts do we see what it drew).+- Endings: **one small mark** (close on a footprint or a leaf while the ink around it dries; no pull-back); **evaporation** (the painting un-paints in reverse stroke order); **mid-gesture** (the brush stops before the last stroke lands).++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/ink-wash/TREATMENT.md b/styles/ink-wash/TREATMENT.mddeleted file mode 100644index 43528cc..0000000--- a/styles/ink-wash/TREATMENT.md+++ /dev/null@@ -1,122 +0,0 @@-# Chinese Ink Wash · 导演方案(Treatment)--**片名** *The Swordsman and the River*(片内竖排英文题字 + 朱文印"水")-**时长** 约 48 秒(风格说明建议 45 秒;多出的 3 秒全部给字幕阅读和出剑前的静默,理由见第八节)-**画幅** 1920×1080 | **帧率** 24fps 输出;侠客按 12fps(on twos)步进,镜头、墨晕、水纹、飞溅每帧平滑-**一句话** 一个无名侠客踏水过江,江心巨浪拦路;他以剑为笔,在空中写下一个"水"字——最后一笔就是那一剑。江被劈开,他走过去;身后江水合拢,照旧东流。-**题眼** 李白"抽刀断水水更流"。剑能劈开水一瞬,不能让水停下。侠客过了江,向江行了一礼。整片最后收成一幅手卷,他只是画里很小的一笔。-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么 | 刻意不学 |-|---|---|---|-| 上海美影《山水情》(1988) | ① 留白就是空间:江面、天、雾全是纸本色,不画;② 墨色五分(焦浓重淡清),远山淡、近石浓;③ 湿墨在纸上晕开的边缘(墨晕、水痕、边缘积墨);④ 古琴主导的呼吸式节奏:长音、泛音、停顿比音符多;⑤ 人物"几笔成形",靠衣纹的笔势表演 | 不用它的人物造型(老琴师与少年)、不用它的具体构图与鹰、不用它的琴曲旋律;不做它的慢,本片 48 秒要有一次爆发 |-| 《卧虎藏龙》竹林段 | ① 轻功的"失重感":落点轻、腾空长、衣袂比身体慢半拍;② 静与动的对比:大动作之前完全静止;③ 横向跟拍 + 前景植物掠过带出速度 | 不做打斗对手戏,不用竹林(换成芦苇、江面),不做武打剪辑的快切,整片只有一个动作高潮 |-| 中国手卷(长卷)观看方式 | 手卷从右往左展开:开场镜头**自右向左横移**,像展卷;侠客也自右向左过江(逆着西方观众的阅读方向,本身带"逆流而行"的阻力感);结尾拉远成整幅长卷,盖印题跋 | 不仿任何具体名画 |-------## 二、原生招式(只有水墨能做到)--| 水墨的天生能力 | 片中怎么用 | 位置 |-|---|---|---|-| **一笔即万物**:墨滴落纸就是山,留白就是水 | 开场一滴墨落在空白宣纸上,沿着看不见的山势晕开,长成远山;江面始终是没画的纸 | 0:00–0:06(开场 3 秒内的钩子) |-| **笔就是剑,字就是招** | 侠客的剑路在空中写出"水"字,按书法笔顺(竖钩、横撇、撇、捺),每一笔一声古琴泛音 | 0:28–0:31 |-| **飞白**:干笔疾扫,纸从笔触里透出来 | **一剑断流 = "水"字最后一笔"捺"冲出字外,化成一笔横贯整个画面的飞白**;墨点炸开,巨浪沿笔触被劈成两半,露出白纸。出剑前 1.8 秒完全静音 | 0:32.4,情绪最高点 |-| **墨晕扩散** | 转场不用叠化,用一滴墨在湿纸上晕开,新画面从墨晕里长出来(边缘有积墨的深色水线) | 过江起跳、断流之后 |-| **踏水成墨** | 轻功踩在"纸"上,每一步留下一个墨圈涟漪,淡淡散开 | 过江段 |-| **收卷盖印** | 结尾整段旅程拉远成一幅长卷,朱红印章"咚"一声落下,竖排题跋 | 0:41.5–0:45 |-------## 三、角色--**无名侠客**(全片唯一角色):斗笠、宽袖长袍、背一柄长剑、剑柄系一缕**朱红剑穗**。--- 写意造型"几笔成形":斗笠 = 一笔侧锋浓墨;袍身 = 两三笔饱含水的淡墨大笔(湿,会晕);衣纹、袖口、腰带 = 几笔干一点的重墨;腿 = 两笔细劲的焦墨线(奔跑时才露出来);剑 = 一根极细的焦墨线。脸几乎藏在斗笠下,只在特写里露出眉眼(两三笔)。-- **朱红剑穗**是全片除印章外唯一的颜色。远景里侠客只有指甲盖大,这一点红让观众一眼找到他;片尾印章的朱红与它呼应。-- 表演靠笔势:静立时衣袂微动;腾空时袍摆拖成长长一笔;拔剑时袖子甩成一道弧。-- 关卡 1 交付:角色设定表 `demo/stills/modelsheet_v1.jpg`(四面转面、四个表情、四个关键姿势、墨色与朱红色板)。-------## 四、分镜节拍表(按秒)--| # | 时间 | 画面 | 机位意图 | 声音 / 字幕 |-|---|---|---|---|---|-| 1 虚白 | 0.0–6.5 | 满屏空白宣纸。0.55 一滴墨从画外落下,0.9 落纸,墨沿山势晕开成一列远山(右半画面)。3.2 左侧留白处竖排题字 + 印章,墨晕浮现,7.0 前化开 | 固定机位,纸就是世界;先给"无",再给"有" | 0.9 滴水声 + 古琴散音(低 F);2.6 箫长音进;4.0 古琴三个泛音托片名 |-| 2 江岸 | 6.0–13.3 | 镜头自右向左横移(展卷),露出近岸崖石、一株老松、左边大片留白的江。9.0/9.6/10.2 侠客被三笔画出来:袍、笠、剑(每笔一声琴),剑穗最后点红。风吹衣角松针 | 高远俯视大全景,人只有 180px 高:先交代尺度——江大,人小 | 60 BPM 古琴独奏;字幕 L1 10.5 起,放在江面留白处 |-| 3 过江 | 13.3–21.3 | 墨晕转场:他起跳,落点一个墨圈扩散成新画面。中景横跟:他自右向左踏水飞奔,12 步落在 90 BPM 拍点上,每步一个椭圆墨圈;前景浓墨芦苇掠过,远山慢视差 | 横向跟拍,人稳在画面右 60%,左侧留"前方"的空;前景掠过带速度(学卧虎藏龙) | 古琴轮指 + 箫旋律 + 小鼓轻点脚步;每步踏水声;字幕 L2 14.5 |-| 4 浪起 | 21.3–26.8 | 前方白江面渗出墨色,巨浪从左侧升起、卷曲,浪头飞白、水沫是墨点。22.0 切低角大全景:巨浪占满上半屏,他在右下角很小,落水滑停,拖出一道墨痕 | 低机位 + 缓推 + 逐渐加强的震动:把压迫感给观众 | 堂鼓滚奏渐强、古琴低弦下滑、风声水声;字幕 L3 22.4 |-| 5 静 | 26.8–32.4 | 硬切**全静音**。斗笠檐大特写,双目紧闭,一滴水从笠檐滑落(27.6)。27.8 睁眼拔剑。28.4–30.2 中景过肩:剑尖在他与巨浪之间写出"水"字前三笔。30.6–32.4 字悬在空中缺最后一笔,镜头极缓推近,**完全静音 1.8 秒** | 从最近的脸到过肩,把观众拉到他身后,让字、人、浪在同一条轴上 | 26.8–27.6 绝对静音;27.6 一声滴水;27.8 拔剑金属清鸣;三笔各一声古琴泛音 + 毛笔破空声;然后真静音 |-| 6 断流 | 32.4–35.5 | **原生招式**:最后一笔"捺"从字里冲出,化成横贯全画面的飞白(4 帧扫完),墨点炸开,画面震 6 帧;浪沿笔触被劈开,上半截滑开、晕散成白雾,江被切出一条白路 | 仍是过肩机位,笔触横切画面中线——观众看到"字就是剑" | 大鼓一击 + 古琴扫弦 + 水被撕开的轰响,墨点落纸的沙沙声;余音长拖 |-| 7 过江 | 35.5–41.5 | 墨晕转场(落下的墨点晕开)。大全景:江被劈开,两侧是淡墨水墙,中间白路,他从容走过,39.5 上对岸。身后水墙合拢,江面恢复流动。40.3 他转身,对江抱拳一礼 | 回到高远俯视——和第 2 镜同一个尺度,形成对照:来时是飞奔,去时是步行 | 古琴主题回归(第 2 镜旋律)+ 箫对位;字幕 L4 35.8,L5 39.2 |-| 8 收卷 | 41.5–48.0 | 镜头连续拉远:整段旅程收成一幅长卷(右远山、中崖松、中间大江、左岸小小的侠客和一点红),卷边露出绫裱。44.0 朱红印章落下(盖印时墨色微微一震),竖排题跋浮现。45.5 片尾卡:CHINESE INK WASH / LemoLab × Claude Opus 5.5 | 尺度揭示:刚才的惊天一剑,在整幅画里只是江面上一片空白 | 44.0 印章木质闷响 + 古琴最后一个低 F 泛音,余音到结尾 |--**首尾呼应**:开场一滴墨长出山;结尾整幅画收成一个印章。开场江面是空白,结尾江面依然是空白——剑劈过的地方,什么也没留下(水更流)。-------## 五、旁白(Kokoro `bm_george`,沉稳,速度 ~0.88)--| # | 时间 | 文本 |-|---|---|---|-| L1 | ~10.5 | The river keeps no name. It waits for no one. |-| L2 | ~14.5 | He crossed it the only way he knew — lightly. |-| L3 | ~22.4 | Halfway over, the river rose to meet him. |-| L4 | ~35.8 | Draw a sword to cut the water… |-| L5 | ~39.2 | …and the water only flows on. |--L4–L5 是李白"抽刀断水水更流"的意译(公有领域诗句,译文为本片自写)。旁白只有五句,像题跋,不解释画面。-------## 六、配乐 cue map(音乐先行,画面卡音乐)--配器:古琴(`core/audio/pluck.py` guqin;若未就绪用 numpy 自写物理建模拨弦:散音、按音带吟猱滑音、泛音、扫弦)、箫(气声 + 正弦 + 慢颤音,自写合成)、堂鼓/大鼓(膜振动 + 低频冲击)、风声、水声。F 宫五声(F G A C D),古琴正调。旋律全部原创。--| Cue | 时间 | 速度 | 配器 | 情绪 | 卡点 |-|---|---|---|---|---|---|-| A 虚白 | 0–7.0 | 散板 | 纸面空气声、古琴散音、箫长音、泛音 | 空、静 | 0.90 墨滴落纸 = 低 F 散音;2.6 箫进;4.0/4.5/5.0 三个泛音托片名 |-| B 江岸 | 7.0–13.3 | 60 BPM | 古琴独奏(按音、滑音) | 孤、远 | 9.0 / 9.6 / 10.2 三声琴 = 侠客三笔成形 |-| C 过江 | 13.3–21.3 | 90 BPM | 古琴轮指 ostinato + 箫旋律 + 小鼓轻点 | 轻、快 | 12 步踏水全在拍点上 |-| D 浪起 | 21.3–26.8 | 90 BPM | 堂鼓滚奏渐强、古琴低弦下滑、风、水 | 压迫 | 22.0 切低角 = 鼓重音;26.8 所有声音硬切 |-| E 静 | 26.8–32.4 | 无 | 绝对静音 → 滴水 → 拔剑清鸣 → 三个泛音 → 绝对静音 | 屏息 | 27.6 滴水;27.8 拔剑;28.4/29.1/29.8 三笔;30.6–32.4 真静音 |-| F 断流 | 32.4–35.5 | 无 | 大鼓一击 + 古琴七弦扫弦 + 撕水声 + 墨点落纸 | 爆发 | 32.40 = 飞白扫过的第一帧 |-| G 过江 | 35.5–41.5 | 60 BPM | 古琴主题回归 + 箫对位 | 释然 | 40.3 抱拳 = 乐句句尾 |-| H 收卷 | 41.5–48.0 | 渐慢 | 古琴收束、低 F 泛音 | 回响 | 44.0 盖印 = 最后一个音 |-------## 七、声音设计与字幕设计--**拟音跟材质走**(纸、墨、水、丝、铁):墨滴落纸(软、湿、短,高频少);毛笔破空(带毛刷质感的气流,不是金属嗖声);踏水(轻、水花小、带一点纸的"噗");拔剑(长而细的金属清鸣);墨点溅落(许多极短的湿点);盖印(木印压纸的闷响)。风和水始终很低,留足空间。--**字幕 = 题跋**:不用黑底条。Cormorant Garamond 斜体、焦墨色、字距略开,两行以内,**放在当前画面的留白处**(题跋本来就写在画的空处),每句左侧一枚小朱红方印作句首记号;出现与消失都是墨晕(从淡到浓 0.35 秒,消失时化开)。停留 ≥ 语音 + 0.6 秒且 ≥ 1.8 秒。--**片名**:竖排英文(Cormorant SC,逆时针旋转 90° 自上而下读),宽字距,下接朱文方印"水"(印文用代码画的篆意线条,不用字体)。-------## 八、对风格说明的改动与理由--1. **时长 45 → 约 48 秒**:五句旁白每句要 ≥ 语音 + 0.6 秒,出剑前的静默要足 1.8 秒,还要给结尾长卷留回响。按"节奏以观众为准"的原则多给 3 秒,不砍停留。-2. **"出剑前全静音"细化为两段静默**:浪起硬切后 0.8 秒静音(观众被突然抽空),拔剑写字时只有泛音,最后一笔前再给 1.8 秒绝对静音。高潮落在第二段静默之后。-3. **阻碍选"巨浪"**:对手就是江本身,和题眼(剑斩不断水)是一回事;不引入第二个角色。-4. **"一笔飞白横贯画面"与"写水字"合成一招**:飞白就是"水"字的最后一笔,字与剑、书法与武功在同一个动作里完成。-5. **加了朱红剑穗**:远景可辨认 + 与结尾印章呼应。-6. **自右向左的运动方向**:手卷的展开方向;也给"过江"一点逆行的阻力。-------## 九、关卡 1 之后的改动(按批准意见)--1. **"水"字**:改用 OFL 楷书字体 Ma Shan Zheng 的"水"作骨架——在字形上按笔顺描出四笔中线(竖钩、横撇、撇、捺),笔压取字形粗细,加 45° 藏锋起笔、撇与钩出锋;笔触引擎用 `solid` 模式逐笔写出。试过用字形轮廓裁边,交叉处出现缺口,最终只把字体当骨架。-2. **侠客少笔**:脸几乎一直藏在斗笠下;静默段的大特写改成"只见笠檐、须与下颌、一滴水",不画眼睛;唯一一次露出眉眼是抱拳时的中景(两弯笑眼)。-3. **腾空重做**:身体前倾约 30°,一膝收起、一腿后拖,袍被风拉成一大块淡墨(背面浓边),双袖后扬;每次点水一个墨圈,三圈错开扩散约 2.4 秒。-4. **动作稳定**:笔毫断点与宽度噪声按"归一化弧长 × 固定参考长度"计算,种子按笔固定;只保留 5 张一循环的微小边缘抖动。-5. **断流**:飞白扫完(4 帧)后浪才裂开——上半沿切口向上翻卷、化开,下半向下塌落、压扁;两道裂口各一排含墨浪头向外翻卷,加淡墨大块;墨点顺剑势向右飞溅、落纸留痕;中间露出纸白。-6. **过江段的江底白路**:两侧水墙改为宋人水图式的平行波纹线(近路浓密、远处疏淡)+ 路沿小漩;身后按合拢前沿用横向渐变抹掉,江面只剩涟漪。-7. **配乐**:古琴 pluck.py guqin + 采样长笛低八度作箫 + gran_cassa / timpani,由 fork 子 agent 按本方案的 cue map 写成,卡点实测误差 ≤ 1 帧。diff --git a/styles/ink-wash/style.json b/styles/ink-wash/style.jsonnew file mode 100644index 0000000..10d4196--- /dev/null+++ b/styles/ink-wash/style.json@@ -0,0 +1,18 @@+{+ "slug": "ink-wash",+ "num": "03",+ "en": "Chinese Ink Wash",+ "cn": "中国水墨",+ "category_en": "Hand-drawn & Painting",+ "category_cn": "手绘与绘画",+ "film": "The Swordsman and the River",+ "line": "A swordsman crosses the river on the water and splits the current with a single stroke.",+ "line_cn": "侠客踏水过江,一剑断流。",+ "uses": [+ "Wuxia",+ "Cultural brands",+ "Poetry"+ ],+ "frame_sec": 34.56,+ "dur": 48.0+}diff --git a/styles/iso-infographic/DEMO.md b/styles/iso-infographic/DEMO.mdnew file mode 100644index 0000000..d5e708c--- /dev/null+++ b/styles/iso-infographic/DEMO.md@@ -0,0 +1,176 @@+# Isometric Infographic — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *From Bean to Cup* (58.8 s) · `iso-infographic.mp4` · source in [`demo/`](demo/)+++The demo follows one coffee bean from a farm to a cup in a 45–60 s film: one isometric map, one camera take, a Z-shaped route across a square board.++## Story & structure++The whole film is **one isometric map**: a square diorama board that projects to a rhombus of almost exactly 16:9. Every step of the process is a **station** on that board. A dashed **route line** connects the stations. The camera never cuts. It rides the route with pushes, pulls, pans and follows, and each station is told the same way: **one action, one label, one number built from icons.**++What makes it work:+- **Flat, true isometric.** No perspective, no outlines. Shapes are separated only by the three tones of each face.+- **Infographic furniture is part of the picture.** Leader lines, label pins, cut lines, hatched section faces, tracking rings and a legend all live on the map.+- **One tracked subject.** A single object (a bean, a parcel, a drop of water) is followed through the whole system with a "you are here" ring. That turns a diagram into a story.++How the demo used the medium:++| Native power | Story use |+|---|---|+| **One-take diorama** | Any process becomes a route across one board. Lay the route out as a **Z across a square board** (far corner → right → across the middle → near corner). A straight strip wastes the final pull-back, but a square board fills 16:9 exactly. |+| **Cutaway** | One unified gesture: a dashed **cut line** draws, the near skin **slides out along its normal and fades**, and **hatched section rims** remain. Use it for a fruit, a ship's hull, a container, a sack, a building or a machine. |+| **Isotype numbers** | Every station gets a number drawn as identical icons, with a different arrangement each time: a 3×7 calendar of suns, 14 container icons (1 = 1,000), a day/night row, a rising thermometer, 70 beans that **arrange into the silhouette of a cup**, and an 11-cell distance bar. |+| **Focus + context** | At the emotional peak, **desaturate everything except the subject** (the engine's one-colour hook). This is the infographic's own way of saying "this one". |+| **Frame within the frame** | A detail callout: a leader line grows from the map and ends in a circular inset showing a close-up. The system and the individual are on screen together. |+| **Scale reveal** | End by pulling back to the whole board. The route lights station by station and every label is on screen at once, so the last frame is a finished infographic. |++**Story shape (proven in the demo):**+1. Open on an extreme close-up of the subject arriving in a hand, with a tag: **0 km**.+2. Pull back to the first station and the title.+3. Numbers grow station by station (2 seeds → 400,000 beans per sack → 14,000 containers). The subject gets lost.+4. At the busiest point, dive through nested cutaways and find it: the silence, and the only colour left.+5. The loudest sound in the film breaks the silence, and the camera snaps back out. The time jump is hidden inside the dive.+6. Transformation stations, a second silence, then the gentle payoff.+7. **Echo:** the same close-up composition, a different hand and a different object, and the tag now reads the total. Pull back to the full map.++**The numbers must add up.** This style lives on credibility: 400 + 10,500 + 100 = 11,000 km, and the Isotype bar is coloured in the same proportions. Put the real order of the process on screen (in the demo, beans are shipped green and roasted in the destination country) and say why in your treatment if you change a brief.++## Shots++The camera is a world centre plus a **log-interpolated zoom** k (px per unit). The demo runs from k = 3.75 (whole board) to 8,000 (one bean).++| Beat | Camera |+|---|---|+| Open | Extreme close-up of the hand (k ≈ 600), drifting slightly. The camera sits 0.17 units above the palm so the branch fits above it. |+| Title | Pull ×35 to the first station (eio in position, log-linear in zoom) while the title plate rises. |+| Station | Hold wide, and open a circular inset for the detail. |+| Transfer | Descend (crane) or follow a vehicle; the next station's sound arrives first. |+| Busy station | Locked, then pull out as the system fills. |+| Breath | A long lateral follow over empty water. |+| Fast-forward | Follow with a wake and a day/night icon row. |+| **Dive** | Three pushes through nested cutaways, **slow → faster → fastest** (0.9 s, 0.6 s, 0.6 s) so it reads as a fall. One instrument drops out and the low-pass closes further at each level. |+| Silence | A slow push (k 3,200 → 8,000) while the colour drains from everything but the subject. |+| Snap-out | Pull ×470 in 1.2 s with an ease-out in log zoom. Fade in any tall object that would sweep through the frame during the pull. |+| Echo | A push into the second hand with the identical framing. |+| End | Pull back to the whole board; the end card sits in the empty cream corner. |++Frame so the subject is at least 1/3 of the frame height at key moments (the hands, the drum, the bean with its ring), and keep the bottom 170 px clear for subtitles.++- **Nothing moves without a line leading it.** The route line is drawn slightly ahead of the story, a leader grows before an inset opens, and a cut line draws before a skin slides away.+- **Cutaway timing:** cut line 0.3 s → skin slides out 0.35 s (ease-out, alpha 1 → 0 between 10 % and 75 %) → hatched rims fade in over the last 40 %.+- **Isotype fill:** icons pop with a back-ease (overshoot 2.2), one per sixteenth note. Count-up numbers (km, °C) run over the same span.+- **Accumulation = acceleration.** In the demo, containers land on quarter notes (by crane), then eighths, then four sixteenth-note waves of about 44 boxes each (they drop 7 units with a small bounce). The eye feels the system taking over.+- **The subject performs:** squash on landing (18 %) plus two small bounces; a rock with the ship's sway during the silence (±0.09 rad); a colour change in the roaster (green `#A9B27C` → yellow `#D9C27A` → cinnamon `#B07A45` → brown `#6A3B22`); first-crack pops as radiating ink ticks.+- **Vehicles** follow polyline paths with ease-in-out and face their tangent. Before a ship turns, move it clear of the quay; otherwise the stern swings through the cranes.++## Score structure++- **Music first.** `demo/timeline.js` is the only source of truth for times. The score, the foley events and the checks all read it (`tools/cuecheck.py`: 68 cue points, 0 ms offset).+- **Score:** original **acoustic world groove**, about 100 BPM. Nylon guitar fingerpicking (D–A–Bm–G) and kalimba, then shaker, bongo, cajon backbeat and conga, plus upright bass (`jazz_bass`) at the port and at sea. The fast-forward takes a B-minor colour. No piano, no string pads. A three-note **bean motif** on kalimba (A4–F#4–D4) plays on the first landing, on the final tag and in the station arpeggio at the end. The café section slows from 100 to about 70 BPM and stops; after the silence one guitar restarts at 80 BPM.+- **Two real silences:** the dive (30.0–33.6 s; only the line and a −66 dB hull creak) and before the first drop of coffee (45.3–45.9 s; digital zero). The first sound after each is one of the most important in the film: **the ship's horn** (about 10 dB above everything else; a D2 saw stack with detune and a 2.8 s tail) and **one drop into an empty cup**.+- **Three layers:**+ - **Ambience beds**, one per station and crossfaded: hill wind, leaves and birds; harbour, gulls and a crane beeper; sea swells; city hum; café murmur; morning sparrows (the same bird synth as the hill, pitched up).+ - **Foley by material:** fibre snap for the stem, a fleshy thud for the cherry in the palm, granular rattles for cherries on the mesh, grains pouring into jute, inharmonic steel partials for container doors and landings, a burlap tear, drum rumble with rotation, dry crack pops, grinder whine plus crunch, a tamp thock, a ceramic plink and a pitch-rising pour.+ - **Music**, ducked about 8 dB under the voice. Ambience is ducked 7 dB and birds are muted while the narrator speaks: a bird chirp at the end of a word made whisper hear "travels" for "travel".+- **Sound transitions:** a J-cut of harbour noise 0.6 s before the port appears, the roaster drum 0.6 s before its walls open, and an L-cut of the horn tail into the city. In the final pull-back, each station plays one kalimba note.+- **Voice:** Kokoro `bf_alice` at 0.88–1.0, six short lines, every one whisper-verified on the dry take and again in the final mix.++## Palette & props++- **Projection:** true isometric, axes at 30°. `sx = (x − y)·cos30°·k`, `sy = ((x + y)·½ − z)·k`. World x runs down-right, y down-left, z up. Painter depth = x + y + z. Never rotate or tilt the view.+- **Three tones per face** (top light / left = +y face mid / right = +x face dark), picked per face from its normal:+ - coffee red `#CF5140 / #B3352B / #8C2620`+ - leaf green `#7BA75F / #5E8C4A / #476F37`+ - sea blue `#5A9BCB / #3C7FB1 / #2D6390`+ - cream `#FBF4E6 / #F2E6D0 / #D9C8A9`+ - soil `#A77850 / #8A5B3A / #6A432A`+ - mustard (cranes, road) `#E9BE5C / #D9A53A / #B0832A`+ - ink `#2E2522`+ - Other colours come from `tri(c)`: mix toward warm white 20 % for the top and toward `#231A2C` 22 % for the dark side, so shadows are slightly cool.+- **No outlines on solids.** Ink lines (2 px) are reserved for infographic elements: leaders, pins, cut lines, rings, the route and labels.+- **The board:** it floats on a cream `#F2E6D0` background with a faint isometric dot lattice and a soft blurred shadow. Its two front faces show three soil strata plus pebbles, and a three-blue water column where the sea meets the edge. Coast banks are only drawn where they face the viewer.+- **Stations** that must be found in the wide shot get a **pale cream plate with a dashed ink outline** and an accent colour (brick-red roastery, red-and-cream awning café). Keep buildings around them low.+- **People:** Monument-Valley-minimal billboards with a round head, a tapered body in two tones, a thick arm stroke and a hat or hair shape for identity. No faces. They step at 12 fps.+- **Hero close-ups (hands):** flat faceted shapes in three skin tones (light palm facing up, mid sides, dark underside), a sleeve in the character's colour, and fingers as rounded two-segment capsules curling toward the viewer. The opening and closing hands share **the same pose, camera, zoom and tag position.** Only the skin tone, the sleeve and the object change.+- **Labels (pins):** a dot (ink ring, cream fill) → a vertical leader → a horizontal rule → text. Titles are Jost 600, all caps, tracking 0.12 em. Numbers are Jost 400 at 44 px, and units Jost 500 at half size. Text has a 7 px cream halo so it reads over any colour. Pins can point up or down and left or right; choose per station so labels never cover the subject.+- **Title:** Jost 700 words extruded as isometric blocks on a cream plate lying on the ground plane (cream face, coffee-red sides), one word per eighth note.+- **Clouds:** flat isometric clouds with fake parallax (1.25× the ground's motion). They fade out above k ≈ 40.++## Titles, subtitles & end card++- **The subtitle is a map label.** A cream `#FBF4E6` card with 10 px radius and a 2 px ink border, a tiny coffee-red iso cube as the legend chip, Jost 500 at 42 px in ink. It sits bottom-centre, 64 px from the bottom edge. The border draws in first (0.2 s) and the text wipes left to right; on exit it slides down 8 px and fades.+- Hold each line ≥ max(1.8 s, speech + 0.6 s). Lines never overlap each other, the title or the end card.+- **End card = the map's legend**, shown in the empty cream corner: title, style name, total with the Isotype bar, "Lemo-Opuscar · LemoLab × Claude Opus 5.5", credits. "NOT TO SCALE" is honest and a small joke. The "Lemo-Opuscar · LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only: a user's film carries no LemoLab credit and no copy of this card.++## Pitfalls we hit (demo record)++- **Newell normals versus vertex order:** the +y face of a box was culled as a back face. Give every face an outward hint (`out`) and flip the normal to match it before culling.+- **Painter sorting of composites:** shrubs on a terraced hill appeared in front of the next terrace. Draw the hill as one item: each terrace, then its back row of shrubs, and after all terraces the front rows from top to bottom. Cranes' booms need a large depth bias so they sit above the ship.+- **Semi-transparent falling boxes look like ghosts.** Use motion only, no alpha.+- **The ship's bow over the beach** reads as "run aground" even when it is geometrically in water. Leave visible water around every hull. Undock by translating clear of the quay before turning.+- **The time jump inside the dive:** the ship teleports from mid-ocean to the destination dock while only beans fill the frame. Draw the bean field **in screen space, anchored on the tracked bean** and scaled by k; its layout then does not depend on the ship's heading, and the jump is invisible.+- **Giant world geometry behind hero close-ups:** at k = 600 a shrub is a green disc the size of the frame. Skip shrubs above k = 120 and paint a flat backdrop behind the hero layer, fading with it.+- **The pull-out passing through a crane** gives one ugly frame of a giant boom. Fade tall objects in by zoom (`alpha = clamp((80 − k)/40)`).+- **whisper and ambience hiss:** a continuous leaf rustle (2.5–7 kHz) after a word turns "travel" into "travels". Keep high-band beds very low under dialogue.+- **A machine drawn as a white box with a red roof reads as a house.** Use steel greys, a dark front panel, cups on top and a portafilter handle.+- In zsh a failed glob aborts an `&&` chain, so run shell loops through `bash -c`.++## Build notes++```+styles/iso-infographic/demo/+ timeline.js tempo grid, cue times, subtitles, km numbers (single source of truth)+ engine.js the style: projection, camera, 3-tone solids, labels, insets, cutaways, Isotype, people, any-shape extrusion+ world.js the board: coasts, terraced hill, beds, roads, ports, ship, cranes, city, cutaway buildings, hold/containers/sacks+ hero.js close-ups: palm, picking fingers, branch, cherry, cup, km tag+ film.js camera path, story state, stations, overlays, subtitles, title/end card, sound events+ music/score.py original score (sampler) mix.py ambience + foley + voice + ducking+ tools/ cuecheck.py subs.py final_asr.py review.sh tests.js hero + any-shape test scenes+```+1. Write `timeline.js` and the cue map first. Draw the board as a square in world units (S = 240). Lay out the Z route, then the stations.+2. Build the station scenes, reviewing each at its zoom with `?k=…&cx=…&cy=…` stills. Render the two hero close-ups on their own (`?test=hero`, `?test=hero&end=1`) until they match.+3. `sh demo/build.sh` rebuilds everything in about 2 minutes: TTS → whisper → score → events → cue check → mix → srt → render (1,411 frames in about 35 s with 2 workers) → mux (−14 LUFS, grain 0) → final whisper → stills.+4. Review with `bash demo/tools/review.sh out/revN 6 $(seq 0.3 1 58.3)` at least twice, plus frame strips of the dive, the snap-out, the landing and the pour taken from the muxed mp4.++## Engine reference++`demo/engine.js` is dependency-free ES module code for Canvas 2D. Everything is queued and depth-sorted until `flush()`.++| API | What it does |+|---|---|+| `new Iso(ctx, W=1920, H=1080)` | Engine instance. `iso.cam = {x, y, z, k}` sets the world point at screen centre and the zoom (px per unit). |+| `iso.P(x,y,z)` / `iso.unP(sx,sy,z)` | Project and unproject. |+| `iso.push(ox,oy,oz,rot,s)` / `iso.pop()` | Local frame (translate, rotate about z, scale) for vehicles and ships. Normals rotate too, so shading stays correct at any heading. |+| `iso.box(x,y,z,w,d,h,tri,{decal,bias,layer})` | Axis box, three-tone. `decal(I)` draws on its faces (windows, ribs). |+| `iso.prism(pts2d,z,h,tri)` | Extrudes any footprint polygon. Orientation is automatic and each side face is shaded by its normal. |+| `iso.cyl(x,y,z,r,h,tri,{axis:'z'|'x'|'y', n, spin, stripe})` · `iso.cone(...)` · `iso.roof(...)` · `iso.sphere(...)` | Cylinders (standing or lying, spinning stripes), cones, gable roofs, and flat-disc spheres with a lit cap and a dark crescent. |+| `iso.flat(pts,z,color)` · `iso.line3(pts,color,px,{dash})` · `iso.bill(x,y,z,fn)` | Ground decals, 3D polylines, and billboards (2D drawings scaled by zoom: people, hands). |+| `iso.text3(str,x,y,z,{plane:'xy'|'xz'|'yz', size, extrude, tri})` | Isometric type on a world plane, optionally extruded. |+| `iso.desat = 0..1`, `iso.keep = true` | **The one-colour hook:** everything drawn is desaturated toward warm grey except items drawn with `keep = true`. |+| `iso.sub(fn)` | Sorted sub-queue, used for interiors drawn between back and front walls. |+| `tri(hex)` · `PAL` | Three-tone generator and the palette. |+| `pin(iso,x,y,z,{title,num,unit,dir,up,len,a,icons})` | Label pin with reveal parameter `a`. `icons(g,x,y,dir)` draws an Isotype row under it. |+| `inset(iso,ax,ay,cx,cy,r,a,drawIn)` | Circular detail callout with a leader. |+| `cutLine(g,pts,a)` · `hatch(g,pts)` · `ring(g,x,y,r,a,t,tag)` | Cut line, hatched section face, rotating dashed tracking ring with a tag. |+| `ICON.sun/moon/box/sack/bean/cherry(g,x,y,size,lit)` · `iconGrid(g,x,y,n,lit,cols,gap,draw)` | Isotype icons in the same three-tone language; lit count m can be fractional (pop-in). |+| `person(g,{body,hat,hair,skin,arm,face,h,basket,apron,tool})` | Minimal people for `iso.bill`. |+| `shape(iso, pts2d, [x,y,z], {color, depth, plane, scale})` | **Draw any shape in this style:** a 2D outline becomes an isometric solid shaded with the three-tone rule. `sparkPath(n,r,inner)` and `cursorPath(h,w,x,y)` are ready-made outlines. |++Minimal example: a warm-orange `#D97757` four-point spark with a cursor tail on a plinth, labelled (`?test=spark`, output in `demo/stills/engine_shape.jpg`):++```js+import { Iso, PAL, shape, sparkPath, cursorPath, pin } from './engine.js';+const iso = new Iso(ctx); iso.cam = { x: 0, y: 0, z: 2.5, k: 70 };+iso.box(-6, -6, -1, 12, 12, 1, PAL.cream); // plinth+for (let i = 0; i < 5; i++) iso.box(-5 + i * 2.2, 3.2, 0, 1.6, 1.6, .6 + i * .5, PAL.blue);+iso.keep = true; // the one element that keeps its colour+shape(iso, sparkPath(4, 2.2, .22), [-1, -1, 5], { color: '#D97757', depth: .9, plane: 'xz' });+shape(iso, cursorPath(2.4, .45, 2.7, 0), [-1, -1, 5], { color: '#D97757', depth: .9, plane: 'xz' });+iso.keep = false;+iso.desat = 0; // set 1 to grey everything except the spark (focus + context)+iso.flush();+pin(iso, 0, -1, 7.6, { title: 'ANY SHAPE', num: '#D97757', dir: 1, up: 90, a: 1 });+```diff --git a/styles/iso-infographic/STYLE.md b/styles/iso-infographic/STYLE.mdindex 5cff8ef..7be3621 100644--- a/styles/iso-infographic/STYLE.md+++ b/styles/iso-infographic/STYLE.md@@ -1,179 +1,115 @@# Isometric Infographic — Style Prompt-> A system's flowchart comes alive: one isometric diorama, flat three-tone blocks, thin ink labels and Isotype numbers. The camera travels the whole system in a single take, slices things open to show their insides, and at the end pulls back until the film becomes one printable infographic.-> Demo: *From Bean to Cup* (58.8 s) · `iso-infographic.mp4` · source in `demo/`-> **References (grammar only):** *Monument Valley* (2014): true-isometric architecture, flat colour blocks, three fixed tones per face, a camera that pans and zooms but never breaks the projection. *SimCity 2000*-style cutaway dioramas: a floating board with soil strata and a sea section, where the whole system is visible at once. Kurzgesagt: a question, a steady push forward, and one clear visual metaphor per step, switching scale when a number is too big to feel. Isotype (Otto Neurath / Gerd Arntz): repeated identical icons stand for quantity. *Powers of Ten* (Eames, 1977): a continuous dive through nested scales. Use none of their characters, buildings, icons, palettes or music.+> A system diagram comes alive: an isometric diorama of flat three-tone blocks, thin ink labels and Isotype numbers, where things open up to show their insides and the numbers are drawn, not stated.+> References (grammar only): *Monument Valley* (true-isometric architecture, flat colour blocks, three fixed tones per face, a camera that pans and zooms but never breaks the projection); *SimCity 2000*-style cutaway dioramas (a floating board with soil strata, the whole system visible at once); Kurzgesagt (a question, a steady push forward, one clear visual metaphor per step, a change of scale when a number is too big to feel); Isotype, Otto Neurath / Gerd Arntz (repeated identical icons stand for quantity); *Powers of Ten* (a continuous dive through nested scales). Use none of their characters, buildings, icons, palettes or music.-You are directing a 45–60 second film in the **Isometric Infographic** style. The user gives you a topic, usually a process, a supply chain, a life cycle or "how X gets to Y". You decide everything else (story, map, stations, numbers, camera, sound) and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not++- **Flat, true isometric.** No perspective, no outlines on solids; shapes are separated only by the three tones of each face. The projection never rotates or tilts.+- **Infographic furniture is part of the picture**: leader lines, label pins, dashed cut lines, hatched section faces, tracking rings, a legend, a route line all live in the world.+- **Numbers are built from icons** (Isotype), and they add up.+- **A diorama**: the system sits on a floating board or plinth with a visible cross-section at its edges, on a pale ground.++Not low-poly 3D (no perspective, no lighting beyond three face tones), not a flat 2D explainer (everything has isometric depth), not a blueprint (colour blocks, not line drawings on blue).++## 2. Materials & rendering++- **Projection**: axes at 30°. `sx = (x − y)·cos30°·k`, `sy = ((x + y)·½ − z)·k`; x runs down-right, y down-left, z up; painter depth = x + y + z. Everything is queued and depth-sorted, then flushed.+- **Three tones per face** chosen from its normal: top light, left (+y) mid, right (+x) dark. Derive tones from one base colour: mix toward warm white ~20 % for the top and toward a cool dark (e.g. `#231A2C`) ~22 % for the dark side, so shadows are slightly cool.+- **Ink lines** (2 px) only for infographic elements: leaders, pins, cut lines, rings, routes, labels.+- **The board**: floats on a pale background with a faint isometric dot lattice and a soft blurred shadow; its front faces show strata (soil, water column, floors, pipes) where the section meets the edge.+- **Composites** (a terraced hill with shrubs, a crane over a ship) are drawn as one ordered item or given a depth bias; generic painter sorting fails on them.+- **People**: minimal billboards (round head, tapered two-tone body, a thick arm stroke, a hat or hair shape for identity, no faces), stepping at 12 fps.+- **Close-ups** of hands or objects: flat faceted shapes in three tones, same logic as the blocks.+- **Level of detail by zoom**: skip small world detail at high zoom, fade tall objects in by zoom so a pull-out never sweeps a giant shape through the frame.++## 3. Colour logic++- **A pale neutral ground** (cream, paper grey or pale blue) and **5–7 flat hues**, each with its three tones; one ink colour.+- **Colour codes meaning**, the way a legend does: one hue per material or role (water is always the same blue, the subject always its hue). Never reuse a hue for two meanings.+- **The subject's hue is reserved**: when the story needs "this one", everything else desaturates toward warm grey and only the subject keeps its colour (focus + context).+- Stations that must be found in a wide shot get a pale plate with a dashed ink outline plus one accent hue.+- Examples: a coffee supply chain — coffee red, leaf green, sea blue, soil, mustard on cream; a hospital — teal, coral, lavender, steel grey on pale grey; a data centre — electric blue, amber, graphite, mint on off-white.++## 4. Type & subtitles++- One geometric sans (e.g. Jost): titles 600 all caps with ~0.12 em tracking, numbers 400 large (~44 px), units at half size. All text has a ~7 px halo in the ground colour so it reads over any block.+- **Label pins**: dot (ink ring, pale fill) → vertical leader → horizontal rule → text. Pins point up or down, left or right, chosen per station so labels never cover the subject.+- **Titles** can be isometric type on a world plane, extruded as blocks.+- **The subtitle is a map label**: a pale card with a small radius and an ink border, a tiny iso cube as legend chip, sans ~42 px, bottom-centre; border draws first, text wipes in. Keep the bottom ~170 px clear for it. Hold ≥ max(1.8 s, speech + 0.6 s); lines never overlap titles or other lines.+- **An end frame can be the legend**: title, totals, the Isotype key, credits, "NOT TO SCALE".++## 5. Motion quality++- **Nothing moves without a line leading it**: a route line is drawn slightly ahead, a leader grows before an inset opens, a cut line draws before a skin slides away.+- **Cutaway**: cut line (~0.3 s) → the near skin slides out along its normal and fades (~0.35 s, ease-out) → hatched section rims fade in over the last part.+- **Isotype fill**: icons pop with a back-ease (overshoot), one per subdivision of the beat; count-up numbers run over the same span.+- **Accumulation = acceleration**: arrivals on quarter notes, then eighths, then waves; the eye feels the system taking over. Solids arrive by motion, never by alpha (semi-transparent blocks look like ghosts).+- **Objects perform**: squash on landing (~18 %) and small bounces; colour changes that show a process (raw → cooked, empty → full).+- **Vehicles** follow polylines with ease-in-out and face their tangent.++## 6. Camera grammar++A vocabulary, not a route. The camera is a world centre plus a **log-interpolated zoom** k (px per unit); the projection never changes. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Follow along a route | process; cause → effect | a supply chain; a journey; a signal |+| Hold wide + circular inset | the system and the individual together | one worker in a factory; one cell in an organ |+| Push through nested cutaways | a fall into scale; finding one thing among millions | a needle in a haystack; inside a machine |+| Fast log pull-out | release; the big picture after a detail | scale reveal; a statistic made physical |+| Locked frame while things accumulate | a system filling up; overload | a queue; traffic; data growing |+| Lateral follow over emptiness | a breath; distance | an ocean; a wait; a quiet phase |+| Top-to-bottom tilt through strata | layers; depth; history | geology; a city's underground; a software stack |+| Switch boards (a second diorama) | before/after; here vs there | two cities; two eras; two designs |++Framing: the subject ≥ 1/3 of frame height at key moments; labels never cover it; the subtitle zone stays clear. One continuous take is one option; a cut to a new board or an inset is another.++## 7. Sound palette++- **Music**: acoustic and light: kalimba, marimba, nylon guitar, pizzicato, woodblock and hand percussion (shaker, bongo, cajon), upright or synth bass, glockenspiel, toy piano, or a clean electronic pulse for technical systems. A short motif can mark the subject each time it appears.+- **Techniques (options)**: one sound per icon as numbers fill; instruments dropping out and a low-pass closing as the camera dives; J-cuts (the next station's sound 0.5 s before it appears); one note per station during a final pull-back.+- **Ambience beds per station**, crossfaded (wind and birds, harbour, sea, city hum, machine room, crowd murmur).+- **Foley by material**: fibre snap, fleshy thud, grains pouring, granular rattles, inharmonic steel partials for containers, paper tear, ceramic plink, liquid pour with rising pitch, servo whine, keyboard clicks.+- **Silence**: digital zero or one faint sound; the first sound after it should be one of the most important in the film.+- **Mix**: music ducked ~8 dB under voice, ambience ~7 dB; keep high-band beds (2.5–7 kHz) very low under speech or whisper mishears words. Final −14 LUFS.+- **Voice**: clear, friendly explainer; short lines.++## 8. Native moves++A menu: use the ones your story needs.++- **Cutaway.** Cut line, skin slides away, hatched rims remain. *Fits content like:* a heart's chambers; a server rack; a beehive.+- **Isotype number.** Identical icons in a new arrangement each time (a calendar, a bar, a silhouette formed by the icons themselves). *Fits content like:* votes in an election; litres of water per product; users of an app.+- **Focus + context.** Everything greys except the subject. *Fits content like:* one patient in a hospital; one packet in a network; one tree in a forest.+- **Frame within the frame.** A leader grows into a circular inset with a close-up. *Fits content like:* a chip on a circuit board; a worker's hands; a crack in a bridge.+- **Scale reveal.** Pull back until every label is on screen and the last frame is a finished infographic. *Fits content like:* how a city is powered; a school's day; a festival site.+- **Tracked subject.** One object followed with a "you are here" ring. *Fits content like:* a letter through the post; a drop through a water plant; a vaccine dose.+- **Strata cross-section.** The board's edge becomes the story (layers added or removed). *Fits content like:* a mine; an archaeological dig; a building's floors.++## 9. Pitfalls of the medium++- Newell normals depend on vertex order: faces get culled as back faces → give every face an outward hint and flip the normal to match before culling.+- Painter sorting breaks on composites → draw them as one ordered item; add depth bias for overhangs.+- Semi-transparent moving solids look like ghosts → motion only, no alpha.+- A hull or wheel touching the wrong surface reads as an accident → leave visible clearance.+- World geometry behind a close-up becomes giant discs → skip detail above a zoom threshold, paint a flat backdrop behind hero layers.+- A pull-out through a tall object gives one ugly frame → fade tall objects in by zoom.+- Hidden jumps (a time or place change during a dive) must be drawn in screen space anchored on the tracked subject, so the frame doesn't reveal the jump.+- An object drawn with the wrong silhouette reads as something else (a white box with a red roof is a house) → give machines their tell-tale parts.++## 10. Engine++`demo/engine.js` is dependency-free Canvas 2D: `Iso` (projection, camera, depth-sorted queue: `box`, `prism`, `cyl`, `cone`, `roof`, `sphere`, `flat`, `line3`, `bill`, `text3`, `push/pop` local frames, `desat` + `keep` one-colour hook), `tri()` three-tone generator, `pin`, `inset`, `cutLine`, `hatch`, `ring`, `ICON.*` + `iconGrid`, `person`, and `shape()` which turns any 2D outline into a shaded isometric solid. API table and a minimal example (a shape the demo never uses): [DEMO.md](DEMO.md) "Engine reference".++## 11. Variation space++You decide the system, the board (or several), whether there is a tracked subject, the numbers, the camera path, the opening and the ending. All far from our demo:++- Structures: **one building, floor by floor** (a tilt down through a cutaway tower, each floor a step); **two boards compared** (the same system in two places or eras, alternating, then side by side); **a cycle** (a loop route that returns to its start with one number changed each lap).+- Openings: **the finished infographic**, which then comes apart into its moving parts; **one icon** that multiplies until it becomes the landscape; **a question written as an isometric title** on an empty board.+- Endings: **an unanswered station** (the route stops at an empty plate with a question mark); **the legend alone**, the board faded out; **a close-up of a single icon**, the whole number behind it out of focus.----## 1. What this style is--The whole film is **one isometric map**: a square diorama board that projects to a rhombus of almost exactly 16:9. Every step of the process is a **station** on that board. A dashed **route line** connects the stations. The camera never cuts. It rides the route with pushes, pulls, pans and follows, and each station is told the same way: **one action, one label, one number built from icons.**--What makes it work:-- **Flat, true isometric.** No perspective, no outlines. Shapes are separated only by the three tones of each face.-- **Infographic furniture is part of the picture.** Leader lines, label pins, cut lines, hatched section faces, tracking rings and a legend all live on the map.-- **One tracked subject.** A single object (a bean, a parcel, a drop of water) is followed through the whole system with a "you are here" ring. That turns a diagram into a story.--## 2. Story: what fits this style--| Native power | Story use |-|---|---|-| **One-take diorama** | Any process becomes a route across one board. Lay the route out as a **Z across a square board** (far corner → right → across the middle → near corner). A straight strip wastes the final pull-back, but a square board fills 16:9 exactly. |-| **Cutaway** | One unified gesture: a dashed **cut line** draws, the near skin **slides out along its normal and fades**, and **hatched section rims** remain. Use it for a fruit, a ship's hull, a container, a sack, a building or a machine. |-| **Isotype numbers** | Every station gets a number drawn as identical icons, with a different arrangement each time: a 3×7 calendar of suns, 14 container icons (1 = 1,000), a day/night row, a rising thermometer, 70 beans that **arrange into the silhouette of a cup**, and an 11-cell distance bar. |-| **Focus + context** | At the emotional peak, **desaturate everything except the subject** (the engine's one-colour hook). This is the infographic's own way of saying "this one". |-| **Frame within the frame** | A detail callout: a leader line grows from the map and ends in a circular inset showing a close-up. The system and the individual are on screen together. |-| **Scale reveal** | End by pulling back to the whole board. The route lights station by station and every label is on screen at once, so the last frame is a finished infographic. |--**Story shape (proven in the demo):**-1. Open on an extreme close-up of the subject arriving in a hand, with a tag: **0 km**.-2. Pull back to the first station and the title.-3. Numbers grow station by station (2 seeds → 400,000 beans per sack → 14,000 containers). The subject gets lost.-4. At the busiest point, dive through nested cutaways and find it: the silence, and the only colour left.-5. The loudest sound in the film breaks the silence, and the camera snaps back out. The time jump is hidden inside the dive.-6. Transformation stations, a second silence, then the gentle payoff.-7. **Echo:** the same close-up composition, a different hand and a different object, and the tag now reads the total. Pull back to the full map.--**The numbers must add up.** This style lives on credibility: 400 + 10,500 + 100 = 11,000 km, and the Isotype bar is coloured in the same proportions. Put the real order of the process on screen (in the demo, beans are shipped green and roasted in the destination country) and say why in your treatment if you change a brief.--## 3. Visual language--- **Projection:** true isometric, axes at 30°. `sx = (x − y)·cos30°·k`, `sy = ((x + y)·½ − z)·k`. World x runs down-right, y down-left, z up. Painter depth = x + y + z. Never rotate or tilt the view.-- **Three tones per face** (top light / left = +y face mid / right = +x face dark), picked per face from its normal:- - coffee red `#CF5140 / #B3352B / #8C2620`- - leaf green `#7BA75F / #5E8C4A / #476F37`- - sea blue `#5A9BCB / #3C7FB1 / #2D6390`- - cream `#FBF4E6 / #F2E6D0 / #D9C8A9`- - soil `#A77850 / #8A5B3A / #6A432A`- - mustard (cranes, road) `#E9BE5C / #D9A53A / #B0832A`- - ink `#2E2522`- - Other colours come from `tri(c)`: mix toward warm white 20 % for the top and toward `#231A2C` 22 % for the dark side, so shadows are slightly cool.-- **No outlines on solids.** Ink lines (2 px) are reserved for infographic elements: leaders, pins, cut lines, rings, the route and labels.-- **The board:** it floats on a cream `#F2E6D0` background with a faint isometric dot lattice and a soft blurred shadow. Its two front faces show three soil strata plus pebbles, and a three-blue water column where the sea meets the edge. Coast banks are only drawn where they face the viewer.-- **Stations** that must be found in the wide shot get a **pale cream plate with a dashed ink outline** and an accent colour (brick-red roastery, red-and-cream awning café). Keep buildings around them low.-- **People:** Monument-Valley-minimal billboards with a round head, a tapered body in two tones, a thick arm stroke and a hat or hair shape for identity. No faces. They step at 12 fps.-- **Hero close-ups (hands):** flat faceted shapes in three skin tones (light palm facing up, mid sides, dark underside), a sleeve in the character's colour, and fingers as rounded two-segment capsules curling toward the viewer. The opening and closing hands share **the same pose, camera, zoom and tag position.** Only the skin tone, the sleeve and the object change.-- **Labels (pins):** a dot (ink ring, cream fill) → a vertical leader → a horizontal rule → text. Titles are Jost 600, all caps, tracking 0.12 em. Numbers are Jost 400 at 44 px, and units Jost 500 at half size. Text has a 7 px cream halo so it reads over any colour. Pins can point up or down and left or right; choose per station so labels never cover the subject.-- **Title:** Jost 700 words extruded as isometric blocks on a cream plate lying on the ground plane (cream face, coffee-red sides), one word per eighth note.-- **Clouds:** flat isometric clouds with fake parallax (1.25× the ground's motion). They fade out above k ≈ 40.--## 4. Motion language--- **Nothing moves without a line leading it.** The route line is drawn slightly ahead of the story, a leader grows before an inset opens, and a cut line draws before a skin slides away.-- **Cutaway timing:** cut line 0.3 s → skin slides out 0.35 s (ease-out, alpha 1 → 0 between 10 % and 75 %) → hatched rims fade in over the last 40 %.-- **Isotype fill:** icons pop with a back-ease (overshoot 2.2), one per sixteenth note. Count-up numbers (km, °C) run over the same span.-- **Accumulation = acceleration.** In the demo, containers land on quarter notes (by crane), then eighths, then four sixteenth-note waves of about 44 boxes each (they drop 7 units with a small bounce). The eye feels the system taking over.-- **The subject performs:** squash on landing (18 %) plus two small bounces; a rock with the ship's sway during the silence (±0.09 rad); a colour change in the roaster (green `#A9B27C` → yellow `#D9C27A` → cinnamon `#B07A45` → brown `#6A3B22`); first-crack pops as radiating ink ticks.-- **Vehicles** follow polyline paths with ease-in-out and face their tangent. Before a ship turns, move it clear of the quay; otherwise the stern swings through the cranes.--## 5. Camera language--The camera is a world centre plus a **log-interpolated zoom** k (px per unit). The demo runs from k = 3.75 (whole board) to 8,000 (one bean).--| Beat | Camera |-|---|---|-| Open | Extreme close-up of the hand (k ≈ 600), drifting slightly. The camera sits 0.17 units above the palm so the branch fits above it. |-| Title | Pull ×35 to the first station (eio in position, log-linear in zoom) while the title plate rises. |-| Station | Hold wide, and open a circular inset for the detail. |-| Transfer | Descend (crane) or follow a vehicle; the next station's sound arrives first. |-| Busy station | Locked, then pull out as the system fills. |-| Breath | A long lateral follow over empty water. |-| Fast-forward | Follow with a wake and a day/night icon row. |-| **Dive** | Three pushes through nested cutaways, **slow → faster → fastest** (0.9 s, 0.6 s, 0.6 s) so it reads as a fall. One instrument drops out and the low-pass closes further at each level. |-| Silence | A slow push (k 3,200 → 8,000) while the colour drains from everything but the subject. |-| Snap-out | Pull ×470 in 1.2 s with an ease-out in log zoom. Fade in any tall object that would sweep through the frame during the pull. |-| Echo | A push into the second hand with the identical framing. |-| End | Pull back to the whole board; the end card sits in the empty cream corner. |--Frame so the subject is at least 1/3 of the frame height at key moments (the hands, the drum, the bean with its ring), and keep the bottom 170 px clear for subtitles.--## 6. Sound--- **Music first.** `demo/timeline.js` is the only source of truth for times. The score, the foley events and the checks all read it (`tools/cuecheck.py`: 68 cue points, 0 ms offset).-- **Score:** original **acoustic world groove**, about 100 BPM. Nylon guitar fingerpicking (D–A–Bm–G) and kalimba, then shaker, bongo, cajon backbeat and conga, plus upright bass (`jazz_bass`) at the port and at sea. The fast-forward takes a B-minor colour. No piano, no string pads. A three-note **bean motif** on kalimba (A4–F#4–D4) plays on the first landing, on the final tag and in the station arpeggio at the end. The café section slows from 100 to about 70 BPM and stops; after the silence one guitar restarts at 80 BPM.-- **Two real silences:** the dive (30.0–33.6 s; only the line and a −66 dB hull creak) and before the first drop of coffee (45.3–45.9 s; digital zero). The first sound after each is one of the most important in the film: **the ship's horn** (about 10 dB above everything else; a D2 saw stack with detune and a 2.8 s tail) and **one drop into an empty cup**.-- **Three layers:**- - **Ambience beds**, one per station and crossfaded: hill wind, leaves and birds; harbour, gulls and a crane beeper; sea swells; city hum; café murmur; morning sparrows (the same bird synth as the hill, pitched up).- - **Foley by material:** fibre snap for the stem, a fleshy thud for the cherry in the palm, granular rattles for cherries on the mesh, grains pouring into jute, inharmonic steel partials for container doors and landings, a burlap tear, drum rumble with rotation, dry crack pops, grinder whine plus crunch, a tamp thock, a ceramic plink and a pitch-rising pour.- - **Music**, ducked about 8 dB under the voice. Ambience is ducked 7 dB and birds are muted while the narrator speaks: a bird chirp at the end of a word made whisper hear "travels" for "travel".-- **Sound transitions:** a J-cut of harbour noise 0.6 s before the port appears, the roaster drum 0.6 s before its walls open, and an L-cut of the horn tail into the city. In the final pull-back, each station plays one kalimba note.-- **Voice:** Kokoro `bf_alice` at 0.88–1.0, six short lines, every one whisper-verified on the dry take and again in the final mix.--## 7. Subtitles & titles--- **The subtitle is a map label.** A cream `#FBF4E6` card with 10 px radius and a 2 px ink border, a tiny coffee-red iso cube as the legend chip, Jost 500 at 42 px in ink. It sits bottom-centre, 64 px from the bottom edge. The border draws in first (0.2 s) and the text wipes left to right; on exit it slides down 8 px and fades.-- Hold each line ≥ max(1.8 s, speech + 0.6 s). Lines never overlap each other, the title or the end card.-- **End card = the map's legend**, shown in the empty cream corner: title, style name, total with the Isotype bar, "Lemo-Opuscar · LemoLab × Claude Opus 5.5", credits. "NOT TO SCALE" is honest and a small joke.--## 8. Pitfalls we hit--- **Newell normals versus vertex order:** the +y face of a box was culled as a back face. Give every face an outward hint (`out`) and flip the normal to match it before culling.-- **Painter sorting of composites:** shrubs on a terraced hill appeared in front of the next terrace. Draw the hill as one item: each terrace, then its back row of shrubs, and after all terraces the front rows from top to bottom. Cranes' booms need a large depth bias so they sit above the ship.-- **Semi-transparent falling boxes look like ghosts.** Use motion only, no alpha.-- **The ship's bow over the beach** reads as "run aground" even when it is geometrically in water. Leave visible water around every hull. Undock by translating clear of the quay before turning.-- **The time jump inside the dive:** the ship teleports from mid-ocean to the destination dock while only beans fill the frame. Draw the bean field **in screen space, anchored on the tracked bean** and scaled by k; its layout then does not depend on the ship's heading, and the jump is invisible.-- **Giant world geometry behind hero close-ups:** at k = 600 a shrub is a green disc the size of the frame. Skip shrubs above k = 120 and paint a flat backdrop behind the hero layer, fading with it.-- **The pull-out passing through a crane** gives one ugly frame of a giant boom. Fade tall objects in by zoom (`alpha = clamp((80 − k)/40)`).-- **whisper and ambience hiss:** a continuous leaf rustle (2.5–7 kHz) after a word turns "travel" into "travels". Keep high-band beds very low under dialogue.-- **A machine drawn as a white box with a red roof reads as a house.** Use steel greys, a dark front panel, cups on top and a portafilter handle.-- In zsh a failed glob aborts an `&&` chain, so run shell loops through `bash -c`.--## 9. Production recipe (this repo)--```-styles/iso-infographic/demo/- timeline.js tempo grid, cue times, subtitles, km numbers (single source of truth)- engine.js the style: projection, camera, 3-tone solids, labels, insets, cutaways, Isotype, people, any-shape extrusion- world.js the board: coasts, terraced hill, beds, roads, ports, ship, cranes, city, cutaway buildings, hold/containers/sacks- hero.js close-ups: palm, picking fingers, branch, cherry, cup, km tag- film.js camera path, story state, stations, overlays, subtitles, title/end card, sound events- music/score.py original score (sampler) mix.py ambience + foley + voice + ducking- tools/ cuecheck.py subs.py final_asr.py review.sh tests.js hero + any-shape test scenes-```-1. Write `timeline.js` and the cue map first. Draw the board as a square in world units (S = 240). Lay out the Z route, then the stations.-2. Build the station scenes, reviewing each at its zoom with `?k=…&cx=…&cy=…` stills. Render the two hero close-ups on their own (`?test=hero`, `?test=hero&end=1`) until they match.-3. `sh demo/build.sh` rebuilds everything in about 2 minutes: TTS → whisper → score → events → cue check → mix → srt → render (1,411 frames in about 35 s with 2 workers) → mux (−14 LUFS, grain 0) → final whisper → stills.-4. Review with `bash demo/tools/review.sh out/revN 6 $(seq 0.3 1 58.3)` at least twice, plus frame strips of the dive, the snap-out, the landing and the pour taken from the muxed mp4.--## 10. Engine usage--`demo/engine.js` is dependency-free ES module code for Canvas 2D. Everything is queued and depth-sorted until `flush()`.--| API | What it does |-|---|---|-| `new Iso(ctx, W=1920, H=1080)` | Engine instance. `iso.cam = {x, y, z, k}` sets the world point at screen centre and the zoom (px per unit). |-| `iso.P(x,y,z)` / `iso.unP(sx,sy,z)` | Project and unproject. |-| `iso.push(ox,oy,oz,rot,s)` / `iso.pop()` | Local frame (translate, rotate about z, scale) for vehicles and ships. Normals rotate too, so shading stays correct at any heading. |-| `iso.box(x,y,z,w,d,h,tri,{decal,bias,layer})` | Axis box, three-tone. `decal(I)` draws on its faces (windows, ribs). |-| `iso.prism(pts2d,z,h,tri)` | Extrudes any footprint polygon. Orientation is automatic and each side face is shaded by its normal. |-| `iso.cyl(x,y,z,r,h,tri,{axis:'z'|'x'|'y', n, spin, stripe})` · `iso.cone(...)` · `iso.roof(...)` · `iso.sphere(...)` | Cylinders (standing or lying, spinning stripes), cones, gable roofs, and flat-disc spheres with a lit cap and a dark crescent. |-| `iso.flat(pts,z,color)` · `iso.line3(pts,color,px,{dash})` · `iso.bill(x,y,z,fn)` | Ground decals, 3D polylines, and billboards (2D drawings scaled by zoom: people, hands). |-| `iso.text3(str,x,y,z,{plane:'xy'|'xz'|'yz', size, extrude, tri})` | Isometric type on a world plane, optionally extruded. |-| `iso.desat = 0..1`, `iso.keep = true` | **The one-colour hook:** everything drawn is desaturated toward warm grey except items drawn with `keep = true`. |-| `iso.sub(fn)` | Sorted sub-queue, used for interiors drawn between back and front walls. |-| `tri(hex)` · `PAL` | Three-tone generator and the palette. |-| `pin(iso,x,y,z,{title,num,unit,dir,up,len,a,icons})` | Label pin with reveal parameter `a`. `icons(g,x,y,dir)` draws an Isotype row under it. |-| `inset(iso,ax,ay,cx,cy,r,a,drawIn)` | Circular detail callout with a leader. |-| `cutLine(g,pts,a)` · `hatch(g,pts)` · `ring(g,x,y,r,a,t,tag)` | Cut line, hatched section face, rotating dashed tracking ring with a tag. |-| `ICON.sun/moon/box/sack/bean/cherry(g,x,y,size,lit)` · `iconGrid(g,x,y,n,lit,cols,gap,draw)` | Isotype icons in the same three-tone language; lit count m can be fractional (pop-in). |-| `person(g,{body,hat,hair,skin,arm,face,h,basket,apron,tool})` | Minimal people for `iso.bill`. |-| `shape(iso, pts2d, [x,y,z], {color, depth, plane, scale})` | **Draw any shape in this style:** a 2D outline becomes an isometric solid shaded with the three-tone rule. `sparkPath(n,r,inner)` and `cursorPath(h,w,x,y)` are ready-made outlines. |--Minimal example: a warm-orange `#D97757` four-point spark with a cursor tail on a plinth, labelled (`?test=spark`, output in `demo/stills/engine_shape.jpg`):--```js-import { Iso, PAL, shape, sparkPath, cursorPath, pin } from './engine.js';-const iso = new Iso(ctx); iso.cam = { x: 0, y: 0, z: 2.5, k: 70 };-iso.box(-6, -6, -1, 12, 12, 1, PAL.cream); // plinth-for (let i = 0; i < 5; i++) iso.box(-5 + i * 2.2, 3.2, 0, 1.6, 1.6, .6 + i * .5, PAL.blue);-iso.keep = true; // the one element that keeps its colour-shape(iso, sparkPath(4, 2.2, .22), [-1, -1, 5], { color: '#D97757', depth: .9, plane: 'xz' });-shape(iso, cursorPath(2.4, .45, 2.7, 0), [-1, -1, 5], { color: '#D97757', depth: .9, plane: 'xz' });-iso.keep = false;-iso.desat = 0; // set 1 to grey everything except the spark (focus + context)-iso.flush();-pin(iso, 0, -1, 7.6, { title: 'ANY SHAPE', num: '#D97757', dir: 1, up: 90, a: 1 });-```+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/iso-infographic/TREATMENT.md b/styles/iso-infographic/TREATMENT.mddeleted file mode 100644index 988f099..0000000--- a/styles/iso-infographic/TREATMENT.md+++ /dev/null@@ -1,278 +0,0 @@-# Isometric Infographic · 导演方案(Treatment)--**片名** *From Bean to Cup*-**时长** 约 57 秒(风格说明参考 35–45 秒;理由见第十节)| **画幅** 1920×1080 | **帧率** 24fps 输出,人物与小物件 12fps 步进(on twos,像信息图里的小动画),镜头、水面、烟、光圈每帧平滑-**一句话** 一颗红色咖啡果从枝头落进采豆人的手心,旁边的小标签写着 **0 km**。镜头一镜到底跟着它走过一整张等距地图:山坡、晒床、卡车、港口、货轮、大海、烘焙厂、咖啡馆。在一整船、上亿颗豆子里,镜头钻进船舱、集装箱、麻袋,找到**你的那一颗**。最后它变成你手里的一杯咖啡,构图和开场一模一样,标签变成了 **11,000 km**。镜头一路拉远,整条路线是一张完整的信息图。-**题眼** 数字越变越大(2 颗 → 40 万颗 → 1.4 万个集装箱),这颗豆子越来越"不见了";信息图最擅长的"高亮一个数据点"在最拥挤的地方把它找回来。**从一双手,到你的手。**-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么(语法) | 刻意不学 |-|---|---|---|-| 《纪念碑谷》(2014) | 等距投影本身的建筑美:纯色块、每个面固定三档明度、没有透视也没有描边;镜头在等距空间里平移、缩放,永远保持正等距;小人极简(圆头 + 锥形身体),靠姿势和比例表演 | 不做不可能几何、不用它的建筑造型、角色、配色和音乐;不做 90° 旋转解谜 |-| 《模拟城市 2000》式等距剖面 | 一块浮在空中的"沙盘":土层侧面、海的剖面、一眼看到一个系统的全部;建筑可以被"切开"看内部 | 不做游戏 UI、像素贴图、网格地块的格子感 |-| Kurzgesagt 的科普叙事 | 开头一个问题 → 一路推进 → 每一步一个清楚的视觉比喻;数字大到读不懂时,换一种尺度让观众"看见"它;旁白少而准,画面先于解释 | 不用它的角色(鸟、细胞人)、配色、渐变光效和配乐风格 |-| Isotype(Otto Neurath / Gerd Arntz) | **重复图标 = 数量**:21 个太阳 = 21 天;70 颗豆子排成一只杯子;每个图标同样大小,数量靠个数读,不靠放大 | 不复刻 Arntz 的具体图标,全部自己画 |-| Powers of Ten(Eames, 1977) | 一镜到底的尺度跳跃:连续推进穿过几层尺度 | 不做宇宙/分子尺度,只在"船 → 集装箱 → 麻袋 → 豆"四层里推 |--**和本批相近风格的区别**:dataviz 讲的是真实数据曲线,lowpoly-island 是 3D 实景,pictogram-motion 的主角是象形人的动作,blueprint 是工程制图。本片是**等距 2D 信息图:一张供应链流程图活起来**,主角是"一颗被追踪的豆子",数字和图标就是画面本身。-------## 二、情绪弧--**一个主体**:一颗咖啡豆(被一个细墨虚线圈"追踪"着,像地图上的 *you are here*)。-**一个目标**:到达你的手里。-**一次转折**:在最拥挤、最匿名的地方(40 万颗一袋、320 袋一箱、1.4 万箱一船),全片静下来,画面除了它全部褪成灰,只有它还是彩色的:*Somewhere in here is yours.*--| 段落 | 情绪 | 画面密度 | 音乐密度 |-|---|---|---|---|-| 山坡清晨 | 宁静、亲手 | 稀,一棵树、一只手 | 一把吉他 + 卡林巴 |-| 晒床、麻袋 | 耐心、时间 | 中 | + 沙锤、邦戈 |-| 港口装船 | 越来越忙、机器接管 | 满,集装箱越堆越快 | + 贝斯、卡洪、康加,拍子越来越密 |-| 大海 | 辽阔 → 快进 | 大面积蓝 | 先抽空(呼吸),再全乐队十六分音符 |-| 钻进船舱 | 被淹没 | 一层比一层挤 | 每推一层抽掉一件乐器 |-| **找到它** | 静、温柔 | 只剩一颗彩色的豆 | **真静音** |-| 汽笛、城市、烘焙 | 苏醒、热 | 中 | 律动回来,噼啪声当打击乐 |-| 咖啡馆、磨豆 | 亲密、转化 | 聚焦一台机器 | 渐慢到停 |-| **倒咖啡** | 安静的早晨 | 一只手、一杯咖啡 | **真静音**后,一滴咖啡落进杯子,一把吉他 |-| 拉远全图 | 回望、完整 | 整张地图 | 吉他 + 每一站一个卡林巴音 |--**开场 3 秒**:大特写,一颗红果在枝头被两根手指捏住、一拧、落下,0.9 秒后落进摊开的手心,"嗒"。-**结尾回响**:同一个构图、同一个位置,手心里换成一杯咖啡,另一种肤色的手;标签从 **0 km** 变成 **11,000 km**。-------## 三、原生招式(只有等距信息图能做到)--| 招式 | 片中怎么用 | 位置 |-|---|---|---|-| **一镜到底的等距沙盘** | 整个世界是**一块正方形的等距沙盘**(投影后正好约 16:9 的菱形):山在最远的顶角,海是横穿中部的一条蓝带,城市在近处,咖啡馆在最近的底角。路线在沙盘上走一个 **Z 字**:顶角 → 右(向右下降)→ 横穿海面向左 → 向右下到底角。全片没有一个剪辑点,镜头只有平移、推、拉、跟 | 全片 |-| **剖面揭示** | 统一一个"刀线 → 外皮滑开 → 露出斜线剖面"的动作:果实被切开露出两颗种子;船体的近侧一片滑走,露出船舱里的集装箱;集装箱侧板滑走,露出麻袋;麻袋撕开,露出豆子;烘焙厂、咖啡机也这样打开。刀线是细墨虚线(信息图里的 cut line),剖面是奶油色加 45° 斜线 | 7.2 / 27.6–29.4 / 34.8 / 43.2 |-| **数字即图标(Isotype)** | 每一站一个标签和一个"用图标排出来的数字",每一站的图标换一种排法:2 颗种子 / 21 个太阳排成 3×7 的日历(一个十六分音符亮一个,晒床的果子同步变深)/ 麻袋图标堆成一垛 / **货轮本身就是集装箱的 Isotype 图** / 18 个日夜图标 / 温度计升到 220 °C / **70 颗豆子飞过去排成一只杯子的轮廓** / 路线虚线:每一段虚线 = 100 km | 每一站 |-| **高亮一个数据点**(情绪最高点) | 推到豆子层,整袋豆子褪成灰,只有"你的那一颗"保留颜色,外面画出一个追踪圈。这就是信息图的 *focus + context*,也是引擎的"唯一彩色"口子 | 30.0–32.4 |-| **画中画放大镜** | 信息图的 detail callout:从地图上一个点拉出一根引线,末端长出一个圆形放大镜,里面是同一个世界的特写。地图(系统)和特写(个体)同时在画面里 | 8.4 / 40.2 |-| **拉远 = 全图** | 结尾从杯子一路拉远到整块沙盘,路线虚线从山坡一站一站亮到杯子,所有标签同时在场:片子最后一帧就是一张完整的信息图海报 | 50.7–53.7 |--**转场语法(统一)**:**线先走,画面跟上**。镜头换站永远由地图上的路线虚线领路(虚线先画出去,镜头再跟过去);放大镜由引线拉出来;剖面由刀线切开。没有淡入淡出,没有硬切,没有空白帧。-------## 四、主体与角色--- **豆子**:果实阶段是咖啡红 `#B3352B` 的小球(顶亮/左中/右暗三档 + 一个小高光);生豆是灰绿 `#A9B27C` 的椭圆,中间一道 S 形沟;烘焙后是深棕 `#6A3B22`。**追踪圈**:细墨 `#2E2522` 虚线圆,缓慢转动,旁边一个小标签(开场是 "0 km",结尾是 "11,000 km")。-- **人物**(纪念碑谷式极简,原创):圆头、锥形身体、没有五官,靠帽子和姿势认人。- - 采豆人:宽檐草帽(奶油)、咖啡红上衣、腰间竹篮;开场只露出她的手(暖棕肤色)。- - 晒床工人、卡车司机、吊车、码头工人:小尺寸群像,只做循环动作。- - 咖啡师:奶油围裙、海蓝上衣。- - 你:窗边座位的一只手(浅肤色),和开场的手同一个构图。-- 没有对白角色,只有旁白。-------## 五、镜头表(一镜到底,按"镜头段"拆)--| # | 时间 (s) | 景别 | 运动 | 为什么这样拍 |-|---|---|---|---|---|-| C1 | 0.0–3.6 | 大特写(红果 + 手,果子约 1/5 画高、手约 1/2) | 固定,极慢漂移 | 第一秒就是一个动作:捏、拧、落、接。触觉先于信息 |-| C2 | 3.6–7.2 | 大特写 → 远景 | **拉**(对数缩放 ×40),片名在奶油色天空里立起来 | 尺度揭示:一颗果子 → 一只手 → 一个人 → 整片山坡 |-| C3 | 7.2–10.8 | 远景 + 画中画特写 | 固定;右上方长出放大镜 | 系统(山坡)和个体(果子剖开两颗种子)同框 |-| C4 | 10.8–12.0 | 远景 → 全景 | **降**:沿梯田斜向右下跟着推车下山 | 旅程开始 = 下坡,重力感 |-| C5 | 12.0–15.6 | 中景(晒床) | 缓**推** | 时间在流逝,太阳图标一格格亮 |-| C6 | 15.6–18.0 | 全景 | **跟**卡车走盘山路,边跟边略拉远 | 速度第一次上来;港口声音先到(J-cut) |-| C7 | 18.0–22.8 | 全景 → 大全景 | 先固定,集装箱越堆越快时**拉** | 让观众看清船有多大:船就是一张集装箱的 Isotype 图 |-| C8 | 22.8–25.2 | 大远景(海面) | 长**横移**向左,慢 | 呼吸:全片最空的一个画面 |-| C9 | 25.2–27.6 | 远景 | **跟**船 + 速度线,快进 | 18 天在 2.4 秒里过去 |-| C10 | 27.6–30.0 | 远景 → 大特写 | **推**三层(船 → 集装箱 → 麻袋 → 豆),每层一个剖面 | Powers of Ten 式尺度跳跃,每推一层音乐少一件乐器 |-| C11 | 30.0–32.4 | 大特写(豆子约 1/3 画高) | 固定;**焦点转移**:周围褪灰,只留它 | 2D 里的"虚化背景":信息图的高亮就是对焦 |-| C12 | 32.4–34.8 | 大特写 → 全景 | **急拉**(1.2 秒退出三层)→ 船已经靠在另一岸 | 汽笛 = 到了;时间跳跃藏在推拉里 |-| C13 | 34.8–39.3 | 中景(烘焙厂剖面) | 缓推到滚筒 | 颜色变化(绿 → 黄 → 棕)是这一站的戏 |-| C14 | 39.3–39.6 | 全景 | 快**跟**送货自行车(甩) | 一拍的加速,把城市的节奏带进咖啡馆 |-| C15 | 39.6–44.1 | 中近景(咖啡馆剖面) | 缓推:磨豆机 → 咖啡机 | 越来越近、越来越静 |-| C16 | 44.7–50.7 | 近景 → 大特写(杯子 + 手,与 C1 同构图) | 推,落定后固定 | 回响:同一个画面位置,手里换了东西 |-| C17 | 50.7–53.7 | 大特写 → 全图 | **拉**到整块沙盘 | 签名镜头:整条供应链一次看全 |-| C18 | 53.7–57.5 | 全图 | 固定 | 片尾卡落在地图图例里 |--**运动种类**:推、拉、降、跟、横移、急拉、焦点转移、画中画(8 种)。景别从大特写到大远景全覆盖。-**构图规则**:关键时刻主体 ≥ 1/3 画高(C1 手、C3 放大镜、C11 豆子、C13 滚筒、C16 杯子);画面底部 170 px 留给字幕,镜头取景时主体不进这个区域。-------## 六、分镜节拍表(100 BPM:1 拍 = 0.6 s,1 小节 = 2.4 s;44.7 s 起 80 BPM)--| # | 时间 (s) | 小节.拍 | 画面 / 表演 | 声音 |-|---|---|---|---|---|-| 1 | 0.0–2.4 | 1.1–1.4 | 枝头大特写:三档绿的叶子、一串红果。0.6 两根手指从右上伸进来捏住一颗;1.2 拧(预备:果子被拧得斜过去);1.5 "嗒"一声断梗,果子下落(0.9 秒,读得清)| 鸟叫、风吹叶子;0.0 吉他泛音;1.5 断梗脆响 |-| 2 | 2.4–3.6 | 2.1–2.3 | 2.4 落进摊开的手心:压扁 → 回弹两下(跟随);2.7 小标签 "0 km" 弹出;3.0 手指轻轻合拢 | 2.4 手心"嗒"(闷、肉感)+ 卡林巴第一个音;2.7 标签轻 tick |-| 3 | 2.8–4.8 | | **L1** "How far did your coffee travel?" | |-| 4 | 3.6–7.2 | 2.3–4.1 | 拉:手 → 采豆人 → 梯田 → 整片山坡;6.6 她把果子放进竹篮 | 风、鸟声变远 |-| 5 | 4.8–7.8 | 3.1–4.2 | 片名:奶油色天空里,等距立体字 **FROM BEAN TO CUP** 一个词一个八分音符"立"起来(4.8/5.1/5.4/5.7),6.0 小字 *the journey of one coffee bean* 写出;7.8 片名向上滑走 | 4.8 沙锤进入,律动开始;每个词一个木质"咔" |-| 6 | 7.8 | 4.2 | 标签钉 **HARVEST · 1,600 m** 弹出(圆点 → 竖线 → 横线 → 字) | 标签 tick |-| 7 | 8.4–10.8 | 4.3–5.4 | 从竹篮拉出引线,右上长出圆形放大镜:一颗大红果;9.0 刀线划过,9.3 果子剖开,露出两颗种子,图标 "= 2" | 9.0 刀线"嘶";9.3 果肉湿"啵" |-| 8 | 8.1–11.4 | | **L2** "It began as a cherry on a hillside, with two seeds inside." | |-| 9 | 10.8–12.0 | 5.3–6.1 | 放大镜缩回圆点;竹篮倒进推车,镜头沿梯田降到晒床 | 推车木轮咯噔下台阶(每拍一级) |-| 10 | 12.0–15.6 | 6.1–7.2 | 晒床:工人每拍耙一下(12.0/12.6/13.2/13.8),果子在网床上滚动;标签 **DRY · 21 days**:21 个太阳按 3×7 一个十六分音符亮一个(12.0–15.15),果子同步由红变深棕 | 耙子扫过网床的"沙啦"(干果子的碰撞);每个太阳亮一个极轻的木琴音 |-| 11 | 12.3–15.9 | | **L3** "Dried in the sun, then packed with four hundred thousand others." | |-| 12 | 14.4–15.6 | 7.1–7.3 | 去壳的生豆倒进麻袋,麻袋"嘭"地坐下;标签 **1 SACK · 60 kg ≈ 400,000 beans**,麻袋图标堆成垛 | 豆子倒进麻袋的哗啦、麻袋落地闷响 |-| 13 | 15.6–18.0 | 7.3–8.4 | 两袋扔上卡车(15.6/15.9);卡车沿盘山路下山,镜头跟;17.4 起港口声音先到 | 卡车引擎、换挡;**J-cut**:海鸥、吊车蜂鸣 17.4 先进 |-| 14 | 18.0–19.2 | 9.1–9.2 | 港口揭示:大吊车、红色船体的大货轮;麻袋进集装箱,18.6 箱门"哐"关上;吊车吊起 | 18.0 贝斯进入;18.6 金属门闷响 |-| 15 | 19.2–22.2 | 9.3–10.4 | 19.2 **我们的集装箱**第一个落到船上(追踪圈);19.8 / 20.4 / 21.0 每拍落一个;21.3 起八分音符;21.6 起十六分音符瀑布,整船堆满;标签 **1 SHIP · 14,000 containers** | 每个集装箱 = 金属"哐" + 贝斯音;拍子越来越密 = 加速 |-| 16 | 22.2–22.8 | 10.4 | 船离港,镜头跟着向左;路线虚线在海面上画出去 | 引擎低频"突突";船笛不响(留给后面) |-| 17 | 22.8–25.2 | 11.1–11.4 | **呼吸**:大远景海面,船在一大片蓝里,海的剖面(沙盘边缘)是深浅三层蓝 | 大浪、风;音乐只剩贝斯长音 + 卡林巴旋律 |-| 18 | 23.4–25.2 | | **L4** "Eighteen days at sea." | |-| 19 | 25.2–27.6 | 12.1–12.4 | **快进**:船拖出速度线,波浪加速,18 个日夜图标一个十六分音符亮一个(25.2–27.9),公里计数从 400 滚到 10,200 | 全乐队:康加、沙锤十六分音符、吉他扫弦;每个图标一个木块 tick |-| 20 | 27.6–30.0 | 13.1–13.4 | **钻进去**:27.6 船体刀线 → 27.9 近侧船壳滑开,露出船舱里码满的集装箱;28.2 推向带追踪圈的那一个 → 28.5 侧板滑开,露出麻袋 → 29.1 麻袋撕开 → 29.4 推进豆子里 | 每一层:刀线"嘶" + 滑开"咔";同时抽掉一件乐器并逐层低通(像沉进水里):28.5 剩贝斯 + 卡林巴,29.1 只剩低频嗡,29.7 全静 |-| 21 | 30.0–32.4 | 14.1–14.4 | **找到它**:满屏生豆,30.0 全部褪成灰,只有一颗保留颜色(约 1/3 画高);30.3 追踪圈画出来;船在摇,它跟着极轻地滚一下 | **真静音**(只有极轻的船体吱呀,−45 dB) |-| 22 | 30.6–32.4 | | **L5** "Somewhere in here is yours." | |-| 23 | 32.4–33.6 | 15.1–15.2 | **汽笛**:镜头急拉,1.2 秒退出三层(每拍一层),船已经靠在城市港口 | 32.4 **全片最响的一声:船笛**(静音后的第一个声音)+ 低音鼓;**L-cut**:笛声尾巴拖进城市底噪 |-| 24 | 33.6–34.8 | 15.3–16.4 | 吊车卸下我们的集装箱,卡车开往烘焙厂 | 城市底噪、吊车 |-| 25 | 34.8–39.3 | 16.1–17.4 | 烘焙厂剖面打开;35.4 生豆倒进滚筒;温度计升到 **220 °C**、钟图标转 **12 min**;豆子绿 → 黄 → 棕;37.2–38.4 一爆:豆子在切分的十六分音符上"噼啪"炸开,我们那颗在 37.8 裂开一道缝;38.4 倒进冷却盘 | 滚筒低频转动;一爆噼啪(当打击乐用);冷却盘刷刷声 |-| 26 | 39.3–39.6 | 17.4 | 烘好的豆子装袋,送货自行车一甩出画 | 自行车铃 + 甩镜"呼" |-| 27 | 39.6–44.1 | 18.1–19.4 | 咖啡馆剖面(屋顶掀开);40.2 豆子倒进磨豆机,引线拉出放大镜:**70 颗豆子**一颗颗飞过去排成一只杯子的轮廓(40.2–41.4);41.4 磨豆(一小节),追踪圈碎成粉末;42.6 压粉"咚";43.0 手柄扣上"咔";43.2 咖啡机剖面露出锅炉和管路 | 磨豆机马达 + 碎裂声;压粉闷响;蒸汽嘶;音乐 42.6 起渐慢,44.1 停 |-| 28 | 44.1–44.7 | — | 画面:杯子在出水口下,一滴还没落下 | **真静音**(0.6 s) |-| 29 | 44.7–47.7 | 80 BPM 1.1–1.4 | 44.7 第一滴咖啡落进杯子,拉成细流;45.45 吉他独奏进来;46.2 咖啡师把杯子放上碟子推过去,46.95 "叮" | **一滴咖啡落进杯子**(静音后的第一个声音);城市清晨的麻雀 = 山坡鸟叫的回声 |-| 30 | 47.7–50.7 | 2.1–2.4 | 推到窗边你的手:手心托着杯子,**与开场同一构图**;48.45 标签 **11,000 km** 在 "0 km" 的同一位置弹出 | 48.45 卡林巴重复开场那个音 |-| 31 | 48.7–52.3 | | **L6** "Eleven thousand kilometres, from one pair of hands to yours." | |-| 32 | 50.7–53.7 | 3.1–3.4 | **拉远到整块沙盘**:路线虚线从山坡一站一站亮到杯子,每亮一站,那一站的声音极轻地回来一下(鸟、耙子、集装箱、浪、噼啪、磨豆) | 每站一个卡林巴音,上行 |-| 33 | 53.7–57.5 | 4.1–5.2 | 图例框变成片尾卡:FROM BEAN TO CUP / Isometric Infographic / Lemo-Opuscar / LemoLab × Claude Opus 5.5 / 素材署名 | 吉他最后一个和弦(D add9)+ 鸟叫收尾 |-------## 七、Cue map(音乐先行,画面卡这张表)--**配乐类型**:原创**原声世界律动**。尼龙弦吉他(`guitar_nylon`,指弹 + 扫弦)+ 卡林巴(`kalimba`)+ 沙锤(`shaker`)+ 手鼓(`world_perc` 的邦戈、康加、达布卡,`cajon`)+ 低音提琴拨弦(`jazz_bass`,港口和海上段)。**不用钢琴,不用弦乐铺底。** D 大调(吉他空弦共鸣),海上快进转 B 小调色彩,咖啡馆回 D。-**豆子动机**:卡林巴三个下行音 A4–F#4–D4(果子落下),全片出现三次:落进手心、找到它(只剩一个音,静音里不出现,汽笛后低八度回应)、11,000 km 标签。--| 段 | 时间 | 速度 | 配器 | 情绪 | 卡点(画面必须落在这些拍上) |-|---|---|---|---|---|---|-| A 枝头 | 0.0–4.8 | 100(自由感,无打击) | 吉他泛音 + 卡林巴 | 清晨 | 1.5 断梗;**2.4 落进手心 = 卡林巴 A4–F#4–D4** |-| B 片名/山坡 | 4.8–10.8 | 100 | + 沙锤八分音符,吉他指弹 ostinato(D–A–Bm–G) | 展开 | 4.8/5.1/5.4/5.7 片名四个词;7.8 标签;9.0 刀线;9.3 剖开 |-| C 晒床/麻袋 | 10.8–15.6 | 100 | + 邦戈 | 耐心、温暖 | 12.0–13.8 每拍耙一下;12.0–15.15 太阳十六分音符;15.0 麻袋落地 |-| D 盘山路/港口 | 15.6–22.8 | 100 | + 低音提琴(18.0 进)、卡洪反拍、康加 | 越来越忙 | 15.6/15.9 扔麻袋;18.6 箱门;19.2/19.8/20.4/21.0 集装箱(四分);21.3–21.6 八分;21.6–22.2 十六分瀑布;22.2 离港 |-| E1 海·呼吸 | 22.8–25.2 | 100 | 抽空:贝斯 D 长音 + 卡林巴旋律 + 浪 | 辽阔 | 22.8 转向 |-| E2 海·快进 | 25.2–27.6 | 100(十六分音符密度,体感加倍) | 全乐队:康加/沙锤十六分、吉他扫弦、贝斯走句,B 小调色彩 | 冲 | 25.2 起每十六分音符一个日夜图标 |-| F 钻进去 | 27.6–30.0 | 100 | 每推一层抽一件乐器 + 低通从 18 kHz 降到 300 Hz | 被淹没 | 27.6 刀线;27.9 船壳;28.5 箱板;29.1 麻袋;29.7 全静 |-| **静 1** | 30.0–32.4 | — | 无音乐 | 找到 | 30.0 褪灰;30.3 追踪圈 |-| G 汽笛/城市/烘焙 | 32.4–39.6 | 100 | 32.4 船笛 + 低音鼓(全片最大重音);33.6 律动回来 + 达布卡;一爆噼啪当切分打击乐 | 苏醒、热 | 32.4 汽笛;33.6 卸箱;35.4 倒豆;37.2–38.4 一爆(切分十六分);38.4 倒出 |-| H 咖啡馆 | 39.6–44.1 | 100 → 渐慢到约 70 | 吉他 + 沙锤 + 卡林巴,42.6 起渐慢,44.1 停 | 亲密 | 39.6 剖面;40.2–41.4 70 颗豆子;41.4 磨;42.6 压粉;43.0 扣柄 |-| **静 2** | 44.1–44.7 | — | 无音乐 | 屏息 | |-| I 清晨 | 44.7–53.7 | **80**(1 拍 0.75 s) | 吉他独奏(指弹,慢);卡林巴动机 | 安静、温柔 | **44.7 第一滴**;46.95 杯碟"叮";48.45 11,000 km = 卡林巴动机;50.7 起拉远,每站一个卡林巴音 |-| 尾 | 53.7–57.5 | 80 | D add9 和弦 + 鸟 | 回响 | 53.7 片尾卡 |--**加速 / 减速**:港口段四分 → 八分 → 十六分(画面上集装箱的落点同步加密)是全片的加速;咖啡馆段 100 → 70 渐慢到停、再以 80 BPM 重新开始,是全片的减速。-**配乐制作**:制作阶段 fork 一个子 agent,契约 = 本表 + 速度网格文件 `timeline.js` 导出的卡点 + 两处真静音 + 豆子动机。交付 `music/score.wav` + 分轨 + `score.json`(卡点),用 `tools/cuecheck.py` 核对。-------## 八、声音设计表--声音分三层:**环境底**(每一站一个连续声景,镜头平移时交叉渐变,永远不断)/ **拟音**(每个动作一个声音,按材质合成)/ **音乐**。人声在最上面,音乐在旁白下闪避约 −9 dB,拟音闪避约 −4 dB。--| 段落 | 环境底 | 主要拟音(材质) | 音乐状态 |-|---|---|---|---|-| 枝头 / 山坡 | 高山清晨:风过树叶、三四种鸟叫(合成:调频啁啾) | 断梗(植物纤维的脆"嗒")、果子落手心(闷、带肉感的低频)、竹篮(编织物窸窣)、脚步踩土 | 吉他泛音 + 卡林巴 → 沙锤进入 |-| 晒床 | 午后:虫鸣高频(很轻)、风 | 耙子扫过网床(干果子相互碰撞的沙沙 + 网的金属细响)、生豆倒进麻袋(硬小颗粒的哗啦)、麻袋落地(布包着颗粒的闷响) | + 邦戈 |-| 盘山路 | 风、卡车引擎(低频谐波,随车速升降,声像跟车走) | 麻袋扔上车厢(木板闷响)、换挡 | 律动 |-| 港口 | **J-cut 先进**:海鸥、港口远处嘈杂、吊车马达嗡鸣 + 倒车蜂鸣 | 集装箱门(大铁板"哐" + 金属余振)、集装箱落到船上(很重的低频 + 钢铁共鸣,一个一个越来越快)、钢缆吱呀 | + 贝斯 + 卡洪 + 康加 |-| 海 | 大浪(褐噪声涌动)、风、船引擎低频 | 快进段:浪声加速、速度线"嗖"、日夜图标木块 tick | 呼吸 → 全乐队 |-| 船舱 → 集装箱 → 麻袋 | 浪声逐层变闷(低通),最后只剩钢铁船体的低频 | 刀线(细金属划过"嘶")、外皮滑开(钢板"咔"/木板/麻布撕裂) | 逐层抽空 |-| **找到它** | 近乎无声:极轻的船体吱呀 | 无 | **静音** |-| 汽笛 → 城市 | **L-cut**:汽笛尾巴拖进城市底噪(远处车流、电车铃) | 船笛(低频锯齿 + 失谐泛音 + 长混响)、吊车、卡车 | 律动回来 |-| 烘焙厂 | 厂房底噪、滚筒转动(低频周期性隆隆) | 生豆倒进滚筒(硬颗粒落进金属)、一爆噼啪(短促爆裂颗粒,像爆米花但更干)、冷却盘搅动 | + 达布卡 |-| 咖啡馆 | 店内人声低语(带通噪声 + 很轻的杯盘碰撞) | 磨豆机(马达 + 豆子碎裂)、压粉(闷"咚")、手柄扣上(金属"咔")、蒸汽嘶、泵嗡 | 渐慢到停 |-| **倒咖啡** | 近乎无声 | **一滴咖啡落进空杯**(瓷器里的小"嗒")→ 细流(液体注入、音高随液面上升)| 静音 → 吉他独奏 |-| 清晨 / 你的手 | 城市清晨:麻雀(与开场鸟叫同一套合成,换音高)、很远的车流 | 杯碟"叮"、杯子落在手心 | 吉他 + 卡林巴 |-| 拉远全图 | 所有站的声景各回来 0.3 秒、叠在一起极轻 | — | 每站一个卡林巴音 |--**两处真静音**:30.0–32.4(找到它,之后是船笛);44.1–44.7(之后是第一滴咖啡)。-**两次以上的声音转场**:J-cut 港口声(17.4 早于画面 18.0);L-cut 船笛拖进城市(32.4→34);J-cut 烘焙厂滚筒声早于剖面打开 0.6 s;清晨麻雀是山坡鸟叫的回声。--**旁白**:Kokoro `bf_alice`(温和、好奇的英式女声),速度约 0.95;备选 `af_river`。6 句,每句都短,给画面和声音留空间。whisper 逐句校对到全部 OK。--| # | 时间 | 句子 |-|---|---|---|-| L1 | 2.8 | How far did your coffee travel? |-| L2 | 8.1 | It began as a cherry on a hillside, with two seeds inside. |-| L3 | 12.3 | Dried in the sun, then packed with four hundred thousand others. |-| L4 | 23.4 | Eighteen days at sea. |-| L5 | 30.6 | Somewhere in here is yours. |-| L6 | 48.7 | Eleven thousand kilometres, from one pair of hands to yours. |-------## 九、视觉规格--- **投影**:正等距(轴与水平线 30°),`sx = (x − y)·cos30°`,`sy = (x + y)·sin30° − z`。全片不做透视、不转动画面。-- **明度三档**:每个面按法线取色:顶面最亮、左面(+y 面)中、右面(+x 面)最暗。色板(中间档 / 顶 / 暗):- - 咖啡红 `#B3352B` / `#CF5140` / `#8C2620`- - 叶绿 `#5E8C4A` / `#7BA75F` / `#476F37`- - 海蓝 `#3C7FB1` / `#5A9BCB` / `#2D6390`- - 奶油 `#F2E6D0`(背景)/ `#FBF4E6` / `#D9C8A9`- - 土棕(沙盘侧面分层)`#9A6B45` / `#7C5234` / `#5E3C25`;石灰 `#B8B2A6`;集装箱加一个芥黄 `#D9A53A`- - 墨色(线、字)`#2E2522`-- **没有描边**:形状全靠三档明度分开;只有信息图元素(引线、刀线、追踪圈、路线虚线、标签)用 2 px 墨线。-- **沙盘**:浮在奶油色背景上的一块厚板,前两个侧面露出土层(三条深浅不同的土)和海的剖面(三层蓝,越深越暗);板下一个很淡的投影。背景有极淡的等距点阵。-- **前景视差**:几朵扁平的等距白云在沙盘上方漂,平移时比地面快(假视差),给 2D 一个"摄影机"。-- **标签**:圆点(2 px 墨线圈 + 奶油填充)→ 竖引线 → 横线 → 字。标题字 Jost 600 全大写、字距 0.12em;数字 Jost 300 大号;Isotype 图标同尺寸排成行或网格。字后有一圈奶油色描边,压在任何颜色上都读得清。-- **Isotype 图标**:全部是同一套等距小图形(太阳、麻袋、集装箱、日夜、豆子),和地图里的物件同一种三档明度画法。-- **片名**:等距立体字(Jost 700 挤出成块,顶面奶油、侧面咖啡红两档),立在山顶上方的奶油色天空里。-------## 十、与风格说明的差异及理由--1. **烘焙挪到海运之后**:风格说明的顺序是"晾晒、烘焙、装船"。真实的咖啡是**生豆**漂洋过海,在消费国烘焙(生豆耐存放,烘好的豆子几周就不新鲜)。Kurzgesagt 式的科普片数字和顺序要站得住,所以改成:采摘 → 晾晒 → 装袋 → 卡车 → 装船 → 海运 → 卸船 → 烘焙 → 咖啡馆 → 磨豆 → 萃取。-2. **时长约 57 秒**(参考 35–45):10 站的旅程,每站要有"一个动作 + 一个标签 + 一组图标"才读得懂(每站 2.4–4.8 秒),再加两处静音、结尾拉远和片尾卡。压到 45 秒就得砍掉两站或让标签一闪而过。制作中如果某段读起来有余量,优先砍盘山路(C6)和送货自行车(C14)。-3. **路线做成一块正方形沙盘上的 Z 字**,而不是一条直的长卷:直长卷拉远后是一根细斜条,画面大半是空的;正方形沙盘在等距投影下正好约 16:9,结尾拉远时整张信息图填满画面,而且一路上镜头有三个不同的平移方向。-4. **"海"用快进 + 日夜图标**,不做"比例尺断开"的折叠:折叠在一镜到底的世界里会破坏空间的连续性。-5. **增加了"钻进船舱找豆子"**:风格说明的情绪弧是"宁静 → 繁忙 → 安静",我在繁忙的最高点加了一个转折(被淹没 → 被找到),让"一颗豆子"真的成为主角,也让"高亮一个数据点"这个信息图招式落在情绪最高点。-------## 十一、字幕与片名设计--- **字幕 = 地图上的一个标签**:奶油色 `#FBF4E6` 圆角标签卡(圆角 10 px,2 px 墨线边框),左侧一个等距小方块图标(咖啡红三档,像图例的色块),Jost 500 42 px 墨色字。底部居中,卡片底边距画面底 64 px。出现时先画出边框(0.2 s,像标签钉的横线画出来),字从左到右擦出;消失时整卡向下滑 8 px 并淡出。-- **停留**:每句 ≥ max(1.8 s, 语音 + 0.6 s),两句不重叠;片名、片尾卡期间不出字幕。-- 另交 `.srt`(6 句)。-- **片名卡**:见第九节,4.8–7.8。-- **片尾卡**:结尾全图右下角的图例框展开成片尾卡:**FROM BEAN TO CUP** / *Isometric Infographic* / Lemo-Opuscar / LemoLab × Claude Opus 5.5 / 素材署名(Jost · OFL;采样乐器 FreePats / VCSL · CC0;Kokoro 语音 · Apache-2.0)。图例里还有一行 "Route dashes: 1 dash = 100 km · Not to scale"(信息图的老实话,也是一个小玩笑)。-------## 十二、技术方案--- **纯 Canvas 2D**。`demo/engine.js` 是等距引擎:投影与相机(中心 + 对数缩放)、按法线取三档明度、画家算法排序;基础体(盒子、任意多边形挤出、圆柱/锥、球、坡面、屋顶)、面上贴图(窗、集装箱棱纹)、极简人物;信息图层(标签钉、引线、放大镜画中画、刀线剖面、追踪圈、路线虚线、Isotype 图标阵列、等距立体字);**"唯一彩色"**:整帧褪灰,指定元素保留原色。**任意形状**:给一条 2D 路径就能挤出成等距实体并按三档明度着色(例如 `#D97757` 的四角光点带一截光标尾巴)。-- `demo/world.js` 布置沙盘(地形、梯田、晒床、道路、港口、海、城市、烘焙厂、咖啡馆),`demo/film.js` 写时间线、相机路径和每站的动作;场景只调用引擎。-- `demo/timeline.js` 是速度网格和卡点的唯一来源,画面、配乐、混音、自检共用。-- 拟音 `mix.py` 全部按材质程序化合成(`core/audio/sfx.py` 起步);配乐 `music/score.py` 用 `core/audio/sampler.py` 的采样乐器。-- 人物 12fps 步进,镜头与水面每帧平滑;颗粒 0。-------## 十三、关卡 1 交付--三张风格帧(用片中引擎按时间点直接渲染):-- `demo/stills/frame_v1_hillside.jpg`:山坡咖啡园(t=10.4:梯田、采豆人、晒床在下方、HARVEST 标签钉、右上放大镜里剖开的红果和两颗种子、L2 字幕)-- `demo/stills/frame_v1_port.jpg`:港口与货轮(t=22.0:十六分音符瀑布装到约 2/3、吊车、埋在船舱里的"我们那一箱"用虚线隐藏线 + 追踪圈 OURS 标出、SHIP 标签和 14 个集装箱图标 = 14,000)-- `demo/stills/frame_v1_route.jpg`:签名镜头——整条供应链的全图(t=54.5:整块沙盘、Z 字路线虚线、所有站的标签与数字、11,000 km 总计)-------## 十四、制作阶段修订(关卡 1 意见落实后,以成片为准)--| 项 | 方案原稿 | 成片 | 理由 |-|---|---|---|---|-| 港口帧船头压到陆地 | 船中心 (182,22),码头边 y=12 | 码头边改 y=16,船中心 (194,25),船头离岸留出约 17 格水面;离港先平移离开码头再转向 | 意见 1:船要完全在水里;原转向会让船尾扫进吊车 |-| 里程数字 | 卡车 400 + 海运 9,800 = 10,200 ≠ 11,000 | **卡车 400 + 海运 10,500 + 市内卡车 100 = 11,000 km**;全图多了一个 "TRUCK 100 km" 标签;图例里的 11 格里程条按三段比例上色(第 1 格 40% 黄,末格 10% 黄) | 意见 2:数字要能加起来 |-| 城市太密 | 满城楼块 | 公园比例 16% → 24%,楼高压低,站点周边半数楼块拿掉;烘焙厂(砖红)和咖啡馆(红白遮阳棚)各加一圈奶油色底板 + 墨色虚线框 | 意见 3 |-| 两个手部大特写 | 未画 | `hero.js` 扁平切面手:同一个 palm() 姿势、同一个相机偏移(相机在手心上方 0.17 单位)、同一个标签几何("0 km" / "11,000 km" 同一像素位置);先单独渲 `?test=hero` 自审,再进片(`demo/stills/frame_v2_hands.jpg`) | 意见 4 |-| 三层剖面节奏 | 每层 0.6–0.8 s | 第一层(船体 → 集装箱)0.9 s,第二层(集装箱 → 麻袋)0.6 s,第三层(麻袋 → 豆子)0.6 s,缩放 13 → 60 → 420 → 3,200,形成"坠落"加速;每推一层配乐抽掉一件乐器 + 低通收紧 | 意见 5 |-| 静音 1 | 1 小节(30.0–32.4) | **1.5 小节(30.0–33.6)**,汽笛移到 33.6,之后所有时间点后移 1.2 s;总长 58.8 s | L5 需要 2.0 s 语音 + 0.6 s 停留,并在台词后留出约 0.7 s 纯静音,汽笛才有分量 |-| 旁白时间 | L1 2.8 / L2 8.1 / L3 12.3 | L1 2.55 / L2 8.4 / L3 12.9 / L4 23.4 / L5 30.9 / L6 49.9;片名移到 5.4–8.1 | 每句停留 ≥ 语音 + 0.6 s,且不与片名重叠 |-| 片名 | 立在天空的立体字 | 奶油色底板平放在地面平面上,四个词按八分音符挤出成块(屏幕空间的独立等距变换,不跟随世界相机) | 拉镜中途世界相机的缩放在 330 左右,把字放进世界坐标会看不到 |-| 豆子层 | 世界坐标里的豆子 | 屏幕空间的豆子堆,锚定在被追踪的那颗豆上、按 k 缩放;船在豆子充满画面时从海中间瞬移到目的港 | 船的朝向变化不影响豆子排布,时间跳跃不可见 |-| 倒咖啡 | 近景 | 静音 2 期间镜头停在出水口和杯子(k≈340),一滴咖啡在出水口慢慢鼓起,45.9 落下 | 静音需要一个"等"的画面 |-| 顾客 | 窗边座位 | 站在吧台前,杯子沿吧台滑过去 | 画面更紧凑,杯子一路在镜头里 |-| 路线虚线 | 每一段虚线 = 100 km | 虚线只表示路线,图例改为 11 格 Isotype 里程条(1 格 = 1,000 km,按陆 / 海 / 陆比例上色)+ NOT TO SCALE | 海段距离占 95%,按距离画虚线会让陆段几乎没有虚线 |diff --git a/styles/iso-infographic/style.json b/styles/iso-infographic/style.jsonnew file mode 100644index 0000000..204120a--- /dev/null+++ b/styles/iso-infographic/style.json@@ -0,0 +1,18 @@+{+ "slug": "iso-infographic",+ "num": "24",+ "en": "Isometric Infographic",+ "cn": "等距信息图",+ "category_en": "Information & Keynote",+ "category_cn": "信息与发布",+ "film": "From Bean to Cup",+ "line": "A coffee's journey from the plantation to your hands, across one isometric world.",+ "line_cn": "一杯咖啡从种植园到你手里的旅程。",+ "uses": [+ "Process explainers",+ "Supply chains",+ "Annual reports"+ ],+ "frame_sec": 35.28,+ "dur": 58.8+}diff --git a/styles/living-screencast/DEMO.md b/styles/living-screencast/DEMO.mdnew file mode 100644index 0000000..8fae860--- /dev/null+++ b/styles/living-screencast/DEMO.md@@ -0,0 +1,106 @@+# Living Screencast — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Clawd Moves In* (59.4 s) · `living-screencast.mp4` · source in [`demo/`](demo/) (Chinese discussion draft) · Claude Code in the Claude app, with Clawd (the Claude Code pixel mascot) as the protagonist. Unofficial fan film.+++## Story & structure++Clawd, the Claude Code pixel mascot, climbs out of the terminal logo and moves into the Claude app, then acts out four features in four chapters: **01 Just say it** (plain-language prompt with an @-mention, reading files), **02 Plan first** (Plan mode; nothing changes until you say go), **03 Review** (the diff, a line comment, the revision), **04 Checks its own work** (the preview, the dark-mode toggle, parallel sessions). The slogan closes it: "Say it. Plan it. Review it. Ship it." Every interaction was checked against the official desktop documentation.++The brief the demo was made from (the old "six rules", now spread over STYLE.md §1–§6):++| Rule | Why |+|---|---|+| **Real UI, redrawn** | Every label, mode name and shortcut matches the real product. No screenshots, no lorem ipsum. The demo code, diff and test output are coherent, and the "app under test" really changes. |+| **Recording-software camera** | One continuous take inside the screen. Push in on the action, drift slightly, and whip-pan between panes. Zoom never drops below 1, so we never see outside the monitor. Cuts happen only under chapter transitions. |+| **Pixel grid is sacred** | The mascot, its props (pencil, "!", sparkles, heart, dust) and its trails share one square-pixel grid with crisp edges. It scales with the camera. Its position snaps to half-pixels, so its motion feels stepped. |+| **Gravity = top edges of UI** | The mascot only ever stands on the top edge of a real element: input box, menu, file row, diff line, button, CI bar, the title's letters. Position comes from **measuring the live DOM** every frame, never hand-placed coordinates. |+| **Cause and effect** | Every mascot action triggers a real UI state change, and every user action is a cursor move, click or keystroke shown on a KeyCastr-style HUD. |+| **Information layers** | A chapter pill (01–04), the keystroke HUD, frosted-glass caption pills, and an optional "▶▶ 4×" time-lapse tag. Nothing else overlays the screen. |++### Director's toolkit, as the demo spent it (all ten used)++1. **Match-cut origin story.** The terminal logo's quadrant block characters (`▐▛███▜▌`) are the mascot's pixels 1:1. Each tall quadrant morphs into a square pixel, and the character climbs out of the terminal, leaving a dashed outline behind.+2. **Diegetic title.** The product name drops in as the app's empty-state heading, and the mascot lands on its letters on the downbeat.+3. **Staging on a moving floor.** The mascot follows the typing caret, jumps onto the @-mention popup, and rides the sent message as it flies up the chat.+4. **Time-lapse with a tag.** Reading files runs at 4× with a flashing tag and rack focus: the chat is blurred and the pane is sharp.+5. **Spotlight freeze.** On the key promise ("nothing changes until you say go") the camera pushes in and a vignette isolates the *No files changed* badge.+6. **Directional motion blur only on whips.** It is derived from camera speed and applied as an anisotropic Gaussian on an **untransformed wrapper**. Slow moves stay sharp.+7. **The film itself changes state.** The dark-mode toggle's reveal doesn't stop at the preview. The circle keeps growing over the whole app and desktop, and the rest of the film is in dark mode. At the end, the mascot's last stomp brings the light back from its own feet.+8. **Cell division.** The new session splits the window, and the mascot splits into two with a pixel burst.+9. **Karaoke-ball end card.** The mascot hops from word to word of the slogan, landing on each word as it is spoken.+10. **The cursor and the mascot are characters.** The cursor "pets" the mascot on the head: it squashes, closes its eyes, and a heart pops up.++The demo's sprite is an **18×10** grid unfolded 1:1 from the terminal logo's quadrant characters; its props (pencil, "!", sparkles, heart, dust) share that grid.++## Shots++| # | Time | Picture / Clawd | Camera / move |+|---|---|---|---|+| 1 | 0:00 | `claude` typed in a terminal; the logo's blocks come alive and Clawd climbs out, leaving a dashed outline | locked on the terminal → match-cut origin |+| 2 | 0:05 | The Claude app window opens; Clawd lands on the empty-state heading, the title | diegetic title on the downbeat |+| 3 | 0:09 | **01** typing, @ file popup; Clawd stands on the input box, then rides the sent message | push-in to the caret; moving floor |+| 4 | 0:14 | Clawd runs along the file tree, read rows highlight | 4× time-lapse tag + rack focus |+| 5 | 0:19 | **02** ⇧⌘M mode menu; Clawd on top of the menu watches Plan get picked | push-in on the menu |+| 6 | 0:23 | Plan pane; Clawd writes item 4 with a pixel pencil; *No files changed* badge | spotlight freeze |+| 7 | 0:29 | **03** `+24 −3` stat bar; Clawd cheers on it; the cursor clicks Review | whip-pan to the diff (motion blur) |+| 8 | 0:32 | Diff: comment on line 6, ⌘↵; Clawd lies on the comment box reading | push-in |+| 9 | 0:37 | The line is rewritten, "!" over Clawd, stats become +13 | locked |+| 10 | 0:42 | **04** preview; Clawd stomps the toggle, dark spreads from the button over the whole app and desktop | the film changes state |+| 11 | 0:50 | ⌘N new session; the window splits, Clawd splits into three (CI green, tests 50/50, new session) | pull back; cell division |+| 12 | 0:56 | End card: karaoke-ball slogan; the last stomp brings the light back from Clawd's feet | locked |++## Score structure++- **Score in two resolutions.** The hi-fi layer (piano, upright bass, drum kit, glockenspiel, real samples) is the world. The chiptune square wave is the mascot's voice.+- **Score structure:**+ - The band enters when the mascot lands on the title.+ - Each chapter transition gets a tom fill and a crash.+ - The last chapter drops the drums to build tension.+ - The dark-mode stomp crossfades the whole band into a low-passed "night" version.+ - The split screen becomes a left/right duet (piano left, chiptune right).+ - The end-card words are chiptune notes; the final stomp opens the filter on a big major-9 chord.+- **Foley:** keyboard (a thock plus a click, with human timing jitter), trackpad clicks, pane swishes, popup pops, CI ticks, a shutter for screenshots. Mascot steps, jumps and landings are 8-bit.+- **VO:** calm, one feature per line, product names verified with whisper. Keep effects off word onsets: a keypress landing on "Start" masked the word.++Tempo ~104 BPM (the treatment's plan). The end-card words are chiptune notes C5 E5 G5 C6 in `sound.py`.++Mascot timings in the demo: anticipation crouch 0.14 s with squash 0.28; walk at 9 steps/s. The full acting notes:++- **Jumps:** anticipation crouch (0.14 s, squash 0.28), stretch on take-off, tucked legs in the air, a landing squash with a damped bounce, and dust puffs.+- **Idle:** a tiny squash on every beat of the score, so the character breathes in time with the music. It blinks at irregular intervals.+- **Walk:** 9 steps/s leg alternation. The direction flips the sprite.+- **Eyes carry the acting:** n / l / r / u / d / wide / happy / shut / blink. They look at what matters: the popup, the cursor, the line being revised.+- **Arms:** down / up (cheer) / wave. Props sit on the same grid.++Voice: Kokoro `am_michael`, speed 1.0 (other voices read "Claude" as "Clod"). A keypress landing on "Start" masked the word, hence the rule to keep effects off word onsets.++## Palette & props++The Claude app's light theme (ink `#1F1E1C`, clay `#D97757`, `--clay2` `#BD5D3A` for the stressed slogan word) and its real dark theme after the toggle (ink `#EEEAE2`, clay `#E08565`), all as CSS variables in `demo/index.html`. Clawd in brand clay `#D97757` with `#B85F40` shading and `#2A2622` eyes; pencil yellow `#F2C14E`, heart `#E0543A`, check `#2F9E4F` (`demo/clawd.js`). Fonts: Inter, Newsreader, JetBrains Mono (OFL). The "app under test" is a small tomato-timer project (`~/tomato-timer`); the UI shows the model name as it appeared in the app.++**Rights.** Unofficial fan film: it uses the official Claude Code mascot and redraws the Claude app's interface closely. The end card says "Unofficial fan film". A user's film should show their own product and mascot, or an original pixel character.++## End card++Clawd hops across "Say it. Plan it. Review it. Ship it." word by word as it is spoken (Newsreader 64 px, the last word in clay italic), then "Claude Code · in the Claude app" and a small credit line (`film.js`, end-card function): "LemoLab × Claude Opus 5.5 · Unofficial fan film · Voice · Fonts", plus the sample credits (Salamander Grand Piano V3, MuldjordKit, Versilian Studios, Karoryfer). The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card (remove that line when adapting `film.js`).++## Build notes++- `demo/film.js` is the timeline. VO lines are placed at fixed times, and every visual beat hangs off a spoken word (`W(id, word)`). It holds the camera moves, the `Actor` (mascot) segments, the `Cursor`, and the sound events.+- `demo/ui.js` turns state into HTML for the terminal and the Claude app.+- `demo/clawd.js` holds the sprite grid, poses and pixel props.+- `demo/main.js` handles the light and dark layers, DOM anchor measurement, motion blur, and the HUD (captions, keys, pixel wipes, spotlight).+- `demo/sound.py` builds the score, foley and VO from `events.json`, with ducking.+- Run everything with `sh styles/living-screencast/demo/build.sh`. The full render takes about 30 s.++Other files: `demo/lines.json` (VO lines), `demo/tools/asr_check.py` (whisper check + word timestamps, `sh demo/build.sh --vo`), `demo/tools/mixcheck.py`, `demo/tools/subs.mjs` (captions → `.srt`), `storyboard/` (the pre-production storyboard page and contact sheet). `build.sh` also renders the style frame (40.9 s) and the poster (8.9 s).++Don'ts we wrote for this demo (now STYLE.md §9):++- Don't invent features or rename modes. If a button isn't in the docs, it isn't in the film.+- Don't let the mascot float in empty space, cover text the viewer should read, or sit under a caption.+- Don't use screenshots, blur-filter "fake depth" on text you want read, or zoom out past the screen.+- Don't put a hand, arm or finger on screen. The cursor is the user.diff --git a/styles/living-screencast/STYLE.md b/styles/living-screencast/STYLE.mdindex 905bb63..abeb698 100644--- a/styles/living-screencast/STYLE.md+++ b/styles/living-screencast/STYLE.md@@ -1,8 +1,7 @@# Living Screencast — Style Prompt> A product walkthrough that looks like a real screen recording, where a low-resolution mascot lives inside a high-resolution interface and acts out what the software is doing.-> Demo: *Clawd Moves In* (59.4 s) · `living-screencast.mp4` · source in `demo/` · Claude Code in the Claude app, with Clawd (the Claude Code pixel mascot) as the protagonist. Unofficial fan film.-> **References (grammar only):**+> References (grammar only):> - **Screen Studio-style product recordings:** auto-zoom to the cursor, cursor smoothing, click push-ins, and a window floating on wallpaper.> - **Apple "Guided Tour" videos:** real interface, calm narration, one feature per sentence.> - **Duolingo and Headspace mascot motion:** squash and stretch, anticipation, a character that performs inside the UI.@@ -10,81 +9,114 @@>> Never copy their characters, UI, music or footage.-You are directing a 45–75 second walkthrough of a piece of software in the **Living Screencast** style. The user gives you the product and the features to show. You decide the story, shots, choreography, sound and music, and you deliver a finished film.+A walkthrough of a piece of software, typically 45–75 s. The user gives the product and the features; you decide the story, shots, choreography, sound and music.----+## 1. Essence, and what it is not++The film looks like a **screen recording of the real product**, but it is not a recording. Every window, menu, diff line and button is **redrawn in 2D (HTML/CSS/SVG)**, so the camera can go anywhere, every pixel is controllable and text stays sharp at any zoom.++A **mascot made of big square pixels** lives in that high-resolution world. The clash of two resolutions, a hard-edged low-res sprite against anti-aliased UI, is the look.++The mascot is the software's agency made visible: when the software reads, it runs along the rows it reads; when it plans, it holds a pixel pencil; when it tests, it stomps the button.++**Two actors, never a hand:** the **cursor** is the user; the **mascot** is the software.++Not a dark tech keynote (no black stage, no invented abstract UI: this is the real product), not a pixel-art game (the world is hi-res vector UI; only the mascot and its props are pixels), not a real capture (nothing is a screenshot).++## 2. Materials & rendering++- **Real UI, redrawn**: every label, mode name and shortcut matches the real product; no screenshots, no lorem ipsum. Demo content (code, data, test output) is coherent, and the app under test really changes.+- **Pixel grid is sacred**: the mascot, its props (pencil, "!", sparkles, heart, dust) and trails share one square-pixel grid with crisp edges. It scales with the camera; its position snaps to half-pixels, so its motion feels stepped.+- **Gravity = top edges of UI**: the mascot only stands on the top edge of a real element (input box, menu, list row, code line, button, status bar, the letters of a heading). Its position comes from **measuring the live DOM** every frame, never hand-placed coordinates.+- **Window on wallpaper**: the app floats on a desktop with a soft shadow; zoom never shows beyond the monitor.+- **Depth** only where it serves attention: rack focus (blur the pane that doesn't matter), a vignette spotlight. Never blur text the viewer must read.+- **Motion blur** is derived from camera speed and applied as an anisotropic blur on an **untransformed wrapper**, only on whips. Slow moves stay sharp.-## 1. What this style is+## 3. Colour logic-The film looks like a **screen recording of the real product**, but it is not a recording. Every window, menu, diff line and button is **redrawn in 2D (HTML/CSS/SVG)**, so the camera can go anywhere and every pixel is controllable. Text stays sharp at any zoom.+- The product's own interface colours rule: follow its real light and dark themes exactly.+- The mascot keeps the product's or brand's mascot colour, or one saturated hue that no UI element uses, so it finds the eye in any frame.+- Overlays (chapter pill, key HUD, captions) are neutral frosted glass; one accent at most, taken from the product.+- A theme switch can be a story event: the whole film may change state with it.-A **mascot made of big square pixels** lives in that high-resolution world. The clash of two resolutions, a hard-edged 18×10 sprite against anti-aliased UI, is the look.+## 4. Type & subtitles-The mascot is the software's agency made visible. When the software reads files, it runs along the file tree. When it writes a plan, it holds a pixel pencil. When it tests the app, it stomps the button.+- UI type follows the product (or licence-free look-alikes such as Inter, JetBrains Mono, a serif for editorial UIs).+- **Information layers only**: a chapter pill (01–04), a KeyCastr-style keystroke HUD, frosted-glass caption pills, an optional "▶▶ 4×" time-lapse tag. Nothing else overlays the screen.+- Captions sit in a pill at the bottom, never over the element being discussed and never under the mascot; hold ≥ max(1.8 s, speech + 0.6 s).+- A title, if any, is diegetic: it appears as part of the UI (an empty-state heading, a window title, a notification).-**Two actors, never a hand:**-- The **cursor** is the user.-- The **mascot** is the software.+## 5. Motion quality-Keep every interaction truthful. Only show buttons, modes and shortcuts that exist, and check them against the product's documentation.+- 30 fps; UI on ones; mascot position stepped to its pixel grid.+- **Mascot acting**: jumps with anticipation crouch, stretch on take-off, tucked legs, landing squash with a damped bounce and dust. Idle breathes (a tiny squash) on the score's beat and blinks irregularly. Walks by leg alternation, flipping the sprite for direction.+- **Eyes carry the acting** (neutral / left / right / up / down / wide / happy / shut / blink): they look at what matters. Arms: down / up (cheer) / wave.+- **Cursor**: smoothed, spring-eased paths, small push on click, never teleports.+- **Cause and effect**: every mascot action triggers a real UI state change; every user action is a cursor move, click or keystroke shown on the HUD.+- UI animates like the real product (its own menus, popovers, diff reveals); don't invent flourishes the product doesn't have.-## 2. The six rules+## 6. Camera grammar-| Rule | Why |-|---|---|-| **Real UI, redrawn** | Every label, mode name and shortcut matches the real product. No screenshots, no lorem ipsum. The demo code, diff and test output are coherent, and the "app under test" really changes. |-| **Recording-software camera** | One continuous take inside the screen. Push in on the action, drift slightly, and whip-pan between panes. Zoom never drops below 1, so we never see outside the monitor. Cuts happen only under chapter transitions. |-| **Pixel grid is sacred** | The mascot, its props (pencil, "!", sparkles, heart, dust) and its trails share one square-pixel grid with crisp edges. It scales with the camera. Its position snaps to half-pixels, so its motion feels stepped. |-| **Gravity = top edges of UI** | The mascot only ever stands on the top edge of a real element: input box, menu, file row, diff line, button, CI bar, the title's letters. Position comes from **measuring the live DOM** every frame, never hand-placed coordinates. |-| **Cause and effect** | Every mascot action triggers a real UI state change, and every user action is a cursor move, click or keystroke shown on a KeyCastr-style HUD. |-| **Information layers** | A chapter pill (01–04), the keystroke HUD, frosted-glass caption pills, and an optional "▶▶ 4×" time-lapse tag. Nothing else overlays the screen. |+A recording-software camera: one continuous take inside the screen, zoom ≥ 1, cuts only under chapter transitions. Opening and ending come from the topic.-## 3. Director's toolkit (all used in the demo)+| Move | What it expresses | Can serve |+|---|---|---|+| Push-in to the cursor or caret | "this is where it happens" | typing a prompt; choosing a menu item; a setting |+| Slow drift at rest | the app is alive while we listen | a line of narration; waiting for a result |+| Whip-pan between panes (with blur) | cause here, effect there | sending a message → a result appearing; code → preview |+| Push-in + vignette freeze | the one promise to remember | a safety guarantee; a price; an undo |+| Rack focus between panes | attention moves, nothing else does | reading files; logs scrolling while chat waits |+| Pull back to the full window | the whole workflow in view | a summary; parallel tasks; before/after |+| Follow the mascot along a list | the software working through items | scanning results; a checklist; a migration |+| Split-window reframe | two things at once | parallel sessions; compare two versions |-1. **Match-cut origin story.** The terminal logo's quadrant block characters (`▐▛███▜▌`) are the mascot's pixels 1:1. Each tall quadrant morphs into a square pixel, and the character climbs out of the terminal, leaving a dashed outline behind.-2. **Diegetic title.** The product name drops in as the app's empty-state heading, and the mascot lands on its letters on the downbeat.-3. **Staging on a moving floor.** The mascot follows the typing caret, jumps onto the @-mention popup, and rides the sent message as it flies up the chat.-4. **Time-lapse with a tag.** Reading files runs at 4× with a flashing tag and rack focus: the chat is blurred and the pane is sharp.-5. **Spotlight freeze.** On the key promise ("nothing changes until you say go") the camera pushes in and a vignette isolates the *No files changed* badge.-6. **Directional motion blur only on whips.** It is derived from camera speed and applied as an anisotropic Gaussian on an **untransformed wrapper**. Slow moves stay sharp.-7. **The film itself changes state.** The dark-mode toggle's reveal doesn't stop at the preview. The circle keeps growing over the whole app and desktop, and the rest of the film is in dark mode. At the end, the mascot's last stomp brings the light back from its own feet.-8. **Cell division.** The new session splits the window, and the mascot splits into two with a pixel burst.-9. **Karaoke-ball end card.** The mascot hops from word to word of the slogan, landing on each word as it is spoken.-10. **The cursor and the mascot are characters.** The cursor "pets" the mascot on the head: it squashes, closes its eyes, and a heart pops up.+Framing: the thing being discussed and its caption never overlap; the mascot never covers text to be read. Transitions: chapter pill wipes, pixel wipes, a theme reveal circle; never dissolves or screenshots.-## 4. Mascot acting+## 7. Sound palette-- **Jumps:** anticipation crouch (0.14 s, squash 0.28), stretch on take-off, tucked legs in the air, a landing squash with a damped bounce, and dust puffs.-- **Idle:** a tiny squash on every beat of the score, so the character breathes in time with the music. It blinks at irregular intervals.-- **Walk:** 9 steps/s leg alternation. The direction flips the sprite.-- **Eyes carry the acting:** n / l / r / u / d / wide / happy / shut / blink. They look at what matters: the popup, the cursor, the line being revised.-- **Arms:** down / up (cheer) / wave. Props sit on the same grid.+- **Two resolutions in the music**: a hi-fi layer (piano, upright or electric bass, brushed or tight kit, glockenspiel, real samples) is the world; a chiptune square or pulse voice is the mascot. They can trade, duet or merge.+- Options: a low-passed "night" version of the band for a dark theme; a tom fill and crash at chapter seams; dropping the drums to build tension; the mascot's notes on words it lands on; a stereo split for split screens; a single held pad under a freeze.+- **Foley**: keyboard (a thock plus a click, human timing jitter), trackpad clicks, pane swishes, popup pops, notification chimes, CI ticks, a shutter for screenshots. Mascot steps, jumps and landings are 8-bit.+- **Silence**: a short drop to room tone before the key promise makes it land.+- **Voice**: calm, one feature per line; product names verified with whisper. Keep effects off word onsets. Duck music under voice; −14 LUFS.-## 5. Sound+## 8. Native moves-- **Score in two resolutions.** The hi-fi layer (piano, upright bass, drum kit, glockenspiel, real samples) is the world. The chiptune square wave is the mascot's voice.-- **Score structure:**- - The band enters when the mascot lands on the title.- - Each chapter transition gets a tom fill and a crash.- - The last chapter drops the drums to build tension.- - The dark-mode stomp crossfades the whole band into a low-passed "night" version.- - The split screen becomes a left/right duet (piano left, chiptune right).- - The end-card words are chiptune notes; the final stomp opens the filter on a big major-9 chord.-- **Foley:** keyboard (a thock plus a click, with human timing jitter), trackpad clicks, pane swishes, popup pops, CI ticks, a shutter for screenshots. Mascot steps, jumps and landings are 8-bit.-- **VO:** calm, one feature per line, product names verified with whisper. Keep effects off word onsets: a keypress landing on "Start" masked the word.+A menu: use the ones your walkthrough needs.-## 6. Build+- **Match-cut origin.** The mascot is born from something already in the UI (a logo's block characters, an icon, a loading spinner) and climbs out, leaving an outline. *Fits content like:* a CLI tool moving into an app; an icon becoming an assistant; a spinner becoming a helper.+- **Diegetic title.** The name appears as a real UI element; the mascot lands on it on a downbeat. *Fits content like:* an empty state; a new-project dialog; a welcome email.+- **Moving floor.** The mascot rides a caret, a popup, a sent message, a progress bar. *Fits content like:* a message flying into a thread; an upload bar; a drag-and-drop.+- **Time-lapse with a tag.** Long work runs at N× with a flashing tag and rack focus. *Fits content like:* indexing a library; a data import; a build.+- **Spotlight freeze.** Push in and vignette the one badge that holds the promise. *Fits content like:* "Saved"; "Encrypted"; "No charges until…".+- **The film changes state.** A toggle's effect escapes the preview and takes over the whole film, and returns later. *Fits content like:* dark mode; a language switch; offline mode.+- **Cell division.** A new session or window splits the screen and the mascot splits with a pixel burst. *Fits content like:* parallel tasks; multiple accounts; team members.+- **Cursor and mascot as characters.** The cursor pets, pokes or drags the mascot, and it reacts. *Fits content like:* approving a suggestion; undoing; onboarding delight.+- **Karaoke-ball words.** The mascot hops from word to word as they are spoken. *Fits content like:* a slogan; a shortcut list; step names.-- `demo/film.js` is the timeline. VO lines are placed at fixed times, and every visual beat hangs off a spoken word (`W(id, word)`). It holds the camera moves, the `Actor` (mascot) segments, the `Cursor`, and the sound events.-- `demo/ui.js` turns state into HTML for the terminal and the Claude app.-- `demo/clawd.js` holds the sprite grid, poses and pixel props.-- `demo/main.js` handles the light and dark layers, DOM anchor measurement, motion blur, and the HUD (captions, keys, pixel wipes, spotlight).-- `demo/sound.py` builds the score, foley and VO from `events.json`, with ducking.-- Run everything with `sh styles/living-screencast/demo/build.sh`. The full render takes about 30 s.+## 9. Pitfalls of the medium-## 7. Don'ts+- Invented features or renamed modes → check every button, mode and shortcut against the product's documentation; if it isn't in the docs, it isn't in the film.+- The mascot floats or drifts off its element → measure the DOM every frame, stand only on top edges.+- The mascot covers text or sits under a caption → reserve a text-free lane for it.+- Blur-filter "fake depth" on text you want read, or zooming out past the screen → rack focus only on panes not being read; zoom ≥ 1.+- A hand, arm or finger on screen → the cursor is the user.+- Motion blur applied to a transformed layer smears the pixel sprite wrong → blur an untransformed wrapper, and only on whips.+- A keypress or pop landing on a product name masks it → shift foley off word onsets; re-check with whisper on the final mix.+- TTS mispronounces the product name → try voices and spellings, verify with whisper.++## 10. Engine++In `demo/`: `film.js` (timeline: VO at fixed times, every visual beat hung on a spoken word with `W(id, word)`, camera moves, `Actor` mascot segments, `Cursor`, sound events), `ui.js` (state → HTML for each interface), `clawd.js` (sprite grid, poses, pixel props: replace the sprite with your own mascot), `main.js` (light/dark layers, DOM anchor measurement, motion blur, HUD: captions, keys, pixel wipes, spotlight), `sound.py` (score, foley and VO from `events.json`, with ducking). Build notes: [DEMO.md](DEMO.md#build-notes).++## 11. Variation space++You decide the features and their order, the mascot (the product's own, or an original pixel character), the story, the opening, the ending, the camera path, the chapters and the music. All far from our demo:++- Structures: **a bug hunt** (the mascot chases one error through logs, code and a fix, a single chapter); **a day of one user** (morning to evening in one app, the theme and music shifting with the hour); **a race** (two windows side by side, old way vs. new way, the mascot winning on the right).+- Openings: **mid-task** (a half-written document; the mascot is already pushing the cursor's selection); **the notification** (a system toast lands; the mascot is inside it); **empty state** (a blank app, a caret blinking; the mascot drops from the menu bar).+- Endings: **the mascot goes to sleep** on the finished item as the window dims; **the app closes** and the mascot is left standing on the dock; **a real share** (the result is sent and the mascot rides it out of frame).++----- Don't invent features or rename modes. If a button isn't in the docs, it isn't in the film.-- Don't let the mascot float in empty space, cover text the viewer should read, or sit under a caption.-- Don't use screenshots, blur-filter "fake depth" on text you want read, or zoom out past the screen.-- Don't put a hand, arm or finger on screen. The cursor is the user.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/living-screencast/TREATMENT.md b/styles/living-screencast/TREATMENT.mddeleted file mode 100644index 2ddceb6..0000000--- a/styles/living-screencast/TREATMENT.md+++ /dev/null@@ -1,58 +0,0 @@-# Living Screencast(活体实机录屏)— 风格与分镜--> 2026-09-26 用户认可方案(要求更多动效与导演技术)→ 已出成片 `living-screencast.mp4`(59.4 s)。下文是开工前的讨论稿;成片在此基础上加了:logo 象限像素化身、片名当落点、弹窗/消息当移动地面、4× 快进 + 焦点转移、聚光冻结、甩镜动态模糊、暗色揭示吞掉整部片、会话分裂、逐词跳字片尾。声线最终用 am_michael(其它声线把 Claude 读成 Clod)。--> 题材:Claude 应用里的 Claude Code 基础用法,主角 Clawd(Claude Code 的像素吉祥物),约 60 秒,英文。--## 风格:和现有 44 个风格的区别--- 不是 25 Dark Tech Keynote:那支是黑色舞台、虚构产品、抽象 UI。这支是浅色暖调的真实应用,每个按钮、菜单和快捷键都真实存在,已按官方桌面版文档核对。-- 不是像素游戏(29/30):画面主体是高清矢量界面,只有 Clawd 和它的道具是像素。低分辨率的小家伙住在高分辨率的界面里,两种分辨率的反差就是这个风格的视觉识别点。--## 六条规则--1. **实机感,但全是 2D 重绘**:界面用 DOM 和 CSS 1:1 重绘,不贴截图,文字全部清晰可读。字体用 Inter、Newsreader 和 JetBrains Mono,均为 OFL 授权。-2. **镜头用录屏软件的语法**:只在"屏幕"里推拉摇,缩放始终 ≥1,不会拍到屏幕外。运动用弹簧缓动,光标带运动模糊,点击时轻推一下。-3. **Clawd 的像素网格**:18×10 的网格,由 Claude Code 终端 logo `▐▛███▜▌` 的象限字符 1:1 展开。像素硬边,随镜头一起放大。尘土、火花、铅笔、感叹号也用同一套网格。-4. **重力等于 UI 的上边缘**:Clawd 只站在界面元素的顶边上,比如输入框、菜单、文件行、diff 行和按钮。站位按真实元素的位置测量,不靠手摆。-5. **因果诚实**:用户的操作只由光标完成,画面里没有手。Claude 做的事由 Clawd 演出来,而且每个动作都对应一次真实的界面变化,例如读文件时那一行高亮,点预览时页面变暗。-6. **信息层**:按键 HUD(KeyCastr 式)显示快捷键,章节标签 01–04,字幕放在毛玻璃药丸里。--## 对标(只学语法)--| 对标 | 学什么 | 不学什么 |-|---|---|---|-| Screen Studio 式产品录屏 | 自动推近光标、光标平滑、点击推镜 | 它的 UI 和品牌 |-| Apple Guided Tour 教程片 | 真实界面加平静旁白,一句话讲一个功能 | 画面和配乐 |-| Duolingo / Headspace 吉祥物动效 | 角色在界面里表演,挤压拉伸 | 角色造型 |-| Arc(The Browser Company)发布片 | 俏皮的产品语气和剪辑节奏 | 素材 |--## 分镜(约 60 秒,104 BPM)--| # | 时间 | 画面 / Clawd | 旁白 / 字幕 |-|---|---|---|---|-| 1 | 0:00 | 终端里敲下 `claude`,logo 的方块字符"活"了,跳出终端,原处只剩虚线空位 | Meet Clawd. It used to live in your terminal… |-| 2 | 0:05 | Claude 应用窗口展开,Clawd 落在窗口顶边,出片名 | …now it lives right inside the Claude app. |-| 3 | 0:09 | **01 Just say it**:打字,出 @ 文件弹窗,Clawd 站在输入框上看 | Say what you want in plain words, and point at a file with @. |-| 4 | 0:14 | 文件面板里 Clawd 沿文件行跑过,读到的行高亮 | It reads your project before it touches a thing. |-| 5 | 0:19 | **02 Plan first**:按 ⇧⌘M 打开模式菜单,Clawd 站在菜单顶上看着选 Plan | Not sure yet? Switch to Plan mode. |-| 6 | 0:23 | Plan 面板,Clawd 用像素铅笔写下第 4 条,标着 No files changed | You get a clear plan, and nothing changes until you say go. |-| 7 | 0:29 | **03 Review**:弹出 `+24 −3` 统计条,Clawd 站在上面欢呼,光标点 Review | Every edit shows up as a diff. |-| 8 | 0:32 | Diff 视图,点第 6 行写评论,按 ⌘↵ 提交,Clawd 趴在评论框上读 | Click any line, leave a note… |-| 9 | 0:37 | 该行被改写,Clawd 头顶冒出"!",文件统计变成 +13 | …and Claude revises it. |-| 10 | 0:42 | **04 Checks its own work**:预览面板,Clawd 踩下切换按钮,暗色从按钮处圆形扩散开,弹出截图提示 | Then it runs your app in the preview and clicks through it. |-| 11 | 0:50 | 按 ⌘N 开新会话,分屏里三个 Clawd 各干各的:PR 的 CI 通过、测试 50/50、新会话刚进来 | Start another session. They work side by side. |-| 12 | 0:56 | 片尾:Clawd 欢呼加标语,署名写"Unofficial fan film" | Say it. Plan it. Review it. Ship it. |--## 声音--- **配乐**:用"两种分辨率"做音乐。高清层是毛毡钢琴、拨奏贝斯、刷鼓和拍手。像素层是 Clawd 的方波主题,5 个音,只在它动作时出现。片尾两层合奏。-- **拟音**:真实的键盘声和触控板点击,面板滑动带一点风声。Clawd 的脚步是 8-bit 噪声,落地"噗"一声,不说话。-- **旁白**:Kokoro TTS。候选:`af_heart`(美式女声,偏亲切),或 `bm_george`(英式男声,沿用白板片)。--## 待讨论--1. 选的功能是:@ 提及和读代码、Plan 模式、diff 行评论、预览自检,收尾讲并行会话。备选:斜杠命令和 Skills、CLAUDE.md 记忆、PR 自动修复和自动合并、检查点回退。-2. 画面用了官方吉祥物,界面也和 Claude 应用高度相似,片尾署名写"Unofficial fan film"。这样可以吗?-3. 用哪个旁白声线。-4. 这个风格要不要登记进 STYLES.md?目前是独立文件夹,没有动任何清单。diff --git a/styles/living-screencast/storyboard/contact.jpg b/styles/living-screencast/storyboard/contact.jpgdeleted file mode 100644index 58402ca..0000000Binary files a/styles/living-screencast/storyboard/contact.jpg and /dev/null differdiff --git a/styles/living-screencast/storyboard/fonts/Inter.ttf b/styles/living-screencast/storyboard/fonts/Inter.ttfdeleted file mode 100644index 047c92f..0000000Binary files a/styles/living-screencast/storyboard/fonts/Inter.ttf and /dev/null differdiff --git a/styles/living-screencast/storyboard/fonts/JetBrainsMono-var.ttf b/styles/living-screencast/storyboard/fonts/JetBrainsMono-var.ttfdeleted file mode 100644index 5b7a526..0000000Binary files a/styles/living-screencast/storyboard/fonts/JetBrainsMono-var.ttf and /dev/null differdiff --git a/styles/living-screencast/storyboard/fonts/Newsreader-Italic-VF.ttf b/styles/living-screencast/storyboard/fonts/Newsreader-Italic-VF.ttfdeleted file mode 100644index d258796..0000000Binary files a/styles/living-screencast/storyboard/fonts/Newsreader-Italic-VF.ttf and /dev/null differdiff --git a/styles/living-screencast/storyboard/fonts/Newsreader-VF.ttf b/styles/living-screencast/storyboard/fonts/Newsreader-VF.ttfdeleted file mode 100644index ad4a9a8..0000000Binary files a/styles/living-screencast/storyboard/fonts/Newsreader-VF.ttf and /dev/null differdiff --git a/styles/living-screencast/storyboard/fonts/OFL-jetbrainsmono.txt b/styles/living-screencast/storyboard/fonts/OFL-jetbrainsmono.txtdeleted file mode 100644index 5ceee00..0000000--- a/styles/living-screencast/storyboard/fonts/OFL-jetbrainsmono.txt+++ /dev/null@@ -1,93 +0,0 @@-Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)--This Font Software is licensed under the SIL Open Font License, Version 1.1.-This license is copied below, and is also available with a FAQ at:-https://openfontlicense.org---------------------------------------------------------------SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007--------------------------------------------------------------PREAMBLE-The goals of the Open Font License (OFL) are to stimulate worldwide-development of collaborative font projects, to support the font creation-efforts of academic and linguistic communities, and to provide a free and-open framework in which fonts may be shared and improved in partnership-with others.--The OFL allows the licensed fonts to be used, studied, modified and-redistributed freely as long as they are not sold by themselves. The-fonts, including any derivative works, can be bundled, embedded,-redistributed and/or sold with any software provided that any reserved-names are not used by derivative works. The fonts and derivatives,-however, cannot be released under any other type of license. The-requirement for fonts to remain under this license does not apply-to any document created using the fonts or their derivatives.--DEFINITIONS-"Font Software" refers to the set of files released by the Copyright-Holder(s) under this license and clearly marked as such. This may-include source files, build scripts and documentation.--"Reserved Font Name" refers to any names specified as such after the-copyright statement(s).--"Original Version" refers to the collection of Font Software components as-distributed by the Copyright Holder(s).--"Modified Version" refers to any derivative made by adding to, deleting,-or substituting -- in part or in whole -- any of the components of the-Original Version, by changing formats or by porting the Font Software to a-new environment.--"Author" refers to any designer, engineer, programmer, technical-writer or other person who contributed to the Font Software.--PERMISSION & CONDITIONS-Permission is hereby granted, free of charge, to any person obtaining-a copy of the Font Software, to use, study, copy, merge, embed, modify,-redistribute, and sell modified and unmodified copies of the Font-Software, subject to the following conditions:--1) Neither the Font Software nor any of its individual components,-in Original or Modified Versions, may be sold by itself.--2) Original or Modified Versions of the Font Software may be bundled,-redistributed and/or sold with any software, provided that each copy-contains the above copyright notice and this license. These can be-included either as stand-alone text files, human-readable headers or-in the appropriate machine-readable metadata fields within text or-binary files as long as those fields can be easily viewed by the user.--3) No Modified Version of the Font Software may use the Reserved Font-Name(s) unless explicit written permission is granted by the corresponding-Copyright Holder. This restriction only applies to the primary font name as-presented to the users.--4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font-Software shall not be used to promote, endorse or advertise any-Modified Version, except to acknowledge the contribution(s) of the-Copyright Holder(s) and the Author(s) or with their explicit written-permission.--5) The Font Software, modified or unmodified, in part or in whole,-must be distributed entirely under this license, and must not be-distributed under any other license. The requirement for fonts to-remain under this license does not apply to any document created-using the Font Software.--TERMINATION-This license becomes null and void if any of the above conditions are-not met.--DISCLAIMER-THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT-OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE-COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,-INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL-DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING-FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM-OTHER DEALINGS IN THE FONT SOFTWARE.diff --git a/styles/living-screencast/storyboard/fonts/newsreader_OFL.txt b/styles/living-screencast/storyboard/fonts/newsreader_OFL.txtdeleted file mode 100644index d2d4f40..0000000--- a/styles/living-screencast/storyboard/fonts/newsreader_OFL.txt+++ /dev/null@@ -1,93 +0,0 @@-Copyright 2020 The Newsreader Project Authors (http://github.com/productiontype/Newsreader)--This Font Software is licensed under the SIL Open Font License, Version 1.1.-This license is copied below, and is also available with a FAQ at:-http://scripts.sil.org/OFL---------------------------------------------------------------SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007--------------------------------------------------------------PREAMBLE-The goals of the Open Font License (OFL) are to stimulate worldwide-development of collaborative font projects, to support the font creation-efforts of academic and linguistic communities, and to provide a free and-open framework in which fonts may be shared and improved in partnership-with others.--The OFL allows the licensed fonts to be used, studied, modified and-redistributed freely as long as they are not sold by themselves. The-fonts, including any derivative works, can be bundled, embedded,-redistributed and/or sold with any software provided that any reserved-names are not used by derivative works. The fonts and derivatives,-however, cannot be released under any other type of license. The-requirement for fonts to remain under this license does not apply-to any document created using the fonts or their derivatives.--DEFINITIONS-"Font Software" refers to the set of files released by the Copyright-Holder(s) under this license and clearly marked as such. This may-include source files, build scripts and documentation.--"Reserved Font Name" refers to any names specified as such after the-copyright statement(s).--"Original Version" refers to the collection of Font Software components as-distributed by the Copyright Holder(s).--"Modified Version" refers to any derivative made by adding to, deleting,-or substituting -- in part or in whole -- any of the components of the-Original Version, by changing formats or by porting the Font Software to a-new environment.--"Author" refers to any designer, engineer, programmer, technical-writer or other person who contributed to the Font Software.--PERMISSION & CONDITIONS-Permission is hereby granted, free of charge, to any person obtaining-a copy of the Font Software, to use, study, copy, merge, embed, modify,-redistribute, and sell modified and unmodified copies of the Font-Software, subject to the following conditions:--1) Neither the Font Software nor any of its individual components,-in Original or Modified Versions, may be sold by itself.--2) Original or Modified Versions of the Font Software may be bundled,-redistributed and/or sold with any software, provided that each copy-contains the above copyright notice and this license. These can be-included either as stand-alone text files, human-readable headers or-in the appropriate machine-readable metadata fields within text or-binary files as long as those fields can be easily viewed by the user.--3) No Modified Version of the Font Software may use the Reserved Font-Name(s) unless explicit written permission is granted by the corresponding-Copyright Holder. This restriction only applies to the primary font name as-presented to the users.--4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font-Software shall not be used to promote, endorse or advertise any-Modified Version, except to acknowledge the contribution(s) of the-Copyright Holder(s) and the Author(s) or with their explicit written-permission.--5) The Font Software, modified or unmodified, in part or in whole,-must be distributed entirely under this license, and must not be-distributed under any other license. The requirement for fonts to-remain under this license does not apply to any document created-using the Font Software.--TERMINATION-This license becomes null and void if any of the above conditions are-not met.--DISCLAIMER-THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT-OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE-COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,-INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL-DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING-FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM-OTHER DEALINGS IN THE FONT SOFTWARE.\ No newline at end of filediff --git a/styles/living-screencast/storyboard/frames/s1.jpg b/styles/living-screencast/storyboard/frames/s1.jpgdeleted file mode 100644index 2f67255..0000000Binary files a/styles/living-screencast/storyboard/frames/s1.jpg and /dev/null differdiff --git a/styles/living-screencast/storyboard/frames/s10.jpg b/styles/living-screencast/storyboard/frames/s10.jpgdeleted file mode 100644index 1ccb8ae..0000000Binary files a/styles/living-screencast/storyboard/frames/s10.jpg and /dev/null differdiff --git a/styles/living-screencast/storyboard/frames/s11.jpg b/styles/living-screencast/storyboard/frames/s11.jpgdeleted file mode 100644index ab8ca55..0000000Binary files a/styles/living-screencast/storyboard/frames/s11.jpg and /dev/null differdiff --git a/styles/living-screencast/storyboard/frames/s12.jpg b/styles/living-screencast/storyboard/frames/s12.jpgdeleted file mode 100644index 035f18d..0000000Binary files a/styles/living-screencast/storyboard/frames/s12.jpg and /dev/null differdiff --git a/styles/living-screencast/storyboard/frames/s2.jpg b/styles/living-screencast/storyboard/frames/s2.jpgdeleted file mode 100644index 84e61df..0000000Binary files a/styles/living-screencast/storyboard/frames/s2.jpg and /dev/null differdiff --git a/styles/living-screencast/storyboard/frames/s3.jpg b/styles/living-screencast/storyboard/frames/s3.jpgdeleted file mode 100644index e8feadb..0000000Binary files a/styles/living-screencast/storyboard/frames/s3.jpg and /dev/null differdiff --git a/styles/living-screencast/storyboard/frames/s4.jpg b/styles/living-screencast/storyboard/frames/s4.jpgdeleted file mode 100644index 2738a64..0000000Binary files a/styles/living-screencast/storyboard/frames/s4.jpg and /dev/null differdiff --git a/styles/living-screencast/storyboard/frames/s5.jpg b/styles/living-screencast/storyboard/frames/s5.jpgdeleted file mode 100644index 16554ba..0000000Binary files a/styles/living-screencast/storyboard/frames/s5.jpg and /dev/null differdiff --git a/styles/living-screencast/storyboard/frames/s6.jpg b/styles/living-screencast/storyboard/frames/s6.jpgdeleted file mode 100644index 4b85637..0000000Binary files a/styles/living-screencast/storyboard/frames/s6.jpg and /dev/null differdiff --git a/styles/living-screencast/storyboard/frames/s7.jpg b/styles/living-screencast/storyboard/frames/s7.jpgdeleted file mode 100644index 9bfdac6..0000000Binary files a/styles/living-screencast/storyboard/frames/s7.jpg and /dev/null differdiff --git a/styles/living-screencast/storyboard/frames/s8.jpg b/styles/living-screencast/storyboard/frames/s8.jpgdeleted file mode 100644index e9c4bc6..0000000Binary files a/styles/living-screencast/storyboard/frames/s8.jpg and /dev/null differdiff --git a/styles/living-screencast/storyboard/frames/s9.jpg b/styles/living-screencast/storyboard/frames/s9.jpgdeleted file mode 100644index f96ffde..0000000Binary files a/styles/living-screencast/storyboard/frames/s9.jpg and /dev/null differdiff --git a/styles/living-screencast/storyboard/index.html b/styles/living-screencast/storyboard/index.htmldeleted file mode 100644index 8230f0c..0000000--- a/styles/living-screencast/storyboard/index.html+++ /dev/null@@ -1,337 +0,0 @@-<!doctype html>-<html><head><meta charset="utf-8">-<style>-@font-face{font-family:Inter;src:url(fonts/Inter.ttf);font-weight:100 900}-@font-face{font-family:News;src:url(fonts/Newsreader-VF.ttf);font-weight:200 800}-@font-face{font-family:News;src:url(fonts/Newsreader-Italic-VF.ttf);font-style:italic;font-weight:200 800}-@font-face{font-family:Mono;src:url(fonts/JetBrainsMono-var.ttf);font-weight:100 800}-:root{- --ivory:#FAF9F5; --oat:#F0EEE6; --side:#F4F2EC; --line:#E6E3D9; --line2:#D9D5C8;- --ink:#1F1E1C; --ink2:#3D3B37; --mute:#85827A; --clay:#D97757; --clay2:#BD5D3A; --clayT:#F6E3DA;- --add:#E7F3E8; --addI:#2F7D3F; --del:#FBE9E7; --delI:#B4432F;-}-*{box-sizing:border-box;margin:0;padding:0}-html,body{width:1920px;height:1080px;overflow:hidden;background:#E9E3D6}-body{font-family:Inter,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}-#stage{position:absolute;inset:0;overflow:hidden}-#world{position:absolute;left:0;top:0;width:1920px;height:1080px;transform-origin:0 0}-/* 桌面:暖色抽象壁纸 */-#wall{position:absolute;inset:-600px;background:- radial-gradient(900px 620px at 18% 22%,#F3D9C6 0,transparent 70%),- radial-gradient(1000px 700px at 86% 80%,#E7C6AE 0,transparent 70%),- radial-gradient(700px 500px at 70% 10%,#EFE6D2 0,transparent 70%),#E9E1D1}-#menubar{position:absolute;left:0;right:0;top:0;height:30px;background:rgba(250,249,245,.55);backdrop-filter:blur(20px);- display:flex;align-items:center;gap:22px;padding:0 20px;font-size:13.5px;font-weight:500;color:#2a2926}-#menubar b{font-weight:700}-#menubar .r{margin-left:auto;display:flex;gap:18px;color:#3a3935}-/* 窗口 */-.win{position:absolute;background:var(--ivory);border-radius:14px;overflow:hidden;- box-shadow:0 0 0 1px rgba(0,0,0,.09),0 30px 80px rgba(60,40,20,.22),0 8px 24px rgba(60,40,20,.12)}-.tbar{height:46px;display:flex;align-items:center;padding:0 16px;border-bottom:1px solid var(--line);background:var(--side);position:relative}-.lights{display:flex;gap:8px}.lights i{width:12px;height:12px;border-radius:50%;background:#EC6A5E;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.15)}-.lights i:nth-child(2){background:#F4BF4F}.lights i:nth-child(3){background:#61C554}-.seg{position:absolute;left:50%;top:8px;transform:translateX(-50%);display:flex;background:#E9E6DD;border-radius:9px;padding:3px;font-size:13.5px;font-weight:500;color:var(--mute)}-.seg span{padding:5px 18px;border-radius:7px}.seg .on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}-.body{position:absolute;top:46px;left:0;right:0;bottom:0;display:flex}-.side{width:262px;background:var(--side);border-right:1px solid var(--line);padding:14px 12px;display:flex;flex-direction:column;gap:4px;font-size:14px}-.newbtn{display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:9px;font-weight:600;color:var(--ink2)}-.newbtn .k{margin-left:auto;font-size:12px;color:var(--mute);font-weight:500}-.sect{font-size:12px;color:var(--mute);font-weight:600;padding:14px 11px 6px;letter-spacing:.02em}-.sess{display:flex;align-items:center;gap:9px;padding:8px 11px;border-radius:9px;color:var(--ink2)}-.sess.on{background:#E8E4DA;color:var(--ink);font-weight:500}-.sess .dot{width:8px;height:8px;border-radius:2px;background:#C9C4B6}-.sess .dot.run{background:var(--clay);box-shadow:0 0 0 3px var(--clayT)}-.side .proj{margin-top:auto;border-top:1px solid var(--line);padding:12px 11px 2px;font-size:13px;color:var(--mute);display:flex;gap:8px;align-items:center}-.side .proj b{color:var(--ink2);font-weight:600}-.main{flex:1;display:flex;min-width:0}-.chat{flex:1;position:relative;min-width:0;display:flex;flex-direction:column}-.msgs{flex:1;padding:34px 56px 0;display:flex;flex-direction:column;gap:16px;font-size:16px;line-height:1.55;overflow:hidden}-.u{align-self:flex-end;background:var(--oat);border-radius:16px;padding:11px 16px;max-width:78%}-.u .at,.pb .at{color:var(--clay2);background:var(--clayT);border-radius:5px;padding:0 4px;font-weight:500}-.a{max-width:92%;color:var(--ink2)}-.tool{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--mute);padding:3px 0}-.tool b{color:var(--ink2);font-weight:600}.tool code{font-family:Mono;font-size:13px;color:var(--ink2)}-.tool .g{width:16px;height:16px;border-radius:4px;background:var(--oat);display:grid;place-items:center;font-size:10px;color:var(--mute)}-.stat{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--line2);background:#fff;border-radius:10px;padding:8px 14px;font-size:14.5px;font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.04)}-.stat .p{color:var(--addI)}.stat .m{color:var(--delI)}-.pb{margin:18px 40px 26px;border:1px solid var(--line2);background:#fff;border-radius:18px;box-shadow:0 2px 10px rgba(60,40,20,.06);padding:16px 18px 12px;position:relative}-.pb .txt{font-size:17px;min-height:52px;line-height:1.5}-.pb .ph{color:#A9A59B}-.caret{display:inline-block;width:2px;height:21px;background:var(--clay);vertical-align:-4px;margin-left:1px}-.pb .row{display:flex;align-items:center;gap:10px;margin-top:8px;font-size:13.5px;color:var(--mute)}-.pill{border:1px solid var(--line2);border-radius:8px;padding:5px 10px;font-weight:500;color:var(--ink2);display:flex;gap:6px;align-items:center;background:#fff}-.pill.plan{background:#EEF0FA;border-color:#C9CDEA;color:#3F4AA0}-.pill.acc{background:#FBEDE6;border-color:#EDC6B4;color:var(--clay2)}-.plus{width:30px;height:30px;border-radius:8px;border:1px solid var(--line2);display:grid;place-items:center;font-size:18px;color:var(--mute)}-.send{margin-left:auto;width:34px;height:34px;border-radius:10px;background:var(--clay);display:grid;place-items:center}-.pop{position:absolute;background:#fff;border:1px solid var(--line2);border-radius:12px;box-shadow:0 12px 36px rgba(60,40,20,.16);padding:6px;font-size:14.5px;z-index:5}-.pop .it{padding:9px 12px;border-radius:8px;display:flex;gap:12px;align-items:center}-.pop .it.hl{background:var(--oat)}-.pop .it small{color:var(--mute);font-size:12.5px;display:block;font-weight:400}-.pop .it .kb{margin-left:auto;color:var(--mute);font-size:12px}-.greet{position:absolute;left:0;right:0;top:36%;text-align:center;font-family:News;font-size:44px;font-weight:350;color:var(--ink2);letter-spacing:-.01em}-/* 右侧面板 */-.pane{width:0;border-left:1px solid var(--line);background:#fff;display:flex;flex-direction:column;overflow:hidden}-.pane .ph2{height:46px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:4px;padding:0 10px;font-size:13.5px;background:var(--ivory)}-.pane .ph2 span{padding:6px 12px;border-radius:7px;color:var(--mute);font-weight:500}.pane .ph2 .on{background:var(--oat);color:var(--ink)}-.pane .pc{flex:1;position:relative;overflow:hidden}-.tree{padding:14px 10px;font-size:14px;font-family:Mono;color:var(--ink2)}-.tree div{padding:5px 10px;border-radius:6px;white-space:pre}-.tree .lit{background:var(--clayT);color:var(--clay2)}-.plan{padding:26px 30px;font-size:15.5px;line-height:1.6}-.plan h3{font-family:News;font-weight:500;font-size:26px;margin-bottom:6px}-.plan .meta{font-size:13px;color:var(--mute);margin-bottom:18px;display:flex;gap:10px;align-items:center}-.badge{border-radius:6px;padding:2px 8px;font-weight:600;font-size:12.5px;background:#EEF0FA;color:#3F4AA0}-.plan ol{padding-left:0;list-style:none;display:flex;flex-direction:column;gap:12px}-.plan li{display:flex;gap:12px}-.plan li .n{flex:none;width:24px;height:24px;border-radius:6px;background:var(--oat);display:grid;place-items:center;font-size:13px;font-weight:600;color:var(--ink2)}-.plan li.ghost{opacity:.28}-.plan code,.a code{font-family:Mono;font-size:13.5px;background:var(--oat);padding:1px 5px;border-radius:5px}-.diff{display:flex;height:100%}-.files{width:210px;border-right:1px solid var(--line);padding:12px 8px;font-size:13.5px;background:var(--ivory)}-.files div{padding:7px 10px;border-radius:7px;display:flex;gap:6px}.files .on{background:var(--oat);font-weight:600}-.files .p{color:var(--addI);margin-left:auto;font-weight:600}.files .m{color:var(--delI);font-weight:600}-.code{flex:1;font-family:Mono;font-size:14.5px;line-height:27px;padding-top:12px;position:relative}-.code .l{display:flex;white-space:pre;padding-right:12px}-.code .l .no{width:48px;text-align:right;padding-right:14px;color:#B8B3A6;flex:none}-.code .l .sg{width:18px;flex:none;color:#B8B3A6}-.code .l.add{background:var(--add)}.code .l.add .sg,.code .l.add .no{color:var(--addI)}-.code .l.del{background:var(--del)}.code .l.del .sg,.code .l.del .no{color:var(--delI)}-.code .l.sel{box-shadow:inset 3px 0 0 var(--clay)}-.cm{margin:6px 16px 6px 66px;border:1px solid var(--line2);border-radius:12px;background:#fff;box-shadow:0 6px 20px rgba(60,40,20,.10);font-family:Inter;font-size:15px;line-height:1.5;padding:12px 14px}-.cm .who{font-size:12.5px;color:var(--mute);margin-bottom:4px}-.cm .hint{display:flex;justify-content:flex-end;gap:8px;margin-top:8px;font-size:12.5px;color:var(--mute)}-.kbd{border:1px solid var(--line2);border-bottom-width:2px;border-radius:5px;padding:0 5px;font-size:12px;background:var(--ivory)}-.k{color:#9A4E8E}.s{color:#3F7A4A}.f{color:#355F9E}.c{color:#A5A094}-.url{margin:8px 10px;height:32px;border-radius:8px;background:var(--oat);display:flex;align-items:center;padding:0 12px;font-size:13.5px;color:var(--ink2);gap:8px}-.app{position:absolute;inset:0;top:48px;display:flex;flex-direction:column;align-items:center}-.app .hd{align-self:stretch;height:64px;display:flex;align-items:center;padding:0 28px;gap:10px;font-weight:700;font-size:19px}-.app .tm{width:22px;height:22px;border-radius:50%;background:#E0543A;position:relative}-.app .tm:after{content:'';position:absolute;left:8px;top:-4px;width:7px;height:6px;background:#4E8A3E;border-radius:3px 3px 1px 1px}-.app .tg{margin-left:auto;width:40px;height:40px;border-radius:12px;display:grid;place-items:center}-.app .big{margin-top:92px;font-family:News;font-size:150px;font-weight:300;letter-spacing:-.02em;font-variant-numeric:tabular-nums}-.app .sub{font-size:16px;margin-top:4px;opacity:.6}-.app .btns{display:flex;gap:14px;margin-top:46px}-.app .btns span{padding:14px 34px;border-radius:14px;font-weight:600;font-size:17px}-.light{background:#FFF8F0;color:#2B2320}.light .tg{background:#F4E7D8}.light .b1{background:#E0543A;color:#fff}.light .b2{background:#F4E7D8}-.dark{background:#1E1A18;color:#F4EDE4}.dark .tg{background:#352E2A}.dark .b1{background:#E0543A;color:#fff}.dark .b2{background:#352E2A}-.term{background:#1F1D1A;color:#E8E2D6;font-family:Mono;font-size:14px;line-height:22px;padding:12px 16px;white-space:pre}-.term .ok{color:#8BC48A}.term .dim{color:#8A857A}-.ci{display:flex;align-items:center;gap:12px;padding:10px 16px;border-top:1px solid var(--line);background:var(--ivory);font-size:13.5px;color:var(--ink2)}-.ci .ok{color:var(--addI);font-weight:600}.tog{width:30px;height:18px;border-radius:9px;background:var(--clay);position:relative}.tog:after{content:'';position:absolute;right:2px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff}-/* 终端窗口(开场) */-.twin{background:#1F1D1A;border-radius:12px}-.twin .tb2{height:34px;display:flex;align-items:center;padding:0 12px;background:#2A2724}-.twin pre{font-family:Mono;color:#E8E2D6;font-size:17px;line-height:26px;padding:16px 20px}-.twin .o{color:var(--clay)}-/* 叠层:不随镜头 */-#hud{position:absolute;inset:0;pointer-events:none}-.cap{position:absolute;left:50%;bottom:54px;transform:translateX(-50%);max-width:1300px;text-align:center;font-size:33px;font-weight:500;line-height:1.3;letter-spacing:-.005em;- color:#1F1E1C;background:rgba(250,249,245,.86);backdrop-filter:blur(14px);padding:12px 26px;border-radius:16px;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 8px 28px rgba(60,40,20,.12)}-.cap em{font-style:normal;color:var(--clay2)}-.keys{position:absolute;left:56px;bottom:58px;display:flex;align-items:center;gap:8px;font-size:17px;font-weight:600;color:#fff;- background:rgba(31,30,28,.86);padding:10px 14px;border-radius:14px;backdrop-filter:blur(10px)}-.keys i{font-style:normal;min-width:36px;height:36px;padding:0 8px;border-radius:8px;background:#3A3834;display:grid;place-items:center;box-shadow:inset 0 -2px 0 rgba(0,0,0,.35);font-size:18px}-.keys span{margin-left:6px;color:#D8D2C6;font-weight:500}-.chap{position:absolute;left:56px;top:48px;display:flex;align-items:center;gap:14px;font-family:News;font-size:30px;font-weight:450;color:var(--ink);background:rgba(250,249,245,.9);backdrop-filter:blur(14px);padding:10px 20px 10px 12px;border-radius:14px;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 8px 28px rgba(60,40,20,.12)}-.chap b{font-family:Inter;font-size:14px;font-weight:700;color:#fff;background:var(--clay);border-radius:7px;padding:5px 9px;letter-spacing:.04em}-.title{position:absolute;left:0;right:0;text-align:center}-.px{position:absolute;image-rendering:pixelated}-.ring{position:absolute;border-radius:50%;border:3px solid var(--clay);opacity:.7}-.shutter{position:absolute;border:3px solid #fff;border-radius:10px;box-shadow:0 0 0 2000px rgba(255,255,255,.18)}-</style></head>-<body><div id="stage"><div id="world"></div><div id="hud"></div></div>-<script>-// ───────── Clawd:18×10 方像素(由 Claude Code 终端 logo 的象限字符 1:1 展开,每字符格=2×2 象限,行加倍成方像素)-const CLAY = '#D97757', EYE = '#2A2622';-function clawdGrid({ eyes = 'n', arms = 'down', legs = 'stand' } = {}) {- const P = new Map(), put = (c, r, v = 1) => P.set(c + ',' + r, v);- for (let r = 0; r < 8; r++) for (let c = 3; c <= 14; c++) put(c, r); // 身体- const armRows = arms === 'up' ? [0, 1, 2, 3] : [4, 5];- if (arms === 'up') { for (const r of armRows) { put(1, r); put(2, r); put(15, r); put(16, r); } }- else if (arms === 'right') { put(1, 4); put(2, 4); put(1, 5); put(2, 5); for (const r of [0, 1, 2, 3]) { put(15, r); put(16, r); } }- else for (const r of armRows) for (const c of [1, 2, 15, 16]) put(c, r);- const L = { stand: [[4, 2], [6, 2], [11, 2], [13, 2]], walkA: [[4, 2], [6, 1], [11, 2], [13, 1]], walkB: [[4, 1], [6, 2], [11, 1], [13, 2]], tuck: [[4, 1], [6, 1], [11, 1], [13, 1]] }[legs];- for (const [c, h] of L) for (let r = 8; r < 8 + h; r++) put(c, r);- const E = { n: [[5, 2], [5, 3], [12, 2], [12, 3]], r: [[6, 2], [6, 3], [13, 2], [13, 3]], l: [[4, 2], [4, 3], [11, 2], [11, 3]],- blink: [[5, 3], [12, 3]], happy: [[4, 3], [5, 2], [6, 3], [11, 3], [12, 2], [13, 3]], wide: [[5, 1], [5, 2], [5, 3], [12, 1], [12, 2], [12, 3]] }[eyes];- for (const [c, r] of E) put(c, r, 2);- return P;-}-// x,y = 脚底中点(世界坐标);px = 一个像素的边长-function clawd({ x, y, px = 7, flip = false, squash = 0, ...o }) {- const P = clawdGrid(o); let s = '';- const sy = 1 - squash, sx = 1 + squash * .6;- for (const [k, v] of P) { let [c, r] = k.split(',').map(Number); if (flip) c = 17 - c;- s += `<rect x="${c}" y="${r}" width="1.02" height="1.02" fill="${v === 2 ? EYE : CLAY}"/>`; }- const w = 18 * px * sx, h = 10 * px * sy;- return `<svg class="px" viewBox="0 0 18 10" width="${w}" height="${h}" style="left:${x - w / 2}px;top:${y - h}px" shape-rendering="crispEdges">${s}</svg>`;-}-// 像素道具:铅笔、感叹号、尘土、闪光——与 Clawd 同一像素网格-function pixart(rows, { x, y, px = 7, pal }) {- let s = ''; rows.forEach((row, r) => [...row].forEach((ch, c) => { if (pal[ch]) s += `<rect x="${c}" y="${r}" width="1.02" height="1.02" fill="${pal[ch]}"/>`; }));- const W = rows[0].length, H = rows.length;- return `<svg class="px" viewBox="0 0 ${W} ${H}" width="${W * px}" height="${H * px}" style="left:${x}px;top:${y}px" shape-rendering="crispEdges">${s}</svg>`;-}-const BANG = (x, y, px = 7) => pixart(['.www.', 'wwkww', 'wwkww', 'wwkww', 'wwwww', 'wwkww', '.www.', '..w..'], { x, y, px, pal: { w: '#fff', k: EYE } })- + `<div style="position:absolute;left:${x - 2}px;top:${y - 2}px;width:${5 * px + 4}px;height:${7 * px + 4}px;border-radius:3px;box-shadow:0 0 0 2px ${EYE};opacity:0"></div>`;-const PENCIL = (x, y, px = 7) => pixart(['......kk', '.....yyk', '....yyy.', '...yyy..', '..yyy...', '.pyy....', 'ppy.....', 'k.......'], { x, y, px, pal: { y: '#F2C14E', k: EYE, p: '#E8A898' } });-const SPARK = (x, y, px = 6, col = '#F2C14E') => pixart(['..y..', '..y..', 'yy.yy', '..y..', '..y..'], { x, y, px, pal: { y: col } });-const DUST = (x, y, px = 6) => pixart(['.o..o', 'o.o..', '.....'], { x, y, px, pal: { o: '#CFC7B6' } });-const CHECK = (x, y, px = 6) => pixart(['.....g', '....gg', 'g..gg.', 'gggg..', '.gg...'], { x, y, px, pal: { g: '#2F7D3F' } });-// macOS 指针-const CURSOR = (x, y, s = 1.5) => `<svg style="position:absolute;left:${x - 2}px;top:${y - 2}px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))" width="${22 * s}" height="${30 * s}" viewBox="0 0 22 30"><path d="M2 2 L2 24 L7.5 18.5 L11 27 L15 25.2 L11.6 17 L19 17 Z" fill="#000" stroke="#fff" stroke-width="1.6" stroke-linejoin="round"/></svg>`;-const RING = (x, y, r = 22) => `<div class="ring" style="left:${x - r}px;top:${y - r}px;width:${2 * r}px;height:${2 * r}px"></div>`;--// ───────── Claude 应用窗口(纯 2D 重绘,不用截图)-const WIN = { x: 110, y: 74, w: 1700, h: 950 };-function sidebar(sess = [['Dark mode toggle', 1, 1], ['Fix flaky timer test', 0], ['Update README', 0]]) {- return `<div class="side">- <div class="newbtn"><span style="font-size:18px;color:var(--clay)">+</span> New session <span class="k">⌘N</span></div>- <div class="sect">SESSIONS</div>- ${sess.map(([n, on, run]) => `<div class="sess ${on ? 'on' : ''}"><span class="dot ${run ? 'run' : ''}"></span>${n}</div>`).join('')}- <div class="proj"><svg width="14" height="14" viewBox="0 0 14 14"><path d="M1 3h4l1.5 1.5H13v7.5H1z" fill="none" stroke="#85827A" stroke-width="1.3"/></svg><b>tomato-timer</b> · main</div></div>`;-}-function promptBox({ text = '', ph = 'Describe a task, or type / for commands', mode = 'Manual', caret = true } = {}) {- const cls = mode === 'Plan' ? 'plan' : mode === 'Accept edits' ? 'acc' : '';- return `<div class="pb"><div class="txt">${text || `<span class="ph">${ph}</span>`}${caret ? '<span class="caret"></span>' : ''}</div>- <div class="row"><span class="plus">+</span><span class="pill ${cls}">${mode} ▾</span><span class="pill">Opus 5.5 ▾</span>- <span class="send"><svg width="16" height="16" viewBox="0 0 16 16"><path d="M8 13V3M3.5 7.5 8 3l4.5 4.5" stroke="#fff" stroke-width="2" fill="none" stroke-linecap="round"/></svg></span></div></div>`;-}-function appWin({ chat = '', prompt = {}, pane = null, paneW = 780, sess, greet = false, extra = '' } = {}) {- return `<div class="win" style="left:${WIN.x}px;top:${WIN.y}px;width:${WIN.w}px;height:${WIN.h}px">- <div class="tbar"><div class="lights"><i></i><i></i><i></i></div><div class="seg"><span>Chat</span><span>Cowork</span><span class="on">Code</span></div></div>- <div class="body">${sidebar(sess)}<div class="main">- <div class="chat">${greet ? '<div class="greet">What should we build today?</div>' : ''}<div class="msgs">${chat}</div>${promptBox(prompt)}</div>- ${pane ? `<div class="pane" style="width:${paneW}px"><div class="ph2">${pane.tabs}</div><div class="pc">${pane.body}</div></div>` : ''}- </div></div>${extra}</div>`;-}-const tabs = on => ['Files', 'Plan', 'Diff', 'Preview', 'Terminal'].map(t => `<span class="${t === on ? 'on' : ''}">${t}</span>`).join('');-const USER = `<div class="u">Add a dark mode toggle to <span class="at">@Header.tsx</span></div>`;--// 番茄钟 demo 应用(预览面板里跑的那个)-const tomatoApp = cls => `<div class="app ${cls}"><div class="hd"><span class="tm"></span>tomato<span class="tg">${cls === 'dark'- ? '<svg width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="4" fill="#F2C14E"/><g stroke="#F2C14E" stroke-width="2" stroke-linecap="round"><path d="M10 1.5v2M10 16.5v2M1.5 10h2M16.5 10h2M4 4l1.4 1.4M14.6 14.6 16 16M4 16l1.4-1.4M14.6 5.4 16 4"/></g></svg>'- : '<svg width="20" height="20" viewBox="0 0 20 20"><path d="M15.5 12.5A7 7 0 0 1 7.5 4.5a7 7 0 1 0 8 8z" fill="#2B2320"/></svg>'}</span></div>- <div class="big">25:00</div><div class="sub">Focus · round 1 of 4</div><div class="btns"><span class="b1">Start</span><span class="b2">Reset</span></div></div>`;--const codeLines = (ls, from = 1) => ls.map(([sg, t, cls = ''], i) => `<div class="l ${sg === '+' ? 'add' : sg === '-' ? 'del' : ''} ${cls}"><span class="no">${typeof from === 'number' ? from + i : ''}</span><span class="sg">${sg.trim()}</span><span>${t}</span></div>`).join('');-const THEME = [- [' ', `<span class="k">export const</span> light = { bg: <span class="s">'#FFF8F0'</span>, ink: <span class="s">'#2B2320'</span> };`],- ['+', `<span class="k">export const</span> dark = { bg: <span class="s">'#1E1A18'</span>, ink: <span class="s">'#F4EDE4'</span> };`],- [' ', ``],- ['+', `<span class="k">export function</span> <span class="f">useTheme</span>() {`],- ['+', ` <span class="k">const</span> saved = localStorage.<span class="f">getItem</span>(<span class="s">'theme'</span>);`],-];--// ───────── 12 个镜头:每个返回 {cam:[cx,cy,zoom], world, hud}-const S = {- 1: () => ({ cam: [960, 540, 1], world: `<div class="win twin" style="left:600px;top:360px;width:720px;height:250px">- <div class="tb2"><div class="lights"><i></i><i></i><i></i></div></div>- <pre><span style="color:#8A857A">~/tomato-timer</span> $ claude--<span class="o"> </span> Claude Code-<span class="o"> </span> Opus 5.5-<span class="o"> </span> ~/tomato-timer-</pre></div>`- + clawd({ x: 700, y: 330, px: 8, legs: 'tuck', arms: 'up', eyes: 'wide' }) + SPARK(600, 250) + SPARK(790, 236, 5) + DUST(640, 350, 5)- + `<div style="position:absolute;left:620px;top:462px;width:116px;height:74px;border:2px dashed rgba(217,119,87,.55);border-radius:3px"></div>`- + `<svg style="position:absolute;left:0;top:0" width="1920" height="1080"><path d="M680 460 Q 670 390 700 336" fill="none" stroke="rgba(217,119,87,.45)" stroke-width="3" stroke-dasharray="2 9" stroke-linecap="round"/></svg>`,- hud: `<div class="cap">Meet <em>Clawd</em>. It used to live in your terminal…</div>` }),- 2: () => ({ cam: [960, 540, 1], world: appWin({ prompt: { caret: false } })- + clawd({ x: 1260, y: 74, px: 8, legs: 'stand', eyes: 'happy', squash: .18 }) + DUST(1170, 62) + DUST(1320, 60),- hud: `<div class="title" style="top:430px"><div style="font-family:News;font-size:92px;font-weight:350;letter-spacing:-.02em;color:var(--ink)">Claude Code</div>- <div style="font-size:30px;font-weight:500;color:var(--clay2);margin-top:6px">now right inside the Claude app</div></div>` }),- 3: () => ({ cam: [880, 820, 1.55], world: appWin({ prompt: { text: `Add a dark mode toggle to <span class="at">@Header</span>` } })- , after: A => { const p = A('.pb', .72, 0), t = A('.pb .at', 0, 0);- return `<div class="pop" style="left:${t.x - 14}px;top:${t.y - 150}px;width:380px"><div class="it hl"><span style="font-family:Mono;color:var(--clay2)">⌗</span><div>Header.tsx<small>src/components</small></div></div>- <div class="it"><span style="font-family:Mono;color:var(--mute)">⌗</span><div>HeaderMenu.tsx<small>src/components</small></div></div></div>` + clawd({ x: p.x, y: p.y, px: 8, eyes: 'l' }); },- hud: `<div class="chap"><b>01</b>Just say it</div><div class="keys"><i>@</i><span>mention a file</span></div>- <div class="cap">Say what you want in plain words, and point at a file with <em>@</em>.</div>` }),- 4: () => ({ cam: [1240, 470, 1.18], world: appWin({ chat: USER + `<div class="a">- <div class="tool"><span class="g">◎</span><b>Read</b><code>src/components/Header.tsx</code></div>- <div class="tool"><span class="g">◎</span><b>Read</b><code>src/styles/theme.ts</code></div>- <div class="tool"><span class="g">⌕</span><b>Search</b><code>"color"</code> · 14 results</div>- <p style="margin-top:10px">Colors live in <code>theme.ts</code>, and the header already has room for a button.</p></div>`,- pane: { tabs: tabs('Files'), body: `<div class="tree">${['▾ src', ' ▾ components', ' App.tsx', ' Header.tsx', ' Timer.tsx', ' ▾ styles', ' theme.ts', ' reset.css', ' main.tsx', 'package.json']- .map(n => `<div class="${/Header|theme/.test(n) ? 'lit' : ''}">${n}</div>`).join('')}</div>` } })- , after: A => { const p = A('.tree .lit', .66, 1); return clawd({ x: p.x, y: p.y, px: 6, legs: 'walkA', eyes: 'r' }) + DUST(p.x - 80, p.y - 10, 5) + pixart(['o'], { x: p.x - 96, y: p.y - 6, px: 5, pal: { o: '#CFC7B6' } }); },- hud: `<div class="cap">It reads your project <em>before</em> it touches a thing.</div>` }),- 5: () => ({ cam: [560, 790, 1.7], world: appWin({ chat: USER, prompt: { text: '', mode: 'Manual', caret: false }, extra:- `<div class="pop" style="left:300px;top:520px;width:380px">- <div class="it"><div>Manual<small>Ask before every edit</small></div></div>- <div class="it"><div>Accept edits<small>Edit files, ask before commands</small></div></div>- <div class="it hl"><div style="color:#3F4AA0;font-weight:600">Plan<small>Explore and propose. No edits.</small></div><span class="kb">✓</span></div>- <div class="it"><div>Auto<small>Run with background safety checks</small></div></div></div>` })- , after: A => { const p = A('.pop', .72, 0), c = A('.pop .it.hl', .42, .6); return clawd({ x: p.x, y: p.y, px: 7, eyes: 'n' }) + CURSOR(c.x, c.y); },- hud: `<div class="chap"><b>02</b>Plan first</div><div class="keys"><i>⇧</i><i>⌘</i><i>M</i><span>permission mode</span></div>- <div class="cap">Not sure yet? Switch to <em>Plan</em> mode.</div>` }),- 6: () => ({ cam: [1330, 470, 1.25], world: appWin({ chat: USER + `<div class="a"><p>Here's the plan. I haven't changed any files.</p></div>`, prompt: { mode: 'Plan', caret: false },- pane: { tabs: tabs('Plan'), body: `<div class="plan"><h3>Dark mode toggle</h3><div class="meta"><span class="badge">PLAN MODE</span>No files changed</div><ol>- <li><span class="n">1</span><div>Add a <code>dark</code> palette next to <code>light</code> in <code>theme.ts</code></div></li>- <li><span class="n">2</span><div>Remember the choice in <code>localStorage</code></div></li>- <li><span class="n">3</span><div>Add a sun / moon button to <code>Header.tsx</code></div></li>- <li class="ghost"><span class="n">4</span><div>Open the preview and click it to verify</div></li></ol></div>` } })- , after: A => { const p = A('.plan li.ghost div', 1, 1); return PENCIL(p.x + 2, p.y - 46, 6) + clawd({ x: p.x + 104, y: p.y + 4, px: 6, eyes: 'l', flip: true }); },- hud: `<div class="cap">You get a clear plan, and nothing changes until you say go.</div>` }),- 7: () => ({ cam: [640, 360, 1.5], world: appWin({ chat: USER + `<div class="a"><p>Done. I edited 3 files.</p><div style="margin-top:78px"><span class="stat">3 files <span class="p">+24</span><span class="m">−3</span> <span style="color:var(--mute);font-weight:500">Review ›</span></span></div></div>`,- prompt: { mode: 'Accept edits', caret: false } })- , after: A => { const p = A('.stat', .2, 0), c = A('.stat', .86, .6); return clawd({ x: p.x, y: p.y, px: 6, arms: 'up', eyes: 'happy', legs: 'tuck' }) + SPARK(p.x - 90, p.y - 64, 5) + SPARK(p.x + 70, p.y - 76, 4) + CURSOR(c.x, c.y) + RING(c.x + 2, c.y + 3, 18); },- hud: `<div class="chap"><b>03</b>Review every change</div><div class="cap">Every edit shows up as a <em>diff</em>.</div>` }),- 8: () => ({ cam: [1330, 470, 1.45], world: appWin({ chat: USER, prompt: { mode: 'Accept edits', caret: false }, paneW: 900,- pane: { tabs: tabs('Diff'), body: `<div class="diff"><div class="files"><div class="on">theme.ts<span class="p">+12</span><span class="m">−1</span></div><div>Header.tsx<span class="p">+10</span><span class="m">−2</span></div><div>App.tsx<span class="p">+2</span></div></div>- <div class="code">${codeLines(THEME)}${codeLines([['+', ` <span class="k">const</span> initial = saved ?? <span class="s">'light'</span>;`, 'sel']], 6)}- <div class="cm"><div class="who">Your comment · line 6</div>Default to the system theme when nothing is saved.<div class="hint"><span class="kbd">⌘</span><span class="kbd">↵</span> submit</div></div>- ${codeLines([['+', ` <span class="k">return</span> <span class="f">useState</span>(initial);`], ['+', `}`]], 7)}</div></div>` } })- , after: A => { const p = A('.cm', .86, 0), c = A('.cm .hint', .78, .5); return clawd({ x: p.x, y: p.y, px: 5, eyes: 'l' }) + CURSOR(c.x, c.y); },- hud: `<div class="keys"><i>⌘</i><i>↵</i><span>send comments</span></div><div class="cap">Click any line, leave a note…</div>` }),- 9: () => ({ cam: [1330, 470, 1.45], world: appWin({ chat: USER, prompt: { mode: 'Accept edits', caret: false }, paneW: 900,- pane: { tabs: tabs('Diff'), body: `<div class="diff"><div class="files"><div class="on">theme.ts<span class="p">+13</span><span class="m">−1</span></div><div>Header.tsx<span class="p">+10</span><span class="m">−2</span></div><div>App.tsx<span class="p">+2</span></div></div>- <div class="code">${codeLines(THEME)}${codeLines([['+', ` <span class="k">const</span> system = <span class="f">matchMedia</span>(<span class="s">'(prefers-color-scheme: dark)'</span>);`],- ['+', ` <span class="k">const</span> initial = saved ??`, 'sel'], ['+', ` (system.matches ? <span class="s">'dark'</span> : <span class="s">'light'</span>);`, 'sel'], ['+', ` <span class="k">return</span> <span class="f">useState</span>(initial);`], ['+', `}`]], 6)}</div></div>` } })- , after: A => { const p = A('.code .l', .72, 0, 9); return clawd({ x: p.x, y: p.y, px: 5, eyes: 'happy', arms: 'up', legs: 'tuck' }) + BANG(p.x + 58, p.y - 96, 5) + SPARK(p.x - 80, p.y - 64, 4); },- hud: `<div class="cap">…and Claude revises it.</div>` }),- 10: () => ({ cam: [1350, 520, 1.12], world: appWin({ chat: USER + `<div class="a"><div class="tool"><span class="g">▶</span><b>Preview</b><code>npm run dev</code> · localhost:5173</div>- <div class="tool"><span class="g">◉</span><b>Click</b><code>button[aria-label="Toggle dark mode"]</code></div><div class="tool"><span class="g">▣</span><b>Screenshot</b> · contrast OK</div>- <p style="margin-top:10px">Verified: the toggle works and the choice survives a reload.</p></div>`, prompt: { mode: 'Accept edits', caret: false }, paneW: 860,- pane: { tabs: tabs('Preview'), body: `<div class="url">⟳ localhost:5173</div>${tomatoApp('light')}- <div style="position:absolute;inset:48px 0 0 0;clip-path:circle(640px at 812px 34px)">${tomatoApp('dark').replace('class="app dark"', 'class="app dark" style="inset:0"')}</div>` } })- , after: A => { const p = A('.tg', .5, 0); return clawd({ x: p.x, y: p.y, px: 5, legs: 'tuck', eyes: 'happy', squash: .22 }) + SPARK(p.x - 70, p.y - 44, 4) + SPARK(p.x + 48, p.y - 54, 4)- + `<div style="position:absolute;left:${p.x - 260}px;top:${p.y + 70}px;background:#1F1E1C;color:#fff;border-radius:10px;padding:8px 14px;font-size:14px;font-weight:600;box-shadow:0 8px 20px rgba(0,0,0,.2)">▣ Screenshot · contrast OK</div>`; },- hud: `<div class="chap"><b>04</b>It checks its own work</div><div class="cap">Then it runs your app in the <em>preview</em> and clicks through it.</div>` }),- 11: () => ({ cam: [960, 548, 1], world: `<div class="win" style="left:${WIN.x}px;top:${WIN.y}px;width:${WIN.w}px;height:${WIN.h}px">- <div class="tbar"><div class="lights"><i></i><i></i><i></i></div><div class="seg"><span>Chat</span><span>Cowork</span><span class="on">Code</span></div></div>- <div class="body">${sidebar([['Dark mode toggle', 1, 1], ['Fix flaky timer test', 1, 1], ['Update README', 0, 1]])}<div class="main">- <div class="chat" style="border-right:1px solid var(--line)"><div class="ph2" style="height:46px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 18px;font-weight:600;font-size:14px;background:var(--ivory)">Dark mode toggle</div>- <div class="msgs"><div class="u">Now open a pull request</div><div class="a"><div class="tool"><span class="g">⎇</span><b>PR #42</b> Add dark mode toggle</div></div></div>- <div class="ci"><span class="ok">✓ 6 checks passed</span><span style="margin-left:auto">Auto-merge</span><span class="tog"></span></div></div>- <div class="chat"><div class="ph2" style="height:46px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 18px;font-weight:600;font-size:14px;background:var(--ivory)">Fix flaky timer test</div>- <div class="msgs"><div class="u">The timer test fails one run in ten. Find out why.</div><div class="a"><div class="tool"><span class="g">$</span><b>Run</b><code>npm test -- --repeat 50</code></div></div></div>- <div class="term">$ npm test -- --repeat 50-<span class="ok">✓</span> timer › counts down <span class="dim">(50/50)</span>-<span class="ok">✓</span> timer › pauses and resumes <span class="dim">(50/50)</span>-<span class="ok">42 passed</span> <span class="dim">· 0 flaky</span></div></div></div></div></div>`- , after: A => { const a = A('.ci', .55, 0), b = A('.term', .78, 0), c = A('.side .sess', .82, 1, 2), n = A('.newbtn', .22, .55); return clawd({ x: a.x, y: a.y, px: 6, eyes: 'happy', arms: 'up', legs: 'tuck' }) + clawd({ x: b.x, y: b.y, px: 6, eyes: 'l', legs: 'walkA' }) + clawd({ x: c.x, y: c.y, px: 4, eyes: 'l', legs: 'walkB' })- + CURSOR(n.x, n.y) + RING(n.x + 2, n.y + 3, 18); },- hud: `<div class="keys"><i>⌘</i><i>N</i><span>new session</span></div><div class="cap">Start another session. They work <em>side by side</em>.</div>` }),- 12: () => ({ cam: [960, 540, 1], world: `<div style="position:absolute;inset:0;background:var(--ivory)"></div>`- + clawd({ x: 960, y: 520, px: 16, eyes: 'happy', arms: 'up', legs: 'tuck' }) + SPARK(760, 330, 9) + SPARK(1130, 300, 7) + SPARK(1190, 470, 5, CLAY),- hud: `<div class="title" style="top:580px"><div style="font-family:News;font-size:76px;font-weight:350;letter-spacing:-.02em">Say it. Plan it. Review it. <i style="color:var(--clay2)">Ship it.</i></div>- <div style="font-size:24px;color:var(--mute);margin-top:18px;font-weight:500">Claude Code · in the Claude app</div>- <div style="font-size:15px;color:#A9A59B;margin-top:120px">LemoLab × Claude Opus 5.5 · Unofficial fan film · Fonts: Inter, Newsreader, JetBrains Mono (OFL)</div></div>` }),-};--const world = document.getElementById('world'), hud = document.getElementById('hud');-const bgDesk = `<div id="wall"></div><div id="menubar"><b>Claude</b><span>File</span><span>Edit</span><span>View</span><span>Window</span><span>Help</span><span class="r"><span>⌁</span><span>Fri 9:41</span></span></div>`;-window.render = n => {- const s = S[Math.round(n)](), [cx, cy, z] = s.cam;- world.innerHTML = bgDesk + s.world; hud.innerHTML = s.hud;- world.style.transform = `translate(960px,540px) scale(${z}) translate(${-cx}px,${-cy}px)`;- // 元素上某点(fx,fy 为比例)的世界坐标:屏幕坐标反解镜头- const A = (sel, fx = .5, fy = 0, i = 0) => { const r = world.querySelectorAll(sel)[i].getBoundingClientRect();- return { x: (r.left + r.width * fx - 960) / z + cx, y: (r.top + r.height * fy - 540) / z + cy }; };- if (s.after) world.insertAdjacentHTML('beforeend', s.after(A));-};-document.fonts.load('16px Inter').then(() => Promise.all([document.fonts.load('40px News'), document.fonts.load('italic 40px News'), document.fonts.load('14px Mono')]))- .then(() => { render(+(new URLSearchParams(location.search).get('shot') || 1)); window.READY = true; });-</script></body></html>diff --git a/styles/living-screencast/style.json b/styles/living-screencast/style.jsonnew file mode 100644index 0000000..cef5a86--- /dev/null+++ b/styles/living-screencast/style.json@@ -0,0 +1,18 @@+{+ "slug": "living-screencast",+ "num": "46",+ "en": "Living Screencast",+ "cn": "活体实机录屏",+ "category_en": "Information & Keynote",+ "category_cn": "信息与发布",+ "film": "Clawd Moves In",+ "line": "Clawd, the Claude Code pixel mascot, hops out of the terminal into the Claude app and acts out plan mode, diff comments and self-checks in a one-take screencast.",+ "line_cn": "像素小人 Clawd 跳出终端、搬进 Claude 应用,在一镜到底的录屏里演示 Plan 模式、diff 评论和自检。",+ "uses": [+ "Product tutorials",+ "Feature launches",+ "Onboarding"+ ],+ "frame_sec": 5.94,+ "dur": 59.4+}diff --git a/styles/lowpoly-island/DEMO.md b/styles/lowpoly-island/DEMO.mdnew file mode 100644index 0000000..a99dd54--- /dev/null+++ b/styles/lowpoly-island/DEMO.md@@ -0,0 +1,87 @@+# Low-poly Isometric Island — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *The Island That Grew* (53 s) · `lowpoly-island.mp4` · source in [`demo/`](demo/)+++## Story & structure++An empty sea with only a buoy that knows one note; tiles, trees and houses rise from the sea one by one, each landing with a note, so the island and its song are written together — until at night the boat that went out cannot find its way home, and the last "note" is a lighthouse.++We read the brief as: **a small world that grows, lives through a day, and meets one problem that the final piece solves** — one subject (an island), one goal (to become a home), one turn (night falls, the boat is lost). In the old guide this was offered as the way to adapt any topic; it is only this film's shape.++Emotional arc (53 s): emptiness → first note → accelerating joy of building → a lived-in day → dusk warmth → silent night with one thing missing → the final piece ignites (climax) → pull back to scale, with an echo of the opening.++Native powers spent: procedural growth (the whole first act), the orthographic gaze (the final ×25 zoom), turntable (the growth shot), flat shading × light (the day time-lapse), emissive blocks (windows at dusk, the beam at night).++**"Building is composing", as the demo paid it off:** every growth event is exported from the page with a MIDI note, and the score's melody voice is synthesized from those events. The lighthouse beam turns once every 12 beats and passes one ring cell per beat; the eight houses standing on those cells light up and chime as it passes, so the notes laid down in a shuffled build order are replayed in **spatial order** as the complete theme. The second ring around the centre cell has 12 cells at exactly 30° steps, which made this beat-synced sweep possible.++## Shots++| Beat | Camera | Why |+|---|---|---|+| Opening | Close ortho (frustum 7.5) on one lonely object, empty faceted sea, sky band at the top | Give the viewer nothing to look at; the first tile then becomes an event |+| Growth | Turntable (azimuth +45° over ~5 s) with a slow zoom-out, **intercut** on beats with close-ups: a peak rising with a splash (elevation 23°, frustum 5.2), floors stacking (26°, 6), dock planks and the boat drop (27°, 6.6) | Wide shots show the shape growing; close-ups sell the bounce and the splash |+| Day | Medium on the village, sun sweeping 100° in 2.5 s (time-lapse shadows) | Light is the time machine |+| Departure | Side angle computed from the dock direction, camera trails the boat | The boat must move across the frame, not toward the lens |+| Dusk | Fixed 3/4 wide, slow push, windows light one per eighth note | Let the lights be the only motion |+| Night | Very wide, elevation 21°, island lower left, one tiny light far out in the dark | Negative space = danger |+| Climax | High angle (50°) turning at 0.22× the beam speed, then easing down to 25° so the starry sky "rises" | You must see the beam sweep over every house; then the sky opens up |+| Ending | Pure orthographic zoom ×25; an echo object far away in the lower right | Scale reveal and echo |++Camera settings used: azimuth 45° by default, elevation **30°** (build), **33–35°** (day detail), **20–25°** (night — a lower angle widens the sky band so stars show), **50°** (top-down-ish when the beam sweeps). Frustum height 5–7 for close-ups, 12–16 for the whole island, up to 420 for the final scale reveal.++## Score structure++- **Event-driven**: page `EV` entries carry `note`; `music/score.py` synthesizes every one at its exact time (rise → marimba, pop → kalimba, floor → woodblock, roof → kalimba+marimba = the melody, window → soft kalimba, ring → rising marimba, beamhit → kalimba lead + marimba octave + bell shimmer). Underneath: ambient pad, a gentle marimba ostinato and shaker/soft kick only in the day and climax sections. **96 BPM, D major pentatonic feel.** No piano, no strings.+- **One note as a motif**: a buoy bell on D5 opens the film ("the only note the sea knows") and a distant bell plays the same note at the end.+- **Silence**: the night section drops to a low pad drone, waves and crickets; the music bus is digital zero for the last half-beat before the climax downbeat.+- Growth scheduled on the 16th grid: tiles on halves → quarters → eighths.+- The boat's answering bell sits in a rest of the melody, filling the gap when the beam finds it.+- **Foley** (`mix.py`): as in STYLE.md §7, plus gulls by day (downward-gliding FM chirps), windmill creak, crickets from dusk; the dock plank knock and lighthouse-ring stone thunk, glass tink for the lamp room, whump + hum on ignition. Floors: second knock 0.21 s after the first.+- **Voice**: Kokoro `af_sky` (clear, gentle female), speed 0.86–0.92, 5 short lines. "Sea" was heard as "C" in a film about notes, so the narration says "ocean".+- **Mix**: voice compressed, ~10 dB over the music; music ducked −8 dB under the voice; −14 LUFS; grain 0.++## Palette & props++- **Terrain heights**: sand 0.36–0.42, grass 0.74–0.9, hills 1.1–1.4, rock peak 1.95; top cap 0.16 thick, side column sunk 0.1 below it; 1.5 % gap between tiles; lightness jitter ±4 %; roughness .88.+- **Props**: box houses 0.92 wide, 0.62 per floor, gable roof prism (overhang 0.08) with wall-coloured gable ends; windows = small quads with their own emissive material per house; cone pines (6 sides), icosahedron (detail 0) broadleaf trees, 3-sided-cone palm fronds; windmill (6-sided tapered tower, 4 blades); dock planks on posts; a boat from a pinched box hull + triangle sail; lighthouse = 4 tapered 8-sided rings alternating white/red + dark gallery + emissive glass + red cone cap. Three gulls circle; chimney smoke; the windmill spins up on the "island complete" chord.+- **Palette (sRGB)**: sand top `#f3dfab` / side `#e2c68e`; grass `#93c96c`, `#7fbd62`; earth side `#c99c6e`; rock `#b4b8bd` / `#8f949c`; walls `#fbf3e6 #f5c2b0 #b5dccb #a9cbe8 #f7df8f #e9c9e6`; roofs `#d9644a #4f7fb8 #e0874f #6a5a8e #3f8f86`; pines `#3f8a5a #4f9c63`; leaves `#7fc36a #9ad06f`; warm windows `#ffc676`; lighthouse `#f6f2ea` / `#d9544a`.+- **Day/night keyframes** (zenith / horizon / deep sea / shallow / sun): dawn `#9fb6cf / #f3d2c4 / #4f8ea3 / #8fc9c4`; day `#88c8e8 / #eaf5f2 / #38a5bc / #86e2d4` sun 2.7; dusk `#6f6fa8 / #ffa888 / #5a6a9e / #b08aa6` sun `#ff9a68` elevation 8°; night `#12163a / #4a4478 / #23264a / #363a66`, moon `#a9b0e8` 0.9. Night sea darker near the camera and brightening toward the sky band.+- **Sea**: 220×220 plane, 200×200 segments, four summed sines (amplitude ≈ 0.2), roughness 0.55; coarse 5000-unit plane 0.55 below; lagoon map a 512² canvas of soft blobs where tiles have risen; surf ring 0.99–1.12 r, opacity ≈ 0.32.+- **Arrival numbers**: rise 0.5 s cubic ease, overshoot `sin(13 s)·e^(−7 s)·0.18`, hex splash ring + 14 droplets 0.12 s before it settles. Drop: 2.4 units in 0.22 s (ease-in), bounce `|sin(15 s)|·e^(−9 s)·0.22`, squash `1 − 0.16·e^(−12 s)·cos(26 s)` on Y, volume preserved. Pop: `1 − e^(−9 s)·cos(17 s)`.+- **Post**: GTAO radius 0.7, scale 1.5; tilt-shift max radius 3 px at the frame edges; bloom threshold 0.95, strength 0.22 day / 0.5 night; grade sat 1.04–1.1, soft contrast, small blue lift at night; render 3840×2160.+- **Lighthouse beam**: camera-facing ribbon, halo 2.4× wider at 0.32 strength, tilted 7° down so it meets the sea far away; water lit by an angular band around the beam direction plus per-facet sparkles. Beam: one turn every 12 beats.+- **Subtitles as built**: Quicksand 600, 44 px, `#fffdf8`, navy drop shadow (blur 14), centred 118 px above the bottom; the hex icon (top + two side faces) is dawn pink, day grass, dusk orange, night window-yellow. Shown from 0.05 s before the line.+- **Title**: Josefin Sans 600, all caps, 78 px, 16 px tracking; letters rise 55 ms apart from under a thin water line; 300-weight lowercase sub-line ("a low-poly island film").++## End card++The night scale-reveal frame, darkened; the same title block (static), hex icon, `LOW-POLY ISLAND · LEMO-OPUSCAR`, `LemoLab × Claude Opus 5.5`, credits, laid out so the tiny lit island stays visible in a gap between the text blocks. The "LemoLab × Claude Opus 5.5" sign-off (and the LEMO-OPUSCAR line) belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/lowpoly-island/demo/+ story.js timeline (96 BPM grid), VO, chords, day/night keyframes, shots+ world.js hex layout, all props, growth schedule → EV (with notes), per-frame animation+ sea.js faceted wave shader, shallow-lagoon map, beam-lit water+ post.js ortho post: GTAO → sky/haze + stars → tilt-shift → bloom → grade+ main.js renderer, lights, cameras per shot, HUD (title, subtitles, end card), EV export+ music/score.py event-driven score (+ check.py: librosa onset/pitch check vs events)+ mix.py foley + ambience + voice + ducking subs.py subtitle cues+ build.sh one-command rebuild+```++1. `node core/render/still.mjs styles/lowpoly-island/demo --range 0.5:52.5:1` + `core/render/sheet.py` — overview sheets, iterate.+2. `core/tts/tts.py lines.json voices` → `core/tts/asr_check.py` until all OK.+3. `node core/render/events.mjs styles/lowpoly-island/demo` → `music/score.py` → `music/check.py` → `mix.py`.+4. `node core/render/video.mjs styles/lowpoly-island/demo --fps 24 --workers 3` (1272 frames, 2× SSAA + GTAO).+5. `sh core/render/mux.sh out/video24.mp4 mix.wav lowpoly-island.mp4 24 0`. Or just `sh demo/build.sh`.++Pitfalls tied to this demo's props:++- An invisible glow sprite became a black parallelogram floating on the sea in the GTAO pass.+- The boat was 21 units out — off-screen when the beam found it. We derived the boat's position from the beam's angular speed so the beam finds it on a chosen beat (a rest in the melody, so the boat's answering bell fills the gap).+- Shadows on the sea at low sun made a long dark stain; the sea receives no shadows.diff --git a/styles/lowpoly-island/STYLE.md b/styles/lowpoly-island/STYLE.mdindex 2d5104f..775fa3a 100644--- a/styles/lowpoly-island/STYLE.md+++ b/styles/lowpoly-island/STYLE.md@@ -1,115 +1,110 @@# Low-poly Isometric Island — Style Prompt> A tiny faceted world seen through an orthographic isometric lens: everything is a geometric block, and everything that appears arrives with a bounce and a note.-> Demo: *The Island That Grew* (53 s) · `lowpoly-island.mp4` · source in `demo/`+> References (grammar only): *Townscaper* (building is the performance; every piece lands with a springy bounce and a sound; pieces sprout small details by themselves); *Monument Valley* (isometric geometry, soft pastel palettes, gradient skies, calm pacing, lots of empty space). Never copy their grids, buildings, characters, UI or typography, and never name them on screen.-You are directing a 30–60 second film in the **Low-poly Isometric Island** style. The user gives you a topic. You decide everything else — story, shots, timing, music, sound — and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not------## 1. What this style is--A miniature world built from **flat-shaded low-poly geometry** (hexagonal tile columns, box houses with gable roofs, cone pines, icosahedron trees) floating in a faceted sea, watched by an **orthographic camera** at an isometric angle. There is no perspective and no horizon: far water dissolves into a **screen-space sky gradient**, so the world looks like a model suspended in colour. Light, not texture, tells time — every facet changes colour as the sun moves, and at night the only colour left is warm windows and a lighthouse beam.+A miniature world built from **flat-shaded low-poly geometry** (hexagonal tile columns, box buildings with prism roofs, cone and icosahedron trees) floating in a faceted sea or void, watched by an **orthographic camera** at an isometric angle. No perspective and no horizon: distance dissolves into a **screen-space sky gradient**, so the world looks like a model suspended in colour. **Light, not texture, tells time**: every facet changes colour as the sun moves; in the dark only emissive blocks keep their colour.-Learned from: *Townscaper* (building is the performance; every piece lands with a springy bounce and sound; houses sprout cute details by themselves) and *Monument Valley* (isometric geometry, soft pastel palettes, gradient skies, calm pacing, lots of empty space). Do **not** copy their grids, buildings, characters, UI or typography. Never name them on screen.+Not a voxel game (no cubes-of-cubes, no pixel texture), not a tilt-shift photograph of a real place (no perspective, no photo detail), not a smooth-shaded 3D cartoon (no rounded normals, no subsurface).-## 2. Story: what fits this style+## 2. Materials & rendering-Pick stories where **the medium does the storytelling**. The style has five native powers — use at least three:+- **Geometry** (world unit = one hex tile's circumradius): pointy-top hexagonal columns (`CylinderGeometry(r, r, h, 6)`), axial → world `x = √3(q + r/2)`, `z = 1.5 r`. Terrain height encodes material (sand low, grass, hills, rock highest). A thin separate top cap sits over a darker side colour; **sink the side column's top below the cap** or it z-fights. Leave a small gap between tiles so AO draws the seams.+- **Props** are primitive assemblies: boxes, prisms, low-segment cylinders and cones, icosahedra at detail 0, pinched boxes. Emissive parts (windows, lamps) get their own material per object so they can light individually.+- **Materials**: `MeshStandardMaterial({ flatShading: true, roughness ≈ .9 })`, **no textures**. Jitter each tile's lightness a few percent so the ground isn't a spreadsheet.+- **Water** (if any): a dense non-indexed plane displaced by summed sines in the shader, flat-shaded so each triangle glints on its own (not too low a roughness or facets flash white); a coarse plane below for zoom-outs; a **shallow map** redrawn per frame where land exists, mixing deep → shallow colour with a faint foam rim; a thin transparent ring at each tile's water line for surf.+- **Sky without a horizon**: in post, linearise the orthographic depth and blend distant pixels into a vertical screen gradient; set haze start/end as fractions of frustum height × cot(elevation) so the horizon band stays in the top third at any zoom. Stars (hash grid, twinkle) only where haze is thick.+- **Post**: MSAA + depth → **GTAO** (mandatory: it draws the seams between tiles and under roofs) → sky/haze composite → a very light tilt-shift at the frame edges → bloom (stronger at night) → pastel grade → Neutral tone mapping. Supersample 2×.+- **Light beams** (searchlight, projector, torch): a camera-facing ribbon with a Gaussian profile, bright at the root and fading with distance, plus a wider faint halo copy; light the surface under it in its own shader.-| Native power | Story use |-|---|---|-| **Procedural growth** — tiles rise from the sea, floors stack with an elastic landing, trees pop | The plot is something growing. Each growth event = one sound = one musical note. |-| **The orthographic gaze** — no vanishing point, the world reads as a table-top model | Scale reveals by pure zoom: start with one object filling the frame, end with the whole world as a speck. |-| **Turntable rotation** | A continuous rotating shot shows the thing being built from every side. |-| **Flat shading × light direction** | Day/night cycles and time-lapses without any texture work: shadows sweep, facets re-colour. |-| **Emissive blocks in the dark** | Lights coming on one by one; a beam sweeping over the world like a clock hand or a music-box comb. |+## 3. Colour logic-**Signature move (from the demo): "building is composing."** Every growth event is exported from the page with a MIDI note; the score's melody voice is synthesized directly from those events, so the picture literally writes the tune. Pay it off: in the demo a lighthouse beam turns once every 12 beats and passes one ring cell per beat; the eight houses standing on those cells light up and chime as it passes, so the notes that were laid down in a shuffled build order are replayed in **spatial order** as the complete theme. Any topic can use this: a city skyline whose floors are notes, a garden whose flowers are a chord, a product assembled part by part.+- **Pastel, low contrast, a handful of hues**: one ground family (sand/grass/earth or its equivalent), one neutral rock, and a small set of wall and roof colours repeated across buildings.+- **Time of day is a keyframed set of colours** (zenith, horizon, deep, shallow, sun colour, intensity, elevation, azimuth), interpolated. Day is airy and cool; dusk warms the horizon; night desaturates everything toward blue-violet.+- **At night, warm emissives are the only bright things** (windows, lamps, a beam). Keep the sun sideways to the camera in key shots (low sun behind the target turns faceted water into glare); water receives no shadows.+- No outlines, no black; shadows and AO are the only darks.-Adapting any topic: turn it into **a small world that grows, lives through a day, and meets one problem that the final piece solves**. Keep it to one subject (an island, a town, a garden), one goal (to be complete / to become a home), one turn (night falls, something is missing / someone is lost).+Examples of world palettes: sand, grass and coral roofs under a pale-blue day; snow tiles, pine greens and red cabins under a lilac sky; terracotta mesas, sage scrub and turquoise pools under an apricot dusk.-**Emotional arc for 45–55 s:** emptiness → first note → accelerating joy of building → a lived-in day → dusk warmth → silent night with one thing missing → the final piece ignites (climax) → pull back to scale, with an echo of the opening.+## 4. Type & subtitles-## 3. Visual language+- Geometric OFL sans faces: a rounded one for subtitles (e.g. Quicksand 600), a geometric caps face with wide tracking for titles (e.g. Josefin Sans).+- **Subtitles**: no box; warm white with a soft dark-blue drop shadow, centred low; a small flat-shaded tile icon beside them whose top colour follows the time of day. Hold ≥ max(1.8 s, speech + 0.6 s), never overlapping the next line or a title.+- **Titles behave like tiles**: letters rise one by one from under a water line, overshoot and settle.+- A text card over the world leaves a gap where the world stays visible.-- **Camera**: `THREE.OrthographicCamera`, azimuth 45° by default, elevation **30°** (build), **33–35°** (day detail), **20–25°** (night — a lower angle widens the sky band so stars show), **50°** (a top-down-ish view when something sweeps across the world). Frustum height is the "zoom": 5–7 units for close-ups, 12–16 for the whole island, up to 420 for the final scale reveal. Place the camera far enough away (distance ≥ 3 × frustum height) or the bottom of the frame looks under the sea.-- **Geometry** (world unit = one hex tile's circumradius): pointy-top hexagonal columns (`CylinderGeometry(r, r, h, 6)`), axial → world `x = √3(q + r/2)`, `z = 1.5 r`. The second ring around a centre cell has 12 cells at exactly 30° steps, which is handy for rotating/beat-synced ideas. Heights: sand 0.36–0.42, grass 0.74–0.9, hills 1.1–1.4, rock peak 1.95. A separate 0.16-thick top cap (grass/sand) sits over a darker side colour; **sink the side column's top 0.1 below the cap** or you get z-fighting. Leave a 1.5 % gap between tiles so AO draws seams.-- **Props**: box houses 0.92 wide, 0.62 per floor, gable roof prism (overhang 0.08) with wall-coloured gable ends; windows are small quads with their own emissive material per house; cone pines (6 sides), icosahedron (detail 0) broadleaf trees, 3-sided-cone palm fronds; windmill (6-sided tapered tower, 4 blades); dock planks on posts; a boat from a pinched box hull + triangle sail; lighthouse = 4 tapered 8-sided rings alternating white/red + dark gallery + emissive glass + red cone cap.-- **Materials**: `MeshStandardMaterial({ flatShading: true, roughness: .88 })`, no textures at all. Jitter each tile's lightness ±4 % so the ground isn't a spreadsheet.-- **Palette (sRGB)**: sand top `#f3dfab` / side `#e2c68e`; grass `#93c96c`, `#7fbd62`; earth side `#c99c6e`; rock `#b4b8bd` / `#8f949c`; walls `#fbf3e6 #f5c2b0 #b5dccb #a9cbe8 #f7df8f #e9c9e6`; roofs `#d9644a #4f7fb8 #e0874f #6a5a8e #3f8f86`; pines `#3f8a5a #4f9c63`; leaves `#7fc36a #9ad06f`; warm windows `#ffc676`; lighthouse `#f6f2ea` / `#d9544a`.-- **Sea**: a 220×220 plane with 200×200 segments, non-indexed, vertex-displaced by four summed sines (amplitude ≈ 0.2) in `onBeforeCompile`, `flatShading` so each triangle glints on its own (roughness 0.55 — lower and the facets flash white). A coarse 5000-unit plane 0.55 below covers the zoom-out. **Shallow lagoon**: a 512² canvas redrawn every frame with soft blobs where tiles have risen, sampled by the water shader to mix deep → shallow colour and a faint foam rim — the lagoon grows with the island. A narrow white hex ring (0.99–1.12 r, opacity ≈ 0.32) at each tile's water line = surf.-- **Sky without a horizon**: in post, linearise the orthographic depth and blend distant pixels into a vertical screen gradient (horizon colour → zenith colour). Haze start/end are set as fractions of the frustum height × cot(elevation), so the "horizon band" stays in the top third at any zoom. Stars (hash grid, twinkle) appear only where haze is thick.-- **Day/night keyframes** (zenith / horizon / deep sea / shallow / sun colour & intensity / sun elevation & azimuth): dawn `#9fb6cf / #f3d2c4 / #4f8ea3 / #8fc9c4`; day `#88c8e8 / #eaf5f2 / #38a5bc / #86e2d4` sun 2.7; dusk `#6f6fa8 / #ffa888 / #5a6a9e / #b08aa6` sun `#ff9a68` elevation 8°; night `#12163a / #4a4478 / #23264a / #363a66`, moon `#a9b0e8` 0.9. Night sea is desaturated blue-violet, darker near the camera and brightening toward the sky band, so warm windows and the beam are the only bright things.-- **Post** (`demo/post.js`): scene with MSAA + depth → GTAO (radius 0.7, scale 1.5; mandatory, it draws the seams between tiles and under roofs) → sky/haze composite → very light tilt-shift (max radius 3 px at the frame edges, a miniature feel) → bloom (threshold 0.95, strength 0.22 day / 0.5 night) → pastel grade (sat 1.04–1.1, soft contrast, small blue lift at night) → NeutralToneMapping. Supersample 2× (render 3840×2160).-- **Lighthouse beam**: a camera-facing ribbon (its plane contains the beam axis and turns toward the camera each frame), Gaussian across its width, bright at the root and fading with distance, plus a 2.4× wider, 0.32-strength halo copy for volume; tilted 7° down so it meets the sea far away. The water under it is lit in the sea shader: an angular band around the beam direction plus per-facet sparkles.+## 5. Motion quality-## 4. Motion language+- On ones (24 fps), smooth. The charm is in the **arrival curves**, not stepping.+- **Rise from below**: a short cubic ease up, then a damped-sine overshoot; a splash ring and spray the moment it breaks the surface. The event time is when it settles.+- **Drop and stack** (floors, roofs, rings): a fast ease-in fall, a damped bounce, and volume-preserving squash-and-stretch on landing.+- **Pop** (trees, lamps, details): scale `1 − e^(−k s)·cos(ω s)`, about 25 % overshoot.+- **Life**: mills turn, smoke puffs, birds circle, boats bob with the same wave function as the water (evaluated on the CPU).+- **Schedule growth on the music grid**: at most one piece per smallest slot, so every event keeps its own note; accelerate by density (halves → quarters → eighths), not by tempo.+- Never moves: the projection (no perspective, no fov change).-- Everything moves on ones (24 fps), smooth. The charm is in the **arrival curves**, not in stepping.-- **Rise from the sea** (tiles): 0.5 s cubic ease up from below the water, then `sin(13 s)·e^(−7 s)·0.18` overshoot; a hex splash ring and 14 spray droplets burst the moment it breaks the surface (0.12 s before it settles). The event time is the moment it settles.-- **Drop and stack** (floors, roofs, lighthouse rings): fall 2.4 units in 0.22 s (ease-in), land, bounce `|sin(15 s)|·e^(−9 s)·0.22`, squash-and-stretch `1 − 0.16·e^(−12 s)·cos(26 s)` on Y with volume preserved.-- **Pop** (trees, lamps, chimneys, flowers): scale `1 − e^(−9 s)·cos(17 s)` — about 25 % overshoot.-- **Life**: windmill spins up on the "island complete" chord; chimney smoke puffs; three gulls circle; the boat bobs and rolls with the same wave function as the sea (evaluated on the CPU).-- **Schedule growth on the music grid**: one piece per 16th-note slot at most, so every event has its own note; tiles on halves → quarters → eighths (accelerando by density, not tempo).+## 6. Camera grammar-## 5. Camera language+`THREE.OrthographicCamera`. **Frustum height is the zoom** (a few units for a close-up, the whole world at a dozen or more, hundreds for a scale reveal); place the camera ≥ 3 × frustum height away or the bottom of the frame looks under the sea. A vocabulary, not a route. Opening and ending come from the topic.-| Beat | Camera | Why |+| Move | What it expresses | Can serve ||---|---|---|-| Opening | Close ortho (frustum 7.5) on one lonely object, empty faceted sea, sky band at the top | Give the viewer nothing to look at; the first tile then becomes an event |-| Growth | Turntable (azimuth +45° over ~5 s) with a slow zoom-out, **intercut** on beats with close-ups: a peak rising with a splash (elevation 23°, frustum 5.2), floors stacking (26°, 6), dock planks and the boat drop (27°, 6.6) | Wide shots show the shape growing; close-ups sell the bounce and the splash |-| Day | Medium on the village, sun sweeping 100° in 2.5 s (time-lapse shadows) | Light is the time machine |-| Departure | Side angle computed from the dock direction, camera trails the boat | The boat must move across the frame, not toward the lens |-| Dusk | Fixed 3/4 wide, slow push, windows light one per eighth note | Let the lights be the only motion |-| Night | Very wide, elevation 21°, island lower left, one tiny light far out in the dark | Negative space = danger |-| Climax | High angle (50°) turning at 0.22× the beam speed, then easing down to 25° so the starry sky "rises" | You must see the beam sweep over every house; then the sky opens up |-| Ending | Pure orthographic zoom ×25; an echo object far away in the lower right | Scale reveal and echo |--## 6. Sound--- **Music is event-driven**: page `EV` entries carry `note`; the score script synthesizes every one at its exact time (rise → marimba, pop → kalimba, floor → woodblock, roof → kalimba+marimba = the melody, window → soft kalimba, ring → rising marimba, beamhit → kalimba lead + marimba octave + bell shimmer). Underneath: ambient pad, a gentle marimba ostinato and shaker/soft kick only in the day and climax sections. 96 BPM, D major pentatonic feel. **No piano, no strings.**-- **One note as a motif**: a buoy bell on D5 opens the film ("the only note the sea knows") and a distant bell plays the same note at the end.-- **Silence**: the night section drops to a low pad drone, waves and crickets; the music bus is digital zero for the last half-beat before the climax downbeat.-- **Foley follows material** (all synthesized in `demo/mix.py`): underwater bubble sweep + splash with droplet ticks for rising tiles (bigger = lower); wooden knock + a quieter second knock 0.21 s later (the bounce) for floors; ceramic clack for roofs; hollow plank knock for the dock; heavy stone thunk for lighthouse rings; glass tink for the lamp room; low "whump" + faint electric hum on ignition. Beds: low-passed brown-noise waves with slow swell and random laps, gulls by day (downward-gliding FM chirps), windmill creak, crickets from dusk.-- **Voice**: Kokoro `af_sky` (clear, gentle female), speed 0.86–0.92, 4–6 short lines. Avoid homophones that whisper (and listeners) confuse — "sea" was heard as "C" in a film about notes, so we said "ocean".-- Mix: voice compressed and ~10 dB over the music; music ducked −8 dB under the voice; loudness −14 LUFS; **grain 0** (flat colour shimmers with grain).--## 7. Subtitles & titles--- **Subtitles**: no box — Quicksand 600, 44 px, warm white `#fffdf8` with a soft navy drop shadow (blur 14), centred 118 px above the bottom; to the left, a tiny flat-shaded hex tile icon (top + two side faces) whose top colour follows the time of day (dawn pink, day grass, dusk orange, night window-yellow). Shown from 0.05 s before the line, at least 1.8 s and never shorter than the line + 0.6 s, never overlapping the next line or the title.-- **Title**: Josefin Sans 600, all caps, 78 px, 16 px tracking; letters rise one by one (55 ms apart) from under a thin "water line", overshoot and settle like tiles; a 300-weight lowercase sub-line ("a low-poly island film").-- **End card**: the night scale-reveal frame, darkened; same title block (static), hex icon, `LOW-POLY ISLAND · LEMO-OPUSCAR`, `LemoLab × Claude Opus 5.5`, credits. Lay it out so the tiny lit island stays visible in a gap between the text blocks.--## 8. Pitfalls we hit--- `core/three/post.js` uses `perspectiveDepthToViewZ` — wrong for an orthographic camera. Use `orthographicDepthToViewZ`.-- **GTAO draws sprites as solid quads** (it renders the scene with an override material): an invisible glow sprite became a black parallelogram floating on the sea. Hide every sprite/transparent object during the AO pass, and set `visible = false` on zero-opacity sprites.-- Tile side column and top cap sharing the same top plane → pixelated z-fighting patches. Sink the column.-- A double-sided additive cone for the beam reads as two parallel white lines. Use a camera-facing ribbon with a Gaussian profile plus a wide halo.-- An orthographic camera placed too close: at large zoom-outs the rays from the bottom of the frame start below the sea and show sky. Keep camera distance ≥ 3 × frustum height.-- Shadows on the sea at low sun made a long dark stain; the sea doesn't receive shadows.-- A low sun behind the camera's target turns the faceted sea into a pale sand-coloured glare; keep the sun sideways to the camera in key shots.-- The boat was 21 units out — off-screen when the beam found it. Derive the boat's position from the beam's angular speed so the beam finds it on a chosen beat (we used a rest in the melody, so the boat's answering bell fills the gap).+| Turntable (azimuth sweep) | the thing seen from every side | building; inspecting; a product assembled |+| Pure orthographic zoom (frustum change) | scale without perspective | a detail in context; smallness; a world among worlds |+| Elevation change | low (≈20–25°) widens the sky band; high (≈50°) reads as a map | night and stars; a sweep across the whole world; a plan |+| Locked 3/4 wide | the world lives on its own | lights coming on; time-lapse; waiting |+| Tight close-up on one arrival | the bounce and the splash | a key piece; a milestone; a gag |+| Side angle trailing a mover | travel across the frame, never at the lens | a delivery; a departure; a route |+| Lateral truck along a row of tiles | a list, a sequence | steps of a process; a timeline |+| Time-lapse sun sweep, camera still | light is the time machine | a day; a season; history |++Intercut wide and close on beats: wide shows the shape growing, close sells the bounce. Transitions: hard cuts on the beat, a time-of-day change, a zoom through the sky; no dissolves, no perspective whip-pans.++## 7. Sound palette++- **Music can be event-driven**: growth events carry a note, and the score synthesizes each one at its exact time, so the picture writes the tune. Pitched percussion suits the facets: marimba, kalimba, woodblock, bells, vibraphone, celesta, steel drum; underneath, a soft pad, a gentle ostinato, light shaker or soft kick. Pentatonic or modal material keeps any order of notes consonant. **No piano, no strings.**+- **A single note can be a motif**: one sound owned by the world (a bell, a chime, a horn) that returns changed.+- **Foley follows material**, all synthesizable: bubble sweep + splash with droplet ticks for rising tiles (bigger = lower); wooden knock plus a quieter bounce knock for floors; ceramic clack for roofs; hollow plank knock; heavy stone thunk; glass tink; a low whump with electric hum for anything switching on.+- **Beds**: low-passed brown-noise water with swells, birds as downward-gliding FM chirps, creaking wood, crickets or wind at night.+- **Silence**: drop to a low drone and a bed; a moment of digital zero on the music bus before a big downbeat. Options: thin the ostinato to one voice instead of stopping it; let the world's own events carry the rhythm for a passage.+- **Voice**: clear and gentle, few short lines; avoid words that collide with the film's subject (a film about notes: "sea" heard as "C").+- **Mix**: voice compressed and well above the music, music ducked under it, −14 LUFS; **grain 0** (flat colour shimmers with grain).++## 8. Native moves++A menu: use the ones your story needs.++- **Building is composing**: every piece that lands plays a note; a later sweep can replay them in spatial order as a finished melody. *Fits content like:* a skyline whose floors are notes; a team assembling a product; a garden whose flowers form a chord.+- **Procedural growth**: tiles rise, floors stack, trees pop. *Fits content like:* a startup's first year; a coral reef recovering; a neighbourhood being planned.+- **Scale by pure zoom**: one object fills the frame, then the world becomes a speck (or the reverse). *Fits content like:* one user among millions; a village on a continent; a data centre inside a network.+- **Turntable**: a continuous rotation around the thing being made. *Fits content like:* a machine being assembled; a museum object; a house renovation.+- **Light as clock**: shadows sweep and facets re-colour. *Fits content like:* a day of a shop; a year of a farm; a shift at a hospital.+- **Emissive blocks in the dark**: lights coming on one by one, a beam sweeping like a clock hand. *Fits content like:* a network going live; a town at nightfall; volunteers joining a cause.++## 9. Pitfalls of the medium++- `perspectiveDepthToViewZ` in shared post code is wrong for an orthographic camera → `orthographicDepthToViewZ`.+- GTAO renders sprites and transparent objects as solid quads → hide them during the AO pass; set `visible = false` at zero opacity.+- Side column and top cap sharing one plane → z-fighting → sink the column.+- A double-sided additive cone reads as two white lines → a camera-facing Gaussian ribbon + halo.+- Camera too close for its frustum → the frame bottom shows below the sea → distance ≥ 3 × frustum height.+- Two pieces landing in one grid slot muddy the melody → one piece per slot.- `half` is a reserved word in GLSL.-- Do all growth scheduling on a 16th grid with one piece per slot; two pieces landing in the same slot muddied the melody.--## 9. Production recipe (this repo)--```-styles/lowpoly-island/demo/- story.js timeline (96 BPM grid), VO, chords, day/night keyframes, shots- world.js hex layout, all props, growth schedule → EV (with notes), per-frame animation- sea.js faceted wave shader, shallow-lagoon map, beam-lit water- post.js ortho post: GTAO → sky/haze + stars → tilt-shift → bloom → grade- main.js renderer, lights, cameras per shot, HUD (title, subtitles, end card), EV export- music/score.py event-driven score (+ check.py: librosa onset/pitch check vs events)- mix.py foley + ambience + voice + ducking subs.py subtitle cues- build.sh one-command rebuild-```--1. `node core/render/still.mjs styles/lowpoly-island/demo --range 0.5:52.5:1` + `core/render/sheet.py` — overview sheets, iterate.-2. `core/tts/tts.py lines.json voices` → `core/tts/asr_check.py` until all OK.-3. `node core/render/events.mjs styles/lowpoly-island/demo` → `music/score.py` → `music/check.py` → `mix.py`.-4. `node core/render/video.mjs styles/lowpoly-island/demo --fps 24 --workers 3` (1272 frames, 2× SSAA + GTAO).-5. `sh core/render/mux.sh out/video24.mp4 mix.wav lowpoly-island.mp4 24 0`. Or just `sh demo/build.sh`.++## 10. Engine++In `demo/` (three.js): `world.js` (hex layout, primitive props, growth schedule → events with notes, arrival curves), `sea.js` (faceted wave shader, shallow map, beam-lit water), `post.js` (ortho post: GTAO → sky/haze + stars → tilt-shift → bloom → grade), `story.js` (beat grid, time-of-day keyframes, shots), `main.js` (renderer, lights, per-shot cameras, HUD, event export), `music/score.py` (event-driven score; `music/check.py` compares audio onsets and pitches with the events), `mix.py` (foley, beds, ducking). File map and build steps: DEMO.md.++## 11. Variation space++You decide the world (island, town, orchard, factory floor, planet), what grows or changes, the palette within the colour logic, the opening, the ending, the camera path and the pacing. All far from our demo:++- Structures: **erosion** (a finished world loses pieces one by one, each removal a falling note, until only the essential piece remains); **two worlds** side by side trading pieces across a gap until they join; **a year in four seasons** on one fixed world, the palette keyframes carrying the story.+- Openings: **mid-construction** (a busy half-built world, many pieces already dropping); **from above** (a top-down map that tilts down into isometric); **the full world first**, then a push into one tile where the story lives.+- Endings: **a close-up on one final piece** landing, no pull-back; **the world packed away** (pieces fly up and stack into a box); **daylight** (dawn floods the world and the music resolves on the first sunlit facet).++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/lowpoly-island/TREATMENT.md b/styles/lowpoly-island/TREATMENT.mddeleted file mode 100644index 6c3ebc3..0000000--- a/styles/lowpoly-island/TREATMENT.md+++ /dev/null@@ -1,155 +0,0 @@-# Low-poly Isometric Island · 导演方案(Treatment)--**片名** *The Island That Grew*-**时长** 约 53 秒(风格说明建议 40 秒,理由见第八节)| **画幅** 1920×1080 | **帧率** 24fps 输出,全部运动每帧平滑(程序化生长靠弹性曲线,不做步进)-**维度** 3D(three.js,flat shading,正交等距相机)-**一句话** 一片空海里只有一只浮标会响一个音;海底一块一块升起地块、树和房子,每放下一块就响一个音,岛长成了,歌也写成了——直到夜里,出海的小船找不到家,最后一块"音符"是灯塔。-**声线** Kokoro `af_sky`(清亮女声),5 句旁白-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么 | 刻意不学 |-|---|---|---|-| **Townscaper** | "点一下长一块"的建造快感:每一块落定都有弹性回弹和声音;建筑自动长出可爱细节(屋顶、烟囱、窗);**建造本身就是表演**,不需要角色 | 不做它的不规则四边形网格、不做它的运河城市造型和彩色墙面排列;不用它的点击光标 UI |-| **Monument Valley** | 正交等距视角的几何美、柔和低对比的粉彩配色、整块渐变天空作背景(场景像悬在色彩里)、安静克制的节奏和留白 | 不做不可能几何 / 视错觉、不做它的白衣小人与神庙建筑、不用它的字体设计 |-| **低多边形岛屿插画**(通用语法) | 平面着色的切面在光里一格一格闪、海面三角网格起伏、浅滩一圈亮色泻湖、白色浪花环 | — |--从两者合起来提炼的**核心语法**:*一个被正交相机凝视的小世界,一切都是几何块,一切出现都带弹性和声音。*--## 二、为什么这个故事适合这个媒介(原生能力 → 故事用法)--| 低多边形等距岛的原生能力 | 本片怎么用 |-|---|---|-| **程序化生长**:地块从海里升起、楼层一层层弹性堆叠、树"啵"地长出 | 整个第一幕就是生长。每一块 = 一个音符 = 一个拟音 |-| **正交等距 = 微缩模型的凝视** | 没有透视消失点,岛像桌上的模型;结尾正交放大缩小(zoom)做尺度揭示,岛在大海里缩成一粒 |-| **转盘旋转** | 生长全程是一个不剪的转盘长镜头(绕岛 90°),观众看着岛从各个角度长全 |-| **平面着色 + 光向** | 日夜循环时,每个切面随太阳角度一格格变色、影子扫过全岛(延时摄影),不用任何贴图就能讲时间 |-| **发光块在暗场里** | 黄昏窗户一盏盏亮(每盏一个音),夜里灯塔的光束像八音盒的拨片扫过全岛 |--## 三、情绪弧与结构--一个主体(岛)、一个目标(把歌写完 / 长成一个家)、一次转折(夜里小船迷路,歌缺最后一个音)。--| 幕 | 时间 | 情绪 | 发生什么 |-|---|---|---|---|-| 冷开场 | 0:00–0:06.25 | 孤独、好奇 | 空海,一只浮标"叮"一声,涟漪一圈圈荡开;片名字母像地块一样从水里升起 |-| 第一幕 生长 | 0:06.25–0:21.25 | 惊喜 → 加速的快乐 | 第一块地升起(第一个音),接着地块、山丘、树、房子、风车、码头、小船……音符越来越密,变成旋律 |-| 第二幕 一天 | 0:21.25–0:31.25 | 满足 → 温柔 | 白天延时:影子扫过全岛,风车转,小船出海;黄昏窗户一盏盏亮 |-| 转折 夜 | 0:31.25–0:36.25 | 不安、寂静 | 音乐几乎全停,只剩浪和虫鸣。远海里小船的一点灯在黑浪里晃,岛北端的礁石还空着:"But one note was still missing." |-| 高潮 灯塔 | 0:36.25–0:41.25 | 爆发、温暖 | 灯塔一环一环弹性升起(上行琶音),第 12 小节强拍点亮;光束扫过全岛,**光束就是八音盒的拨片**,扫到哪家窗户哪家就响——完整的旋律第一次完整奏出;光束扫到小船,小船的灯回闪一下,调头回家 |-| 尾声 尺度 | 0:41.25–0:48.75 | 回响 | 小船靠岸;正交相机一路拉远,岛缩成大海里的一粒光,光束仍在转。画面右下极远处,**另一只浮标亮了一下,响起开场的同一个音**——另一座岛要开始长了 |-| 片尾卡 | 0:48.75–0:53.0 | 余韵 | 夜海远景上叠片名、风格名、LemoLab × Claude Opus 5.5 |--**首尾呼应**:开场浮标的一个音(D5 钟音)= 结尾远处另一只浮标的同一个音;开场旁白 "only one note" ↔ 结尾 "its first note"。-**尺度揭示**:开场是一只浮标占满画面的近景,结尾同一个正交视角拉到岛只剩几个像素。--## 四、原生招式(放在情绪最高点)--1. **建造即作曲(全片骨架)**:每个生长事件(地块 / 树 / 楼层 / 屋顶 / 风车 / 码头木板 / 灯塔环)在页面里生成一条 `EV` 事件,带音高;配乐的旋律声部直接由这些事件合成。岛长完 = 旋律写完。-2. **灯塔光束 = 八音盒拨片(高潮)**:点亮后光束旋转,扫过每栋房子的瞬间那扇窗闪亮并响一个音(音高按房子的方位角排好,扫一圈正好奏出主题)。这是只有"等距微缩 + 发光块 + 程序化事件"才能同时做到的:画面的空间顺序直接就是乐谱的时间顺序。-3. **不剪的转盘生长长镜头**:第一幕 15 秒一个镜头,正交相机绕岛旋转 90° 同时缓慢拉远,岛始终居中长大。-4. **正交尺度揭示**:结尾正交缩放 ×12,岛从占满画面到一粒光点,灯塔光束在大海上像指针一样扫。--## 五、分镜节拍表--配乐网格:96 BPM,1 拍 = 0.625 s,1 小节 = 2.5 s。律动从第一块地升起开始计:**bar n = 6.25 + 2.5n**(前 6.25 秒是无拍的开场)。--| # | 时间 | 机位 / 为什么这样拍 | 画面 | 声音 |-|---|---|---|---|---|-| 1 | 0:00–0:06.25 | **正交近景,俯角 30°**,视野高 11 单位,浮标在下三分之一,上方大片海面渐隐进黎明天色。空 = 孤独,要让观众先"没东西可看" | 黎明(粉灰 → 雾蓝),三角网格海面缓缓起伏,红白浮标上下晃,0.25s 顶灯亮 + 叮一声,一圈低多边形涟漪荡开;0.6–3.7s 片名字母逐个从水线升起(像地块) | 浪、远处海鸟;**D5 浮标钟**(0.25 / 2.9s);氛围垫音淡入 · **VO1**(3.9s)"Once, the sea knew only one note." |-| 2 | 0:06.25–0:08.75 | 同一镜头继续(长镜头开始),相机开始绕岛转 | 浮标旁第一块六边形地块从海里弹起,水花 + 白浪花环;第二块在第 3 拍 | **第一个音**:低音马林巴 D3 + 浮标钟同音叠一次;水"啵"声 · **VO2**(7.0s)"Then, the ground began to sing." |-| 3 | 0:08.75–0:13.75 | 长镜头:转盘 + 缓慢拉远,目标点跟着岛的质心走 | 地块四分音符 → 八分音符,边缘沙滩、内部草地、中间山丘(高块);浅滩泻湖跟着岛一起长出来 | 马林巴旋律一音一块,拟音:水啵声(大小随块高) |-| 4 | 0:13.75–0:16.25 | 长镜头 | 树"啵"地长出(针叶 / 圆冠两种),八分音符 | 卡林巴高音 + pop 声 |-| 5 | 0:16.25–0:18.75 | 长镜头 | 房子:墙体一层层从上方落下弹性落定,屋顶在反拍上"扣"下 | 木块敲击声(跟马林巴同音色家族)+ 和弦音 |-| 6 | 0:18.75–0:21.25 | 长镜头收尾,岛整体入画 | 十六分音符的细节:风车、码头木板一块块铺出去、小船落水、花、篱笆、烟囱冒烟;第 6 小节强拍风车叶片开始转 | 十六分音符小跑句收在主和弦上 |-| 7 | 0:21.25–0:23.75 | **切:中近景,俯角 35°**,正对村子广场。长镜头后第一次剪辑 = "现在可以生活了" | 白天延时:太阳划过,所有影子扫过全岛;风车转,海鸥盘旋,烟囱冒烟 | 全乐队律动:马林巴固定音型 + 卡林巴主题 + 垫音 + 沙锤 + 轻底鼓 |-| 8 | 0:23.75–0:26.25 | **切:码头,相机横移跟船** | 小船挂起帆,离开码头驶向外海,渐小;影子拉长 | 船铃一声;律动继续 |-| 9 | 0:26.25–0:28.75 | **切:3/4 大全景**,固定机位缓推——让"灯"成为唯一的运动 | 黄昏:天色橙粉紫,海面变成珊瑚紫;窗户按八分音符一盏盏亮 | 每盏窗 = 一个卡林巴音 · **VO3**(26.5s)"By evening, every house knew its part." |-| 10 | 0:28.75–0:31.25 | 同机位 | 天光退成深蓝,星星出现;音乐变薄 | 乐队逐件退出 |-| 11 | 0:31.25–0:33.75 | **切:极大全景**,岛在左下,右上远海只有小船一点灯——**负空间 = 危险** | 夜。小船灯在黑浪里晃、忽明忽暗;北端礁石上只有一块空的石台 | **几乎静音**:浪、虫鸣、低垫音 · **VO4**(31.6s)"But one note was still missing." |-| 12 | 0:33.75–0:36.25 | **切:北端礁石中景,俯角压低到 22°**,让灯塔往上长时有"高"的感觉 | 灯塔四个环逐拍弹性叠起(红白相间),灯室最后落下 | 上行琶音 4 个音(A4 B4 D5 F#5),每环一个木质"咚" |-| 13 | 0:36.25–0:41.25 | **切:高俯角 50° 大全景,相机随光束半速旋转**——俯角抬高让光束扫过全岛像钟表指针 / 八音盒拨片 | **点亮**:灯室闪白金光,光束开始转;扫到哪栋房子哪栋窗闪;约 39.5s 扫到远海小船,船灯回闪,调头回港 | **高潮**:完整主题第一次完整奏出(卡林巴 + 马林巴 + 垫音膨胀 + 轻鼓),光束扫到的窗 = 旋律音;船灯回闪 = 一声回应的铃 |-| 14 | 0:41.25–0:43.75 | 同一镜头开始拉远(正交 zoom out) | 小船靠岸,灯塔继续转 | 主题第二遍,配器减到卡林巴 + 垫音 |-| 15 | 0:43.75–0:48.75 | 继续拉远 ×12 | 岛缩成大海中间一粒光,光束在海面扫;右下极远处另一只浮标亮一下 | **VO5**(44.0s)"Far away, another sea hears its first note." · 47.5s **远处浮标钟 D5**(开场同一个音),音乐收在 D |-| 16 | 0:48.75–0:53.0 | 静止远景 + 片尾卡 | 片名 / LOW-POLY ISLAND · LEMO-OPUSCAR / LemoLab × Claude Opus 5.5 / 素材署名 | 最后一个和弦与浪声淡出 |--## 六、配乐 cue map(音乐先行)--**配器**:卡林巴(主旋律,Karplus-Strong + 金属簧片泛音)、马林巴(低音与固定音型,木质)、氛围合成垫音(去谐锯齿波低通,慢起慢收)、沙锤 / 木块 / 很轻的底鼓(只在白天和高潮)、浮标钟(D5 钟音,全片的"那一个音")。环境:浪、海鸟、夜里虫鸣。**不用钢琴和弦乐。**-**调性**:D 大调(五声为主)。**和声**(按律动小节):D | Bm | G | A | D | Bm | G–A | D | D | Bm | G | A(sus) | D | Bm | G–A | D | D。-**旋律声部 = 画面事件**:页面导出的 `EV` 里每个生长事件都带 `note`(MIDI 音高,取当前小节和弦音,按"块高 → 音高"排轮廓),配乐脚本逐个合成——画面长一块,旋律响一个音。--| cue | 时间 | 小节 | BPM | 配器 | 情绪 | 卡点 |-|---|---|---|---|---|---|---|-| 0 海 | 0.00–6.25 | 无拍 | — | 浪 + 海鸟 + 垫音 D 淡入;浮标钟 ×2 | 空、静 | 0.25 / 2.9 浮标钟;片名字母升起时极轻的卡林巴刮奏 |-| 1 第一个音 | 6.25–8.75 | 0 | 96 | 马林巴 D3(大、长)+ 浮标钟同音 | 惊奇 | **6.25 第一块地**(全片第一个强拍),7.50 第二块 |-| 2 地块 | 8.75–13.75 | 1–2 | 96 | 马林巴旋律(事件驱动)+ 垫音 | 加速 | 每块地一个音:四分 → 八分 |-| 3 树 | 13.75–16.25 | 3 | 96 | + 卡林巴高音(事件驱动) | 雀跃 | 每棵树一个音(八分) |-| 4 房子 | 16.25–18.75 | 4 | 96 | + 木块(楼层)/ 马林巴和弦(屋顶)+ 沙锤进 | 热闹 | 楼层在正拍、屋顶在反拍 |-| 5 细节 | 18.75–21.25 | 5 | 96 | 十六分卡林巴小跑句 | 完成感 | 收在 21.25 主和弦 |-| 6 白天 | 21.25–26.25 | 6–7 | 96 | 全乐队:马林巴固定音型 + 卡林巴主题 + 垫音 + 沙锤 + 轻底鼓 | 满足 | 21.25 / 23.75 两个剪辑点在强拍;船铃 24.4 |-| 7 黄昏 | 26.25–31.25 | 8–9 | 96 | 卡林巴(窗户事件)+ 垫音,鼓退出,第 9 小节贝斯退出 | 温柔 → 变薄 | 每扇窗一个音(八分) |-| 8 夜 | 31.25–33.75 | 10 | 96 | **几乎静音**:低垫音 D + 浪 + 虫鸣 | 不安 | 旁白在静里 |-| 9 灯塔升起 | 33.75–36.25 | 11 | 96 | 马林巴上行琶音 A4 B4 D5 F#5 + 垫音渐强 + 最后半拍全空 | 蓄力 | 33.75 / 34.375 / 35.0 / 35.625 四环;36.0–36.25 真静音 |-| 10 点亮 | 36.25–41.25 | 12–13 | 96 | **完整主题**:卡林巴主旋律 + 马林巴 + 垫音膨胀 + 轻鼓;光束扫到的窗 = 旋律音 | 爆发、温暖 | **36.25 点亮**(全片最强拍);约 39.5 船灯回闪 = 钟 |-| 11 回家 | 41.25–46.25 | 14–15 | 96 | 主题第二遍,减到卡林巴 + 垫音 | 回响 | 小船靠岸 42.5 |-| 12 远方 | 46.25–53.0 | 16–17 | 96 → 散 | 垫音 + 远处浮标钟 D5 | 余韵 | **47.5 远处浮标钟**;48.75 片尾卡;和弦自然衰减 |--制作:配乐 fork 一个子 agent 专门合成(先查 `core/audio/INSTRUMENTS.md` 是否 READY,未就绪则 numpy 自写卡林巴 / 马林巴),输入 = 本 cue map + `events.json`(所有生长事件带音高)+ 旁白时间,输出 `music/score.wav` + 分轨 + 自检数据。--## 七、声音设计--拟音跟材质走——这个世界的材料是**水、木、石、小块几何体**,声音都是"圆润、短、带一点音高"的:-- **地块升起**:水下气泡上扬(正弦扫频 + 带通噪声)+ 破水"啵" + 细碎水花;块越高声音越低越大。-- **树长出**:短促的木质 pop(带音高)。-- **楼层落定**:木块"咚"(木鱼 / 木块音色,和马林巴同家族),弹性回弹时有一声更轻的二次触碰。-- **屋顶扣下**:陶瓦"嗒"。-- **码头木板**:空心木板"哒哒哒"。-- **风车**:轻微木头吱呀(白天循环)。-- **浮标 / 船铃**:钟音(D5),带长尾。-- **灯塔点亮**:玻璃"叮" + 低频"嗡"的起辉声 + 持续的轻微电嗡。-- **环境床**:浪(低通布朗噪声 + 慢起伏),白天海鸥,黄昏以后虫鸣,夜里只剩浪。-- **静音**:夜的第 10 小节乐队全停;灯塔最后一环之后到点亮前半拍(36.0–36.25)连垫音都切掉。--混音:人声压缩后比音乐高约 10 dB,音乐在旁白下闪避约 −8 dB,成片两遍 loudnorm −14 LUFS,grain = 0。--## 八、字幕与片名设计--- **旁白字幕**:Quicksand 600,44 px,白字 + 柔和投影(不用底框——Monument Valley 式的"浮在画面上");左侧一个**小六边形地块图标**(顶面 + 两个侧面三色,平面着色),图标顶面颜色随时间变:黎明粉、白天草绿、黄昏橙、夜里窗户的暖黄。位置:画面下方居中,距底 120 px。-- **片名**:Josefin Sans 600,全大写,字距 0.22em,"THE ISLAND THAT GREW" 的字母逐个从一条水线下弹性升起(像地块),底下一行 Josefin Sans 300 小字 "a low-poly island film"。-- **片尾卡**:同一字体系统,夜海远景压暗,六边形图标 + LOW-POLY ISLAND · LEMO-OPUSCAR + LemoLab × Claude Opus 5.5 + 署名。-- 字幕与片名不同时出现;字幕显示区间不短于语音 + 0.6 s、至少 1.8 s,前后两句不重叠。--## 九、视觉规格(摘要,细节进 STYLE.md)--- 正交相机(OrthographicCamera),默认俯角 30°、方位角 45°;按段落调整俯角(22° / 35° / 50°)与缩放。-- 全部材质 `flatShading`,无贴图;六边形柱地块(沙 / 草 / 山 / 礁石),顶面色与侧面色分开。-- 海面:三角网格顶点动画(多组正弦叠加),浅滩泻湖颜色由"已长出的地块"实时生成的浅水图驱动,岸边一圈白色浪花环。-- 后期(自写,正交相机版):GTAO 柔和环境光遮蔽 → 按深度把远处海面融进渐变天空(天空色随日夜关键帧变)→ 很轻的移轴模糊(微缩感)→ 辉光(窗户、灯塔)→ 粉彩调色 → 2× 超采样。-- 日夜循环:天空渐变、海色、太阳方向与色温、环境光一起按关键帧插值;夜里星星只出现在远处"天"的部分。--## 十、为什么比风格说明更长(约 53 s,而不是 40 s)--风格说明建议 40 s。我加入了"小船出海 → 夜里迷路 → 灯塔把它照回家"这条线,给灯塔一个情绪理由(它不只是最后一块积木,而是"把人照回家的那个音");同时 5 句旁白每句要 ≥ 语音 + 0.6 s 的阅读时间,结尾尺度揭示和片尾卡也需要停留。压到 40 s 就只能砍掉转折或砍停留,两样都会伤片子,所以按观众节奏放到约 53 s(仍在 30–60 s 规格内)。--## 十一、风险 / 最没把握的地方--- 正交相机下"天空"只能出现在远处海面融化的位置,夜里的星空要靠画面上方的渐隐区来表现,需要实测是否像天。-- 灯塔光束(透明加色锥体)在正交视角下的体积感。-- 事件驱动的旋律(建造顺序决定音符)要既好听又和画面卡得住,配乐子 agent 的输入契约要写清楚。-------## 十二、关卡 1 之后的改动(制作中)--| 改动 | 原因 |-|---|---|-| 建造段不再是 15 秒一镜到底:在拍点上插入近景——10.625 中心礁石冲出水面(俯角 29°)、13.75 树的中景、16.25 楼层弹性落定近景、18.75 风车 / 码头木板 / 小船落水近景;全岛远景留给开头与结尾 | 协调者意见:只有远景看不到水花和弹性,近景才卖得动"建造的手感" |-| 夜景海面改为去饱和蓝紫,近暗远亮;光束下水面有亮带 + 面片闪烁;光束加体积(根部亮、远端淡、外层柔光) | 让暖窗与光束成为唯一亮点;原光束像一条平白带 |-| 夜景机位俯角压到 20–25°,点亮后先 50° 看八音盒,再在 38.4–41.85 s 缓慢下俯到 25°,让星空"升起来",最后正交拉远 | 天空带变宽,星空面积变大 |-| 地块水线白环收窄(0.99–1.12r)、降不透明度并与浅滩泡沫融合 | 原来像桌游板块缝 |-| 房子每个部件独占一个十六分音符格(屋顶 = 这栋房子的旋律音),细节接在房子之后;光束第一次扫到小船的时刻改到第 5 拍(39.375 s,主题里的休止),船铃在后半拍 39.6875 s 回应 | 同格多个事件会把旋律糊掉;让小船的回答填进旋律的空拍 |-| 旁白 v1 改为 "Once, the ocean knew only one note.",v5 改为 "Far away, another island hears its first note.";v1 提前到 3.7 s、v4 提前到 31.25 s | "sea" 被 whisper 听成 "C"(一部讲音符的片子里这是真歧义);v1 要在第一块地升起前说完;v4 要在切灯塔镜头前说完 |-| 和声:第 6 小节改为 D→G、第 7 小节 D→A,第 11 小节用 Asus4 | 配乐子 agent 的调整:21.25 的"岛完成"和弦要求 D,白天末尾回转进黄昏 |diff --git a/styles/lowpoly-island/demo/fonts/6xKtdSZaM9iE8KbpRA_hK1QNYuDyPw.woff2 b/styles/lowpoly-island/demo/fonts/6xKtdSZaM9iE8KbpRA_hK1QNYuDyPw.woff2deleted file mode 100644index 14f5646..0000000Binary files a/styles/lowpoly-island/demo/fonts/6xKtdSZaM9iE8KbpRA_hK1QNYuDyPw.woff2 and /dev/null differdiff --git a/styles/lowpoly-island/demo/fonts/Qw3aZQNVED7rKGKxtqIqX5EUDXx4Vn8sig.woff2 b/styles/lowpoly-island/demo/fonts/Qw3aZQNVED7rKGKxtqIqX5EUDXx4Vn8sig.woff2deleted file mode 100644index 4a3ce05..0000000Binary files a/styles/lowpoly-island/demo/fonts/Qw3aZQNVED7rKGKxtqIqX5EUDXx4Vn8sig.woff2 and /dev/null differdiff --git a/styles/lowpoly-island/style.json b/styles/lowpoly-island/style.jsonnew file mode 100644index 0000000..090f069--- /dev/null+++ b/styles/lowpoly-island/style.json@@ -0,0 +1,18 @@+{+ "slug": "lowpoly-island",+ "num": "43",+ "en": "Low-poly Isometric Island",+ "cn": "低多边形等距",+ "category_en": "Materials & 3D",+ "category_cn": "材质与 3D",+ "film": "The Island That Grew",+ "line": "An island and its village grow tile by tile from an empty sea, each tile a note, into a starry night.",+ "line_cn": "空海里一格格长出小岛和村庄,每放一块响一个音符,直到星空。",+ "uses": [+ "Game trailers",+ "World building",+ "Calm content"+ ],+ "frame_sec": 21.2,+ "dur": 53.0+}diff --git a/styles/microgame/DEMO.md b/styles/microgame/DEMO.mdnew file mode 100644index 0000000..5a265b4--- /dev/null+++ b/styles/microgame/DEMO.md@@ -0,0 +1,121 @@+# Microgame Frenzy — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Five-Second Astronaut* (59.8 s) · `microgame.mp4` · source in [`demo/`](demo/)+++## Story & structure++A space cadet tries to pass astronaut school on a game show. A game show runs a string of **microgames**. Each one is **a shouted command word + 2.5–4 seconds + one action + one result** (success or a funny failure). Between games the film cuts back to a **home stage**: a host, a scoreboard of lives and a stage number. Every few games the whole film **SPEEDS UP**. At the end a **BOSS STAGE** runs longer, mixes all the earlier rules, and decides the story.++What makes this style work: **each microgame uses a different visual medium.** Crayon, ink wash, ASCII terminal, risograph, pixel art, blueprint, Swiss typography and so on. The jolt of each style switch is both the joke and the beat. The home stage is the one fixed look that holds the film together.++How the demo spent the native moves:++| Native power | Demo use |+|---|---|+| **Style switch per game** | Any topic splits into 6–8 tiny tasks, each in the medium that suits it best. A sneeze is an ink blot. A buckle click is a terminal relay. A zipper is ticks on a dimension line. A jump is a pixel platformer. |+| **Command word** | One verb is the whole scene: PUMP! / DON'T SNEEZE! / ZIP! It works as script, subtitle and downbeat at once. |+| **Lives as UI** | The helmet-icon counter carries the emotion with no narration. Going 3 → 2 → 1 (blinking) builds the tension on its own. |+| **SPEED UP** | Five things speed up together: BPM, game length, stage dwell, command-word hold and animation frame rate. The audience feels the acceleration. |+| **Boss mixes the rules** | The final game is built from pieces of every earlier style, so the climax is literally made of the film's own past. |++**Demo story shape:** a cold open that starts *inside* a game at frame 1. A failure in round 1 that is funny. A second failure that costs the last spare life. A silent beat on the last life. **The twist: the material of an earlier failure becomes the solution in the boss stage.** In the demo, the ink-wash sneeze that lost a life blooms into an ink parachute. The echo at the end: the character redoes an earlier failed action and gets it right (the salute).++How we adapted the topic: we listed 7 verbs from the topic, gave each verb the medium it would most naturally be drawn in, made two of them fail and let the boss stage reuse the failed ones. The same recipe for another topic: a product launch becomes UNBOX! (crayon), PLUG IN! (blueprint), DON'T DROP IT! (ink), and so on; the boss stage is "SHIP IT!".++## Shots++| Beat | Camera |+|---|---|+| Cold open | Frame 1 is already inside a game with the command word slamming. The rules explain themselves in 1 s. |+| First stage | Pull back out of the TV: the scale reveal. The game was one screen on a show. |+| Stage | Always the same frontal, symmetrical "home" frame. Only the scoreboard changes. |+| SPEED UP (signature shot) | The stage splits into **three slot-machine reels** that spin through earlier game frames with motion smear and stop one per beat on SPEED \| UP \| !. |+| Button | An Edgar-Wright-style **insert**: an extreme close-up of the red button as a glove smashes it on the beat. |+| Last life | The same stage with the lights cut to a single top spot; the host goes still. |+| BOSS STAGE | 8 tiles (7 last frames plus a BOSS card) flip in on eighth notes, then flip again to become pieces of the boss frame. |+| Boss silence | Push into the porthole close-up; the audience sees the dust before the hero does. |+| Climax | Snap back to wide in one beat as the ink canopy blooms. |+| Ending | Back to the home stage; the hero stands on it for the first time and salutes; then the camera pushes into the TV for the end card. |++Motion as used in the demo:++- **Speed ladder** (demo): 120 → 140 → 160 BPM. Round-1 games are 2 bars (4.0 s) and round 2 is 1.5 bars (2.57 s). Stage dwell goes 1 bar → 2 beats. The command word holds 0.75 s, then 0.64 s. Character stepping goes 8 fps → 12 fps → 24 fps (boss). Camera moves, transitions and the fuse spark always run on ones.+- **Command word**: Titan One, white with a 22 px ink outline, a magenta drop and a gold burst behind it, skewed −6°. It **slams** in over 3 frames (1.9 → 0.92 → 1.0), holds, then **shrinks into a corner tag before the first action**, so the result is never covered. One-off banners ("BOSS STAGE!", "PULL!") fly out instead of becoming tags.+- **Fuse timer**: a braided rope along the bottom with **one knot per beat**; the spark passes each knot exactly on the beat and ends at a little firecracker rocket. The fuse freezes during an instant replay and is hidden in the boss close-up.+- **Unified transition = the TV frame**: stage → game is a camera push into the TV screen (0.25 s); game → stage is the whole frame shrinking back into the TV (0.33 s), with the ✓ / ✗ stamp slapped onto the screen. No fades and no blank frames.+- **Failure is performed, not just shown**: the ink sneeze covers the visor and two white eyes blink out of the ink. The Swiss salute arm rotates past 90° and *grows past its module length* to swat the red ball, which bounces twice on the baseline and rolls off the grid.+- **Instant replay** for a story-critical failure: freeze 3 frames, then play at 0.5× with a 1.4× push-in, black bars and "instant replay" in the style's own typography, then resume. It costs 2 beats; the music plays a record scratch and half-time.++## Score structure++- **Music first**: write the tempo grid (`timeline.js`) before any animation. Every hit is listed in a cue table (see `demo/TREATMENT.md`) and the picture lands on it. `tools/cuecheck.py` checks 57 picture events against `music/score.json` (demo max offset 4.7 ms).+- **Score**: original funk/pop fusion. Drum kit with 16th hats and ghost notes, **synthesized slap bass** (additive pluck + band-passed thumb noise + 1.8–6.5 kHz pop + octave jumps and slides), stacked brass stabs (trumpet_stac + alto sax + trombone_stac), and a vibraphone+piano "e-piano". Drums and bass run through the whole film. On top, one **colour instrument per style**: xylophone (crayon), guqin harmonics and bends (ink), square beeps (ASCII), vibes and sax (riso), pulse arpeggio (pixel), muted trumpet (blueprint), claves and dry piano (Swiss). Each speed-up gets a rising brass run, and the key rises a whole step each round.+- **Real silences**: 1 beat before the first sneeze, the last-life stage (heartbeat only), and the boss close-up (heartbeat + the same guqin note as the first dust mote). The biggest hit comes right after the longest silence.+- **Foley follows the medium**: rubber squeak + air for the crayon pump, a wet splat and drips for ink, teletype clicks and a relay for ASCII, a paper thump and crunch for riso, bit-crushed noise for pixel, ratchet teeth and a stamp thunk for blueprint, a hollow bonk and small rubber boings for Swiss. Home-stage sounds: spring-loaded crown click, glass crack plus bouncing clinks for a lost life, card flips, slot-reel whirr, sparse sampled claps.+- **Voices**: host = Kokoro `am_fenrir` (it had the widest pitch range of the voices tested), speed 1.05–1.15. The host shouts every command 0.1 s *after* the stab so the brass doesn't mask the word. Hero = `af_bella` pitched +2.5 semitones, only "Oh no." plus the "ah… ah…" and sneeze, which are treated as SFX and exempt from whisper checks. Duck the music about 11 dB and the foley about 6 dB under voice.+- **Single-word commands in Kokoro**: "Pump!" comes out as "Pompey" and "Zip!" as "Zipper", because a vowel tail is added. Generate "Pump, now!" and cut at the end of the first word from whisper timestamps (`tools/trim_cmd.py`).++## Palette & props++**Home stage (the only constant look)**: flat toon with a **7 px near-black outline `#1a1030`**, flat fills, and **one hard-edged shadow** made by filling the shape in the shade colour, clipping to it, and refilling it shifted up-left by 9 px. Palette: stage violet `#2a0f5c` / `#3d168f` rotating sunburst, magenta `#ff2e88`, gold `#ffc928` / `#e08a00`, cyan `#1fd1d1`, success green `#3bdc5a`, fail red `#ff3b3b`. Fixed props: a marquee with chasing bulbs (the title card), a central **16:9 gold TV** (screen 768×432, exactly 1/2.5 of the frame), a lives board of helmet icons, a stage-number badge, and a podium with a big red button.++**Characters** (all original):+- *Host* = a gold **stopwatch head**. The dial is the face, the red second hand is his pointer and nose, and he **slaps his own crown button** to start every game. His hand ticks every beat, spins when he is excited, and stops dead on the last life.+- *Hero* = a 2.3-head-tall cadet: bubble helmet, spring antenna with an orange ball (the **mood meter**, which boings on every action), and the number "05".+- **Translation rule:** in every microgame style the hero is redrawn from scratch, but **three silhouette marks always survive**: round helmet, antenna ball, "05". See `demo/stills/modelsheet_v2_styles.jpg` for 8 renderings of one character.++**Microgame media (simplified re-drawings, each about 100–200 lines of code):**+| Style | How it is made |+|---|---|+| Crayon | Canvas where RGB = crayon colour and **A = pressure**. A shader deposits wax only where procedural paper tooth > 1 − 1.22·pressure. Indigo wobble outlines, zig-zag hatching that goes past the lines, and a **knock-out**: front shapes erase the wax behind them. 8 fps, with line boil on 12. |+| Ink wash | Two channels, **R = wet ink** (blurred, with edge pigment pooling) and **G = dry ink** (broken by paper grain). Brush strokes are pressure profiles with bristle tracks; blots are noisy discs; splatter is flung blots. The one colour is a vermilion dot: the antenna ball, plus the "05" seal. |+| ASCII terminal | **Hand-authored ASCII art for the hero** (a luminance ramp turns small figures into mush). Structural glyphs `/ \ | _ -` carry the silhouette. The antenna ball is an inverse-video `@`. Amber phosphor shader with bloom, 3 px scanlines and barrel curvature. |+| Risograph | Canvas **R/G/B = blue/yellow/pink plate density**. `lighter` = overprint (yellow+pink = orange, yellow+blue = green); `source-over` = knockout. 7 px rotated halftone, fixed misregistration per shot, and a plate **kick** on the key action. Paper-white halo around the hero. |+| Pixel | 240×135 indexed framebuffer ×8. Sprites are built from primitives with an **auto 1 px ink outline**; Bayer dither for glows and flames. 12 fps. |+| Blueprint | Procedural blue paper plus white lines in 4 weights, centre / hidden dashes, dimension lines, hand lettering, and one red stamp. |+| Swiss | 12-column grid, one sans family (Inter), black and white plus signal red `#e30613`. The hero is a black circle, a black rectangle and a **red circle** (the antenna ball). The gag is that one element leaves the grid. |++**Boss frame composition:** mix up to five media, but with **one focal chain only**: the parachute leads to the capsule, which leads to the target (review lesson). Remove anything off-story, such as decorative pixel gulls. Shrink info panels (the ASCII altimeter) into a corner. Layering: crayon renders in alpha mode (wax coverage = alpha, with a full-pressure white base where it must be opaque). Ink and riso render on white and are drawn with `multiply`. The CRT panel is rendered flat and clipped to its box.++**The ink parachute (climax):** it must *read as a parachute*, not smoke. It grows in three stages: a jet of ink from the capsule hatch (0.15 s), a **round** drop spreading (short, 0.3 s), then **9 gores fanning out**. Gore fill is a vertical gradient (dense at the crown, light at the hem) with alternating ±7 % tone, thin paper-white seams, and a scalloped hem (each gore bulges down). There is one loaded brush arc along the crown, dry-brush flying white along the hem, and dry thin cords to the hatch.++## Titles & end card++- **The command word is the subtitle**: it is not burned twice, and it is listed in the .srt only.+- Other lines use a **gold rounded card** with a 7 px ink outline and a hard shadow, Lilita One 50 px, a small stopwatch icon (host) or helmet icon (hero), placed above the fuse in games. It pops in over 2 steps at 12 fps. Hold ≥ max(1.8 s, speech + 0.6 s), and never during a big banner.+- The title card is the home-stage marquee lighting up letter by letter (FIVE-SECOND ASTRONAUT / A MICROGAME FRENZY).++The end card sits inside the TV: title, style name and "LemoLab × Claude Opus 5.5", with hero and host. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/microgame/demo/+ timeline.js tempo grid + segments (single source of truth) film.js assembly: stage, TV transitions, slot reels, boss tiles, end card, subs, events+ toon.js chars.js stage.js hud.js home style, host & hero, stage, fuse/command/stamps/lives/subtitles+ glpass.js WebGL2 material shaders: riso, crayon, CRT, ink, blueprint paper+ g_crayon.js g_ink.js g_ascii.js g_riso.js g_pixel.js g_blue.js g_swiss.js g_boss.js one module per medium (scene + hero translation)+ frames.js model sheets & style frames music/score.py original score mix.py foley + voices + ducking+ tools/ trim_cmd.py cuecheck.py subs.py final_asr.py review.sh mux.sh dump_timeline.mjs+```+1. Write `timeline.js` (tempo grid), then the cue table, then hand the grid and cue table to a music sub-agent. Draw in parallel with it.+2. Build the home style and characters first, then **one `sceneX(g, lt)` per medium**. Review each with `?scene=g_x.sceneX` stills.+3. `sh demo/build.sh` rebuilds everything: TTS → trim → whisper → score → events → cue check → mix → srt → render (~25 s for 1436 frames) → mux (−14 LUFS, grain 0), about 1.5 minutes in total.+4. Review with `bash demo/tools/review.sh out/revN 6 $(seq 0.5 1 59.5)` at least twice, plus frame strips of every key action.++### Pitfalls we hit++- A luminance-ramp ASCII hero is unreadable mush. Use a hand-authored template plus structural glyphs, and an inverse `@` for the antenna ball.+- The ink canopy first read as black smoke or a storm cloud. Keep the blot phase short and round, fan out gores with a gradient and seams, add a scalloped hem, and leave the edges light.+- The Swiss "salute fail" read as a raised hand. The arm has to *overshoot and hit* the red ball, and the failure needs an instant replay to be understood at 140 BPM.+- A crayon layer in alpha mode shows the background through the wax gaps. Give it a full-pressure paper-white base (or render it opaque and clip) wherever it must be solid.+- Toon drawing helpers that keep a global context (`K.g`) will draw on the wrong canvas when a scene renders into an offscreen buffer (TV screen, slot reels, tiles). Always call `setCtx` before and after.+- `flat` is a reserved word in GLSL ES 3.+- Uploading a 2D canvas without `UNPACK_FLIP_Y` means v = 0 is the canvas top; sample with `p/R`.+- Command tags pile up (LAND IT! + PULL! in the same corner). Secondary commands should fly out, not tag.+- A white impact flash at 100 % reads as a blank frame; cap it at 60 %.+- whisper often mishears 0.2 s command words inside a dense mix, even at +16 dB SNR. Verify them per clip, and measure SNR in the 300–4 kHz band for the mix.+- A zsh `$T` list doesn't word-split. Use the bash review helper `tools/review.sh`.diff --git a/styles/microgame/STYLE.md b/styles/microgame/STYLE.mdindex c32fcf3..20eca2e 100644--- a/styles/microgame/STYLE.md+++ b/styles/microgame/STYLE.md@@ -1,122 +1,120 @@# Microgame Frenzy — Style Prompt> A rapid-fire party-game film: one command word, a few seconds, one action. Every microgame is drawn in a completely different art style, and the film keeps getting faster.-> Demo: *Five-Second Astronaut* (59.8 s) · `microgame.mp4` · source in `demo/`> Genre reference (grammar only): the WarioWare series. Never use its name, characters, UI, microgames or music.-You are directing a 45–60 second film in the **Microgame Frenzy** style. The user gives you a topic. You decide everything else (story, games, styles, timing, sound) and deliver a finished film. Follow this guide.+The format suits 45–60 s films; longer ones lose the frenzy.----+## 1. Essence, and what it is not++- **A microgame = a shouted command word + 2.5–4 s + one action + one result** (success, or a funny failure).+- **Each microgame uses a different visual medium** (crayon, ink wash, terminal, risograph, pixel, blueprint, Swiss type, clay, cut paper, woodcut…). The jolt of each switch is both the joke and the beat.+- **One fixed home look** holds the film together: a show stage with a host, a lives counter and a stage number, which the film returns to between games.+- **It keeps accelerating**: every few games tempo, game length, dwell, command hold and animation frame rate step up together.+- **The hero survives every medium** by keeping two or three silhouette marks.++Not Game Show Flat (one art style, rounds of bars, call-and-response), not a style sampler reel (every game has stakes; lives connect them), not a montage (each game has a rule grasped in under a second).++## 2. Materials & rendering++- **Home stage**: flat toon, thick near-black outline (~7 px), flat fills, **one hard-edged shadow** (fill in the shade colour, clip to the shape, refill shifted up-left). Fixed furniture: a frame-within-the-frame where games play (a TV, an arcade cabinet, a phone, a window), the lives board, a stage badge, a trigger prop (button, lever, bell).+- **Each medium is a simplified re-drawing, 100–200 lines of code**, built around one channel trick that makes it read at a glance:+ - drawn media store **pressure or wetness in a channel** (crayon: alpha = pressure against paper tooth; ink: wet and dry ink channels);+ - print media store **plate densities** (riso: a channel per plate, additive overprint, halftone, misregistration);+ - screen media are **low-res buffers** scaled up (pixel: indexed buffer, auto outline, dither; terminal: hand-authored glyph art, phosphor shader);+ - technical media are **line systems** (blueprint: line weights and dimensions; Swiss: a strict grid, one sans, one signal colour).+- **Hero translation**: the hero is redrawn from scratch in each medium, but the same marks always survive (e.g. a hat shape, one coloured dot, a number on the chest). Make a model sheet of the hero in every medium before animating.+- **Mixed-media frames**: alpha-coverage media over a base, paper media multiplied, screen media flat and clipped to a panel. WebGL2 material shaders turn the channel buffers into each look.++## 3. Colour logic++- **The home stage owns a saturated party palette**: a deep ground behind a rotating sunburst, two or three loud accents, plus a fixed success colour and a fixed fail colour used by stamps and the lives board only.+- **Each medium brings its own palette** from its tradition (wax colours, one-ink-plus-vermilion, amber phosphor, three riso plates, a limited pixel palette, white-on-blue, black-white-red). Never tint a medium with the home palette.+- **One accent follows the hero across media** where the medium allows (a single vermilion dot in ink, an inverse glyph in a terminal, a signal-red circle in Swiss type): it is how the eye finds the hero after a switch.+- Example home palettes: violet `#2a0f5c` with magenta `#ff2e88`, gold `#ffc928`, cyan `#1fd1d1`; teal ground with coral and lemon; black stage with hot orange and electric blue.++## 4. Type & subtitles++- **The command word is the subtitle**: a heavy display face (e.g. Titan One), white with a thick ink outline, a coloured drop and a burst behind it, skewed a few degrees. It slams in over ~3 frames (overshoot → settle), holds, then **shrinks into a corner tag before the first action**, so the result is never covered. One-off banners fly out instead of tagging, so tags never pile up.+- **Other lines**: a rounded card in the home palette with the home outline and hard shadow, a friendly rounded face (e.g. Lilita One ~50 px), a small speaker icon; placed above the timer in games. Hold ≥ max(1.8 s, speech + 0.6 s), never under a big banner.+- Inside a game, any text (replay captions, labels) uses **that medium's own typography**.+- The command word appears in the .srt only, never burned twice.++## 5. Motion quality++- **The frame rate is part of the ladder**: characters step on twos or at 8 fps early, faster later, on ones at the climax. Camera moves, transitions and the timer spark always run on ones.+- **Five things accelerate together** at each speed-up: tempo, game length, stage dwell, command hold, character frame rate.+- **The timer is visible and on the beat**: e.g. a fuse with one knot per beat, the spark passing each knot exactly on it. It freezes in a replay.+- **Unified transition through the frame-within-the-frame**: push into the screen to start a game (~0.25 s), shrink the game back into it to return (~0.33 s) with a ✓ / ✗ stamp. No fades, no blank frames.+- **Failure is performed**: the action overshoots, splats, bonks or rolls off; the medium's own physics makes the joke.+- **Instant replay** for a failure that must be understood: freeze, half speed, push-in, letterbox, a caption in the medium's type.+- The home host has a tick on every beat; stopping it dead is the strongest emotional tool.++## 6. Camera grammar++A vocabulary, not a route. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Start inside a game, command already slamming | the rules explain themselves | throwing the viewer in |+| Pull back out of the game screen | scale: this was one screen on a show | the first return to the stage |+| Locked frontal home frame | the constant; only the scoreboard changes | stage beats; the host's reaction |+| Slot reels (the stage splits into spinning strips of earlier frames, stopping one per beat) | acceleration, a summary | a speed-up; a change of round |+| Extreme insert on the trigger prop | the start, felt | a game starting on the downbeat |+| Lights cut to one top spot, frame unchanged | stakes; the last chance | the last life; a decision |+| Tile flip (last frames of past games flip into pieces of a new frame) | the past becomes the material of the present | a boss or finale; a recap |+| Push into a detail, hold | the viewer notices before the hero does | a clue; a silence |+| Snap back to wide on one beat | release | a solution blooming; a save |+| Split screen, two media side by side | comparison, rivalry | two players; before/after; two approaches |++Framing: the game screen is a fixed fraction of the frame (around 40 % of the width); in a mixed-media frame keep **one focal chain** (A leads to B leads to C) and push info panels into a corner.-## 1. What this style is+## 7. Sound palette++- **Music first**: a tempo grid and a cue table before any animation; every picture hit lands on a listed cue.+- **A constant groove + one colour instrument per medium.** The groove (kit with ghost notes, slap or synth bass, brass stabs, keys) runs throughout; each medium adds its own timbre: toy piano for crayon, shakuhachi or guqin for ink, square beeps for terminals, vibes for print, pulse arpeggios for pixel, a typewriter for drafting, claves for Swiss, kalimba for clay, koto for woodcut.+- **Foley follows the medium**: wax squeaks, wet splats, teletype relays, paper crunch, bit-crushed noise, ratchets and stamps, hollow bonks. Home stage: a spring trigger click, glass crack for a lost life, card flips, a reel whirr, sparse claps.+- **Acceleration options** (use what fits): a rising brass run into each speed-up; the key rising a step per round; halving note values instead of changing tempo; dropping the groove to a heartbeat on the last life.+- **Real silences**: at least one before the biggest hit (a heartbeat or one pitched note may remain). The loudest moment comes right after the longest silence.+- **Voices**: a host who shouts every command a hair *after* the stab so brass doesn't mask it; a hero with very few words (reactions work best). Duck music ~11 dB and foley ~6 dB under voice. −14 LUFS.++## 8. Native moves++A menu: use the ones your story needs.++- **Style switch per game.** Each task is drawn in the medium that suits it. *Fits content like:* the steps of baking bread (flour in crayon, oven dial in blueprint, crust in woodcut); a day of a nurse; a heist's roles.+- **Command word.** One verb is script, subtitle and downbeat. *Fits content like:* SCAN! at a checkout; BREATHE! in a yoga class; SIGN! at a contract signing.+- **Lives as UI.** The counter carries emotion without narration; 3 → 2 → 1 (blinking) builds tension alone. *Fits content like:* a phone battery; retries on a driving test; chances left on a quiz.+- **SPEED UP.** Everything steps up together. *Fits content like:* rush hour; the last week before a deadline; a kitchen during dinner service.+- **Failure becomes the solution.** The material of an earlier failure returns in the final game as the answer. *Fits content like:* a spilled coffee that later stains the winning map; a bug that becomes a feature; a missed train that leads to the right meeting.+- **Boss mixes the rules.** The final game is built from pieces of earlier media. *Fits content like:* a final exam; launch day; a festival's closing night.+- **Instant replay.** The joke explained in slow motion. *Fits content like:* a goal-line decision; a typo that shipped; a cat's leap that missed.++## 9. Pitfalls of the medium++- **A luminance-ramp ASCII figure is mush** → hand-authored glyph art with structural glyphs, an inverse glyph for the accent.+- **Ink shapes read as smoke** unless their silhouette is designed (a short round blot phase, then a clear structure with seams and light edges).+- **A failure at high tempo goes unread** → make the action overshoot and hit something, or give it an instant replay.+- **Alpha-coverage media show the background through gaps** → a full-pressure base where it must be solid.+- **Drawing helpers with a global context** draw on the wrong canvas when scenes render into offscreen buffers (game screen, reels, tiles) → set and restore the context.+- **Command tags pile up** → secondary commands fly out.+- **A 100 % white flash** reads as a blank frame → cap at ~60 %.+- **TTS single-word commands** gain a vowel tail ("Pump!" → "Pompey") → generate a two-word phrase and cut after the first word using ASR timestamps; verify each clip, since ASR mishears 0.2 s words in a dense mix.++## 10. Engine++`demo/timeline.js` (tempo grid and segments, the single source of truth), `demo/toon.js` + `demo/stage.js` + `demo/hud.js` (home look, stage, timer, command word, stamps, lives, subtitle cards; call `setCtx` when drawing offscreen), `demo/chars.js` (host and hero rigs), `demo/glpass.js` (WebGL2 material shaders: riso, crayon, CRT, ink, blueprint paper), one `demo/g_<medium>.js` per medium (`sceneX(g, lt)` + the hero translation), `demo/film.js` (transitions through the TV, slot reels, tiles, events). Module map and build: [DEMO.md](DEMO.md#build-notes).++## 11. Variation space++You decide the tasks, which medium draws each, the home stage and its frame-within-the-frame, the host and hero, the number of rounds, where failures fall, the finale, the opening and the ending. The command → action → result unit, the medium switch and the acceleration stay.++All far from our demo:++- Structures: **two players, alternating** (each game is played by one of two rivals; the lives board is a tug-of-war); **one day, hour by hour** (each game is an hour, the speed-ups are the morning rush and the evening rush, the finale is midnight); **a relay** (the result of each game is the object handed into the next one, so the chain is the story).+- Openings: **the home stage asleep** (lights off, the host wakes on the first beat); **a game-over screen** we rewind from; **the lives board alone**, a counter clicking down before we know what it counts.+- Endings: **a high-score table** where the hero types their name letter by letter in each medium; **the credits as one more microgame** (CATCH THE NAMES!); **the home stage packs away** into the frame-within-the-frame and the screen switches off.++----A game show runs a string of **microgames**. Each one is **a shouted command word + 2.5–4 seconds + one action + one result** (success or a funny failure). Between games the film cuts back to a **home stage**: a host, a scoreboard of lives and a stage number. Every few games the whole film **SPEEDS UP**. At the end a **BOSS STAGE** runs longer, mixes all the earlier rules, and decides the story.--What makes this style work: **each microgame uses a different visual medium.** Crayon, ink wash, ASCII terminal, risograph, pixel art, blueprint, Swiss typography and so on. The jolt of each style switch is both the joke and the beat. The home stage is the one fixed look that holds the film together.--## 2. Story: what fits this style--| Native power | Story use |-|---|---|-| **Style switch per game** | Any topic splits into 6–8 tiny tasks, each in the medium that suits it best. A sneeze is an ink blot. A buckle click is a terminal relay. A zipper is ticks on a dimension line. A jump is a pixel platformer. |-| **Command word** | One verb is the whole scene: PUMP! / DON'T SNEEZE! / ZIP! It works as script, subtitle and downbeat at once. |-| **Lives as UI** | The helmet-icon counter carries the emotion with no narration. Going 3 → 2 → 1 (blinking) builds the tension on its own. |-| **SPEED UP** | Five things speed up together: BPM, game length, stage dwell, command-word hold and animation frame rate. The audience feels the acceleration. |-| **Boss mixes the rules** | The final game is built from pieces of every earlier style, so the climax is literally made of the film's own past. |--**Story shape (proven in the demo):** a cold open that starts *inside* a game at frame 1. A failure in round 1 that is funny. A second failure that costs the last spare life. A silent beat on the last life. **The twist: the material of an earlier failure becomes the solution in the boss stage.** In the demo, the ink-wash sneeze that lost a life blooms into an ink parachute. The echo at the end: the character redoes an earlier failed action and gets it right (the salute).--Adapting any topic: list 7 verbs from the topic. Give each verb the art medium it would most naturally be drawn in. Make two of them fail. Let the boss stage reuse the failed ones. Example: a product launch becomes UNBOX! (crayon), PLUG IN! (blueprint), DON'T DROP IT! (ink), and so on; the boss stage is "SHIP IT!".--## 3. Visual language--**Home stage (the only constant look)**: flat toon with a **7 px near-black outline `#1a1030`**, flat fills, and **one hard-edged shadow** made by filling the shape in the shade colour, clipping to it, and refilling it shifted up-left by 9 px. Palette: stage violet `#2a0f5c` / `#3d168f` rotating sunburst, magenta `#ff2e88`, gold `#ffc928` / `#e08a00`, cyan `#1fd1d1`, success green `#3bdc5a`, fail red `#ff3b3b`. Fixed props: a marquee with chasing bulbs (the title card), a central **16:9 gold TV** (screen 768×432, exactly 1/2.5 of the frame), a lives board of helmet icons, a stage-number badge, and a podium with a big red button.--**Characters** (all original):-- *Host* = a gold **stopwatch head**. The dial is the face, the red second hand is his pointer and nose, and he **slaps his own crown button** to start every game. His hand ticks every beat, spins when he is excited, and stops dead on the last life.-- *Hero* = a 2.3-head-tall cadet: bubble helmet, spring antenna with an orange ball (the **mood meter**, which boings on every action), and the number "05".-- **Translation rule:** in every microgame style the hero is redrawn from scratch, but **three silhouette marks always survive**: round helmet, antenna ball, "05". See `demo/stills/modelsheet_v2_styles.jpg` for 8 renderings of one character.--**Microgame media (simplified re-drawings, each about 100–200 lines of code):**-| Style | How it is made |-|---|---|-| Crayon | Canvas where RGB = crayon colour and **A = pressure**. A shader deposits wax only where procedural paper tooth > 1 − 1.22·pressure. Indigo wobble outlines, zig-zag hatching that goes past the lines, and a **knock-out**: front shapes erase the wax behind them. 8 fps, with line boil on 12. |-| Ink wash | Two channels, **R = wet ink** (blurred, with edge pigment pooling) and **G = dry ink** (broken by paper grain). Brush strokes are pressure profiles with bristle tracks; blots are noisy discs; splatter is flung blots. The one colour is a vermilion dot: the antenna ball, plus the "05" seal. |-| ASCII terminal | **Hand-authored ASCII art for the hero** (a luminance ramp turns small figures into mush). Structural glyphs `/ \ | _ -` carry the silhouette. The antenna ball is an inverse-video `@`. Amber phosphor shader with bloom, 3 px scanlines and barrel curvature. |-| Risograph | Canvas **R/G/B = blue/yellow/pink plate density**. `lighter` = overprint (yellow+pink = orange, yellow+blue = green); `source-over` = knockout. 7 px rotated halftone, fixed misregistration per shot, and a plate **kick** on the key action. Paper-white halo around the hero. |-| Pixel | 240×135 indexed framebuffer ×8. Sprites are built from primitives with an **auto 1 px ink outline**; Bayer dither for glows and flames. 12 fps. |-| Blueprint | Procedural blue paper plus white lines in 4 weights, centre / hidden dashes, dimension lines, hand lettering, and one red stamp. |-| Swiss | 12-column grid, one sans family (Inter), black and white plus signal red `#e30613`. The hero is a black circle, a black rectangle and a **red circle** (the antenna ball). The gag is that one element leaves the grid. |--**Boss frame composition:** mix up to five media, but with **one focal chain only**: the parachute leads to the capsule, which leads to the target (review lesson). Remove anything off-story, such as decorative pixel gulls. Shrink info panels (the ASCII altimeter) into a corner. Layering: crayon renders in alpha mode (wax coverage = alpha, with a full-pressure white base where it must be opaque). Ink and riso render on white and are drawn with `multiply`. The CRT panel is rendered flat and clipped to its box.--**The ink parachute (climax):** it must *read as a parachute*, not smoke. It grows in three stages: a jet of ink from the capsule hatch (0.15 s), a **round** drop spreading (short, 0.3 s), then **9 gores fanning out**. Gore fill is a vertical gradient (dense at the crown, light at the hem) with alternating ±7 % tone, thin paper-white seams, and a scalloped hem (each gore bulges down). There is one loaded brush arc along the crown, dry-brush flying white along the hem, and dry thin cords to the hatch.--## 4. Motion language--- **Speed ladder** (demo): 120 → 140 → 160 BPM. Round-1 games are 2 bars (4.0 s) and round 2 is 1.5 bars (2.57 s). Stage dwell goes 1 bar → 2 beats. The command word holds 0.75 s, then 0.64 s. Character stepping goes 8 fps → 12 fps → 24 fps (boss). Camera moves, transitions and the fuse spark always run on ones.-- **Command word**: Titan One, white with a 22 px ink outline, a magenta drop and a gold burst behind it, skewed −6°. It **slams** in over 3 frames (1.9 → 0.92 → 1.0), holds, then **shrinks into a corner tag before the first action**, so the result is never covered. One-off banners ("BOSS STAGE!", "PULL!") fly out instead of becoming tags.-- **Fuse timer**: a braided rope along the bottom with **one knot per beat**; the spark passes each knot exactly on the beat and ends at a little firecracker rocket. The fuse freezes during an instant replay and is hidden in the boss close-up.-- **Unified transition = the TV frame**: stage → game is a camera push into the TV screen (0.25 s); game → stage is the whole frame shrinking back into the TV (0.33 s), with the ✓ / ✗ stamp slapped onto the screen. No fades and no blank frames.-- **Failure is performed, not just shown**: the ink sneeze covers the visor and two white eyes blink out of the ink. The Swiss salute arm rotates past 90° and *grows past its module length* to swat the red ball, which bounces twice on the baseline and rolls off the grid.-- **Instant replay** for a story-critical failure: freeze 3 frames, then play at 0.5× with a 1.4× push-in, black bars and "instant replay" in the style's own typography, then resume. It costs 2 beats; the music plays a record scratch and half-time.--## 5. Camera language--| Beat | Camera |-|---|---|-| Cold open | Frame 1 is already inside a game with the command word slamming. The rules explain themselves in 1 s. |-| First stage | Pull back out of the TV: the scale reveal. The game was one screen on a show. |-| Stage | Always the same frontal, symmetrical "home" frame. Only the scoreboard changes. |-| SPEED UP (signature shot) | The stage splits into **three slot-machine reels** that spin through earlier game frames with motion smear and stop one per beat on SPEED \| UP \| !. |-| Button | An Edgar-Wright-style **insert**: an extreme close-up of the red button as a glove smashes it on the beat. |-| Last life | The same stage with the lights cut to a single top spot; the host goes still. |-| BOSS STAGE | 8 tiles (7 last frames plus a BOSS card) flip in on eighth notes, then flip again to become pieces of the boss frame. |-| Boss silence | Push into the porthole close-up; the audience sees the dust before the hero does. |-| Climax | Snap back to wide in one beat as the ink canopy blooms. |-| Ending | Back to the home stage; the hero stands on it for the first time and salutes; then the camera pushes into the TV for the end card. |--## 6. Sound--- **Music first**: write the tempo grid (`timeline.js`) before any animation. Every hit is listed in a cue table (see TREATMENT.md) and the picture lands on it. `tools/cuecheck.py` checks 57 picture events against `music/score.json` (demo max offset 4.7 ms).-- **Score**: original funk/pop fusion. Drum kit with 16th hats and ghost notes, **synthesized slap bass** (additive pluck + band-passed thumb noise + 1.8–6.5 kHz pop + octave jumps and slides), stacked brass stabs (trumpet_stac + alto sax + trombone_stac), and a vibraphone+piano "e-piano". Drums and bass run through the whole film. On top, one **colour instrument per style**: xylophone (crayon), guqin harmonics and bends (ink), square beeps (ASCII), vibes and sax (riso), pulse arpeggio (pixel), muted trumpet (blueprint), claves and dry piano (Swiss). Each speed-up gets a rising brass run, and the key rises a whole step each round.-- **Real silences**: 1 beat before the first sneeze, the last-life stage (heartbeat only), and the boss close-up (heartbeat + the same guqin note as the first dust mote). The biggest hit comes right after the longest silence.-- **Foley follows the medium**: rubber squeak + air for the crayon pump, a wet splat and drips for ink, teletype clicks and a relay for ASCII, a paper thump and crunch for riso, bit-crushed noise for pixel, ratchet teeth and a stamp thunk for blueprint, a hollow bonk and small rubber boings for Swiss. Home-stage sounds: spring-loaded crown click, glass crack plus bouncing clinks for a lost life, card flips, slot-reel whirr, sparse sampled claps.-- **Voices**: host = Kokoro `am_fenrir` (it had the widest pitch range of the voices tested), speed 1.05–1.15. The host shouts every command 0.1 s *after* the stab so the brass doesn't mask the word. Hero = `af_bella` pitched +2.5 semitones, only "Oh no." plus the "ah… ah…" and sneeze, which are treated as SFX and exempt from whisper checks. Duck the music about 11 dB and the foley about 6 dB under voice.-- **Single-word commands in Kokoro**: "Pump!" comes out as "Pompey" and "Zip!" as "Zipper", because a vowel tail is added. Generate "Pump, now!" and cut at the end of the first word from whisper timestamps (`tools/trim_cmd.py`).--## 7. Subtitles & titles--- **The command word is the subtitle**: it is not burned twice, and it is listed in the .srt only.-- Other lines use a **gold rounded card** with a 7 px ink outline and a hard shadow, Lilita One 50 px, a small stopwatch icon (host) or helmet icon (hero), placed above the fuse in games. It pops in over 2 steps at 12 fps. Hold ≥ max(1.8 s, speech + 0.6 s), and never during a big banner.-- The title card is the home-stage marquee lighting up letter by letter (FIVE-SECOND ASTRONAUT / A MICROGAME FRENZY). The end card sits inside the TV: title, style name and "LemoLab × Claude Opus 5.5", with hero and host.--## 8. Pitfalls we hit--- A luminance-ramp ASCII hero is unreadable mush. Use a hand-authored template plus structural glyphs, and an inverse `@` for the antenna ball.-- The ink canopy first read as black smoke or a storm cloud. Keep the blot phase short and round, fan out gores with a gradient and seams, add a scalloped hem, and leave the edges light.-- The Swiss "salute fail" read as a raised hand. The arm has to *overshoot and hit* the red ball, and the failure needs an instant replay to be understood at 140 BPM.-- A crayon layer in alpha mode shows the background through the wax gaps. Give it a full-pressure paper-white base (or render it opaque and clip) wherever it must be solid.-- Toon drawing helpers that keep a global context (`K.g`) will draw on the wrong canvas when a scene renders into an offscreen buffer (TV screen, slot reels, tiles). Always call `setCtx` before and after.-- `flat` is a reserved word in GLSL ES 3.-- Uploading a 2D canvas without `UNPACK_FLIP_Y` means v = 0 is the canvas top; sample with `p/R`.-- Command tags pile up (LAND IT! + PULL! in the same corner). Secondary commands should fly out, not tag.-- A white impact flash at 100 % reads as a blank frame; cap it at 60 %.-- whisper often mishears 0.2 s command words inside a dense mix, even at +16 dB SNR. Verify them per clip, and measure SNR in the 300–4 kHz band for the mix.-- A zsh `$T` list doesn't word-split. Use the bash review helper `tools/review.sh`.--## 9. Production recipe (this repo)--```-styles/microgame/demo/- timeline.js tempo grid + segments (single source of truth) film.js assembly: stage, TV transitions, slot reels, boss tiles, end card, subs, events- toon.js chars.js stage.js hud.js home style, host & hero, stage, fuse/command/stamps/lives/subtitles- glpass.js WebGL2 material shaders: riso, crayon, CRT, ink, blueprint paper- g_crayon.js g_ink.js g_ascii.js g_riso.js g_pixel.js g_blue.js g_swiss.js g_boss.js one module per medium (scene + hero translation)- frames.js model sheets & style frames music/score.py original score mix.py foley + voices + ducking- tools/ trim_cmd.py cuecheck.py subs.py final_asr.py review.sh mux.sh dump_timeline.mjs-```-1. Write `timeline.js` (tempo grid), then the cue table, then hand the grid and cue table to a music sub-agent. Draw in parallel with it.-2. Build the home style and characters first, then **one `sceneX(g, lt)` per medium**. Review each with `?scene=g_x.sceneX` stills.-3. `sh demo/build.sh` rebuilds everything: TTS → trim → whisper → score → events → cue check → mix → srt → render (~25 s for 1436 frames) → mux (−14 LUFS, grain 0), about 1.5 minutes in total.-4. Review with `bash demo/tools/review.sh out/revN 6 $(seq 0.5 1 59.5)` at least twice, plus frame strips of every key action.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/microgame/TREATMENT.md b/styles/microgame/TREATMENT.mddeleted file mode 100644index 380708d..0000000--- a/styles/microgame/TREATMENT.md+++ /dev/null@@ -1,224 +0,0 @@-# Microgame Frenzy · 导演方案(Treatment)--**片名** *Five-Second Astronaut*(五秒宇航员)-**时长** 约 60 秒(120 → 140 → 160 BPM 三段速度网格,见第六节)| **画幅** 1920×1080 | **帧率** 24fps 输出;角色动画的步进随速度升级:第 1 轮 8fps(on threes)→ 第 2 轮 12fps(on twos)→ Boss 关 24fps(on ones)。镜头运动、转场、引线火花永远 24fps。-**一句话** 笨手笨脚的见习宇航员 Cadet Dot 参加"五秒训练营":秒表脑袋的主持人 Coach Tick 每按一下头顶的按钮,就把她丢进一个只有几秒、画风完全不同的微游戏;她在第一轮打了个喷嚏(输了一条命),第二轮敬礼把自己的天线敲飞(又输一条),只剩最后一条命进 Boss 关——亲手把返回舱降回地球。降落伞卡住的一瞬间,她故意吸了一口那颗曾害她输掉的灰尘:**一个水墨喷嚏喷出舱门,在天上洇开成一顶降落伞。**-**主题一句话**:你最丢人的那个失误,可能就是你的降落伞。-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么(语法) | 刻意不学 |-|---|---|---|-| **《瓦里奥制造》系列(WarioWare, 2003–)** | ① 一个命令词 + 几秒 + 一个动作;② 微游戏之间回到主持人舞台,舞台显示剩余生命、关卡数;③ 每过几关 SPEED UP,最后 Boss 关更长;④ **每个微游戏画风完全不同**,画风反差本身就是笑点和节奏;⑤ 失败也要好笑,失败画面和成功画面同样被"演"出来 | 不出现任何原作角色、微游戏、UI 图形(炸弹、生命图标、舞台造型)、音乐旋律、字体;片中不出现 "WarioWare" 字样。炸弹引线计时条只借"引线烧完 = 时间到"的通用游戏语言,造型改成**一根缠着刻度的编织引线 + 末端一枚小冲天炮**,全部自己设计 |-| **Edgar Wright 式动作剪辑**(《Scott Pilgrim》《Hot Fuzz》的蒙太奇语法) | 一个动作 = 一个声音 = 一个剪辑点;快速插入镜头(按钮特写、脸部特写)打在拍点上;用画框本身做转场 | 不做它的具体画面、漫画拟声字排版、镜头设计 |-| **综艺 / 游戏宣传片的快切节奏** | 老虎机式滚轮、计分板翻牌、主持人冲镜头喊口号 | 不用任何节目的舞台布景、吉祥物、口号 |-| **70 年代放克 / 游戏配乐融合**(语法) | 十六分音符军鼓鬼音 + 拍手、slap 贝斯八度跳、铜管齐奏打重音、电钢琴切分和弦;每次加速用一个上行乐句"推"过去;成功 / 失败各有短 jingle | 不引用任何现成旋律、动机、音色标识;不做 8-bit 芯片音乐(pixel-rpg 做过)、不做间谍大乐队(spy-titles 做过)、不做 ragtime(rubber-hose 做过) |--**和 07 game-show 的区别**:game-show 是单一扁平画风、按拍切菜的节奏游戏;本片的核心是**命令词 + 微游戏 + 画风每 3–4 秒换一次**,并且画风变化本身参与叙事(失败的画风在 Boss 关变成解法)。-------## 二、为什么这个媒介讲这个故事(原生能力 → 故事用法)--| 微游戏快闪的原生能力 | 故事里怎么用 |-|---|---|-| **画风硬切**:每个微游戏是一个独立的小世界,可以用完全不同的"绘画材料" | 7 个微游戏 = 本库 7 个风格(蜡笔绘本、水墨、ASCII 终端、孔版印刷、像素、蓝图、瑞士排版)。同一个主角在每个画风里被重新画一遍,**只保留三个剪影标志**(圆泡泡头盔、头顶的橙色弹簧天线球、胸前 05 号码),观众每次都能认出她 |-| **命令词**:一个动词就是整段剧情 | PUMP! / DON'T SNEEZE! / STRAP IN! / CATCH! / DODGE! / ZIP! / SALUTE! / LAND IT!——命令词就是字幕,也是节拍 |-| **生命值**:UI 本身就是情绪曲线 | 3 个头盔图标 → 2 → 1(闪烁)。观众不用任何旁白就知道"最后一条命"意味着什么 |-| **SPEED UP**:游戏可以整体变快 | 音乐 BPM、角色帧率、命令词停留、微游戏时长、舞台停留**五件事同时变快**,观众用身体感觉到加速 |-| **Boss 关把规则混在一起** | 一个画面里同时有 5 种画风:蓝图画的返回舱、蜡笔画的地球、ASCII 高度表、孔版印刷的海和云、瑞士排版的红色落点圆,以及——水墨的降落伞 |--**情绪弧**:好笑的开场(第一秒就在玩游戏)→ 自信(第一关过了)→ 丢人(水墨喷嚏,−1 命)→ 找回节奏(绑带、接三明治)→ 加速的兴奋 → 第二次丢人(敬礼把天线敲飞,−1 命)→ 静(最后一条命,灯暗,只剩心跳)→ Boss 关:降落伞失灵、全场静音 → **转折:她自己选择打那个喷嚏** → 水墨伞洇开、全乐队回来、升调 → 落在红圆正中 → 回响:主持人说"敬礼",这次她敬得完美,天线球稳稳立着。-一个角色(Dot)、一个目标(通过训练营 = 把返回舱降回地球)、一次转折(她的失误变成解法)。-------## 三、原生招式(放在情绪最高点)--1. **画风快切**(贯穿全片):一个命令词切一次画风。转场统一成一套"电视框语法":舞台中央有一台圆角大电视,进入微游戏 = 镜头冲进电视屏幕(6 帧放大到满屏,"呼"一声);微游戏结束 = 整个画面缩回电视里(8 帧),同时盖上 ✓ 或 ✗ 的结果章。没有淡入淡出、没有空白帧。-2. **SPEED UP 老虎机**(26.0–27.9s,本片"让人记住的镜头"):主持人一掌拍下舞台上的大按钮,整个舞台画面被竖着切成三条滚轮,像老虎机一样向上狂转(每条滚轮上滚过的是前 4 个微游戏的画面 + 舞台本身),三条滚轮在上行乐句的第 2、3、4 拍依次"咔"地停下,拼出 **SPEED | UP | !**。同一小节里音乐从 120 加速到 140。-3. **BOSS STAGE 拼贴**(39.0–40.6s):7 个微游戏各自的最后一帧变成 7 块瓷砖铺满屏幕,随上行乐句翻面、飞向中心,拼成 Boss 关的画面——Boss 关本来就是"用前面所有画风的碎片搭起来的"。-4. **情绪最高点:水墨喷嚏降落伞**(Boss 关第 3–5 小节,43.6–48.1s):拉伞失败(像素风的小伞"噗"地冒一下就变成 ERR 方块),音乐抽空只剩心跳和引线嘶嘶声;第 2 轮失败时飘来的那颗水墨灰尘又飘进舱里——Dot 看着它,眼睛一亮,**深吸一口**,"ah… ah…";第 5 小节第 1 拍 **ACHOO!!**:一团水墨从舱顶喷出,在孔版印刷的天空上洇开、晕染、边缘积墨,长成一顶真正的伞盖,墨线垂下来变成伞绳。全乐队 + 铜管齐奏回来、调性上移一个全音。**失败时的画风,变成了解法的材料**——这是只有"多画风微游戏"这个媒介才讲得出的转折。-5. **炸弹引线计时条**:每个微游戏底部一根燃烧的引线(主持人舞台的造型语言,在所有画风上都保持一致 = "游戏引擎层")。引线上每拍一个刻度结,火花**正好在拍点经过刻度**,最后一拍烧到末端的小冲天炮,冲天炮"噗"地弹出成功/失败章。Boss 关的引线加粗、带双股火星、长度是普通关的 4 倍。-------## 四、角色(关卡 1 交设定表)--所有角色原创。主持人舞台("家")用统一的**粗描边扁平卡通**:8px 近黑描边 `#1a1030`、平涂 + 一层硬边阴影、高饱和配色。--- **COACH TICK(主持人)**:脑袋是一只**金色机械秒表**(圆形表壳 + 顶上的按钮表冠 + 挂环)。表盘是他的脸:奶油色表盘、12 道刻度围一圈、两只椭圆大眼、一张很宽的嘴;一根**红色秒针**从表盘中心伸出,平时指向 12 点,情绪激动时会转(喊 SPEED UP 时秒针飞转)。身体很小:品红亮片燕尾服、青色翻领、黑色领结、白手套、细腿大球鞋。标志动作:**一掌拍自己头顶的表冠** = 开始下一个游戏("咔哒")。另有一只手持麦克风。- - 表情:大笑 / 冲镜头喊命令 / 捂脸(Dot 打喷嚏后)/ 严肃(最后一条命时,秒针停住、灯暗)-- **CADET DOT(主角,见习宇航员)**:约 2.3 头身的矮圆女孩。**圆泡泡玻璃头盔**(青色领圈,玻璃里能看见脸:桃色皮肤、大圆眼、雀斑、被头盔压扁的棕色丸子头);头盔顶上一根**弹簧天线 + 橙色小球**(任何动作都会"啵嘤"地晃,是她的情绪指示器);奶油白宇航服、橙色肩片和靴子、胸前 **"05"** 号码补丁(五秒训练营的 5 号学员)、橙色背包。- - 表情:认真(舌头伸出一点)/ 憋喷嚏(眼睛眯、鼻孔张大、嘴歪)/ 慌 / 骄傲- - **在 7 种画风里的"翻译"规则**:永远保留圆头盔 + 天线球 + 05;其余按该画风的规则重画(蜡笔 = 儿童画比例;水墨 = 几笔写意;ASCII = 字符拼成;孔版 = 两块色版叠印;像素 = 24px 小人;蓝图 = 正视工程图;瑞士 = 圆 + 矩形 + 红圆天线)。设定表里单独画一行"画风翻译"。-- **色板(家)**:舞台品红 `#ff2e88` · 紫 `#6b2bd9` · 深紫 `#2a0f5c` · 金 `#ffc928` · 暗金 `#e08a00` · 表盘奶油 `#fff6de` · 青 `#1fd1d1` · 宇航服奶油 `#f6f1e4` · 橙 `#ff7a1a` · 皮肤 `#ffc9a3` · 描边 `#1a1030` · 成功绿 `#3bdc5a` · 失败红 `#ff3b3b`-------## 五、7 个微游戏(每个都有"目标 + 结果")--| # | 命令词 | 画风(本库风格) | 目标 | 结果 | 为什么这个画风配这个游戏 |-|---|---|---|---|---|---|-| 1 | **PUMP!** | 蜡笔绘本(crayon-book) | 用打气筒给一枚气球似的火箭打气 | ✓ 火箭鼓成圆滚滚一只、离地浮起,Dot 蹦起来 | 儿童画里"火箭是吹起来的"最合理;开场要最友好、最暖的画风 |-| 2 | **DON'T SNEEZE!** | 水墨(ink-wash) | 一颗灰尘飘进头盔,忍住别打喷嚏 | ✗ **ACHOO!**——墨汁喷满整块面罩/画面,水墨晕开 | 喷嚏 = 一大团墨迹,只有水墨能把"喷"画成"洇开" |-| 3 | **STRAP IN!** | ASCII 终端(ascii-crt) | 把安全带扣上 | ✓ `====` 滑进 `[ ]`,扣成 `[##]`,终端反白显示 SECURED | 扣带子是"咔哒"一声的机械动作,配终端的继电器声 |-| 4 | **CATCH!** | 孔版印刷(risograph) | 失重舱里接住飘走的三明治 | ✓ 一把抓住,大咬一口 | 飘浮的柔软东西 + 粉/蓝/黄叠印,最松弛的一关,放在加速前 |-| 5 | **DODGE!** | 像素(pixel-rpg) | 跳过三颗飞来的陨石 | ✓ 三连跳全躲过(第三颗擦着靴底) | 横版跳跃是像素游戏的母语 |-| 6 | **ZIP!** | 蓝图(blueprint) | 把宇航服拉链拉到顶 | ✓ 拉链头沿虚线一格一格上去(每八分音符一格),盖红章 OK | 拉链 = 尺寸线上的刻度,一格一格"咔咔咔" |-| 7 | **SALUTE!** | 瑞士排版(swiss-motion) | 敬礼 | ✗ 手臂矩形转过头,一下敲飞头顶的**红圆**(天线球),红圆弹出网格滚出画面 | 瑞士网格里"一个元素出格"就是笑点;红圆在 Boss 关回来当落点 |-| B | **LAND IT!** | 混合:蓝图返回舱 + 蜡笔地球 + ASCII 高度表 + 孔版海与云 + 像素小伞 + 瑞士红圆落点 + 水墨大伞 | 把返回舱降落在海上的红圆里 | ✓ 正中红圆,水花溅起 | 前面每个画风的碎片都在这里"复用",观众会自己认出来 |--**命令词设计**:主持人舞台的超粗展示字(OFL),白字 + 12px 近黑描边 + 金色硬投影,−6° 倾斜,占满半屏;第一拍"砸"进来(缩放 1.6 → 1.0,带 2 帧过冲),停 0.6–0.75s,然后缩到左上角变成一个小标签留到游戏结束。主持人同时喊出这个词。-------## 六、速度网格与分镜节拍表--**速度网格**:第 1 轮 120 BPM(1 拍 0.500s,1 小节 2.000s)→ 加速小节 120→140 → 第 2 轮 140 BPM(1 拍 0.4286s)→ 加速小节 140→160 → Boss 160 BPM(1 拍 0.375s,1 小节 1.500s)。-**五个维度同时加速**:--| | 第 1 轮 | 第 2 轮 | Boss |-|---|---|---|---|-| BPM | 120 | 140 | 160 |-| 微游戏长度 | 2 小节 = 4.00s | 1.5 小节 = 2.57s | 8 小节 = 12.0s |-| 舞台停留 | 1 小节 = 2.00s | 2 拍 = 0.86s | — |-| 命令词大字停留 | 1.5 拍 = 0.75s | 1.5 拍 = 0.64s | 2 拍 = 0.75s |-| 角色帧率 | 8fps | 12fps | 24fps |--| # | 时间 (s) | 拍 | 段落 | 画面 / 表演 | 机位意图 |-|---|---|---|---|---|---|-| 1 | 0.00–4.00 | 8 @120 | **G1 PUMP!(蜡笔)** 冷开场 | 第 1 帧就是命令词 PUMP! 砸在蜡笔画面上(铜管齐奏 + 主持人喊)。Dot(蜡笔画)双手压打气筒,第 2–6 拍每拍一压,火箭每拍鼓一圈("噗—咻"),第 7 拍火箭鼓满、离地浮起,Dot 蹦起、天线球乱晃;第 8 拍 ✓ | 正侧面中景,Dot 占画高 45%:开场 1 秒内让观众懂规则——一个词、一个动作、一个结果 |-| 2 | 4.00–8.00 | 8 | **舞台:片名** | 画面缩回电视(✓ 绿章)→ 镜头从电视拉出,揭示舞台和 Coach Tick;顶上霓虹招牌亮起片名 **FIVE-SECOND ASTRONAUT**(第 2 拍逐字亮,第 4 拍副标 A MICROGAME FRENZY)。Tick 拍头顶表冠:"Welcome to Five-Second Camp!";右上生命 ×3、左上 STAGE 2 | 拉镜 = 尺度揭示:刚才的游戏只是电视里的一格。舞台是正面、对称、居中的"家" |-| 3 | 8.00–12.00 | 8 | **G2 DON'T SNEEZE!(水墨)** | 宣纸上几笔写意的 Dot 头像大特写(面罩一个淡墨圆);一颗灰尘(一个焦墨点 + 飞白尾巴)第 2 拍飘入,第 4、5 拍鼻翼抽动 "ah… ah…",第 7 拍 **ACHOO!**:墨从面罩内喷出,满屏大墨团洇开(湿边积墨、飞溅墨点);第 8 拍 ✗ | 大特写:憋喷嚏的戏全在脸上;墨团要盖满画面才好笑 |-| 4 | 12.00–14.00 | 4 | **舞台:−1 命** | 满屏墨迹缩回电视(✗ 红章);右上一个头盔图标裂开、蹦两下掉出画框;Tick 捂脸:"Bless you. Next!";第 4 拍拍表冠 | 同一个正面机位(家不变,变的是计分板)|-| 5 | 14.00–18.00 | 8 | **G3 STRAP IN!(ASCII)** | 琥珀色终端:`> STRAP_IN.EXE` 打字出现;字符拼成的 Dot 坐在座椅上;安全带 `========` 第 3–6 拍每拍向右推进一段,第 6 拍插进 `[ ]` 变 `[##]`(继电器"咔");第 7 拍 `SECURED` 反白闪烁;✓ | 平视正面构图,像控制台监视器 |-| 6 | 18.00–20.00 | 4 | **舞台** | ✓ 缩回;计分 +1 翻牌;Tick 跳一下,拍表冠 | |-| 7 | 20.00–24.00 | 8 | **G4 CATCH!(孔版)** | 粉/蓝/黄三版叠印的失重舱,三明治从左向右慢慢翻滚飘走;Dot 在失重里"游"过去(第 2–5 拍),第 6 拍一把抓住(黄版 kick),第 7 拍大咬一口 CHOMP;✓ | 横移跟拍,舷窗外一颗粉色大星球 |-| 8 | 24.00–26.00 | 4 | **舞台:按钮** | ✓ 缩回;Tick 眯眼:"Too easy?" 第 4 拍从讲台下拉出一个巨大红按钮,一掌拍下 | 推近到 Tick 的中近景:要出事了 |-| 9 | 26.00–27.85 | 4 加速 | **SPEED UP 老虎机** | 舞台画面竖切三条滚轮狂转(滚过前 4 个游戏的画面),在第 2、3、4 拍依次停下:**SPEED \| UP \| !**;Tick:"Speed up!";秒针飞转 | 本片的招牌镜头 |-| 10 | 27.85–30.42 | 6 @140 | **G5 DODGE!(像素)** | 240×135(×8 放大)像素星空横版:三颗陨石在第 2、3.5、5 拍飞到,Dot 跳(第三颗擦着靴底过去,靴底迸出 3 像素火花);✓ | 横版平视,Dot 在左三分线 |-| 11 | 30.42–31.28 | 2 | 舞台(快) | ✓ 缩回、计分翻牌、立刻拍表冠 | 舞台停留只有 2 拍 = 观众感到"来不及喘气" |-| 12 | 31.28–33.85 | 6 | **G6 ZIP!(蓝图)** | 晒图蓝纸上宇航服正视工程图;拉链头沿虚线尺寸线每个八分音符上一格(咔咔咔 ×8),到领口盖红章 OK;✓ | 正视图居中,镜头随拉链头微微上摇 |-| 13 | 33.85–34.71 | 2 | 舞台(快) | ✓ | |-| 14 | 34.71–37.28 | 6 | **G7 SALUTE!(瑞士)** | 浅灰网格纸上:Dot = 大黑圆(头盔)+ 矩形身体 + 顶上一个红圆(天线球);第 2 拍手臂矩形旋转敬礼,**转过了头**,第 3 拍"咚"地敲飞红圆,红圆在网格上弹两下、滚出画框(off grid 标注);Dot 的圆头慢慢转向画框外;✗ | 严格网格 + 大留白,笑点靠"一个元素出格" |-| 15 | 37.28–38.99 | 4 @140 | **舞台:最后一条命** | ✗ 缩回;第 2 个头盔裂开掉落,只剩 1 个在闪;舞台灯"啪"地灭到只剩一束顶光;音乐掉到只剩心跳底鼓;Tick 秒针停住,严肃:"One life left, cadet." | 全片唯一的静:低机位、顶光、大面积黑 |-| 16 | 38.99–40.60 | 4 加速 | **BOSS STAGE 拼贴** | Tick 猛拍表冠:"Boss stage!";7 块瓷砖(7 个游戏的最后一帧)铺满屏幕、按上行乐句逐块翻面飞向中心,合成 Boss 画面 | |-| 17 | 40.60–42.10 | B1 @160 | **BOSS · LAND IT!** | 命令词砸下;揭示混合画面:蜡笔大地球占下半屏(地平线弧)、蓝图线稿返回舱(蓝底白线的一块"补丁")带着水墨火焰尾迹冲下来、右上 ASCII 高度表 `ALT 120000` 滚动、孔版印刷的粉色云层飞过;舱窗里是"家"画风的 Dot 的脸,咬牙 | 返回舱在画面上三分之一、斜 20° 向右下冲:速度感 |-| 18 | 42.10–43.60 | B2 | 再入 | 云层按拍掠过(每拍一层),高度表每拍跳一档,镜头微震 | 跟拍(返回舱保持在画面同一位置,世界向上掠过)|-| 19 | 43.60–45.10 | B3 | **PULL!** | 第 1 拍 Tick 喊 "Pull!",Dot 拉拉杆;第 2 拍舱顶"噗"冒出一顶像素风小伞(16×10 像素,8 色)——第 3 拍它变成一个 `ERR` 方块碎掉;Dot:"Oh no." | 切近景:舱窗里的脸 |-| 20 | 45.10–46.60 | B4 | **静** | 音乐抽空:只剩心跳 + 引线嘶嘶声(引线只剩 1/3);那颗**水墨灰尘**飘进舱窗;Dot 盯着它——眼睛一亮;第 3、4 拍她**主动**深吸:"ah… ah…" | 大特写舱窗里的脸,灰尘在脸前:观众比她先一拍明白 |-| 21 | 46.60–48.10 | B5 | **ACHOO!! 水墨伞** | 第 1 拍:墨从舱顶喷出,在粉色孔版天空里洇开,4 拍内长成一顶带积墨边缘的伞盖,墨线垂下成伞绳;返回舱猛地一顿、减速;全乐队 + 铜管齐奏回来,升一个全音 | 机位急速拉远(1 拍内),让伞盖充满画面上半 |-| 22 | 48.10–51.10 | B6–B7 | 下降 | 水墨伞下的蓝图舱缓缓摆荡;下方孔版印刷的海面出现瑞士风的**红圆**落点(就是 G7 被敲飞的那颗红圆——它滚到了海上);Dot 左右摆舱对准;高度表每拍 `0400 → 0010`;引线快烧完 | 俯拍 45°:目标、舱、伞三者同框 |-| 23 | 51.10–52.60 | B8 | **SPLASHDOWN** | 第 1 拍舱落进红圆正中,蜡笔水花 + 孔版浪花;第 3 拍大章 **CLEAR!**;引线末端冲天炮升空炸成彩纸 | 定格 2 帧冲击帧 |-| 24 | 52.60–57.10 | 12 | **结算 + 回响** | 缩回电视 → 舞台灯全亮、彩纸;生命 ×1 仍亮着,计分翻到 7;Tick:"You made it, cadet. Salute!";Dot(家画风,第一次出现在舞台上)走进画面,在第 9 拍敬礼——**这次手停在正确的位置**,天线球只轻轻晃两下然后稳住;Tick 的秒针"叮"地回到 12 点 | 回到开场同一个正面机位:同一个舞台,这次她站在里面 |-| 25 | 57.10–~59.8 | 6+ | **片尾卡** | 电视屏幕上:FIVE-SECOND ASTRONAUT / Microgame Frenzy / LemoLab × Claude Opus 5.5;最后一个和弦 + 冲天炮"噗" | 电视框收尾 = 片子本身也是一个微游戏 |-------## 七、Cue map(音乐先行;画面卡这张表)--**配乐类型**:原创放克/流行融合——鼓组(drum_kit,CC BY)+ slap 贝斯(electric_bass 高力度短音 + 八度跳 + 合成 pop 音头)+ 铜管齐奏(trumpet_stac + trombone_stac + alto_sax 叠八度)+ 电钢琴(vibraphone_hard 与 piano 叠加 + 颤音近似)+ claps。**鼓和贝斯从头贯穿到尾**(只在两处刻意抽空),每个微游戏上面叠一层"画风乐器"。--| 段落 | 时间 | BPM / 调 | 配器(鼓贝斯之上) | 情绪 | 卡点(画面必须落在这些拍上) |-|---|---|---|---|---|---|-| G1 PUMP(蜡笔) | 0.00–4.00 | 120 · E 多利亚 | 木琴(xylophone)跟着打气每拍一音、上行 | 友好、弹跳 | 0.00 铜管齐奏 + 命令词;0.5–2.5 每拍打气 = 贝斯八度 + 木琴;3.00 火箭浮起 = 滑音上行;3.50 ✓ jingle |-| 舞台·片名 | 4.00–8.00 | 120 · E | **舞台主题**:铜管 riff + 电钢琴切分 + claps | 热闹、欢迎 | 4.00 缩回电视"嗖"+ 镲;4.50 片名逐字亮(每字一个十六分音符的电钢琴);5.00 副标;5.0 旁白 1;7.50 拍表冠"咔哒" |-| G2 SNEEZE(水墨) | 8.00–12.00 | 120 · E | 古琴(pluck guqin)按音上滑 + 木鱼 | 紧张的小滑稽 | 8.00 命令词;8.50 灰尘飘入 = 古琴泛音;9.5 / 10.0 "ah" = 两次古琴上滑(越滑越高);10.5 **全乐队停一拍半(静)**;11.00 ACHOO = 大鼓 + 镲 + 墨"啪";11.50 失败音 |-| 舞台 −1 | 12.00–14.00 | 120 | 舞台主题(小调变体,铜管下行) | 丢人 | 12.00 头盔裂开"咔啦";12.4 旁白 2;13.50 拍表冠 |-| G3 STRAP(ASCII) | 14.00–18.00 | 120 · E | 方波哔哔声 + 电传打字机咔嗒 | 机械、专注 | 14.00 命令词;15–17 每拍一段安全带 = 贝斯 + 方波;17.00 扣上 = 继电器"咔"+ 镲;17.50 ✓ |-| 舞台 | 18.00–20.00 | 120 | 舞台主题 | | 18.00 ✓ 缩回;19.50 拍表冠 |-| G4 CATCH(孔版) | 20.00–24.00 | 120 · E | 颤音琴(vibraphone)+ 中音萨克斯长音 | 飘、松弛 | 20.00 命令词;22.50 抓住 = 铜管短促 + 版 kick;23.00 CHOMP;23.50 ✓ |-| 舞台·按钮 | 24.00–26.00 | 120 | 舞台主题 → 军鼓滚奏渐强 | 预感 | 24.5 旁白 3 "Too easy?";25.50 拍按钮 = 大鼓 + 镲 |-| **SPEED UP** | 26.00–27.85 | 120→140 | **上行铜管乐句**(半音爬 4 拍)+ 滚轮"哗啦啦"+ 军鼓十六分音符 | 加速! | 滚轮在第 2/3/4 拍(约 26.48 / 26.94 / 27.40)逐条"咔"停;26.5 喊 "Speed up!" |-| G5 DODGE(像素) | 27.85–30.42 | 140 · F# 多利亚(升一个全音) | 脉冲波琶音(合成,1 声部点缀,不做整段芯片音乐) | 跳跃 | 28.28 / 28.92 / 29.57 三次起跳 = 贝斯八度跳 + 方波上滑;30.0 ✓ |-| 舞台(快) | 30.42–31.28 | 140 | 2 拍铜管 stab | | 30.42 缩回;31.07 拍表冠 |-| G6 ZIP(蓝图) | 31.28–33.85 | 140 · F# | 弱音小号断奏 + 棘轮咔嗒 | 精准 | 31.71–33.43 每八分音符一格拉链(8 格)= 棘轮 + 踩镲;33.43 红章 = 大鼓 |-| 舞台(快) | 33.85–34.71 | 140 | | | |-| G7 SALUTE(瑞士) | 34.71–37.28 | 140 · F# | 响棒 + 钢琴断奏(极简) | 端正 → 出糗 | 35.14 敬礼开始;35.57 "咚"敲飞红圆 = 木块 + 贝斯滑音下行;36.0 / 36.4 红圆弹跳 = 两声 "啵";36.85 失败音 |-| 舞台·最后一条命 | 37.28–38.99 | 140 | **抽空**:只剩心跳底鼓 + 一个低音长音 | 静、压力 | 37.28 灯灭"啪"+ 头盔掉落;37.7 旁白 4 |-| **BOSS STAGE** | 38.99–40.60 | 140→160 | 上行铜管乐句(比 SPEED UP 高一个全音)+ 定音鼓滚奏 | 决战 | 39.0 喊 "Boss stage!";瓷砖每个八分音符翻一块 |-| BOSS B1–B2 | 40.60–43.60 | 160 · G# 小调 | 全乐队:slap 贝斯十六分、铜管强奏、电钢琴、claps | 冲 | 40.60 LAND IT!;每拍一层云 = 踩镲开合;高度表每拍跳 = 方波哔 |-| BOSS B3 | 43.60–45.10 | 160 | 铜管减弱 | 慌 | 43.60 "Pull!";43.98 小伞"噗"= 方波上滑;44.35 ERR = 方波下滑 + 噪声 |-| BOSS B4 | 45.10–46.60 | 160 | **抽空**:心跳 + 引线嘶嘶 + 一声古琴泛音(灰尘) | 静 → 灵光一闪 | 45.10 灰尘 = 古琴泛音(和 G2 同一个音);45.85 / 46.23 "ah" = 古琴上滑两次 |-| **BOSS B5** | 46.60–48.10 | 160 · **A 小调(升全音)** | 全乐队 + 铜管齐奏主题 + 镲 | 爆发、释放 | 46.60 ACHOO = 大鼓 + 镲 + 墨"轰";伞盖 4 拍长成 = 铜管上行四音 |-| BOSS B6–B7 | 48.10–51.10 | 160 · A | 主题完整一遍(铜管 + 萨克斯齐奏) | 胜利在望 | 每拍高度表跳一档 |-| BOSS B8 | 51.10–52.60 | 160 · A | 全乐队重音 → 停 | | 51.10 落水 = 大鼓 + 镲 + 水花;51.85 CLEAR!;52.2 冲天炮 |-| 结算 + 回响 | 52.60–57.10 | 160 · A | 舞台主题(大调版,全乐队)+ claps | 骄傲 | 53.0 旁白 5;55.60 敬礼 = 铜管 stab + "叮";56.35 秒针回 12 点 |-| 片尾 | 57.10–~59.8 | 160 · A | 最后一个和弦 + 小尾巴(button:贝斯一声滑音 + 冲天炮"噗") | | 57.10 片尾卡;和弦自然衰减到结束 |--**成功 / 失败音效(原创)**:✓ = 铜管三连音大调上行 + 拍手 + "叮";✗ = 长号三音半音下滑(带滑棒的湿音色)+ 一声"咕噜"的低音号 + 小锣——失败音要比成功音**更好笑**(慢半拍、有点拖)。--**Kokoro 声线**:主持人试 am_puck 与 am_fenrir(测音高方差和能量,选更有活力的),不用 af_sky。命令词既显示也由主持人喊出(whisper 校对,`asr` 字段)。主角 Dot 只有憋喷嚏 / 喷嚏 / 一句 "Oh no."(试 af_nicole / af_bella 的短音,喷嚏可能要用合成 + 人声拼接)。--**台词表(暂定)**--| # | 时间 | 谁 | 台词 |-|---|---|---|---|-| 命令 | 各游戏第 1 拍 | Tick | Pump! / Don't sneeze! / Strap in! / Catch! / Dodge! / Zip! / Salute! / Land it! / Pull! |-| 1 | 5.0 | Tick | Welcome to Five-Second Camp! |-| 2 | 12.4 | Tick | Bless you. Next! |-| 3 | 24.5 | Tick | Too easy? |-| 4 | 26.5 | Tick | Speed up! |-| 5 | 37.7 | Tick | One life left, cadet. |-| 6 | 39.0 | Tick | Boss stage! |-| 7 | 44.35 | Dot | Oh no. |-| 8 | 53.0 | Tick | You made it, cadet. Salute! |-| — | 9.5–11.0 / 45.85–46.6 | Dot | Ah… ah… ACHOO! |-------## 八、声音设计(拟音跟着画风的"材料"走)--| 画风 | 材料 | 拟音 |-|---|---|---|-| 家(舞台) | 塑料、霓虹、现场 | 拍表冠"咔哒"(金属弹簧)、按钮"砰"、计分翻牌"嗒啦"、头盔裂开"咔啦 + 叮当弹跳"、彩纸、稀疏掌声(claps 采样) |-| 引线 | 火药 | 持续嘶嘶(带通噪声 + 随机噼啪),每拍一个刻度"嘀",末端冲天炮"噗—咻" |-| 转场 | 电视 | 冲进电视 = 低频"呼";缩回 = 高频"嗖"+ 显像管"嗒" |-| 蜡笔 | 纸、蜡 | 蜡笔在纸上"沙沙"、打气筒橡胶"吱—噗"、气球拉伸"吱呀" |-| 水墨 | 宣纸、水 | 毛笔"唰"、墨滴"嗒"、喷嚏的墨团 = 湿"啪"+ 洇开的"嘶";Boss 伞盖 = 大号湿"轰" |-| ASCII | 继电器、磁头 | 电传打字机咔嗒(每字符)、继电器"咔"、终端"哔" |-| 孔版 | 纸张、滚筒 | 版 kick = 印刷滚筒"咚—刷"、失重"呼"、咬三明治"咔嚓" |-| 像素 | 芯片 | 方波跳跃"啵↗"、陨石噪声"轰"(低比特) |-| 蓝图 | 铅笔、金属 | 铅笔"嚓"、拉链棘轮"咔咔"、红章"嗵" |-| 瑞士 | 干净的物体 | 极短的干净咔嗒、木块"咚"、红圆弹跳"啵"、滚动的细碎嗒嗒 |--混音:人声压缩后在音乐之上(音乐在台词下闪避约 −8 dB);两处"静"必须是真静(Boss B4 只留心跳 + 引线,G2 喷嚏前 1.5 拍全乐队停);响度 −14 LUFS;mux 颗粒 0(每个画风自己处理质感)。-------## 九、字幕设计--- **命令词就是字幕**:命令词是满屏大字,不再重复烧录;只进 .srt。-- **旁白字幕**(主持人 / Dot 的非命令台词):舞台风格的"对话牌"——金黄 `#ffc928` 圆角牌 + 6px 近黑描边 + 4px 硬投影,Lilita One(OFL)48px 近黑字;牌子左侧一个小图标(主持人 = 秒表,Dot = 头盔)。位置:底部居中、离下边 110px,**在微游戏里自动避开底部引线**(抬高到引线上方)。弹出:缩放 0.8 → 1.0,12fps 两步(和家画风的步进一致)。-- **停留**:每句 ≥ max(1.8s, 语音 + 0.6s);两句不重叠;命令词大字期间不出旁白字幕。-- **.srt**:包含全部台词(含命令词)。-------## 十、技术方案--- 纯 Canvas2D + 一个小 WebGL2"材料通道"(`glpass.js`):把某个画风的中间画布送进着色器,出孔版半调(RGB = 三块色版的密度)、蜡笔上牙纸纹(A = 压力)、ASCII 的磷光辉光 + 扫描线、水墨湿边积墨。一个通道服务 4 个画风。-- 每个画风一个模块(`styles/*.js`),每个模块导出 `draw(ctx, t_local, params)`,只画自己的小世界;主持人舞台和引线 / 命令词 / 生命值是统一的"引擎层"。-- 其它风格目录的代码与素材**一律不拷贝**,只读它们的 STYLE.md 抓要点后用简化代码重画。-- 字体(OFL,自行下载到 `demo/fonts/`):命令词与 UI 用超粗展示字,字幕 Lilita One,ASCII 用等宽终端字,蓝图用手写制图字,瑞士用无衬线怪诞体,蜡笔用手写体。-- 配乐 fork 一个子 agent 按本 cue map 写(契约:BPM 网格 + 每段配器 + 卡点列表 + 两处真静音),画面并行制作。-------## 十一、制作阶段修订(关卡 1 意见落实后,以成片为准)--| 项 | 方案原稿 | 成片 | 理由 |-|---|---|---|---|-| G7 SALUTE | 6 拍 | **8 拍,第 4–6 拍是即时回放**(定格 3 帧 → 0.5× 慢放 + 推近 1.4× → 恢复),引线在回放时冻结 | 协调者意见 3:丢倒数第二条命的节点必须看懂 |-| G7 失败动作 | 手臂敲飞红圆 | 手臂矩形转过 90° 继续转,**同时伸长超过模块长度**,打中天线红球;红球两次落底线(36.21 / 36.42,对配乐木块),回放后沿底线滚出左边,标注 "← off grid",规则文字里 90° 被红线划掉改成 212° | 瑞士网格的笑点 = 一个元素超出规则 |-| 时间表 | 结尾卡 6 拍 | RESULT 10 拍 + END 7 拍;总长 59.83 s | G7 多出的 2 拍从结尾挤出 |-| Boss 灰尘 / 喷嚏 | — | 灰尘 46.0、"ah" 46.70 / 47.08、ACHOO 47.452;墨滴 → 圆墨团(0.3 s)→ 9 瓣伞展开(到 48.9) | 意见 1:看得到"一滴墨长成伞的轮廓" |-| Boss 画面 | 含像素海鸥 | 删掉海鸥;ASCII 高度表缩到右上角 22 列小框;焦点链 伞 → 舱 → 红圆 | 意见 2 |-| 再入火焰 | 水墨火焰 | 孔版黄 + 粉叠印的等离子火舌(水墨只留几道淡干笔速度线) | 水墨黑线在蓝天里读成"绳子" |-| 按钮 | Tick 拉出按钮 | S4 第 1.25 拍切**按钮特写插入**,白手套在 25.5 砸下(Edgar Wright 式插入镜头) | 更干脆、一个动作一个声音一个剪辑点 |-| 命令词语音 | 与命令词同拍 | 晚 0.1 s(让过铜管 stab 的起音) | 实测 stab 会盖住 0.2 s 的单词 |-| "Oh no." | 45.2 | 45.62 | 让开 ERR 蜂鸣 |-| 第三颗陨石 | 擦过天线 | 擦过靴底 | 跳跃几何 |diff --git a/styles/microgame/style.json b/styles/microgame/style.jsonnew file mode 100644index 0000000..94f3ebc--- /dev/null+++ b/styles/microgame/style.json@@ -0,0 +1,18 @@+{+ "slug": "microgame",+ "num": "32",+ "en": "Microgame Frenzy",+ "cn": "微游戏快闪(瓦里奥制造式)",+ "category_en": "Games",+ "category_cn": "游戏",+ "film": "Five-Second Astronaut",+ "line": "A clumsy cadet survives a five-second boot camp, faster and faster, until the boss: landing home.",+ "line_cn": "见习宇航员闯五秒训练营,越来越快,Boss 关亲手降落回地球。",+ "uses": [+ "Game trailers",+ "Onboarding",+ "Social shorts"+ ],+ "frame_sec": 23.92,+ "dur": 59.8+}diff --git a/styles/midcentury-toon/DEMO.md b/styles/midcentury-toon/DEMO.mdnew file mode 100644index 0000000..6629329--- /dev/null+++ b/styles/midcentury-toon/DEMO.md@@ -0,0 +1,185 @@+# Mid-century Cartoon — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Meet Pip* (40.0 s) · `midcentury-toon.mp4` · source in [`demo/`](demo/)+++## Story & structure++A product set-up guide for a fictional robot vacuum, Pip (the first use case in STYLE.md §11). It fits a product page, a QR code on the box, or a help centre. The old guide framed every film in this style as "a 30–40 second scene film: the user gives you the thing and its steps; you decide the shots, the timing, the sound and the score"; that framing now lives in STYLE.md.++Structure: hook reveal ("Meet Pip.", the box opens on a mustard ground) → one scene per step (wide + round detail call-out): ① set the dock against a wall (50 cm clear each side), ② pair the phone (2.4 GHz), ③ hold the start button (one second) → payoff (the vacuum's route drawn over the floor plan) → tip → poster lockup (the three steps as medallions) → iris-out end card.++The presenter, **June**, a new homeowner: an egg head with a long pointed nose that is part of the face's outline, a bob with a mustard headband, a coral turtleneck and navy cigarette trousers (the treatment explains why she is not a 1950s "housewife"). Her body is a held drawing; hands are four-finger gloves in four shapes: open, flat, point and grip. Scenes: one colour plane, a floor band, a horizon with gaps, and props such as a wall edge, a socket, a phone.++The demo's reference for how the moves served information:++**How the native moves serve information (not story):**+- **Off-register colour** makes a flat info card feel hand-made, and warm enough to sit on a product page. Keep it on everything, text included.+- **Limited animation** points the eye. When the body is still, the hand is the only thing moving, and that hand *is* the step. Give every step one hand action with anticipation → action → follow-through, landing on a beat.+- **The round call-out** (a manual's magnifier) is the close-up. The wide stays for context and the hands get big inside the circle. The step's data (50 cm, 2.4 GHz, one second) lands inside or on that circle on the action beat, never as a slide.+- **The numbered medallion** is both a hierarchy marker and a door. It stamps onto the outgoing scene's subject, and the camera goes through it into the next step.+- **The payoff turns function into ornament.** In the demo, the vacuum's real route (wall-follow, then boustrophedon lanes that flow around furniture, with a small curl at every turn, stars and dots between lanes) draws itself room by room, one room per beat. Stepping back, it reads as an atomic-age textile.++## Shots++The camera is always "the stand": pushes, trucks, tilts, pull-backs, never handheld. The demo used one transition grammar, **the circle**:++| Move | Where in the demo | Why |+|---|---|---|+| Slow push 1.00 → 1.07 | Hook | Collects the eye onto the product on its stage |+| **Iris through the medallion** (circle grows from the stamp to full frame, 0.9 beat) | Every step change | The step number *is* the door |+| Truck right + gentle push | Step 1 wide | Follows the push toward the wall |+| Round detail call-out (frame in frame, with a dashed leader line to its subject) | Every step | Constant line weight at close-up scale; context stays visible |+| Push into the phone, then pan along the signal rings | Step 2 | From person → interface → device |+| Tilt down with the finger | Step 3 | The press is the most important action; the finger leads the frame |+| **Button → iris → top view** | Step 3 → payoff | The start button opens into the plan; circle to circle |+| **Pull-back + counter-rotation, 5.4× → 1.0×, −6° → 0°** (signature) | Payoff | Scale reveal: one lane → a whole flat printed like a textile |+| Colour-block wipe (side for the tip, bottom-up for the lockup) | Tip, lockup | Changes the "page" of the manual |+| Dead still ≥ 3 s | Lockup | Tells the viewer: this frame is the one to screenshot |+| **Iris-out onto the product**, end card inside a circle | End | The classic cartoon ending, and the last circle |++Why this route, for this job: every step change went through its own number, so the hierarchy was also the edit; the button → top view iris joined the most important action to its result; the pull-back gave the one "wow" of the film to the product's real behaviour; the dead-still lockup is the screenshot. Each is one choice from STYLE.md §6, not the style's default opening or ending.++Timeline (built from content): hook 4 bars, each step ≥ 3 bars (from its voice length), the last step 2 bars, then payoff 3, tip 2, lockup 3 and end 2 bars at 132 BPM. Three steps = 22 bars = 40.0 s. Key subjects ≥ 1/3 frame height and out of the bottom 140 px (the caption card).++## Score structure++- **Music:** an original West-Coast cool-jazz combo at **132 BPM**: vibraphone (chords, arpeggios, glissandi, motor tremolo), flute (melody), pizzicato upright bass (walking), brushes (a swirl plus 2 and 4, sticks on the ride for the payoff), a celesta colour. **Every step lands on its own vibraphone chord** (F6, B♭maj7, C9), and the lockup brings those chords back one per medallion, transposed. In the payoff the vibraphone plays "one note per lap", driven by lap times exported in `events.json`.+- **Rhythm arc:** normal → double-time at the payoff (key up a whole step) → half-time for the tip (the breath) → normal for the lockup.+- **Silences:** A (0–1.36 s): no music, only the box. B (the last beat before the press): *everything* off, ambience included, so the first sound after it is the start click. C (before the lockup): room tone only. The first sound after silence C is the first medallion stamp.+- **J/L cuts:** music enters before the reveal; each step's line starts half a beat before its iris; the motor starts 0.2 s before the payoff; the last Wi-Fi pip rings into step 3; the payoff's glissando tail rings into the tip.+- **Ambience:** warm room tone (low-passed brown noise, about −42 dB) and a very quiet mantel-clock tick on the half-note grid. In the payoff, Pip's motor hum (a band-passed saw with a slow LFO plus brush hiss) takes over.+- **Foley in this film:** the box (creak, flap thumps a semitone apart, a swish into a slap), the plug click, floor scrapes for the dock, stamps for every medallion, slide whistles for the 50 cm arrows, rising pips for "connected", pen scratches as each room's route draws, the ink line peeling off paper, an iris "shhk".+- **Mix:** narration compressed on top, music ducks 8 dB under it, foley unducked, −14 LUFS, true peak −1.2. `tools/cuecheck.py` found 0 hits off the half-beat grid.+- **Narrator:** calm classroom authority. The demo uses Kokoro `am_michael` at 0.94. `bm_george` was tried: whisper heard "dock" as "dark" in his British vowel. Keep lines to one clause: "Step one. Set the dock against a wall."++## Palette & props++**Palette (demo; every value is a content.json field):**++| Role | Hex |+|---|---|+| Paper | `#F4EAD5` (shade `#E6D8BC`, `#D4C29F`) |+| Ink (warm black) | `#2B2420` |+| Coral (accent, June's sweater) | `#E4613F` / dark `#B8452B` |+| Mustard (hook ground, belts, dots) | `#E8B43A` / light `#F3D37F` |+| Turquoise (the product) | `#3FA7A0` / dark `#257A74` |+| Dusty blue / avocado / pink / plum (step grounds) | `#7F9CC0` · `#A7AE5B` · `#F0B4A8` · `#6E4A6B` |+| Navy (trousers) · hair · skin | `#3B4766` · `#3A2621` · `#F2C7A0` |+| Kraft (box) | `#C9955D` / `#A2713F` / `#DDB47F` |++- **One ground colour per scene**, lighter tint for walls (`tint(col, .45)`), darker shade for floors (`shade(col, .16)`). Never place the product on its own colour or June on coral/pink.+- **Line:** 3–5 px ink ribbons with ±40 % width breathing and 12–25 % breaks. Characters: 4 px. Props: 3–4.5 px. Walls in plans: 6–7 px, broken. Hands: one 6 px outline around the union of palm and fingers, 2.4 px finger separations.+- **Shading:** one flat darker plane clipped inside a shape (never a gradient). Drop shadows are a copy of the shape offset (12, 12) in a paper shade at 50 %.+- **Ornaments:** 4-point atomic sparkles, 8–18-point starbursts, sunburst rays (30 wedges, 55 % alpha), boomerang and kidney shapes, polka dots.+- **Type:** Oleo Script Bold for the kicker ("Meet Pip."); Alfa Slab One for titles, numerals and step headers (ink with a cream or colour plate offset 4–7 px); Jost 500/600 for body, details, labels and captions (letter-spaced caps for small labels).+- **Grain:** light (mux grain 4) plus the paper overlay; the look is print, not film.++Demo numbers behind the STYLE.md rules: register offset `(6, 4)` px re-rolled at 12 fps ±1.6 px; walls in plans 6–7 px broken; hands one 6 px outline and 2.4 px finger separations; drop shadow offset (12, 12); sunburst 30 wedges at 55 % alpha; mux grain 4; walls `tint(col, .45)`, floors `shade(col, .16)`; pop-ins 0.24–0.3 s with overshoot 1.9; hand anticipation 20–60 px, recoil 6–10 px; kneel drops the hips 150 units (`kneel: true`, `kneelPose()`); caption card Jost 500 42 px, 60 px above the bottom, fade 0.16 s with a 10 px rise, colour cel offset 5 px, coral 8-point stars; step title Alfa Slab 64 px; detail tags Jost 36 px.++**The payoff:** the vacuum's real route (wall-follow, then boustrophedon lanes that flow around furniture, with a small curl at every turn, stars and dots between lanes) draws itself room by room, one room per beat, while the camera pulls back 5.4× → 1.0× with a −6° → 0° counter-rotation. Stepping back, it reads as an atomic-age textile.++## End card++After the lockup, inside the iris circle: film title, style name, `Lemo-Opuscar`, `LemoLab × Claude Opus 5.5`, asset credits. The LemoLab sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++1. `demo/content.json` holds every word, number, colour, the voice and the payoff plan. `python3 demo/tools/lines.py` turns it into `lines.json`.+2. Kokoro (`core/tts/tts.py`) → `voices/` + `dur.json`; `asr_check.py` until every line is OK (step numbers are compared as digits).+3. The timeline is built from content (see Shots).+4. The score (`music/score.py`, forked to a sub-agent with the cue map) → `score.wav`, stems and `hits.json`.+5. `core/render/events.mjs` exports the same event times the pictures use. `tools/cuecheck.py` checks every hit against the half-beat grid and the score. `mix.py` builds foley, voice, ducking and the three silences.+6. `tools/cues.mjs` → `.srt`; render with `core/render/video.mjs` (960 frames ≈ 30 s with 2 workers, through `core/render/slot.mjs`); `mux.sh … 24 4`.+7. `sh demo/build.sh` does all of it; `sh demo/build.sh stills` renders the content-swap test.++Pitfalls tied to this demo's props:++1. `demo/content.json` holds every word, number, colour, the voice and the payoff plan. `python3 demo/tools/lines.py` turns it into `lines.json`.+2. Kokoro (`core/tts/tts.py`) → `voices/` + `dur.json`; `asr_check.py` until every line is OK (step numbers are compared as digits).+3. The timeline is built from content: hook 4 bars, each step ≥ 3 bars (from its voice length), the last step 2 bars, then payoff 3, tip 2, lockup 3 and end 2 bars at 132 BPM. Three steps = 22 bars = 40.0 s.+4. The score (`music/score.py`, forked to a sub-agent with the cue map) → `score.wav`, stems and `hits.json`.+5. `core/render/events.mjs` exports the same event times the pictures use. `tools/cuecheck.py` checks every hit against the half-beat grid and the score (0 off in the demo). `mix.py` builds foley, voice, ducking and the three silences.+6. `tools/cues.mjs` → `.srt`; render with `core/render/video.mjs` (960 frames ≈ 30 s with 2 workers); `mux.sh … 24 4`.+7. `sh demo/build.sh` does all of it; `sh demo/build.sh stills` renders the content-swap test.++## content.json fields++Everything readable and every colour comes from `demo/content.json`. The page reads `?content=<file>` for tests.++| Field | Type | Range | If out of range |+|---|---|---|---|+| `product` | string | 1–12 chars | Squeezed to fit on the box label (`maxW`) |+| `kind` | string | free | Only for your own reference |+| `title` / `subtitle` | string | ≤ 36 / ≤ 24 chars | Title wraps to 2 lines in the hook, shrinks to 50 px on the lockup |+| `hook.kicker` / `hook.line` | string | ≤ 14 chars / one sentence | Kicker squeezed to 760 px; the line becomes the first caption |+| `steps[]` | array | **2–5** | Each step adds ≥ 3 bars (5.45 s); the lockup row respaces (R 104 → 88 px beyond 3 steps). 4 steps ≈ 45 s: trim the tip or end card if you need ≤ 40 s |+| `steps[].title` | string | ≤ 22 chars | Shrinks to 40 px (header), wraps to 2 lines (lockup) |+| `steps[].detail` | string | ≤ 30 chars | Wraps to 2 lines; must be readable in its window (chars/12 + 1 s) |+| `steps[].icon` | enum | the 18 icon names | Unknown → `spark` |+| `steps[].action` | enum | `place` (push to a wall + clearance diagram; uses `measure`), `tap` (phone pairing, signal rings to the product), `press` (finger + hold ring); anything else → `show` (icon in hand, finger taps it in the call-out) | — |+| `steps[].measure` | string | e.g. "50 cm" | Only for `place`; empty = arrows without labels |+| `steps[].line` | string | one short sentence | Voice + caption; a long line lengthens its step |+| `payoff.caption` | string | ≤ 40 chars | Shrinks to 26 px |+| `payoff.plan` | object | `y0,y1`, `dock[x,y]`, `zones[]` (name, x0, x1, color, checks), `rug`, `items[]` (shape: sofa, kidney, boomerang, chair, plant, table, bed; x, y, s, rot, color, accent) in 1920×1080 plan px | Zones narrower than 400 px get the wall-follow loop only; items become flow obstacles automatically |+| `tip.label/text/icon/line` | strings | text ≤ 40 chars | Header shrinks; the ribbon widens |+| `outro.line` / `outro.cta` | string | cta ≤ 48 chars | CTA shrinks to 20 px |+| `palette` | object | `paper, ink, product, productDark, accent, hook, steps[], tip` | Missing keys fall back to the demo palette |+| `voice` | object | Kokoro `id`, `speed` | — |+| `film` | object | `name, style, credits` | End card |++**Steps to swap (technical check):** edit `content.json` → `sh demo/build.sh` (it rebuilds lines, voice + whisper check, events, mix, captions, video). The score is written for 22 bars; if your step count changes the length, rerun the music sub-agent with the new section table, or keep 3 steps.++**Minimal example** (only what changes):+```json+{+ "product": "Mo", "title": "Your New Robot Mower", "subtitle": "Set Up in 4 Steps",+ "hook": { "kicker": "Meet Mo.", "line": "Meet Mo, your new robot mower." },+ "steps": [+ { "title": "Set the base station", "detail": "Level ground, 1 m clear in front", "icon": "dock", "action": "place", "measure": "1 m", "line": "Step one. Set the base station on level ground." },+ { "title": "Peg the boundary wire", "detail": "30 cm in from the lawn edge", "icon": "cable", "action": "show", "line": "Step two. Peg the wire around the lawn." }+ ],+ "palette": { "product": "#E4613F", "accent": "#3FA7A0", "hook": "#7F9CC0" }+}+```+`demo/content_alt.json` is the full version of that example (a 4-step robot mower on a garden plan); its stills are in `demo/stills/alt_*.jpg`.++Swapping this file and running `build.sh` checks that the engine re-flows; it is not how a user's film is made.++## Engine reference++`demo/engine/toon.js` (the style), `demo/engine/chars.js` (the presenter, hands and product), `demo/engine/icons.js` (18 icons). All functions draw in the current canvas transform.++| Function | What it draws | Key params |+|---|---|---|+| `setClock(t)` | Sets the clock for the on-twos register jitter; call once per frame | `t` seconds |+| `shape(ctx, pts, o)` | **Any shape in this style**: off-register fill + tooth + broken ink line | `fill`, `line` (px), `off` [dx,dy] (default: jittered `REG`), `grain` 0–1, `breaks` 0–1, `shade` [{pts,color,alpha}], `seed` |+| `ink(ctx, pts, w, o)` | Pressure ink ribbon along a polyline | `closed`, `breaks`, `wob`, `taper`, `color`, `upto` 0–1 (draw-on) |+| `plane(ctx, pts, fill)` | Lineless ground plane | `off`, `grain` |+| `text(ctx, str, x, y, o)` | Two-plate lettering | `font`, `fill`, `plate` (off-register colour plate), `off`, `align`, `rot`, `maxW`, `track` |+| `fit(ctx, str, fam, px, maxW, maxLines, minPx)` | Wraps, then shrinks to fit | returns `{font, px, lines}` |+| `arrow(ctx, from, to, o)` | The moving manual arrow | `u` draw-on, `bob` beat phase, `bend`, `head`, `fill`, `dashedShaft` |+| `star` / `sparkle` / `rays` / `atom` / `kidney` / `boomerang` | Mid-century ornaments | radius, points, rotation, fill |+| `REG` | Global register: `{dx:6, dy:4, jit:1.6, on:true}` | set `REG.on = false` for crisp diagrams |+| `drawOwner(ctx, pose, t)` | The presenter | `x,y,s,dir,view('front'/'q'/'side'/'back'),face('neutral'/'happy'/'wow'/'focus'/'wink'),armF/armB{a1,a2},handF/handB,kneel,blink,look,prop{kind:'phone'/'dock'/'cable'}` |+| `drawHand(ctx, x, y, angle, kind, side, scale)` | Four-finger glove: `'open'`, `'flat'`, `'point'`, `'grip'` | — |+| `drawPip(ctx, x, y, o)` | Round robot product | `view('side'/'top')`, `s`, `light`, `press`, `brush`, `ang`, `colors{product,productD,trim,light}` |+| `icon(ctx, name, cx, cy, size, o)` | Icon library: dock, phone, start, cable, wifi, plug, water, beans, cup, filter, box, clock, check, leaf, key, bulb, spark, gear | `main`, `light`, `dark` |++Film-level helpers in `film.js` you can lift: `callout()` (round detail view with a leader line), `medallionAt()` (numbered stamp), `tag()` (detail card), `stepHeader()`, the potential-flow `laneY()` + `buildPath()` route generator, and the transition block in `renderFilm()` (medallion iris, button iris, colour-block wipe, iris-out).++**Minimal example: a warm-orange four-point spark with a cursor-tail, in this style** (the "only colour" slot: keep `fill` fixed while the scene recolours):+```js+import { setClock, shape, ink, sparkle, starPts, spline, PAL } from './engine/toon.js';+setClock(t); // register jitter on twos+ctx.fillStyle = PAL.paper; ctx.fillRect(0, 0, 1920, 1080);+// the tail: a broken ink stroke that draws on+ink(ctx, spline([[520, 700], [700, 640], [860, 560]], false, 10), 6, { upto: Math.min(1, t / 0.6), breaks: 0.2 });+// the spark: any closed path -> off-register fill + breathing ink line+const pts = [];+for (let i = 0; i < 8; i++) { const a = i * Math.PI / 4 - Math.PI / 2, r = i % 2 ? 26 : 110; pts.push([960 + Math.cos(a) * r, 520 + Math.sin(a) * r]); }+shape(ctx, pts, { fill: '#D97757', line: 4.5, grain: 0.3, breaks: 0.15 });+sparkle(ctx, 1040, 440, 28, { fill: PAL.white });+```diff --git a/styles/midcentury-toon/STYLE.md b/styles/midcentury-toon/STYLE.mdindex 64171db..22ca953 100644--- a/styles/midcentury-toon/STYLE.md+++ b/styles/midcentury-toon/STYLE.md@@ -1,205 +1,122 @@# Mid-century Cartoon — Style Prompt-> 1950s flat colour and limited animation for "follow along" films: colour printed a few pixels off its broken ink line, bodies that hold still while hands do the work, abstract colour-block rooms, a calm classroom narrator, and a cool-jazz combo with a vibraphone chord on every step.-> Demo: *Meet Pip* (40.0 s) · `midcentury-toon.mp4` · source in `demo/` · a product set-up guide for a fictional robot vacuum. It fits a product page, a QR code on the box, or a help centre.-> **References (grammar only):** UPA studio's early-1950s shorts (*Gerald McBoing-Boing*, *Rooty Toot Toot*): colour and line on separate cels, geometric people and furniture, backgrounds that are only colour planes, limited animation. The Coronet and Encyclopaedia Britannica classroom films of the 1950s: the "Meet ___." opening, one sentence per picture, numbered step cards, a summary card at the end. Charley Harper and Mary Blair: the atomic-age palette of soft complementary colours and the geometry of their figures and objects. 1950s appliance manuals and adverts: numbered medallions, curved pointer arrows, round detail call-outs, sunburst backgrounds. Never copy their characters, drawings, lettering or music, and never write their names in a film.+> 1950s flat colour and limited animation for "follow along" films: colour printed a few pixels off its broken ink line, bodies that hold still while hands do the work, abstract colour-block rooms, a calm classroom narrator, and a cool-jazz combo.+> References (grammar only): UPA's early-1950s shorts (*Gerald McBoing-Boing*, *Rooty Toot Toot*): colour and line on separate cels, geometric people, colour-plane backgrounds, limited animation. 1950s classroom films (Coronet, Encyclopaedia Britannica): direct address, one sentence per picture, numbered cards. Charley Harper and Mary Blair: soft atomic-age complements, geometric figures. 1950s appliance manuals: numbered medallions, curved arrows, round call-outs, sunbursts. Copy none of their characters, drawings, lettering or music, and never name them in a film.-You are directing a 30–40 second **scene film** in the **Mid-century Cartoon** style. A scene film does not tell a story. It performs a real use: a set-up guide, a how-to, a recipe card, a safety card. The user gives you the thing and its steps. You decide the shots, the timing, the sound and the score, and you deliver a finished film. The viewer should come away able to do the thing.+A **scene style**: it performs a real use (a set-up guide, a how-to, a recipe card, a safety card) rather than telling a story. The viewer should come away able to do the thing. See §11 for the jobs.----+## 1. Essence, and what it is not-## 1. What this style is+Flat, printed-looking colour with a thin, breathing ink line that never quite closes. **Every fill is a separate "cel" printed a few px off its line**, re-rolled on twos, so the picture shimmers like hand-registered paint while the camera glides. Light dry-brush tooth, paper grain, warm vignette.-Flat, printed-looking colour with a thin, breathing ink line that never quite closes. **Every fill is a separate "cel" printed about (6, 4) px off its line**, and that offset re-rolls on twos (12 fps, ±1.6 px), so the picture shimmers like hand-registered paint while the camera glides at 24 fps. The fills carry a light dry-brush tooth; paper grain and a warm vignette sit over everything.+People and things are geometric: egg or bean heads with the nose part of the face outline, simple garments in two or three flat colours, four-finger cartoon gloves. **A presenter's body is a held drawing: only arms, hands, eyes and mouth animate.** Rooms are not drawn: a scene is one colour plane, a floor band, a horizon line with gaps, and one or two props.-People and things are geometric. June, the demo's new homeowner, has an egg head with a long pointed nose that is part of the face's outline, a bob with a mustard headband, a coral turtleneck and navy cigarette trousers. Her **body is a held drawing: only her arms, hands, eyes and mouth animate.** Hands are four-finger cartoon gloves (three fingers and a thumb) in four shapes: open, flat, point and grip. Rooms are not drawn. A scene is one colour plane, a floor band, a horizon line with gaps, and one or two props: a wall edge, a socket, a phone.+Not the 1930s rubber-hose cartoon (no black-and-white, no bouncing world, no hot jazz). Not a whiteboard explainer: it shows *how to do*, not *why*. The pictures are printed, not written on.-It is not the 1930s rubber-hose cartoon: no black-and-white, no bouncing world, no hot jazz. It is not a whiteboard explainer: it shows *how to do*, not *why*. The pictures are printed, not written on.+## 2. Materials & rendering-## 2. Use cases: what this style is for+- **Off-register cels**: fill drawn with a small offset (a few px, down-right) from its line; the offset jitters ±1–2 px on twos. Keep it on everything, text included; switch it off only for a crisp diagram.+- **Line**: 3–5 px ink ribbons with ±40 % width breathing and 12–25 % breaks. Characters ~4 px, props 3–4.5 px, walls in plans thicker and broken. Hands: one outline around the union of palm and fingers, thin finger separations.+- **Shading**: one flat darker plane clipped inside a shape, never a gradient. Drop shadows are a copy of the shape offset down-right in a paper shade at ~50 %.+- **Ornaments**: 4-point atomic sparkles, 8–18-point starbursts, sunburst rays (~30 wedges, semi-transparent), boomerang and kidney shapes, polka dots.+- **Grain**: light; print, not film.-| Use case | Shot structure | Information layers (in order) | Hold per layer | Length |-|---|---|---|---|---|-| **Product set-up guide** (the demo) | Hook reveal → one scene per step (wide + round detail call-out) → payoff (the product working) → tip → poster lockup | product name → title → step title → step detail on the action beat → payoff caption → tip → CTA | title ≥ 4 s; step title the whole step; detail ≥ chars/12 + 1 s; lockup ≥ 3 s clean | 30–40 s, 2–5 steps |-| **Safety / rules card** (lab, pool, flight) | One held figure; each rule is a medallion stamp, a single hand gesture and a pictogram | rule number → rule → one "why" detail | 3–4 s per rule | 20–40 s, 3–6 rules |-| **Recipe or ritual card** (coffee, plant care) | Tabletop side view; each step a call-out circle on the hands; the payoff is a top view where the result becomes a pattern | step → quantity/time → result | 3–5 s per step | 30–45 s |-| **Onboarding for an app or service** | June with a phone; the screen lives in the call-out circle; signal rings travel to the device | screen action → setting value → confirmation stamp | 3–4 s per action | 20–30 s |-| **Store or event notice** | Colour-block wipes between 3 cards; one character presents | headline → time/place → CTA | ≥ 3 s per card | 15–25 s |+## 3. Colour logic-The demo is the first use case. All five use the same engine: `shape()` for any prop, `drawOwner()` for the presenter, `drawHand()` for close-ups, `callout()` / `medallionAt()` / `tag()` for layers, and a top-view plan for the payoff.+- **A warm paper ground, a warm near-black ink, soft atomic-age complements.** Nothing pure or neon.+- **One ground colour per scene**: a lighter tint for walls, a darker shade for floors. Never place the product on its own colour, never the presenter on their own accent.+- **The product keeps one colour through the whole film**; the accent (a presenter's garment, stars, bullets) is a different hue. Step grounds rotate through the rest.+- Examples: *coral / mustard / turquoise* on cream; *tomato / olive / powder blue* on oatmeal; *plum / lime / sand* on off-white.-**How the native moves serve information (not story):**-- **Off-register colour** makes a flat info card feel hand-made, and warm enough to sit on a product page. Keep it on everything, text included.-- **Limited animation** points the eye. When the body is still, the hand is the only thing moving, and that hand *is* the step. Give every step one hand action with anticipation → action → follow-through, landing on a beat.-- **The round call-out** (a manual's magnifier) is the close-up. The wide stays for context and the hands get big inside the circle. The step's data (50 cm, 2.4 GHz, one second) lands inside or on that circle on the action beat, never as a slide.-- **The numbered medallion** is both a hierarchy marker and a door. It stamps onto the outgoing scene's subject, and the camera goes through it into the next step.-- **The payoff turns function into ornament.** In the demo, the vacuum's real route (wall-follow, then boustrophedon lanes that flow around furniture, with a small curl at every turn, stars and dots between lanes) draws itself room by room, one room per beat. Stepping back, it reads as an atomic-age textile.+## 4. Type & subtitles-## 3. Visual language+- Roles: a 1950s script for a kicker (Oleo Script Bold); a slab serif (Alfa Slab One) for titles, numerals and headers, in ink over an offset colour plate; a geometric sans (Jost 500/600) for body, details, labels and captions.+- **Caption card**: a paper-coloured rounded slab with a thin ink border (its colour cel offset too), small turning stars at the ends, ~40 px sans, bottom-centre. Fades in quickly with a small rise. Hold ≥ max(1.8 s, speech + 0.6 s, chars/12 + 1 s).+- **Step header**: an ink disc with a paper numeral, a small letter-spaced "STEP n OF N", and the step title with a cream plate; it slides in on twos.+- **Detail tags**: a paper card with a star bullet, popping on the action beat next to the call-out. Data lands on the picture, never as a slide.-**Palette (demo; every value is a content.json field):**+## 5. Motion quality-| Role | Hex |-|---|---|-| Paper | `#F4EAD5` (shade `#E6D8BC`, `#D4C29F`) |-| Ink (warm black) | `#2B2420` |-| Coral (accent, June's sweater) | `#E4613F` / dark `#B8452B` |-| Mustard (hook ground, belts, dots) | `#E8B43A` / light `#F3D37F` |-| Turquoise (the product) | `#3FA7A0` / dark `#257A74` |-| Dusty blue / avocado / pink / plum (step grounds) | `#7F9CC0` · `#A7AE5B` · `#F0B4A8` · `#6E4A6B` |-| Navy (trousers) · hair · skin | `#3B4766` · `#3A2621` · `#F2C7A0` |-| Kraft (box) | `#C9955D` / `#A2713F` / `#DDB47F` |+- **On twos:** poses, hand shapes and the cel jitter change at 12 fps. The camera, iris wipes, arrows, plan routes and rays move at 24 fps.+- **Held body, moving hands:** switch poses with a single in-between. A hand action has anticipation (pull back or lift), a fast action (0.15–0.25 s, eased out), a follow-through (recoil, settle, lift away) and lands exactly on a beat.+- **Pop-ins:** medallions, tags, labels and titles scale in with a back-ease (~0.25 s, strong overshoot).+- **Reaching the floor**: a kneel pose with 2-bone IK keeps the hands on the object while it moves; never stretch standing arms.+- **Lettering**: a script writes on left→right with a clip; headers slide in on twos.-- **One ground colour per scene**, lighter tint for walls (`tint(col, .45)`), darker shade for floors (`shade(col, .16)`). Never place the product on its own colour or June on coral/pink.-- **Line:** 3–5 px ink ribbons with ±40 % width breathing and 12–25 % breaks. Characters: 4 px. Props: 3–4.5 px. Walls in plans: 6–7 px, broken. Hands: one 6 px outline around the union of palm and fingers, 2.4 px finger separations.-- **Shading:** one flat darker plane clipped inside a shape (never a gradient). Drop shadows are a copy of the shape offset (12, 12) in a paper shade at 50 %.-- **Ornaments:** 4-point atomic sparkles, 8–18-point starbursts, sunburst rays (30 wedges, 55 % alpha), boomerang and kidney shapes, polka dots.-- **Type:** Oleo Script Bold for the kicker ("Meet Pip."); Alfa Slab One for titles, numerals and step headers (ink with a cream or colour plate offset 4–7 px); Jost 500/600 for body, details, labels and captions (letter-spaced caps for small labels).-- **Grain:** light (mux grain 4) plus the paper overlay; the look is print, not film.+## 6. Camera grammar-## 4. Motion language+The camera is "the stand": never handheld. A vocabulary, not a route. Opening and ending come from the topic.-- **On twos:** character poses, hand shapes and the colour-cel jitter change at 12 fps. The camera, iris wipes, arrows, the plan route and rays move at 24 fps.-- **Held body, moving hands:** switch poses with a single in-between (for example reach → one in-between → ta-da). A hand action has anticipation (pull back or lift 20–60 px), a fast action (0.15–0.25 s, eased out), a follow-through (recoil 6–10 px, settle, hand lifts away) and lands exactly on a beat.-- **Pop-ins:** medallions, tags, labels and titles scale in with a back-ease (0.24–0.3 s, overshoot 1.9).-- **Kneel pose** (`kneel: true`): hips drop 150 units so flat hands can reach floor props. The arms are solved with 2-bone IK (`kneelPose()`) so the hands stay on the object while it moves.-- **Lettering:** the kicker writes on left→right with a clip; headers slide in from the left on twos.+| Move | What it expresses | Can serve |+|---|---|---|+| Slow push (a few %) | Collecting the eye | a product on its stage; a result settling |+| Iris through a medallion | The number *is* the door | a change of step; a change of rule |+| Round call-out with a leader line | Context and detail at once | a hand action; a screen; a small part |+| Tilt with a pointing finger | The finger leads the frame | the one action that matters most |+| Push into a device, pan along signal rings | Person → interface → device | pairing; connecting |+| Iris from a round object into a top view | Circle to circle, function to plan | a button starting a job; a lid opening; a dial |+| Pull-back with counter-rotation from a detail to a plan | One lane becomes a pattern | a route, a schedule, a garden, a floor plan |+| Colour-block wipe (side, bottom-up) | Turning the manual's page | a tip; a summary; a new card |+| Split frame in two colour blocks | Right vs wrong, before vs after | a safety rule; an upgrade |+| Dead still ≥ 3 s | "This is the frame to screenshot" | a summary; a CTA; a QR code |+| Iris-out onto one object | The last circle | a closing on the product, the logo, the result |++Key subjects ≥ 1/3 frame height and clear of the caption band. Transitions are circles, colour-block wipes and cuts on a beat; no dissolves.++## 7. Sound palette-## 5. Camera language+Three layers, always:+- **Music**: an original West-Coast cool-jazz combo: flute or muted trumpet, vibraphone (chords, arpeggios, glissandi, tremolo), pizzicato walking bass, brushes (sticks on the ride for energy), celesta, bongos or finger snaps. Not ragtime, not a spy big band, not piano and strings. Options: give **every step its own vibraphone chord** and bring them back one per summary item; halve or double the feel instead of changing tempo; move up a step for a payoff.+- **Silence as a tool**: cut *everything*, ambience included, for the beat before the most important action, so the first sound after it (the click, the pour) is the step. Room tone alone before a summary.+- **Foley by material**: cardboard creaks and thumps, appliance plastic knocks and clicks, floor scrapes, glass and ceramic clinks, pours, damped rubber stamps for medallions, paper swishes for wipes, slide whistles for dimension arrows, rising pips for "connected", pen scratches for a route, an iris "shhk".+- **Ambience**: warm room tone (low-passed brown noise, very quiet), a mantel-clock tick on the grid; a device's motor hum can take over when it works.+- **Mix**: J/L cuts (lines start before their iris, tails ring on); narration compressed on top, music ducks ~8 dB, foley unducked, −14 LUFS.+- **Voice**: calm classroom authority, one clause per line ("Step one. Set it against a wall."). Whisper-check every line; accents can blur key nouns.-The camera is always "the stand": pushes, trucks, tilts, pull-backs, never handheld. One transition grammar, **the circle**:+## 8. Native moves-| Move | Where in the demo | Why |-|---|---|---|-| Slow push 1.00 → 1.07 | Hook | Collects the eye onto the product on its stage |-| **Iris through the medallion** (circle grows from the stamp to full frame, 0.9 beat) | Every step change | The step number *is* the door |-| Truck right + gentle push | Step 1 wide | Follows the push toward the wall |-| Round detail call-out (frame in frame, with a dashed leader line to its subject) | Every step | Constant line weight at close-up scale; context stays visible |-| Push into the phone, then pan along the signal rings | Step 2 | From person → interface → device |-| Tilt down with the finger | Step 3 | The press is the most important action; the finger leads the frame |-| **Button → iris → top view** | Step 3 → payoff | The start button opens into the plan; circle to circle |-| **Pull-back + counter-rotation, 5.4× → 1.0×, −6° → 0°** (signature) | Payoff | Scale reveal: one lane → a whole flat printed like a textile |-| Colour-block wipe (side for the tip, bottom-up for the lockup) | Tip, lockup | Changes the "page" of the manual |-| Dead still ≥ 3 s | Lockup | Tells the viewer: this frame is the one to screenshot |-| **Iris-out onto the product**, end card inside a circle | End | The classic cartoon ending, and the last circle |--Keep key subjects at ≥ 1/3 frame height and out of the bottom 140 px (the caption card).--## 6. Sound+Each move serves information. A menu: use the ones your film needs.-Three layers, always:-- **Ambience:** a warm room tone (low-passed brown noise, about −42 dB) and a very quiet mantel-clock tick on the half-note grid. In the payoff, the product's motor hum (a band-passed saw with a slow LFO plus brush hiss) takes over.-- **Foley by material:** cardboard (creak, dull flap thumps pitched a semitone apart, a swish into a slap), appliance plastic (a bright knock with a short hollow body; the plug click), wood floor scrapes, rubber stamps (thick and damped) for every medallion, paper swishes for wipes, slide whistles for dimension arrows, rising sine pips for "connected", pen scratches when a room's route draws, the ink line peeling off paper, an iris "shhk".-- **Music:** an original West-Coast cool-jazz combo at 132 BPM: vibraphone (chords, arpeggios, glissandi, motor tremolo), flute (melody), pizzicato upright bass (walking), brushes (a swirl plus 2 and 4, sticks on the ride for the payoff), a celesta colour. **Every step lands on its own vibraphone chord** (F6, B♭maj7, C9), and the lockup brings those chords back one per medallion, transposed. Not ragtime, not a spy big band, not piano and strings.-- **Rhythm arc:** normal → double-time at the payoff (key up a whole step) → half-time for the tip (the breath) → normal for the lockup.-- **Silences:** A (0–1.36 s): no music, only the box. B (the last beat before the press): *everything* off, ambience included, so the first sound after it is the most important one: the start click. C (before the lockup): room tone only. The first sound after silence C is the first medallion stamp.-- **J/L cuts:** music enters before the reveal; each step's line starts half a beat before its iris; the motor starts 0.2 s before the payoff; the last Wi-Fi pip rings into step 3; the payoff's glissando tail rings into the tip.-- **Mix:** narration compressed on top, music ducks 8 dB under it, foley unducked, −14 LUFS, true peak −1.2.--## 7. Subtitles & titles--- **Caption card:** a paper-coloured rounded slab with a thin ink border (its colour cel offset 5 px), a slowly turning coral 8-point star at each end, Jost 500 42 px in ink, centred 60 px above the bottom. It fades in over 0.16 s with a 10 px rise. Hold ≥ max(1.8 s, speech + 0.6 s, chars/12 + 1 s).-- **Step header:** an ink disc with a paper numeral (Alfa Slab), a small letter-spaced "STEP n OF N", and the step title in Alfa Slab 64 px with a cream plate. It slides in on twos.-- **Detail tags:** a paper card with an accent star bullet, Jost 36 px. It pops on the action beat, on or next to the call-out.-- **Narrator:** calm classroom authority. The demo uses Kokoro `am_michael` at 0.94. `bm_george` was tried: whisper heard "dock" as "dark" in his British vowel. Keep lines to one clause: "Step one. Set the dock against a wall."-- **End card** (after the lockup, inside the iris circle): film title, style name, `Lemo-Opuscar`, `LemoLab × Claude Opus 5.5`, asset credits.--## 8. Pitfalls we hit--1. **The route must obey the product.** Our first payoff looped over the sofa. Fix: wall-follow first, then lanes that bend around furniture as **potential-flow streamlines** (`laneY()`): lanes never cross and never enter an obstacle ellipse (furniture + 30 px). Keep obstacles away from walls; a streamline squeezed against a wall piles lanes on top of each other.-2. **Don't lay the whole pattern at once.** Draw it room by room, one room per beat, with the camera pulling back. Then return home on a dotted line that also avoids furniture.-3. **Nose inside the outline.** A nose drawn as a separate wedge looks like a paper cone glued on. Build the head as one open spline from the bridge round the skull to under the nose, then close it at the nose tip (`chain + tip`). In 3/4 view, place the far eye left of the bridge so it shows.-4. **Arms from the shoulders.** Shoulders sit at the torso corners (±40–46, −384). Draw sleeves as a thick ink ribbon with a coral ribbon on top. Thin ink arms read as sticks coming out of the neck.-5. **Glove hands need gaps.** Drawing the fingers as fat blobs turns the hand into a cloud. Stroke every part first and fill every part second (one union outline), with slender fingers (rx 12–13, ry 5) and separation lines.-6. **Floor reach.** A standing figure's hands stop about 190 units under the shoulder. Kneel and solve the arms with IK instead of stretching them.-7. **Line weight in close-ups.** Zooming the world camera 3× triples the ink. Put close-ups in a call-out circle drawn at native scale.-8. **Detail text needs its reading time.** "Against a wall, 50 cm clear each side" did not fit its 3 s window. The data moved into `detail` ("50 cm clear on each side") and the wall into the title and the line.-9. **The payoff route + a caption arrow can collide with labels.** Put room labels *under* the plan and the caption in the top margin.-10. **Iris content at negative local time.** When a transition draws the next scene before its start, clamp `t` to just past the start (otherwise poses and pop-ins are undefined).--## 9. Production recipe (this repo)--1. `demo/content.json` holds every word, number, colour, the voice and the payoff plan. `python3 demo/tools/lines.py` turns it into `lines.json`.-2. Kokoro (`core/tts/tts.py`) → `voices/` + `dur.json`; `asr_check.py` until every line is OK (step numbers are compared as digits).-3. The timeline is built from content: hook 4 bars, each step ≥ 3 bars (from its voice length), the last step 2 bars, then payoff 3, tip 2, lockup 3 and end 2 bars at 132 BPM. Three steps = 22 bars = 40.0 s.-4. The score (`music/score.py`, forked to a sub-agent with the cue map) → `score.wav`, stems and `hits.json`.-5. `core/render/events.mjs` exports the same event times the pictures use. `tools/cuecheck.py` checks every hit against the half-beat grid and the score (0 off in the demo). `mix.py` builds foley, voice, ducking and the three silences.-6. `tools/cues.mjs` → `.srt`; render with `core/render/video.mjs` (960 frames ≈ 30 s with 2 workers); `mux.sh … 24 4`.-7. `sh demo/build.sh` does all of it; `sh demo/build.sh stills` renders the content-swap test.--## 10. Engine usage--`demo/engine/toon.js` (the style), `demo/engine/chars.js` (the presenter, hands and product), `demo/engine/icons.js` (18 icons). All functions draw in the current canvas transform.--| Function | What it draws | Key params |-|---|---|---|-| `setClock(t)` | Sets the clock for the on-twos register jitter; call once per frame | `t` seconds |-| `shape(ctx, pts, o)` | **Any shape in this style**: off-register fill + tooth + broken ink line | `fill`, `line` (px), `off` [dx,dy] (default: jittered `REG`), `grain` 0–1, `breaks` 0–1, `shade` [{pts,color,alpha}], `seed` |-| `ink(ctx, pts, w, o)` | Pressure ink ribbon along a polyline | `closed`, `breaks`, `wob`, `taper`, `color`, `upto` 0–1 (draw-on) |-| `plane(ctx, pts, fill)` | Lineless ground plane | `off`, `grain` |-| `text(ctx, str, x, y, o)` | Two-plate lettering | `font`, `fill`, `plate` (off-register colour plate), `off`, `align`, `rot`, `maxW`, `track` |-| `fit(ctx, str, fam, px, maxW, maxLines, minPx)` | Wraps, then shrinks to fit | returns `{font, px, lines}` |-| `arrow(ctx, from, to, o)` | The moving manual arrow | `u` draw-on, `bob` beat phase, `bend`, `head`, `fill`, `dashedShaft` |-| `star` / `sparkle` / `rays` / `atom` / `kidney` / `boomerang` | Mid-century ornaments | radius, points, rotation, fill |-| `REG` | Global register: `{dx:6, dy:4, jit:1.6, on:true}` | set `REG.on = false` for crisp diagrams |-| `drawOwner(ctx, pose, t)` | The presenter | `x,y,s,dir,view('front'/'q'/'side'/'back'),face('neutral'/'happy'/'wow'/'focus'/'wink'),armF/armB{a1,a2},handF/handB,kneel,blink,look,prop{kind:'phone'/'dock'/'cable'}` |-| `drawHand(ctx, x, y, angle, kind, side, scale)` | Four-finger glove: `'open'`, `'flat'`, `'point'`, `'grip'` | — |-| `drawPip(ctx, x, y, o)` | Round robot product | `view('side'/'top')`, `s`, `light`, `press`, `brush`, `ang`, `colors{product,productD,trim,light}` |-| `icon(ctx, name, cx, cy, size, o)` | Icon library: dock, phone, start, cable, wifi, plug, water, beans, cup, filter, box, clock, check, leaf, key, bulb, spark, gear | `main`, `light`, `dark` |--Film-level helpers in `film.js` you can lift: `callout()` (round detail view with a leader line), `medallionAt()` (numbered stamp), `tag()` (detail card), `stepHeader()`, the potential-flow `laneY()` + `buildPath()` route generator, and the transition block in `renderFilm()` (medallion iris, button iris, colour-block wipe, iris-out).--**Minimal example: a warm-orange four-point spark with a cursor-tail, in this style** (the "only colour" slot: keep `fill` fixed while the scene recolours):-```js-import { setClock, shape, ink, sparkle, starPts, spline, PAL } from './engine/toon.js';-setClock(t); // register jitter on twos-ctx.fillStyle = PAL.paper; ctx.fillRect(0, 0, 1920, 1080);-// the tail: a broken ink stroke that draws on-ink(ctx, spline([[520, 700], [700, 640], [860, 560]], false, 10), 6, { upto: Math.min(1, t / 0.6), breaks: 0.2 });-// the spark: any closed path -> off-register fill + breathing ink line-const pts = [];-for (let i = 0; i < 8; i++) { const a = i * Math.PI / 4 - Math.PI / 2, r = i % 2 ? 26 : 110; pts.push([960 + Math.cos(a) * r, 520 + Math.sin(a) * r]); }-shape(ctx, pts, { fill: '#D97757', line: 4.5, grain: 0.3, breaks: 0.15 });-sparkle(ctx, 1040, 440, 28, { fill: PAL.white });-```--## 11. Swap in your content--Everything readable and every colour comes from `demo/content.json`. The page reads `?content=<file>` for tests.--| Field | Type | Range | If out of range |+- **Off-register colour** makes an info card hand-made and warm. *Fits content like:* museum rules; a bank app screen; hotel check-in.+- **Limited animation points the eye**: the still body leaves the hand as the only mover, and the hand *is* the step (one hand action per step, on a beat). *Fits content like:* threading a sewing machine; changing a bike tyre; setting a thermostat.+- **The round call-out** is the close-up; the step's data lands inside or on it on the action beat. *Fits content like:* a dosage on a measuring cup; a torque value on a bolt; a PIN on a keypad.+- **The numbered medallion** marks hierarchy and opens the next step; it stamps onto the outgoing subject and the camera goes through it. *Fits content like:* a pool's five rules; a checklist for a flight; stages of a recycling sort.+- **The payoff turns function into ornament**: a real process (a route, a watering schedule, a seating plan) draws itself region by region and, seen whole, reads as an atomic-age textile. *Fits content like:* a sprinkler's coverage; a delivery round; a week of medication.++## 9. Pitfalls of the medium++- A route that ignores obstacles → follow the product's real rules; flow streamlines bend around obstacles and never cross. Lay it one region per beat, not all at once.+- A separate nose wedge looks glued on → one open spline from the bridge round the skull, closed at the nose tip.+- Thin arms read as sticks from the neck → shoulders at the torso corners, sleeves as a thick ink ribbon with a colour ribbon on top.+- Fat-blob fingers turn the hand into a cloud → stroke every part first, fill second (one union outline), slender fingers with separation lines.+- Zooming the world triples the ink → close-ups in call-out circles drawn at native scale.+- Detail text without reading time → move the data into the detail, the context into the title and the voice; chars/12 + 1 s.+- A transition drawing the next scene before its start → clamp local time to just past the start.++## 10. Engine++`demo/engine/toon.js` (the style: `setClock`, `shape` for any shape in the style, `ink` ribbons, `plane`, two-plate `text`, `fit`, the manual `arrow`, ornaments, the global register `REG`), `demo/engine/chars.js` (presenter, glove hands, the demo product), `demo/engine/icons.js` (18 icons). `demo/film.js` has liftable helpers: `callout()`, `medallionAt()`, `tag()`, `stepHeader()`, the flow-route generator `laneY()` + `buildPath()`, and the transition block (medallion iris, button iris, colour-block wipe, iris-out). API table and a minimal example: [DEMO.md](DEMO.md#engine-reference).++## 11. Variation space++You decide the thing, the presenter (or none), which steps and in what order, the opening, the ending, the camera path, the colours, the pacing and the music. Use cases are **grammar for the order and duration of information**; build your own timeline from the user's facts.++| Use case | Information order | Hold per layer | Length ||---|---|---|---|-| `product` | string | 1–12 chars | Squeezed to fit on the box label (`maxW`) |-| `kind` | string | free | Only for your own reference |-| `title` / `subtitle` | string | ≤ 36 / ≤ 24 chars | Title wraps to 2 lines in the hook, shrinks to 50 px on the lockup |-| `hook.kicker` / `hook.line` | string | ≤ 14 chars / one sentence | Kicker squeezed to 760 px; the line becomes the first caption |-| `steps[]` | array | **2–5** | Each step adds ≥ 3 bars (5.45 s); the lockup row respaces (R 104 → 88 px beyond 3 steps). 4 steps ≈ 45 s: trim the tip or end card if you need ≤ 40 s |-| `steps[].title` | string | ≤ 22 chars | Shrinks to 40 px (header), wraps to 2 lines (lockup) |-| `steps[].detail` | string | ≤ 30 chars | Wraps to 2 lines; must be readable in its window (chars/12 + 1 s) |-| `steps[].icon` | enum | the 18 icon names | Unknown → `spark` |-| `steps[].action` | enum | `place` (push to a wall + clearance diagram; uses `measure`), `tap` (phone pairing, signal rings to the product), `press` (finger + hold ring); anything else → `show` (icon in hand, finger taps it in the call-out) | — |-| `steps[].measure` | string | e.g. "50 cm" | Only for `place`; empty = arrows without labels |-| `steps[].line` | string | one short sentence | Voice + caption; a long line lengthens its step |-| `payoff.caption` | string | ≤ 40 chars | Shrinks to 26 px |-| `payoff.plan` | object | `y0,y1`, `dock[x,y]`, `zones[]` (name, x0, x1, color, checks), `rug`, `items[]` (shape: sofa, kidney, boomerang, chair, plant, table, bed; x, y, s, rot, color, accent) in 1920×1080 plan px | Zones narrower than 400 px get the wall-follow loop only; items become flow obstacles automatically |-| `tip.label/text/icon/line` | strings | text ≤ 40 chars | Header shrinks; the ribbon widens |-| `outro.line` / `outro.cta` | string | cta ≤ 48 chars | CTA shrinks to 20 px |-| `palette` | object | `paper, ink, product, productDark, accent, hook, steps[], tip` | Missing keys fall back to the demo palette |-| `voice` | object | Kokoro `id`, `speed` | — |-| `film` | object | `name, style, credits` | End card |--**Steps to swap:** edit `content.json` → `sh demo/build.sh` (it rebuilds lines, voice + whisper check, events, mix, captions, video). The score is written for 22 bars; if your step count changes the length, rerun the music sub-agent with the new section table, or keep 3 steps.--**Minimal example** (only what changes):-```json-{- "product": "Mo", "title": "Your New Robot Mower", "subtitle": "Set Up in 4 Steps",- "hook": { "kicker": "Meet Mo.", "line": "Meet Mo, your new robot mower." },- "steps": [- { "title": "Set the base station", "detail": "Level ground, 1 m clear in front", "icon": "dock", "action": "place", "measure": "1 m", "line": "Step one. Set the base station on level ground." },- { "title": "Peg the boundary wire", "detail": "30 cm in from the lawn edge", "icon": "cable", "action": "show", "line": "Step two. Peg the wire around the lawn." }- ],- "palette": { "product": "#E4613F", "accent": "#3FA7A0", "hook": "#7F9CC0" }-}-```-`demo/content_alt.json` is the full version of that example (a 4-step robot mower on a garden plan); its stills are in `demo/stills/alt_*.jpg`.+| **Product set-up guide** | product name → title → step title → step detail on the action beat → payoff → tip → CTA | title ≥ 4 s; step title the whole step; detail ≥ chars/12 + 1 s; summary ≥ 3 s clean | 30–40 s, 2–5 steps |+| **Safety / rules card** | rule number → rule → one "why"; a held figure, a medallion, a gesture, a pictogram per rule | 3–4 s per rule | 20–40 s, 3–6 rules |+| **Recipe or ritual card** | step → quantity/time → result; side view, call-out on the hands, result as a top-view pattern | 3–5 s per step | 30–45 s |+| **Onboarding for an app or service** | screen action → setting value → confirmation stamp; the screen lives in the call-out | 3–4 s per action | 20–30 s |+| **Store or event notice** | headline → time/place → CTA; colour-block wipes between cards | ≥ 3 s per card | 15–25 s |++All far from our demo:++- Structures: **a rules card with no product**, one held figure and a medallion per rule; **a recipe on a tabletop**, seen from the side, ending in a top view; **a do / don't split**, each rule shown twice in two colour blocks.+- Openings: **the finished result first**, then "here's how"; **the problem in one gesture** (a hand fumbling a cable); **a numbered list** stamped on, then opened item by item.+- Endings: **a checklist ticking itself**; **the hands at rest** beside the finished thing; **a QR code** held dead still in a starburst.++Swapping `demo/content.json` and rebuilding is a technical check that the engine re-flows, not a way to make a film.++---++How our demo was made (story, shots, score, end card, build, content fields): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/midcentury-toon/TREATMENT.md b/styles/midcentury-toon/TREATMENT.mddeleted file mode 100644index 97e6de0..0000000--- a/styles/midcentury-toon/TREATMENT.md+++ /dev/null@@ -1,257 +0,0 @@-# Mid-century Cartoon · 导演方案(Treatment)--**片名** *Meet Pip*(认识一下 Pip)-**场景** 产品上手指南:*Your New Robot Vacuum · Set Up in 3 Steps*(虚构产品 Pip 扫地机器人)。放在产品页、包装盒二维码、帮助中心。-**时长** 40.0 s(22 小节 @132 BPM;场景 36.4 s + 结尾卡 3.6 s)| **画幅** 1920×1080 | **帧率** 24 fps 输出;角色、道具按 12 fps on twos,机位、转场、线色错位的抖动永远 24 fps 平滑。-**一句话** 1950 年代教育片口吻的说明书动画:一个盒子像舞台幕布一样打开,"Meet Pip." 三个步骤各用一个圆形字章开场、一个关键手部动作收尾;按下开始后,Pip 的清扫路径在俯视平面图上画成一整张 50 年代的圈点花布,花布最后变成落版海报的底边。-**看完能说出** "我能拿这个做任何小家电 / 小工具的上手指南:三到五步,每步一个动作,一张能截图的总结页。"-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么(语法) | 刻意不学 |-|---|---|---|-| **UPA 工作室 50 年代有限动画**(*Gerald McBoing-Boing* 1950、*Rooty Toot Toot* 1951、*The Tell-Tale Heart* 1953) | ① 线和色是两张赛璐珞,色块故意错位几像素;② 背景只是抽象色块、一条不闭合的地平线,不画完整房间;③ 身体不动,只动手、嘴、眼睛(有限动画),一个姿势到下一个姿势用 1–2 张中间画"跳"过去;④ 场景切换靠整片背景色换掉 | 不用任何原作角色造型、剪影、配色组合、片头字体;不做原作的"声音当画面"梗 |-| **Coronet / Encyclopaedia Britannica 50 年代教育短片** | 温和权威的旁白腔("Meet ___.")、每一步一张字卡、一句旁白对一个画面、结尾一张总结卡 | 不用任何片头标识、真实机构名;不模仿老胶片划痕 |-| **Charley Harper、Mary Blair** 的配色与造型 | 原子时代的柔和对比色(芥末黄、珊瑚、土耳其蓝、牛油果绿、灰蓝、淡粉);几何化的人物与家具(回旋镖桌、肾形沙发、星芒植物) | 不照搬任何一幅画、任何动物造型 |-| **50 年代印刷说明书 / 家电广告**(语法) | 编号圆章、弯曲的指示箭头、局部放大圆框、光芒放射背景 | 不出现任何品牌、商标、真实产品外形 |--### 和库内风格的区别-| 容易撞的 | 它是什么 | 本片怎么不一样 |-|---|---|---|-| **rubber-hose**(30 年代橡皮管卡通) | 黑白、满屏弹跳、每个物体都在跳舞、热爵士大乐队 | 本片是 **50 年代彩色扁平 + 有限动画**:身体静止,只动手和道具;线色分离错位;颜色是原子时代柔和对比色;配乐是冷爵士小乐队(颤音琴 + 长笛 + 刷子鼓),不是 ragtime / 热爵士 |-| **scifi-toon**(科幻情景卡通) | 粗描边沸腾线、对白喜剧、传送门 | 本片线条细而断续、不沸腾;没有对白喜剧,是旁白讲解"跟着做";没有发光、没有科幻道具 |-| **whiteboard**(白板讲解) | 在白板上边讲边写、讲**原理** | 本片讲**操作步骤**(跟着做),一步一个动作;画面是印刷色块与纸感,不是书写过程 |-| **iso-infographic / dark-keynote / living-screencast** 等已有场景 | 咖啡产地旅程、产品发布会、Claude Code 教程 | 本片的场景是"新买的东西三步装好"(上手指南 / 快速入门),不是发布、不是流程图、不是软件录屏 |-------## 二、信息弧(替代情绪弧)--| 层 | 内容(全部来自 content.json) | 上场方式 | 停留 |-|---|---|---|---|-| 0 钩子 | 盒子两扇门像舞台幕布一样甩开 | 第 1 帧门已经在转;0.45 s 左门落定、0.91 s 右门落定;1.36 s 背板倒下 → 光芒 + 奶油色聚光圆盘弹开 | — |-| 1 主标题 | `hook.kicker` "Meet Pip." → `title` "Your New Robot Vacuum" → `subtitle` "SET UP IN 3 STEPS" | 1.82 s 手写体从左向右写出(和 Pip 的一跳同拍);2.73 s 厚衬线标题弹入;3.64 s 黑底胶囊副标 | 4.5 s(阅读需 4.2 s) |-| 2 关键步骤 | `steps[i].title` + 大号编号圆章 | 每步第 1 拍:圆章"盖"下来,镜头穿过圆章进入该步 | 每步 3.6–5.5 s |-| 3 细节数据 | `steps[i].detail`(50 cm、2.4 GHz、1 秒) | 每步第 3 拍:手部动作特写(画中画圆框)+ 会动的说明书箭头 + 数据标签 | ≥ 字数/12+1 s |-| **高点** | 按下开始 → 清扫路径在平面图上画成一整张圈点花布 | 按键前 1 拍全静 → "咔"+ 全乐队升调;镜头从 Pip 的特写一路拉远成整张平面图 | 5.5 s |-| 4 贴士 | `tip.text` "Pick up loose cables first." | 色块整片滑换 + "TIP" 星芒章敲下;June 拎起一根线(线就是墨线) | 3.6 s |-| 5 落版 | 标题 + 三个步骤圆章 + 细节 + 贴士 + `outro.cta`,底边是刚才那张花布 | 三个圆章按拍落位(复用三步的颤音琴和弦),标题最后砸下;然后全部静止 | **4.1 s 全信息同时在场**(字幕在 33.9 s 退场,之后 2.5 s 纯净可截图) |-| 结尾卡 | 片名、风格名、Lemo-Opuscar、LemoLab × Claude Opus 5.5、素材署名 | 圆形光圈(iris-out)收在 Pip 身上,再在圆里展开结尾卡 | 3.6 s |--**一个高点**:全片只有一次原生招式的大爆发——按下开始(信息最重要的一刻:机器真正开始工作),路径即图案。-------## 三、原生招式--1. **线色错位(贯穿)**:每个形状 = 墨线层 + 色块层,色块层整体偏移约 (6, 4) px,并在 on twos 的每一张画上重新抖 ±1.6 px;墨线有粗细呼吸和故意的断笔,永远不完全闭合。文字也是两版套印(墨版 + 色版错位)。-2. **有限动画**:June 的身体是一张"held drawing",只有手臂、手、眼、嘴、道具在动;姿势之间只给 1–2 张中间画,12 fps 步进。机位和光一直 24 fps 平滑——这个"画面在跳、镜头在滑"的反差就是 50 年代的味道。-3. **抽象背景**:没有完整房间。每一步只有一整块底色 + 一条不闭合的地平线 + 一两个道具(插座、墙脚线)。场景切换 = 底色整片换掉。-4. **会动的说明书箭头**:弯曲墨线箭杆自己画出来,实心箭头按拍子"点头"(回拉 18%),虚线箭杆的点会顺着方向走。-5. **高点:路径即花布**(签名镜头):Pip 用"螺旋清扫"模式走过整个平面图,路径是一条拉长的次摆线(prolate trochoid),每走一个圈,圈心"啵"地弹出一颗芥末黄圆点(吸走的灰尘)。拉远之后,整张平面图是一块 50 年代圈点印花布。这块布随后变成落版海报的底边——**打扫本身就是装饰**,只有这种"色块 + 墨线图案"的媒介能把功能画成纹样。-------## 四、角色与道具(关卡 1 设定表:`demo/stills/modelsheet_v1.jpg`)--- **June(主人)**:几何化的 50 年代女性,约 600 px 高(s=1)。蛋形头 + UPA 式长尖鼻(打破轮廓)、深棕波波头外翻、芥末黄发带;珊瑚红 A 字摆连衣裙 + 白圆点 + 白色裙边条纹、白色小圆领、芥末黄腰带;两条细墨线腿、尖头平底鞋;手臂是细墨线,手是连指手套形。- - 表情:平静 / 开心(眯眼张嘴)/ 惊讶(圆眼 O 嘴)/ 专注(眉头下压、舌尖)/ 心领神会(单眼眨)。- - 关键姿势:TA-DA(双臂上举)、TAP(单手举手机、拇指点)、TIP!(食指竖起)。- - 规则:身体不动,只动手臂;转面只有 正面 / 3/4 / 侧面 / 背面 四张。-- **Pip(产品)**:圆盘形扫地机,土耳其蓝顶盖 + 奶油色保险杠 + 一圈镀铬条;顶上一个奶油色电源键;前脸一颗珊瑚色"眼睛"状态灯;两只星号形边刷。侧视(3/4 俯角)和俯视两套画法;状态:灯灭 / 灯亮 / 按键按下。-- **充电座**:50 年代收音机式的奶油色梯形,土耳其蓝格栅,两片镀铬触点。-- **色板**:纸 `#F4EAD5` · 墨 `#2B2420` · 珊瑚 `#E4613F` · 芥末 `#E8B43A` · 土耳其蓝 `#3FA7A0` · 灰蓝 `#7F9CC0` · 牛油果 `#A7AE5B` · 淡粉 `#F0B4A8` · 李子紫 `#6E4A6B` · 发色 `#3A2621` · 肤色 `#F2C7A0`。- - 同色叠加检查:Pip(蓝绿)不上土耳其蓝底;June(珊瑚)不上珊瑚 / 淡粉底;每步底色与主体至少差一个明度档。-------## 五、镜头表--统一转场语法 = **"圆"**:Pip 是圆的,步骤编号是圆章,局部放大是圆框,结尾是圆形光圈。每次换场都穿过一个圆。--| # | 段落 | 景别 / 角度 | 运动 | 时长 | 为什么 |-|---|---|---|---|---|---|-| 1 | 钩子:开箱 | 全景,平视正面(舞台式) | **慢推** 1.00 → 1.07,中心压在 Pip 上 | 7.27 s | 正面对称 = 舞台;推镜把注意力从盒子收到 Pip |-| T1 | → 第 1 步 | — | **穿圆**:编号圆章"1"盖在 Pip 顶盖正中(圆对圆),镜头 6 帧冲进圆章,圆章内侧就是下一场的灰蓝底 | 0.45 s | 圆章 = 信息层级的标记,也是门 |-| 2 | 第 1 步:放充电座 | 全景侧面 → 画中画圆框特写 | **横移**:沿一面抽象墙从左向右移 600 px 跟 June 端着充电座走到插座边;第 3 拍右侧滑入圆形"放大镜"框(画框中的画框),里面是充电座贴墙 + 两侧"50 cm"尺寸箭头长出来 | 5.45 s | 横移 = 在墙边找位置;放大圆框 = 说明书的局部详图 |-| T2 | → 第 2 步 | — | 穿圆"2"(圆章盖在放大圆框上) | 0.45 s | |-| 3 | 第 2 步:连 app | 中景 3/4 → 手机屏特写 | **推**:从 June 半身推到她手里的手机,手机屏变成满屏画中画;拇指按拍点两下,Wi-Fi 同心弧按拍向右扩散三圈,右下角 Pip 的灯按同样三拍闪三下,盖"✓" | 5.45 s | 推镜 = 注意力从人到界面;三拍扩散 = 信号"过去了" |-| T3 | → 第 3 步 | — | 穿圆"3"(圆章盖在 Wi-Fi 圆心上) | 0.45 s | |-| 4 | 第 3 步:按开始 | 特写,3/4 俯角 Pip 顶盖(占画高 55%) | **下摇**(tilt down):从 June 竖起的食指摇到按键;手指预备(抬高、停住)→ 按下 → 按住,按键周围一圈"1 秒"进度环按两拍画满 | 3.64 s | 按下是全片最重要的动作:特写 + 预备 + 全静 |-| T4 | → 高点 | — | **匹配转场**:3/4 的 Pip 顶盖在画面同一位置旋转压平成俯视圆盘(圆对圆),牛油果底色整片换成平面图 | 0.3 s | 视角从"人看机器"变成"机器看房间" |-| 5 | **高点:路径花布**(签名镜头) | 俯视,特写 → 全景 | **拉远 + 反旋转**:2.5× 贴着 Pip 走第一圈(第 1 小节慢),然后路径加速、镜头一路拉到 1.0× 同时从 −7° 转正,揭示整张平面图 = 一块圈点花布;房间名和说明标签("Pip maps the room as it goes" + 箭头指向 Pip)在第 2 小节上场 | 5.45 s | 尺度揭示:一个小圈 → 一整块布 |-| 6 | 贴士 | 中近景侧面 | **色块滑换**(淡粉整块从右滑进来盖住平面图)+ 轻微**上移**:June 用两根手指从画面上"揭起"一根线——这根线只是墨线层,被揭走后色块层留下一道淡影;"TIP"星芒章敲下 | 3.64 s | 呼吸段:慢一半,一个动作,一句话 |-| 7 | 落版 | 全景正面(海报) | **组装**:三枚圆章在第 1/2/3 拍依次落位、箭头画出、标题第 4 拍砸下、花布从底边升起;然后镜头完全静止 ≥ 3 s | 5.45 s | 全片唯一一次机位完全不动 = "可以截图了" |-| 8 | 结尾卡 | — | **iris-out**:圆形光圈收在右下角的 Pip 身上,圆里展开结尾卡 | 3.64 s | 50 年代卡通的经典收尾,也是"圆"语法的最后一次 |--镜头运动种类:推、横移、下摇、拉远 + 旋转、穿圆(变焦转场)、匹配旋转、色块滑换、iris-out ——≥ 4 种;景别:全 / 中 / 特写 / 俯视大全。-关键时刻主体高度:开箱 Pip + 盒子 ≈ 1/3 画高、June ≈ 55%;第 3 步 Pip 顶盖 55%;落版主体(圆章行)≈ 1/3。-------## 六、分镜节拍表(按秒,132 BPM:1 拍 = 0.4545 s,1 小节 = 1.818 s)--| 时间 (s) | 小节.拍 | 画面 / 表演 | 声音 |-|---|---|---|---|-| 0.00 | 1.1 | 第 1 帧:盒子两扇门已经在转,顶盖两片纸板在抖;June 在右侧双手伸向盒子(惊讶脸) | 纸板吱呀;**无音乐**(静音 A 开始) |-| 0.45 | 1.2 | 左门甩到底,回弹一下 | 纸板"嘭"(低频、闷) |-| 0.91 | 1.3 | 右门甩到底 | 纸板"嘭"(高半度) |-| 1.36 | 1.4 | 背板向后倒下,光芒 + 奶油圆盘弹开,6 颗星芒依次亮 | 颤音琴上行刮奏 + 吊镲渐强(音乐从这里进来 = J-cut) |-| 1.82 | 2.1 | **Pip 灯亮、原地一跳**;June 切到 TA-DA(中间 1 张过渡);"Meet Pip." 从左向右写出 | 全乐队 "ta-da" 和弦(F6/9)+ 状态灯"叮" |-| 2.0–4.6 | | 旁白 "Meet Pip, your new robot vacuum."(字幕同步) | 旁白;音乐闪避 −8 dB |-| 2.73 | 2.3 | "Your New Robot Vacuum" 弹入 | 木鱼"嗒" |-| 3.64 | 3.1 | "SET UP IN 3 STEPS" 胶囊 | 刷子军鼓一抹 |-| 3.6–7.0 | | June 眨眼(2.9 s)、手臂落回;镜头继续慢推 | 长笛主题 A |-| 6.82 | 4.4 | 编号圆章"1"盖在 Pip 顶盖上 | 橡皮章"嗵" |-| 7.27 | 5.1 | 穿圆进入第 1 步(灰蓝底);步骤标题 "Place the dock" + 圆章缩到左上角 | 颤音琴和弦 F6(第 1 步和弦) |-| 7.5–10.2 | | 旁白 "Step one. Set the dock against a wall." ;June 端着充电座,镜头横移跟到插座边 | 脚步不出声(有限动画);横移时轻微空气声 |-| 8.18 | 5.3 | 她的双臂落下 = 充电座落地贴墙 | 塑料"咚"(木地板) |-| 8.64 | 5.4 | 插头插进插座 | 插头"咔" |-| 9.09 | 6.1 | 放大圆框从右滑入;"50 cm" 两个尺寸箭头从充电座两侧长出 | 两声滑哨上行(左、右声像) |-| 9.5–12.7 | | 细节标签 "Against a wall, 50 cm clear each side";箭头按拍点头 | 箭头每次点头 = 钢片琴轻点 |-| 12.27 | 7.4 | 圆章"2"盖在放大圆框上 | 橡皮章"嗵" |-| 12.73 | 8.1 | 穿圆进入第 2 步(芥末底);"Connect the app" | 颤音琴和弦 B♭maj7 |-| 12.9–15.6 | | 旁白 "Step two. Open the app and add Pip.";June 中景举手机(专注脸 + 舌尖),镜头推向手机 | |-| 14.55 / 15.0 | 9.1 / 9.2 | 拇指点两下("Add Pip" 按钮) | 两声软塑料"嗒" |-| 15.45 / 15.9 / 16.36 | 9.3 / 9.4 / 10.1 | Wi-Fi 弧三圈扩散;Pip 灯同拍闪三下;第三下盖 ✓ | 三声递升的"哔"(正弦 + 钢片琴),✓ = 印章 |-| 16.4–18.2 | | 细节标签 "Home Wi-Fi, 2.4 GHz" | 第三声"哔"的尾音拖进下一场(L-cut) |-| 17.73 | 10.4 | 圆章"3"盖在 Wi-Fi 圆心上 | 橡皮章"嗵" |-| 18.18 | 11.1 | 穿圆进入第 3 步(牛油果底);Pip 顶盖特写;"Press start" | 颤音琴和弦 C9 |-| 18.3–19.9 | | 旁白 "Step three. Press start.";镜头从 June 的食指下摇到按键;手指抬高(预备) | 贝斯半音爬升(紧张) |-| 20.45 | 12.2 | 手指按下,按住;进度环开始画 | 按键"咔"(第一声,轻);**全静音 B 从 20.9 开始**:音乐和环境全部抽掉,只剩进度环极轻的"嘶" |-| 21.36 | 12.4 | 进度环画满,"Hold for one second" 标签 | 静 |-| **21.82** | **13.1** | **高点**:状态灯亮,匹配转场成俯视 | **"咔—叮"+ 全乐队回来并升一个全音(F → G),切到双倍时值(刷子换鼓棒敲叮叮镲,贝斯走八分)**;Pip 马达嗡声在 21.6 提前进(J-cut) |-| 21.8–23.6 | 13 | 2.5× 贴着 Pip 走出充电座、画第一圈;每个圈 = 颤音琴一个音 | 马达嗡 + 边刷沙沙 + 颤音琴琶音 |-| 23.6–27.3 | 14–15 | 路径加速,镜头拉远 + 转正;圈点花布铺满;说明标签 + 箭头 + 房间名上场(23.6) | 颤音琴琶音越来越密 → 变成刮奏;每颗圆点 = 钢片琴"叮"(稀疏取样) |-| 27.27 | 16.1 | 淡粉色块整片从右滑进来(贴士);"TIP" 星芒章敲下 | 半速感(呼吸):只剩长笛独奏 + 拨弦贝斯 + 木鱼;刮奏尾巴拖进来(L-cut) |-| 27.5–30.2 | | 旁白 "One tip: pick up loose cables first.";June 侧面,两指把一根墨线从纸上揭起,线下只留一道淡色影;Pip 在旁边眨一次灯 | 胶皮线"嗖"地被揭起 + 纸面"嘶" |-| 30.2–30.9 | 17.3–17.4 | 近乎静音 C:只剩房间底噪 + 座钟两声滴答 | 静 |-| 30.91 | 18.1 | 落版组装:圆章 1 落位 | 颤音琴 F6(第 1 步和弦重现) |-| 31.36 / 31.82 | 18.2 / 18.3 | 圆章 2、3 落位,箭头画出 | B♭maj7 / C9 |-| 32.27 | 18.4 | 标题砸下,花布从底边升起,贴士缎带展开 | 全乐队主题 A(G 大调)收尾句 |-| 31.1–33.9 | | 旁白 "Three steps. That's all there is to it.";字幕 33.9 退场 | |-| 33.9–36.36 | 19–20 | **纯净落版**:机位完全静止,只有星芒慢转、箭头点头、June 按拍摆手指(on twos) | 最后一个和弦 G6/9 + 颤音琴震音延音 |-| 36.36 | 21.1 | iris-out 收在 Pip 身上 → 结尾卡 | 贝斯一声 + 钢片琴"叮"(button) |-| 36.4–40.0 | 21–22 | 结尾卡 | 颤音琴和弦自然衰减 |-------## 七、Cue map(音乐先行,画面卡这张表)--**配乐类型**:原创 50 年代西海岸冷爵士小乐队——颤音琴(主和弦 + 琶音)、长笛(旋律)、低音提琴拨弦(行走贝斯)、刷子鼓(军鼓一抹 + 叮叮镲)、钢片琴(点缀)。**132 BPM,F 大调 → 高点升到 G 大调**。-- 乐器:优先 `core/audio/sampler.py`(vibraphone、flute、upright/electric bass、drum_kit、celesta 视 INSTRUMENTS.md 为准),缺的用 numpy 合成(刷子 = 带通噪声包络,颤音琴震音 = 振幅 LFO)。-- 不做 ragtime / 热爵士大乐队(rubber-hose 用过)、不做间谍大乐队(spy-titles 用过)、不做钢琴 + 弦乐。--| 段 | 时间 | 小节 | 调 / 速度感 | 配器 | 情绪 | 必须卡的点 |-|---|---|---|---|---|---|---|-| 钩子 A(静) | 0.00–1.36 | 1.1–1.3 | — | **无音乐**,只有纸板拟音 | 好奇 | 0.45 / 0.91 门落定 |-| 钩子 B | 1.36–7.27 | 1.4–4.4 | F 大调,原速 | 1.36 颤音琴刮奏 + 吊镲渐强 → 1.82 全乐队 ta-da → 长笛主题 A(4 小节乐句的前 3 小节),行走贝斯,刷子 | 欢迎、俏皮 | 1.82 和弦;2.73 木鱼;3.64 刷子;6.82 章 |-| 第 1 步 | 7.27–12.73 | 5–7 | F,原速 | 颤音琴 F6 落拍;长笛主题 A 后半;贝斯行走 | 从容 | 7.27 和弦;8.18 / 8.64 放下 / 插上;9.09 滑哨 |-| 第 2 步 | 12.73–18.18 | 8–10 | B♭(IV),原速 | 颤音琴 B♭maj7;长笛主题 B(上行问句);钢片琴跟 Wi-Fi 三声 | 专注 | 14.55 / 15.0 两次点;15.45 / 15.9 / 16.36 三圈 |-| 第 3 步 | 18.18–21.82 | 11–12 | C9(V),原速 | 颤音琴 C9;贝斯半音爬升;鼓只剩叮叮镲 | 期待 | 20.45 按下;**20.9–21.82 全静** |-| **高点** | 21.82–27.27 | 13–15 | **G 大调(升全音)+ 双倍时值** | 全乐队:鼓棒叮叮镲、贝斯八分、颤音琴随路径每圈一个音(琶音越来越密 → 刮奏)、长笛主题 A 高八度 | 释放、飞驰(加速) | 21.82 咔 + 全奏;每一圈 = 一个颤音琴音(由路径长度算出的圈时刻驱动) |-| 贴士 | 27.27–30.91 | 16–17 | G,**半速感**(呼吸) | 长笛独奏 + 拨弦贝斯 + 木鱼;30.2 起近乎静音 | 轻松、叮嘱 | 27.27 章;28.6 揭线 |-| 落版 | 30.91–36.36 | 18–20 | G,原速 | 三个步骤和弦按拍重现 → 全乐队主题 A 收尾句 → G6/9 延音 | 完整、满足 | 30.91 / 31.36 / 31.82 圆章;32.27 标题 |-| 结尾卡 | 36.36–40.0 | 21–22 | G | button:贝斯一声 + 钢片琴"叮",颤音琴震音衰减 | 余韵 | 36.36 iris |--**快慢变化**:原速 → 高点双倍时值(加速)→ 贴士半速(呼吸)→ 落版原速。-**卡点自检**:沿用 microgame 的 `cuecheck` 思路,脚本读 `events.json` 的动作时刻与配乐的拍点表,误差 ≤ 1 帧。-------## 八、声音设计表--| 段落 | 环境底 | 主要拟音(材质) | 音乐状态 |-|---|---|---|---|-| 钩子 | 安静客厅底噪(低通粉噪 −42 dB)+ 座钟慢滴答 | 纸板:门甩开的吱呀、落定的闷"嘭"、顶盖的抖动;Pip:状态灯"叮"、一跳落地的软塑料"噗" | 0–1.36 无音乐(静音 A),1.36 刮奏进入 |-| 第 1 步 | 客厅底噪 | 塑料座落在木地板"咚"、插头"咔"、尺寸箭头滑哨、箭头点头钢片琴 | 颤音琴 F6 + 长笛主题,旁白时闪避 |-| 第 2 步 | 客厅底噪 | 软塑料按键"嗒"×2、Wi-Fi 三声递升"哔"、✓ 印章 | B♭maj7,钢片琴跟三声 |-| 第 3 步 | 底噪 → 20.9 起全部抽掉 | 按键第一声轻"咔"、进度环极轻"嘶" | C9 → **全静(静音 B)** |-| 高点 | 马达嗡声(带通锯齿 + 轻 LFO,J-cut 提前 0.2 s) | 按键大"咔—叮"(全片最重要的声音)、边刷沙沙(随速度变亮)、圆点弹出钢片琴"叮" | 全乐队 + 升调 + 双倍时值 |-| 贴士 | 回到客厅底噪,马达嗡淡出(L-cut) | 色块滑入的纸面"唰"、星芒章"嗵"、胶皮线被揭起"嗖"+ 纸面"嘶"、Pip 眨灯"叮" | 半速:长笛 + 拨弦 + 木鱼;30.2 起近乎静音 C |-| 落版 | 底噪 | 三枚圆章"嗵"(和弦同拍)、箭头画出的笔尖"沙"、标题砸下木块"咚"、花布升起的纸"唰" | 主题收尾 + 延音 |-| 结尾卡 | 底噪淡出 | iris 收拢"咻" | button + 衰减 |--**混音**:旁白压缩后置于最上层,音乐在旁白下闪避约 −8 dB;三层(环境 / 拟音 / 音乐)分轨混;静音 A / B / C 是真静(B 段连底噪都抽掉);响度 −14 LUFS;mux 颗粒 4(轻,印刷纸感)。-**J/L-cut**:① 1.36 音乐先于 Pip 亮相进入(J);② Wi-Fi 第三声"哔"拖进第 3 步(L);③ 马达嗡在匹配转场前 0.2 s 进(J);④ 高点的刮奏尾巴拖进贴士(L);⑤ 每一步的旁白比穿圆早半拍开口(J)。-------## 九、旁白与字幕--- **声线**:Kokoro `bm_george`(温和权威的英式教育片腔),语速 0.94;制作阶段和 `am_michael` 各出一版试听后定。每句 `asr_check.py` 校对到全部 OK。-- **台词**(全部在 content.json):- 1. Meet Pip, your new robot vacuum.- 2. Step one. Set the dock against a wall.- 3. Step two. Open the app and add Pip.- 4. Step three. Press start.- 5. One tip: pick up loose cables first.- 6. Three steps. That's all there is to it.-- **字幕样式(时代字卡)**:奶油纸色圆角字卡 + 细墨线框(色块层按风格错位 5 px)、两端各一颗慢转的珊瑚色八角星;Jost Medium 42 px 墨色;底部居中,离下边 62 px;淡入 0.16 s + 上浮 10 px。- - 每句停留 ≥ max(1.8 s, 语音 + 0.6 s),且 ≥ 字数/12 + 1 s;主体构图避开底部 150 px。- - 高点段无旁白、无字幕(让画面和音乐说话);落版字幕 33.9 s 退场,留出纯净可截图画面。-- 另交 `.srt`。-------## 十、content.json(本批核心交付)--| 字段 | 类型 | 范围 | 用在哪 |-|---|---|---|---|-| `product` | string | 1–12 字符 | 盒子印字、旁白里的名字 |-| `kind` | string | — | 描述用 |-| `title` / `subtitle` | string | ≤ 36 / ≤ 24 字符(超出自动缩字号、换两行) | 钩子第 1 层、落版标题 |-| `hook.kicker` / `hook.line` | string | ≤ 14 / 旁白一句 | "Meet Pip." / 旁白 |-| `steps[]` | array | **2–5 步** | 每步一场;时间线按步数和配音时长自动排(每步 ≥ 3 小节,最后一步固定 2 小节接高点) |-| `steps[].title` / `detail` | string | ≤ 22 / ≤ 44 字符(超出缩字号 / 两行) | 步骤标题、细节数据层 |-| `steps[].icon` | enum | 引擎图标库:dock, phone, start, cable, wifi, plug, water, beans, cup, filter, box, clock, check, leaf, key, bulb, spark, gear | 编号圆章、落版 |-| `steps[].action` | enum | place, tap, press, plug, pour, twist(引擎的手部动作库) | 每步的关键手部动作特写 |-| `steps[].line` | string | 旁白一句 | 旁白 + 字幕 |-| `payoff.caption` / `rooms` | string / string[≤3] | — | 高点的说明标签 / 房间名 |-| `tip.label` / `text` / `icon` / `line` | — | text ≤ 40 字符 | 贴士 |-| `outro.line` / `cta` | string | cta ≤ 48 字符 | 结束旁白 / 行动号召 |-| `palette` | object | 纸、墨、产品色、强调色、钩子底色、步骤底色数组、贴士底色、平面图三色 | 全片配色主题 |-| `voice` | object | Kokoro 声线 id + 语速 | TTS |-| `film` | object | 片名、风格名、署名 | 结尾卡 |--换内容测试(关卡 2 交):`content_alt.json` 计划做一台虚构的**手冲咖啡机 "Drip"**,4 步(加水 / 放滤纸 / 加咖啡粉 / 按下冲煮),贴士 "Rinse the filter first.",换一套配色主题(李子紫 + 芥末 + 淡粉),高点的"路径花布"改成咖啡滴落的圆点图案(同一个图案引擎,不同路径函数)。-------## 十一、技术方案--- 纯 Canvas2D,`window.render(t)` 确定性渲染。-- `demo/engine/toon.js`:风格引擎(线色错位 `reg()`、`shape()`、断笔墨线 `ink()`、两版套印文字 `text()`、星芒 / 光芒 / 原子 / 回旋镖 / 肾形、会动的说明书箭头 `arrow()`、自动换行缩字号 `fit()`、纸感收尾)。任意路径都能用这个风格画出来。-- `demo/engine/chars.js`:June 与 Pip 的画法(有限动画的姿势参数);`demo/engine/icons.js`:图标库。-- `demo/film.js`:只调用引擎,时间线从 content.json + 配音时长生成,卡在 132 BPM 网格上。-- 起点代码:读过 `promo/opuscar98/sets/29/upa.js`(错位印刷 + 蜡笔颗粒 + 压力墨线的思路),在本目录重写并改为 12 fps 抖动错位、更细更断的线、更轻的颗粒;不 import、不复制电影内容。-- 配乐 fork 一个子 agent(Opus 5.5)按本 cue map 写;高点的颤音琴"每圈一个音"由 `events.json` 导出的圈时刻驱动。-- 渲染:整片走 `batch/tools/render_slot.mjs` 限流器,`--workers 2`。-------## 十二、制作阶段修订(关卡 1 意见落实后,以成片为准)--| 项 | 方案原稿 | 成片 | 理由 |-|---|---|---|---|-| 人设 | June 穿波点裙,为吸尘器欢呼的 50 年代主妇 | **June 改为"新房主"**:Mary Blair 式珊瑚色高领衫 + 藏青烟管裤 + 平底鞋,保留波波头和芥末发带 | 为家电欢呼的"主妇"是那个年代广告的刻板印象,放在开源库首页不合适。换成高领衫加长裤,保留时代的造型语法,气质变成"刚搬进新家、自己动手装东西的人" |-| 鼻子 / 手 / 手臂 | 三角鼻贴在脸外;连指手套;手臂从脖子根长出 | 鼻子并进头部外轮廓(一条样条从鼻梁绕后脑到鼻下,在鼻尖闭合),3/4 侧远侧眼露出;四指 UPA 手套(open / flat / point / grip 四种);手臂从肩角出发,粗墨线 + 珊瑚色袖子 | 意见 2 |-| 签名镜头路径 | 满屏螺旋卷圈,压在家具上 | 真实清扫逻辑:先沿墙一圈,再往返车道;车道按势流流线绕开家具轮廓(永不相交、永不进入家具);每个掉头是圆角 U 形 + 一个小卷;车道之间点星芒和圆点。按房间分拍画出(客厅 b4 → 走廊 b6 → 厨房 b8),最后沿虚线回到充电座(b11,和配乐重音同拍)。家具减到 4 件 | 意见 1 |-| 三个步骤 | 只写在方案里 | 每步 = 全景(June 做这件事)+ 圆形局部放大框(手的特写),细节数据在动作落拍时出现在放大框上:①跪姿推充电座贴墙(预备回拉 → 推 → 撞墙回弹,b3.5 落"咚"),放大框翻面成正视尺寸图,两支"50 cm"箭头按拍长出;②放大框里是手机屏,食指两次点击(b4 / b5),三圈 Wi-Fi 弧从手机飞向 Pip(b6 / b7 / b8),Pip 同拍闪灯,✓ 盖章;③特写:食指从上方进入 → 悬停 → 抬高预备 → 按下 → 按住两拍(进度环),全静一拍 | 意见 5;三格自审图 `demo/stills/steps_review.jpg` |-| 落版 | 底部粉色卷圈带;June / Pip 被裁 | 底边只留一条低对比的细花边(一条波线 + 小星);"Full manual" 胶囊放在干净的纸面上;June 和 Pip 完整收进画框 | 意见 4 |-| 旁白声线 | 候选 bm_george | **am_michael**,语速 0.94 | bm_george 的英式元音让 whisper 把 "dock" 听成 "dark";am_michael 全部一次 OK。50 年代课堂片本来就是美式旁白 |-| 台词 | "One tip: …"、"Three steps. That's all there is to it." | "Tip: pick up loose cables first."、"Three steps. That's it." | 意见 7:保证时长 ≤ 40 s,并让落版在字幕退场后留 2 s 纯净画面,没有砍步骤的停留 |-| 第 1 步细节 | "Against a wall, 50 cm clear each side" | "50 cm clear on each side"("靠墙"在标题和旁白里) | 保证阅读时间(字数/12+1 s) |-| 贴士 | 一根线被揭起 | 保留:June 跪姿伸手,第 2 拍抓住,墨线从抓住的一端一点点离开纸面,地上留一道淡色影后消失;Pip 眨灯致谢,第 5 拍向前滚动 | — |-| 结尾卡 | 圆形光圈 | iris-out 收在落版右下角的 Pip 上 → 黑场一瞬 → 圆在画面中央张开,结尾卡在圆里 | — |--### 返修一轮(关卡 2 意见,v1 已备份为 `midcentury-toon_v1.mp4` / `demo_v1/`)-| 项 | 改动 |-|---|---|-| 第 3 步手臂 | 橙色直杆改成真手臂:上臂从右侧近水平进画,肘部弯,前臂斜向下,腕部有袖口线,入画竖向约占画高 38%;按下前手腕先上翘(预备)再下压,松开后回弹;细节标签移到左侧,不再被手臂穿过 |-| 平面图引线 | 长黑线改成从说明牌伸出的短弯箭头,落在平面图上边缘(最长 160 px),不穿过房间 |-| 走廊车道 | 走廊加两条直车道(上行 → 顶部小卷掉头 → 下行),星芒圆点落在两条车道之间 |-| 高点第一小节 | 起始推近 5.4× → 2.6×,拉远从第 0.4 拍开始;按键圆张开 0.45 s → 0.28 s |-| 落版 | Pip 光圈整体内收(右、下边距 ≥ 5%);June 放大到 s 0.66(约占画高 35%);iris-out 的圆心同步 |diff --git a/styles/midcentury-toon/demo/build.sh b/styles/midcentury-toon/demo/build.shindex a25e468..83faaa3 100755--- a/styles/midcentury-toon/demo/build.sh+++ b/styles/midcentury-toon/demo/build.sh@@ -14,7 +14,7 @@ node core/render/events.mjs $D #$PY $D/tools/cuecheck.py # 6. cue check: picture hits vs grid + score$PY $D/mix.py # 7. foley + voice + ducking + silences -> mix.wavnode $D/tools/cues.mjs > $D/out/cues.json && $PY core/render/srt.py $D/out/cues.json $O/midcentury-toon.srt # 8. subtitles-node batch/tools/render_slot.mjs -- node core/render/video.mjs $D --fps 24 --workers 2 --out $D/out/video24.mp4 # 9. frames (render slot)+node core/render/slot.mjs -- node core/render/video.mjs $D --fps 24 --workers 2 --out $D/out/video24.mp4 # 9. frames (render slot)sh core/render/mux.sh $D/out/video24.mp4 $D/mix.wav $O/midcentury-toon.mp4 24 4 # 10. -14 LUFS, light grainnode core/render/still.mjs $D 6.0 35.8 --q nosubs=1 --prefix ns_ --out $D/out/stillcp $D/out/still/ns_6.0.jpg $D/stills/styleframe.jpg; cp $D/out/still/ns_35.8.jpg $O/poster.jpgdiff --git a/styles/midcentury-toon/demo/stills/alt_1_hook.jpg b/styles/midcentury-toon/demo/stills/alt_1_hook.jpgnew file mode 100644index 0000000..6b05fbbBinary files /dev/null and b/styles/midcentury-toon/demo/stills/alt_1_hook.jpg differdiff --git a/styles/midcentury-toon/demo/stills/alt_2_step.jpg b/styles/midcentury-toon/demo/stills/alt_2_step.jpgnew file mode 100644index 0000000..66dc93dBinary files /dev/null and b/styles/midcentury-toon/demo/stills/alt_2_step.jpg differdiff --git a/styles/midcentury-toon/demo/stills/alt_3_payoff.jpg b/styles/midcentury-toon/demo/stills/alt_3_payoff.jpgnew file mode 100644index 0000000..f3b9407Binary files /dev/null and b/styles/midcentury-toon/demo/stills/alt_3_payoff.jpg differdiff --git a/styles/midcentury-toon/demo/stills/alt_4_lockup.jpg b/styles/midcentury-toon/demo/stills/alt_4_lockup.jpgnew file mode 100644index 0000000..d2041cdBinary files /dev/null and b/styles/midcentury-toon/demo/stills/alt_4_lockup.jpg differdiff --git a/styles/midcentury-toon/demo/stills/modelsheet_v2.jpg b/styles/midcentury-toon/demo/stills/modelsheet_v2.jpgnew file mode 100644index 0000000..f503b85Binary files /dev/null and b/styles/midcentury-toon/demo/stills/modelsheet_v2.jpg differdiff --git a/styles/midcentury-toon/demo/stills/styleframe.jpg b/styles/midcentury-toon/demo/stills/styleframe.jpgnew file mode 100644index 0000000..aab2c70Binary files /dev/null and b/styles/midcentury-toon/demo/stills/styleframe.jpg differdiff --git a/styles/midcentury-toon/style.json b/styles/midcentury-toon/style.jsonnew file mode 100644index 0000000..21e34a0--- /dev/null+++ b/styles/midcentury-toon/style.json@@ -0,0 +1,18 @@+{+ "slug": "midcentury-toon",+ "num": "48",+ "en": "Mid-century Cartoon",+ "cn": "50s 扁平卡通",+ "category_en": "Cartoon & Anime",+ "category_cn": "卡通与动画",+ "film": "Meet Pip",+ "line": "A robot vacuum set up in three steps, told like a 1950s classroom film: place the dock, connect the app, press start.",+ "line_cn": "用 50 年代教育片的口吻,三步教你装好一台扫地机:放充电座、连 app、按开始。",+ "uses": [+ "Product set-up guides",+ "Help-centre explainers",+ "How-to steps"+ ],+ "frame_sec": 3.2,+ "dur": 40.0+}diff --git a/styles/one-line/DEMO.md b/styles/one-line/DEMO.mdnew file mode 100644index 0000000..6fb99e6--- /dev/null+++ b/styles/one-line/DEMO.md@@ -0,0 +1,124 @@+# One-line Drawing — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *The Line That Never Lifted* (47.5 s) · `one-line.mp4` · source in [`demo/`](demo/)+++A 30–60 second film: one man's life drawn as one line that, in the final pull-back, turns out to be his own face as an old man.++## Story & structure++A film made of **one continuous line** on warm white paper. The pen never lifts: in code the entire film is literally one point array, from the first touch of the nib to the last frame. There are no cuts. The camera follows the nib like a tracking shot, with a little lag and a little anticipation, so the audience always watches the line *being drawn*.++Everything is a line: characters, places, objects, even time. No fills, no shading, no second weight of line, no background art. The only things on screen besides ink are the paper itself and a soft **shadow of the pen** (the real world above the paper). One accent colour at most, used once.++Learn the grammar from Osvaldo Cavandoli's *La Linea* (1971) — one line is both the world and the character, and transformations of the line are the jokes and the transitions; from Gjon Mili's 1949 photographs of Picasso drawing with light — the confidence and speed of a single gesture; and from Norman McLaren's *Begone Dull Care* and *Boogie-Doodle* — lines that are drawn *to* the music. Do not copy La Linea's character, its gibberish voice, or any specific continuous-line illustration.++Pick stories where **the continuity of the line is the meaning**. The demo used all five native powers and put the strongest one (the scale reveal) at the peak:++| Native power | Story use |+|---|---|+| **The pen never lifts** | A life, a journey, a process, a history: anything that is *one continuous thing*. No cuts, ever; the camera follows the nib. |+| **The line is time** | The character of the stroke changes with age or mood: light and fast in youth, full and steady in adulthood, trembling with dry-brush breaks in old age. One stretch can change colour (love, danger) and change back. |+| **Transformation** | A kite string becomes a bicycle frame, a smile becomes a road. Scenes don't cut, they *morph*: the last stroke of one image is the first stroke of the next. |+| **Stopping is an event** | When the nib stops, ink pools and blooms. A 1.5–3 s stop with music cut to silence is the strongest possible beat in this medium (loss, doubt, a decision). |+| **Reverse-designed scale reveal** | Every vignette drawn in close-up is secretly a part of one big picture. At the end the camera pulls back and the audience sees that the whole story *was* a face (a tree, a map, a word). |++Adapting any topic: find the **one picture** the story can end on, and the 6–8 moments that can each become a part of it. A company history → the founders' first desk, the first product, the first office… are the features of the logo. A city → its landmarks are the lines of a portrait of its founder. A love story → two lives drawn separately that join into one heart.++**Emotional arc for 40–50 s:** a single touch on blank paper (hook in the first 3 s) → quick, light early chapters → the one coloured chapter → a stop (silence, ink blooms) → the line resumes, changed → the final, slow strokes while the camera pulls back → the whole picture, held → a coda that passes the pen on.++## Shots++The camera is one continuous move: keyframes of composition centre, zoom, a few degrees of roll, and a follow weight `f` (0 = composed, 1 = locked to the nib). The follow point is a weighted average of the nib position over −0.55…+0.4 s, which gives lag and anticipation. A soft clamp keeps the nib inside 72 % × 66 % of the frame.++| Beat | Camera |+|---|---|+| Opening | Macro (z ≈ 4.3) on blank paper where the pen will land; the first vignette is composed, f ≈ 0.1 |+| Traveling lines | Follow (f 0.6–0.85), zoom out to ≈ 2.4 |+| Each vignette | Composed (f 0.15–0.35), framed so the finished drawing sits centred |+| The stop | Hold, with a very slow push-in (4.6 → 5.4) through the silence |+| Mirror chapter | Same framing as the chapter it rhymes with, mirrored |+| Reveal | One continuous pull-back from ≈ 3 to 1 over 5 s while the last strokes are drawn, then hold ≈ 1 s |+| Coda | Push in to where the pen rests for the handoff; pull back again as the new line runs; the end card sits in the empty paper |++- **Everything on ones** (24 fps). The appeal is the continuous act of drawing; stepping it would break the illusion.+- **Timing = chapter windows + curvature.** Each chapter has a time window; within it, time per point is weighted by `1 + K·turn` (sharp turns get more time, smoothed so speed never jumps). Pin musical beats with marks: by arc-length fraction `f`, or by position `at:[x,y]` ("the second time the pen passes the nose"). A stop is two marks at the same place.+- Corners (local speed minima at high turn) are exported to the soundtrack as candidate note onsets.+- Typical speeds: 300–700 units/s for traveling lines, 50–150 for small details (fingers, eyelashes). The last stroke of a life should be the slowest in the film.++## Score structure++- **Music: one solo instrument, one unbroken melodic line** — the sound equivalent of the drawing. The demo uses cello (`cellos` at low velocity, mono, slightly left, legato with 0.14 s overlaps), `cellos_pizz` for childhood, one `hand_chimes` note when the next generation starts. No piano, no string pad.+- Write the score to the drawing: key notes on the marks and corners (the grip closes on the tonic, each kite corner is a pluck, the highest note is the first touch of the two noses, eyelashes of the last eye are the last three notes). Line fast = short notes; line stopped = one long note fading into silence.+- **Silence is literal**: zero the music bus including reverb tails during the stop; drop room tone to 15 %.+- **The pen on paper is the most important sound**: synthesized from the pen speed track — band-passed noise (bright 2.2–7.5 kHz when fast, dull 0.7–2.4 kHz when slow), random paper-fibre ticks with density ∝ speed, amplitude ∝ (v/520)^0.5, panned with the nib's screen position; broken up by the dry-brush gaps in old age; lighter and jerkier for the child. Plus a wooden tap on the first touch, a barely audible wet swell for the blot, a tiny rub at the handoff.+- **Voice**: warm, retrospective male narrator (Kokoro `am_liam`, speed 0.84; high-passed at 85 Hz, low-passed at 7.2 kHz to soften it). 5–6 short lines that leave space for the line. Place them by whisper word timestamps so key words land on picture beats ("holding **on**" on the grip, "**goes** on" when the pen resumes). Music ducks ≈ 5 dB and the pen ≈ 4 dB under voice. Loudness −14 LUFS, **grain 0** (the paper texture is in the render).++## Palette, props & the reverse-designed face++**Reverse design is the core technique.** Draw the final picture first, then cut it into chapters, then design each chapter so it reads as its own scene in close-up *and* as a feature of the final picture. Rules that made this work in the demo:+- **Each region of the final picture is drawn exactly once.** Connectors between chapters must fall on natural lines of the final picture: lens rims, nasolabial folds, crow's feet, the jaw contour, a hair. Every "extra" connector becomes a stray wrinkle, a jowl or a beard in the reveal.+- **Plan the topology like an Euler path.** A closed motif such as a mouth (smile + upper lip + two profiles) is a circuit: you leave where you came in. Either route the next chapter from the same point (a retraced fold is invisible) or reorder the chapters. We moved "loss" before "child" purely for topology, then made it the emotional point ("and then it goes on").+- **Retracing is legal and invisible:** going back over an existing line only thickens it slightly. In the demo the pen "reels in" the kite by retracing its tail and string back down to the head.+- **Test the reveal early and often:** render the whole path at once, at final scale, after every change (`?all=1&cam=0,-170,1`).++**Mapping used in the demo** (old man's face): left ear = his birth (a baby fist curled into the C of an ear, gripping an adult finger that is also the arm of his glasses); bald dome = kite string, the kite = his single hair; glasses = the bicycle (wheels = lenses, saddle = left brow, handlebar = right brow, frame = sides of the nose); mouth = first love (two profiles nose to nose; their crowns form the M of the upper lip, the red smile below); nose = the house (the ring and a round window are the nostrils); right eye + tear = the loss; right ear = his own child (mirror of his birth); jaw contour = old age; left eye closing = the last stroke.++**Paper**: warm white `#F4EFE4`; procedural mottling (1400-unit tile, soft-light), long fibres (260-unit tile, fading out when zoomed out so it does not shimmer), a sparse "paper tooth" speckle screened over the ink at close zoom; vignette 0.13 multiply. All textures are anchored to the paper and move with the camera.++**Ink**: warm black `#1D1A17`, rendered as a filled polygon around the path (not `ctx.stroke`), mixed with paper colour to an opaque tone per point.+- Width = age base width × pen pressure × fine noise (±8 %). Pressure from speed: `0.66 + 0.8·exp(−v/300)` (fast = thin, slow = fat).+- Base widths (paper units): child 2.4 (alpha .82), teen 2.5, adult 2.9 (.96), old 2.7 (.93), the next generation 2.0 (.76). Blend styles over ±60 units at chapter boundaries.+- Ink bleed: the same polygon slightly wider, drawn to an offscreen layer, blurred (≈0.9 × zoom px) and composited at 22 %.+- Pooling: extra round dots where speed < 45 units/s.+- Old age: perpendicular tremble (two noise octaves, amplitude up to ≈1.1 units), dry-brush gaps from long-scale noise plus three thin bristle strands; **reduce the dryness again for the final strokes** so the last gesture is clear.+- The stop: a teardrop-shaped blot (tip at the stopped nib, belly sagging downward as it spreads, dark tide line at the rim).+- **Keep a screen-space minimum line width.** Line widths scale with zoom like a real line under a macro lens, but during the pull-back clamp the zoom used for width to ≥ 1.3 (≈ 3–4 px at the reveal). Without it the final picture looks like a pencil sketch and loses weight.++**Colour**: at most one accent, used once and kept in the final picture where it means something. The demo's red `#B3332B` starts exactly at the mouth corner and returns to ink at the next chapter, so the old man's only colour is his smile.++**The pen**: never drawn. Only a soft shadow (blurred wedge from the nib toward the lower right, length ≈ 560 × zoom px, alpha .15) and a 1–4 px contact dot. Hands appear only as shadows at the handoff (each hand composited as one flat shadow so overlaps don't darken).++## Titles, subtitles & end card++- Subtitles: Caveat 500, 46 px, ink at 84 %, no box, centred with the baseline 100 px from the bottom; they are **written on** left to right (0.2 s + 17 ms per character) behind a soft paper-coloured halo so passing ink lines never cross the letters; fade out over 0.45 s. Stay ≥ voice + 0.6 s and ≥ 1.8 s.+- Title: Sacramento (a monoline connected script — itself a one-line drawing) 76 px, written on over 1.6 s in empty paper away from the current vignette, with a small Caveat sub-line. Keep it short enough to disappear before the camera moves into it.+- End card: Sacramento title on two lines, "ONE-LINE DRAWING" in Caveat 600 with wide tracking, the credit line below, written in the empty paper beside the final picture while the new line is still being drawn. Its "LemoLab × Claude Opus 5.5" line (`subs.js`) belongs to this library's demo only: a user's film carries no LemoLab credit and no copy of this card.++## Pitfalls we hit (demo record)++- **Stray connectors ruin the reveal.** Every early version had lines that read as a beard, jowls, a bib or a mask. Fix the topology (which chapter enters and leaves where), not the drawing.+- **A kite drawn straight up from the head made a pointed onion dome.** Let the string be the single hair and retrace (reel in) back to the crown so the dome stays a clean arc.+- **Hands jutting sideways from the temples read as bolts.** Curl the baby fist into the vertical C of an ear, fingertip hidden inside, knuckles as four short round bumps (long loops read as springs).+- **Two profiles closed by an arc over their heads read as a goblet** (Rubin's vase). Let their crowns become the M of the upper lip instead, and join their necks into the smile at one point.+- **Profiles too close braid together** once line width is applied; keep ≥ 5 units between lips, touch only at the nose tips.+- **Eyes**: almond shapes with bags read as toothy mouths; a closed lid (‿) with three short lashes reads best.+- **A round blot reads as a mole.** Make it a teardrop that sags as it spreads.+- **Thin lines at the reveal.** Clamp the width zoom (see "Palette, props & the reverse-designed face").+- **Hand shadows as separate translucent shapes** double-darken where fingers overlap — composite each hand as one layer.+- **Titles collide with the vignette as the camera moves.** Check the title against every frame of its window, not just the first.+- **Whisper mishears**: "Sometimes it stops" was heard as "But sometimes it stops" and "Your turn." as "Your turns" — rephrase ("Sometimes the line stops.", "Your turn now.") rather than fight it.+- **zsh**: `=====` as an echo separator is expanded; heavy machine load makes `still.mjs` slow — the page supports `?cams=` / `?camt=` to render many views in one browser session.++## Build notes++```+styles/one-line/demo/+ face.js THE drawing: every chapter as SVG path strings + transforms, and the chapter table (time windows, marks, holds)+ geom.js samples SVG paths by arc length (browser SVGPathElement), adds tangent-continuous connectors, assigns time (curvature-weighted, marks, holds)+ ink.js line renderer (pressure, bleed, pooling, tremble, dry brush, red stretch, teardrop blot, min screen width)+ paper.js procedural paper, fibres, tooth, vignette cam.js composition keys + nib follow + soft clamp+ shots.js camera keyframes hands.js pen shadow and hand shadows+ story.js single source of truth for voice/subtitle/title/handoff times+ subs.js written-on subtitles, title, end card main.js render(t), debug modes, events for the mix+ lines.json voice script music/score.py solo cello score mix.py pen-scratch foley + voice + music build.sh+```++1. Design the final picture in `face.js` and iterate with `node core/render/still.mjs styles/one-line/demo 0 --q 'all=1&nopen=1&nosub=1&cams=0,-170,1.0'` (add more `;x,y,z` views to check vignettes in the same run).+2. Voice: `core/tts/tts.py lines.json voices` → `asr_check.py`; read `voices/words.json` and place lines in `story.js`.+3. Set chapter windows and marks in `face.js`; `node demo/tools/probe.mjs 0.5` prints part boundaries and the nib track to write camera keys.+4. `node core/render/events.mjs styles/one-line/demo` → `music/score.py` → `mix.py`.+5. `node core/render/video.mjs styles/one-line/demo --fps 24 --workers 3` (1140 frames ≈ 30–45 s) → `sh core/render/mux.sh out/video24.mp4 mix.wav one-line.mp4 24 0`.+6. Or simply `sh styles/one-line/demo/build.sh`.diff --git a/styles/one-line/STYLE.md b/styles/one-line/STYLE.mdindex 2b28b4c..e5731a7 100644--- a/styles/one-line/STYLE.md+++ b/styles/one-line/STYLE.md@@ -1,128 +1,112 @@# One-line Drawing — Style Prompt-> A single ink line that never leaves the paper. It draws a whole story, and when the camera pulls back, everything it drew turns out to be one picture.-> Demo: *The Line That Never Lifted* (47.5 s) · `one-line.mp4` · source in `demo/`+> A single ink line that never leaves the paper. Everything on screen is that one line being drawn; scenes don't cut, they morph.+> References (grammar only): Osvaldo Cavandoli's *La Linea* (1971) — one line is both the world and the character, and transformations of the line are the jokes and the transitions; Gjon Mili's 1949 photographs of Picasso drawing with light — the confidence and speed of a single gesture; Norman McLaren's *Begone Dull Care* and *Boogie-Doodle* — lines drawn *to* the music. Do not copy La Linea's character, its gibberish voice, or any specific continuous-line illustration.-You are directing a 30–60 second film in the **One-line Drawing** style. The user gives you a topic. You decide everything else — story, shots, timing, sound — and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not------## 1. What this style is+- **One continuous line** on warm white paper. The pen never lifts: in code the whole film can literally be one point array, from the first touch of the nib to the last frame.+- **Everything is a line**: characters, places, objects, even time. No fills, no shading, no second line weight, no background art.+- **We watch the line being drawn**: the camera follows the nib with a little lag and anticipation.+- Besides ink there is only the paper and a soft **shadow of the pen** (the real world above the paper). One accent colour at most, used once.-A film made of **one continuous line** on warm white paper. The pen never lifts: in code the entire film is literally one point array, from the first touch of the nib to the last frame. There are no cuts. The camera follows the nib like a tracking shot, with a little lag and a little anticipation, so the audience always watches the line *being drawn*.+Not a whiteboard explainer (no hand, no marker, no erasing, no text-heavy boards), not ink wash (no tones, no brush bloom as a look), not a line-art animation with cuts and many strokes.-Everything is a line: characters, places, objects, even time. No fills, no shading, no second weight of line, no background art. The only things on screen besides ink are the paper itself and a soft **shadow of the pen** (the real world above the paper). One accent colour at most, used once.+## 2. Materials & rendering-Learn the grammar from Osvaldo Cavandoli's *La Linea* (1971) — one line is both the world and the character, and transformations of the line are the jokes and the transitions; from Gjon Mili's 1949 photographs of Picasso drawing with light — the confidence and speed of a single gesture; and from Norman McLaren's *Begone Dull Care* and *Boogie-Doodle* — lines that are drawn *to* the music. Do not copy La Linea's character, its gibberish voice, or any specific continuous-line illustration.+- **Paper**: warm white (around `#F4EFE4`), procedural mottling (soft-light, large tile), long fibres that fade out when zoomed out (or they shimmer), a sparse paper-tooth speckle over the ink at close zoom, light vignette. All textures anchored to the paper; they move with the camera.+- **Ink** is a filled polygon around the path (not `ctx.stroke`), mixed with paper colour to an opaque tone per point.+ - Width = base width of the current "voice" of the line × pen pressure × fine noise (±8 %); pressure from speed: `0.66 + 0.8·exp(−v/300)` (fast = thin, slow = fat).+ - The line's character can change along the path (base width, alpha, tremble, dryness); blend over a short stretch at boundaries.+ - Ink bleed: the same polygon slightly wider, blurred on an offscreen layer, composited at ~20 %.+ - Pooling: extra round dots where speed drops low.+ - Tremble (perpendicular noise) and dry-brush gaps (long-scale noise + thin bristle strands) for age, fear or fatigue.+ - A stop leaves a teardrop-shaped blot: tip at the nib, belly sagging downward as it spreads, a dark tide line at the rim.+ - **A screen-space minimum width**: widths scale with zoom like a line under a macro lens, but clamp the zoom used for width during pull-backs so a wide view keeps its weight.+- **The pen is never drawn**: a soft blurred wedge of shadow from the nib and a tiny contact dot. Hands, if any, appear only as shadows, each hand composited as one flat layer.+- **Path design**: chapters written as SVG path strings, sampled by arc length, joined by tangent-continuous connectors; time assigned per point weighted by curvature.-## 2. Story: what fits this style+## 3. Colour logic-Pick stories where **the continuity of the line is the meaning**. One-line drawing has five native powers — use at least three, and put the strongest one at the emotional peak:+- **Ink on paper.** A warm black (around `#1D1A17`) on warm white; nothing else fills the frame.+- **One accent at most, used once**, on a stretch of the line that means something; it returns to ink afterwards and stays visible in the final picture if the picture is revealed.+- Examples of an accent's job: red for love or danger; blue for water or cold; gold for money or a prize. Never a second accent.-| Native power | Story use |-|---|---|-| **The pen never lifts** | A life, a journey, a process, a history: anything that is *one continuous thing*. No cuts, ever; the camera follows the nib. |-| **The line is time** | The character of the stroke changes with age or mood: light and fast in youth, full and steady in adulthood, trembling with dry-brush breaks in old age. One stretch can change colour (love, danger) and change back. |-| **Transformation** | A kite string becomes a bicycle frame, a smile becomes a road. Scenes don't cut, they *morph*: the last stroke of one image is the first stroke of the next. |-| **Stopping is an event** | When the nib stops, ink pools and blooms. A 1.5–3 s stop with music cut to silence is the strongest possible beat in this medium (loss, doubt, a decision). |-| **Reverse-designed scale reveal** | Every vignette drawn in close-up is secretly a part of one big picture. At the end the camera pulls back and the audience sees that the whole story *was* a face (a tree, a map, a word). |+## 4. Type & subtitles-Adapting any topic: find the **one picture** the story can end on, and the 6–8 moments that can each become a part of it. A company history → the founders' first desk, the first product, the first office… are the features of the logo. A city → its landmarks are the lines of a portrait of its founder. A love story → two lives drawn separately that join into one heart.+- **Text is written, like the line**: a handwriting face (e.g. Caveat) for subtitles, ink at ~84 %, no box, centred near the bottom, **written on** left to right (~0.2 s + ~17 ms per character) behind a soft paper-coloured halo so passing lines never cross the letters; fade out ~0.45 s. Hold ≥ max(1.8 s, speech + 0.6 s).+- Titles in a monoline connected script (e.g. Sacramento: itself a one-line drawing), written on in empty paper away from the drawing, gone before the camera moves into them.-**Emotional arc for 40–50 s:** a single touch on blank paper (hook in the first 3 s) → quick, light early chapters → the one coloured chapter → a stop (silence, ink blooms) → the line resumes, changed → the final, slow strokes while the camera pulls back → the whole picture, held → a coda that passes the pen on.+## 5. Motion quality-## 3. Visual language+- **Everything on ones** (24 fps): the appeal is the continuous act of drawing; stepping breaks it.+- **Timing = chapter windows + curvature**: within a window, time per point is weighted by `1 + K·turn` (sharp turns get more time, smoothed so speed never jumps). Pin musical beats with marks: by arc-length fraction or by position ("the second time the pen passes here"). A stop is two marks at the same place.+- Corners (speed minima at high turn) can be exported to the soundtrack as candidate note onsets.+- Speeds: ~300–700 units/s for travelling lines, ~50–150 for small details. The most important stroke is usually the slowest.+- **Retracing** over an existing line is legal and invisible (it only thickens slightly).-**Reverse design is the core technique.** Draw the final picture first, then cut it into chapters, then design each chapter so it reads as its own scene in close-up *and* as a feature of the final picture. Rules that made this work in the demo:-- **Each region of the final picture is drawn exactly once.** Connectors between chapters must fall on natural lines of the final picture: lens rims, nasolabial folds, crow's feet, the jaw contour, a hair. Every "extra" connector becomes a stray wrinkle, a jowl or a beard in the reveal.-- **Plan the topology like an Euler path.** A closed motif such as a mouth (smile + upper lip + two profiles) is a circuit: you leave where you came in. Either route the next chapter from the same point (a retraced fold is invisible) or reorder the chapters. We moved "loss" before "child" purely for topology, then made it the emotional point ("and then it goes on").-- **Retracing is legal and invisible:** going back over an existing line only thickens it slightly. In the demo the pen "reels in" the kite by retracing its tail and string back down to the head.-- **Test the reveal early and often:** render the whole path at once, at final scale, after every change (`?all=1&cam=0,-170,1`).+## 6. Camera grammar-**Mapping used in the demo** (old man's face): left ear = his birth (a baby fist curled into the C of an ear, gripping an adult finger that is also the arm of his glasses); bald dome = kite string, the kite = his single hair; glasses = the bicycle (wheels = lenses, saddle = left brow, handlebar = right brow, frame = sides of the nose); mouth = first love (two profiles nose to nose; their crowns form the M of the upper lip, the red smile below); nose = the house (the ring and a round window are the nostrils); right eye + tear = the loss; right ear = his own child (mirror of his birth); jaw contour = old age; left eye closing = the last stroke.+A vocabulary, not a route. The camera is one continuous move: composition centre, zoom, a few degrees of roll, and a follow weight (0 = composed, 1 = locked to the nib); the follow point averages the nib over roughly −0.55…+0.4 s (lag and anticipation), with a soft clamp keeping the nib inside the central ~70 % of the frame. Opening and ending come from the topic.-**Paper**: warm white `#F4EFE4`; procedural mottling (1400-unit tile, soft-light), long fibres (260-unit tile, fading out when zoomed out so it does not shimmer), a sparse "paper tooth" speckle screened over the ink at close zoom; vignette 0.13 multiply. All textures are anchored to the paper and move with the camera.+| Move | What it expresses | Can serve |+|---|---|---|+| Follow the nib (high follow weight) | travel; momentum; a thread of time | a journey; a process; a timeline |+| Composed frame, low follow weight | a scene that must read as a whole | a vignette; a joke; a diagram |+| Macro on the nib | intimacy; the act of making | a first touch; a signature; a detail |+| Hold with a slow push-in | weight; a stop | a loss; a doubt; a decision |+| Mirrored framing | rhyme across time | parent and child; before/after |+| Continuous pull-back | everything was one picture | a reveal; a map; a word |+| Lateral scroll with the line running ahead | a horizon; a graph; a race | a stock chart; a heartbeat; a road |+| Roll with the line | vertigo; play | a loop-the-loop; a fall; a dance |-**Ink**: warm black `#1D1A17`, rendered as a filled polygon around the path (not `ctx.stroke`), mixed with paper colour to an opaque tone per point.-- Width = age base width × pen pressure × fine noise (±8 %). Pressure from speed: `0.66 + 0.8·exp(−v/300)` (fast = thin, slow = fat).-- Base widths (paper units): child 2.4 (alpha .82), teen 2.5, adult 2.9 (.96), old 2.7 (.93), the next generation 2.0 (.76). Blend styles over ±60 units at chapter boundaries.-- Ink bleed: the same polygon slightly wider, drawn to an offscreen layer, blurred (≈0.9 × zoom px) and composited at 22 %.-- Pooling: extra round dots where speed < 45 units/s.-- Old age: perpendicular tremble (two noise octaves, amplitude up to ≈1.1 units), dry-brush gaps from long-scale noise plus three thin bristle strands; **reduce the dryness again for the final strokes** so the last gesture is clear.-- The stop: a teardrop-shaped blot (tip at the stopped nib, belly sagging downward as it spreads, dark tide line at the rim).-- **Keep a screen-space minimum line width.** Line widths scale with zoom like a real line under a macro lens, but during the pull-back clamp the zoom used for width to ≥ 1.3 (≈ 3–4 px at the reveal). Without it the final picture looks like a pencil sketch and loses weight.+No cuts. Transitions are morphs: the last stroke of one image is the first stroke of the next.-**Colour**: at most one accent, used once and kept in the final picture where it means something. The demo's red `#B3332B` starts exactly at the mouth corner and returns to ink at the next chapter, so the old man's only colour is his smile.+## 7. Sound palette-**The pen**: never drawn. Only a soft shadow (blurred wedge from the nib toward the lower right, length ≈ 560 × zoom px, alpha .15) and a 1–4 px contact dot. Hands appear only as shadows at the handoff (each hand composited as one flat shadow so overlaps don't darken).+- **Music: one solo instrument, one unbroken melodic line**, the sound equivalent of the drawing: a bowed or plucked string (cello, violin, viola, harp), a solo woodwind (clarinet, flute, bassoon), a hummed voice, a single guitar. A second colour only as a rare accent (a chime, a pizzicato stretch). No pads.+- **Write the score to the drawing**: key notes on marks and corners; fast line = short notes; a stopped line = one long note fading into silence; the highest note on the most important touch.+- **The pen on paper is the most important sound**, synthesised from the pen speed: band-passed noise (brighter when fast, duller when slow), random paper-fibre ticks with density ∝ speed, amplitude ∝ √speed, panned with the nib's screen position; broken up by dry gaps; lighter and jerkier for a young hand. Plus: a wooden tap on the first touch, a faint wet swell for a blot, a tiny rub for a handoff, a page lift.+- **Silence is literal**: zero the music bus including reverb tails; drop room tone.+- **Mix**: music ducks ~5 dB and the pen ~4 dB under voice; −14 LUFS; grain 0 (the paper is in the render).+- **Voice**: warm, few short lines that leave space for the line; place key words on picture beats with whisper word timestamps.-## 4. Motion language+## 8. Native moves-- **Everything on ones** (24 fps). The appeal is the continuous act of drawing; stepping it would break the illusion.-- **Timing = chapter windows + curvature.** Each chapter has a time window; within it, time per point is weighted by `1 + K·turn` (sharp turns get more time, smoothed so speed never jumps). Pin musical beats with marks: by arc-length fraction `f`, or by position `at:[x,y]` ("the second time the pen passes the nose"). A stop is two marks at the same place.-- Corners (local speed minima at high turn) are exported to the soundtrack as candidate note onsets.-- Typical speeds: 300–700 units/s for traveling lines, 50–150 for small details (fingers, eyelashes). The last stroke of a life should be the slowest in the film.+A menu: use the ones your story needs.-## 5. Camera language+- **The pen never lifts.** Anything that is one continuous thing. *Fits content like:* a river from source to sea; a relay race; a production line.+- **The line is time.** The stroke's character changes with age, mood or strain. *Fits content like:* a building aging; a runner tiring; a machine wearing out.+- **Transformation.** One image morphs into the next. *Fits content like:* a seed becoming a tree becoming a table; a sketch becoming a product; a word becoming its object.+- **Stopping is an event.** The nib stops, ink pools, music cuts to silence (1.5–3 s). *Fits content like:* a power cut; a pause for a minute's silence; a hesitation before a signature.+- **Reverse-designed scale reveal.** Every vignette is secretly part of one big picture seen at the end. *Fits content like:* a city's landmarks forming its skyline; a company's milestones forming its logo; a recipe's steps forming the dish.+- **Handoff.** The pen passes to another hand (as a shadow) and a new line begins. *Fits content like:* a teacher and a student; a founder and a successor; one generation to the next.+- **Line as graph.** The line becomes a chart while staying a drawing. *Fits content like:* a heartbeat; a temperature record; a football match's momentum.-The camera is one continuous move: keyframes of composition centre, zoom, a few degrees of roll, and a follow weight `f` (0 = composed, 1 = locked to the nib). The follow point is a weighted average of the nib position over −0.55…+0.4 s, which gives lag and anticipation. A soft clamp keeps the nib inside 72 % × 66 % of the frame.+## 9. Pitfalls of the medium-| Beat | Camera |-|---|---|-| Opening | Macro (z ≈ 4.3) on blank paper where the pen will land; the first vignette is composed, f ≈ 0.1 |-| Traveling lines | Follow (f 0.6–0.85), zoom out to ≈ 2.4 |-| Each vignette | Composed (f 0.15–0.35), framed so the finished drawing sits centred |-| The stop | Hold, with a very slow push-in (4.6 → 5.4) through the silence |-| Mirror chapter | Same framing as the chapter it rhymes with, mirrored |-| Reveal | One continuous pull-back from ≈ 3 to 1 over 5 s while the last strokes are drawn, then hold ≈ 1 s |-| Coda | Push in to where the pen rests for the handoff; pull back again as the new line runs; the end card sits in the empty paper |+- **Stray connectors ruin a reveal**: every extra line reads as a wrinkle, beard or mask. Fix the topology (where each chapter enters and leaves), not the drawing. Plan it like an Euler path: a closed motif is a circuit (you leave where you came in); retrace or reorder chapters.+- Each region of a final picture is drawn exactly once; connectors must fall on natural lines of that picture.+- **Test the reveal early and often**: render the whole path at once at final scale after every change.+- Lines drawn too close braid together once width is applied; keep a gap.+- A round blot reads as a mole → a sagging teardrop.+- Thin lines at wide zoom → clamp the width zoom.+- Translucent hand shadows double-darken where they overlap → one layer per hand.+- Titles collide with the drawing as the camera moves → check every frame of the title's window.+- Whisper mishears short lines → rephrase rather than fight it.-## 6. Sound+## 10. Engine-- **Music: one solo instrument, one unbroken melodic line** — the sound equivalent of the drawing. The demo uses cello (`cellos` at low velocity, mono, slightly left, legato with 0.14 s overlaps), `cellos_pizz` for childhood, one `hand_chimes` note when the next generation starts. No piano, no string pad.-- Write the score to the drawing: key notes on the marks and corners (the grip closes on the tonic, each kite corner is a pluck, the highest note is the first touch of the two noses, eyelashes of the last eye are the last three notes). Line fast = short notes; line stopped = one long note fading into silence.-- **Silence is literal**: zero the music bus including reverb tails during the stop; drop room tone to 15 %.-- **The pen on paper is the most important sound**: synthesized from the pen speed track — band-passed noise (bright 2.2–7.5 kHz when fast, dull 0.7–2.4 kHz when slow), random paper-fibre ticks with density ∝ speed, amplitude ∝ (v/520)^0.5, panned with the nib's screen position; broken up by the dry-brush gaps in old age; lighter and jerkier for the child. Plus a wooden tap on the first touch, a barely audible wet swell for the blot, a tiny rub at the handoff.-- **Voice**: warm, retrospective male narrator (Kokoro `am_liam`, speed 0.84; high-passed at 85 Hz, low-passed at 7.2 kHz to soften it). 5–6 short lines that leave space for the line. Place them by whisper word timestamps so key words land on picture beats ("holding **on**" on the grip, "**goes** on" when the pen resumes). Music ducks ≈ 5 dB and the pen ≈ 4 dB under voice. Loudness −14 LUFS, **grain 0** (the paper texture is in the render).+In `demo/`: `geom.js` (samples SVG paths by arc length in the browser, adds tangent-continuous connectors, assigns time by curvature, marks and holds), `ink.js` (the line renderer: pressure, bleed, pooling, tremble, dry brush, accent stretch, blot, minimum screen width), `paper.js` (paper, fibres, tooth, vignette), `cam.js` (composition keys + nib follow + soft clamp), `hands.js` (pen and hand shadows), `subs.js` (written-on subtitles and titles). The drawing itself lives in one file of SVG path strings and a chapter table (`face.js`); replace it with your own path. Debug views (`?all=1`, `?cams=`) render the whole path or many camera views in one session: see [DEMO.md](DEMO.md) "Build notes".-## 7. Subtitles & titles+## 11. Variation space-- Subtitles: Caveat 500, 46 px, ink at 84 %, no box, centred with the baseline 100 px from the bottom; they are **written on** left to right (0.2 s + 17 ms per character) behind a soft paper-coloured halo so passing ink lines never cross the letters; fade out over 0.45 s. Stay ≥ voice + 0.6 s and ≥ 1.8 s.-- Title: Sacramento (a monoline connected script — itself a one-line drawing) 76 px, written on over 1.6 s in empty paper away from the current vignette, with a small Caveat sub-line. Keep it short enough to disappear before the camera moves into it.-- End card: Sacramento title on two lines, "ONE-LINE DRAWING" in Caveat 600 with wide tracking, the credit line below, written in the empty paper beside the final picture while the new line is still being drawn.+You decide what the line draws, whether it reveals one final picture, where it stops, the accent (or none), the opening and the ending. All far from our demo:-## 8. Pitfalls we hit+- Structures: **a line that is a graph** (a data series drawn as a horizon; each peak and trough becomes a scene); **two lines** that start in opposite corners and are drawn in alternation until they meet; **a loop** (the line draws a scene and then retraces its way back to the start, which now means something else).+- Openings: **mid-line at speed**, the pen already running across the paper; **a finished drawing** whose line then unravels into the story; **a word written in script** whose last letter becomes the first scene.+- Endings: **the line runs off the edge** of the paper and keeps going; **the ink runs out** and the last stroke fades into dry scratches; **the pen stops in mid-air** over the paper before the last stroke.-- **Stray connectors ruin the reveal.** Every early version had lines that read as a beard, jowls, a bib or a mask. Fix the topology (which chapter enters and leaves where), not the drawing.-- **A kite drawn straight up from the head made a pointed onion dome.** Let the string be the single hair and retrace (reel in) back to the crown so the dome stays a clean arc.-- **Hands jutting sideways from the temples read as bolts.** Curl the baby fist into the vertical C of an ear, fingertip hidden inside, knuckles as four short round bumps (long loops read as springs).-- **Two profiles closed by an arc over their heads read as a goblet** (Rubin's vase). Let their crowns become the M of the upper lip instead, and join their necks into the smile at one point.-- **Profiles too close braid together** once line width is applied; keep ≥ 5 units between lips, touch only at the nose tips.-- **Eyes**: almond shapes with bags read as toothy mouths; a closed lid (‿) with three short lashes reads best.-- **A round blot reads as a mole.** Make it a teardrop that sags as it spreads.-- **Thin lines at the reveal.** Clamp the width zoom (see §3).-- **Hand shadows as separate translucent shapes** double-darken where fingers overlap — composite each hand as one layer.-- **Titles collide with the vignette as the camera moves.** Check the title against every frame of its window, not just the first.-- **Whisper mishears**: "Sometimes it stops" was heard as "But sometimes it stops" and "Your turn." as "Your turns" — rephrase ("Sometimes the line stops.", "Your turn now.") rather than fight it.-- **zsh**: `=====` as an echo separator is expanded; heavy machine load makes `still.mjs` slow — the page supports `?cams=` / `?camt=` to render many views in one browser session.--## 9. Production recipe (this repo)+----```-styles/one-line/demo/- face.js THE drawing: every chapter as SVG path strings + transforms, and the chapter table (time windows, marks, holds)- geom.js samples SVG paths by arc length (browser SVGPathElement), adds tangent-continuous connectors, assigns time (curvature-weighted, marks, holds)- ink.js line renderer (pressure, bleed, pooling, tremble, dry brush, red stretch, teardrop blot, min screen width)- paper.js procedural paper, fibres, tooth, vignette cam.js composition keys + nib follow + soft clamp- shots.js camera keyframes hands.js pen shadow and hand shadows- story.js single source of truth for voice/subtitle/title/handoff times- subs.js written-on subtitles, title, end card main.js render(t), debug modes, events for the mix- lines.json voice script music/score.py solo cello score mix.py pen-scratch foley + voice + music build.sh-```--1. Design the final picture in `face.js` and iterate with `node core/render/still.mjs styles/one-line/demo 0 --q 'all=1&nopen=1&nosub=1&cams=0,-170,1.0'` (add more `;x,y,z` views to check vignettes in the same run).-2. Voice: `core/tts/tts.py lines.json voices` → `asr_check.py`; read `voices/words.json` and place lines in `story.js`.-3. Set chapter windows and marks in `face.js`; `node demo/tools/probe.mjs 0.5` prints part boundaries and the nib track to write camera keys.-4. `node core/render/events.mjs styles/one-line/demo` → `music/score.py` → `mix.py`.-5. `node core/render/video.mjs styles/one-line/demo --fps 24 --workers 3` (1140 frames ≈ 30–45 s) → `sh core/render/mux.sh out/video24.mp4 mix.wav one-line.mp4 24 0`.-6. Or simply `sh styles/one-line/demo/build.sh`.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/one-line/TREATMENT.md b/styles/one-line/TREATMENT.mddeleted file mode 100644index b6539b4..0000000--- a/styles/one-line/TREATMENT.md+++ /dev/null@@ -1,154 +0,0 @@-# One-line Drawing · 导演方案(Treatment)--**片名** *The Line That Never Lifted*-**时长** 约 46 秒(风格说明建议 35 秒;理由见第九节:八个人生段落各需 3.6–5.4 秒才看得清,揭示后还要留出"认出这张脸"的停顿)-**画幅** 1920×1080 | **帧率** 24fps 输出,线条与镜头逐帧平滑(一笔画的魅力就是"正在画"的连续感,不做步进)-**一句话** 一根笔尖从不离纸的线,画完一个人的一生:出生、风筝、自行车、初恋、房子、失去、自己的孩子、变老。最后镜头拉远——他走过的一生正好是他自己晚年的一张脸。一只小手接过笔,新线从旧线的末端歪歪扭扭地往前画。-**题眼** 一生中所有的事情最后都长在了脸上。**两只耳朵是两次出生**(左耳是他攥着父亲的手指,右耳是他的孩子攥着他的手指;那根大人的手指同时是眼镜腿),**眼镜是少年那辆自行车**,**嘴是初恋**(两张侧脸鼻尖相碰,共用一条线——全片唯一一段红线,所以老人脸上唯一的颜色是他的笑),鼻子是那座房子,**右眼下那滴泪是失去时笔尖停下洇开的墨点**,**最后一笔是他闭上左眼**。-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么 | 刻意不学 |-|---|---|---|-| Osvaldo Cavandoli《La Linea》(1971) | 线既是世界也是角色;**线的变形就是转场**(风筝尾巴弯成车把,戒指成了房子的圆窗,眼角的鱼尾纹变成他伸给孩子的手指);空白背景上只有一条线的纯粹 | 不用它的小人造型、不做叽里咕噜配音、不做"画外之手"的喜剧互动,不用它的色块背景 |-| Picasso 1949 光绘(Gjon Mili 摄) | 一笔成形的速度与自信:**快处细、慢处粗**,转折处笔会停半拍再走;线条是动作的轨迹,观众看到的是"画的过程" | 不用光(我们是纸上墨线),不复刻任何一幅光绘(半人马、公牛等) |-| Norman McLaren《Begone Dull Care》《Boogie-Doodle》 | **画面跟着音乐画出来**:笔的速度、转折、停顿都卡在大提琴的弓法上——线快弓快,线停音延长,每个拐角落在一个换音上 | 不做抽象的直接在胶片上作画,不做爵士,不用它的色彩爆炸 |-| 当代单线插画(continuous line art)与"一笔肖像" | 一条线同时承担轮廓与细节;连接笔画(connector)是合法的,观众会自动忽略;大特征(眼镜、耳朵、笑纹)一旦对了,脸就立起来 | 不复刻任何具体插画;不做"微缩画(micrography)"那种用小字排出脸的做法 |-------## 二、原生招式(只有一笔画能做到)--| 一笔画的天生能力 | 片中怎么用 | 位置 |-|---|---|---|-| **笔永不抬起** | 全片是**一条**连续路径(代码里就是一个点数组,从第一帧的落笔到最后一帧),没有任何剪辑点。镜头像跟拍一样一直跟着笔尖,带柔和的延迟和预判 | 全片 |-| **线就是时间** | 线的性格随年龄变:童年细、轻、快(墨色偏淡);壮年饱满有力;老年微颤、断墨、飞白。**初恋那一段线变成红色**(只在嘴上),到房子时变回墨色——全片唯一一次颜色 | 全片 |-| **停笔 = 失去** | 线画出一只闭着的眼睛,在外眼角往下轻轻一勾,**停住** 1.7 秒一动不动,墨点慢慢洇开、往下坠成泪滴形,配乐同时静下来;然后线继续 | 0:23.9–0:25.6 |-| **尺度揭示(反向设计)** | 最后镜头连续拉远,一生的所有段落拼成一张老人的脸:两次出生是两只耳朵(大人的手指是眼镜腿),自行车是眼镜(车座是左眉、车把是右眉、车架是鼻梁两侧),风筝是头顶翘起的一缕,初恋是(红色的)嘴,房子是鼻子(两扇圆窗是鼻孔),停笔的墨点是眼角的一滴泪。**最后一笔是他闭上左眼** | 0:33–0:38.6,情绪最高点 |-| **交接** | 一只小手的影子接过笔,新线从旧线的末端继续——细、歪、快、更淡(又回到童年的线)。高音钟声像一个新声部加入 | 0:39.6–0:42.6 |--**反向设计是本片的技术核心**:先把最终的"脸"设计成一张成立的一笔肖像,再把它切成人生段落,每个段落在局部放大时读作一个生活场景、在全脸里读作一个五官。关卡 1 的第三张风格帧就是这张脸的完整一笔画(整条路径一次画完),用来自检"拉远后能认出这张脸"。--**路径拓扑(每块区域只画一次,连接线都落在自然的脸部线条上)**:左耳(出生,从左镜片外上方落笔)→ 头后侧、头顶(风筝线)→ 风筝 → 尾巴落回头右侧、弯进右眉外端 → 车把(右眉)→ 车架右侧 → 右镜片(前轮)→ 车架左侧 → 车座(左眉)→ 左镜片(后轮)→ 中轴 → 沿左镜框下到左法令纹 → 嘴(红:笑 + 两张侧脸)→ 右法令纹 → 房子(鼻子)→ 沿右镜框进到右眼 → 闭眼、停笔成泪(失去)→ 鱼尾纹出到镜框 → 右耳(孩子,出生的完全镜像)→ 右耳后脸边 → 下颌 → 下巴 → 左脸边 → 左眼(最后一笔)。-------## 三、主体--**唯一主体是这条线**(也是这个人)。人从头到尾不出现具象形象,直到最后拉远——他是那张脸。-画面里另有一个"真实世界"元素:**笔的影子**。我们不画笔,也不画画画的人,只在笔尖处有一个很小的触纸点和一道柔和的笔杆投影(左上方来光,影子落向右下)。结尾交接时出现两只手的投影:老人的大手(微颤)和孩子的小手。投影不是墨线,不违反"无填色、无阴影"——画里没有阴影,只有纸上方真实的笔。-------## 四、分镜节拍表(按秒)--| # | 时间 | 画面(线画出什么) | 在最终脸上是什么 | 机位意图 | 声音 / 字幕 |-|---|---|---|---|---|---|-| 0 空白 | 0.0–1.0 | 满屏暖白纸,纸纹细腻;笔的影子从右下滑入 | — | 固定微距,纸就是世界,先给"无" | 室内底噪;1.0 笔尖落纸一声轻"嗒" |-| 1 出生 | 1.0–4.9 | 一根大人的食指(带指甲)从右边伸进来;婴儿的拇指、拳头、手腕的肉褶、小胳膊;四根小手指从下往上一根根绕过大人的手指,4.3 攥紧 | **左耳**(大人的手指 = 眼镜左腿) | 大特写(约 4.3×),小手完成时构图居中 | 大提琴从无声渐入低音 D3;"握"的三音动机 D–F#–A,4.3 攥紧落在 D4 上;L1 "Everyone begins by holding on."("on"落在攥紧) |-| 2 风筝 | 4.9–9.6 | 线离开小手往上跑,成了风筝线,沿头侧一路升到头顶,再斜飞出去;四笔画出菱形风筝,尾巴带两个蝴蝶结垂下来,落回头右侧 | 头的轮廓;风筝 = 头顶翘起的一缕 | 中景(约 2.4×),镜头跟着线爬升,风筝时稍停 | 拨奏大提琴(cellos_pizz)104 BPM,风筝四角、两个结各一拨;片名卡 5.2–8.4 写在空白纸上 |-| 3 自行车 | 9.6–13.9 | 尾巴弯成车把,车头管、中轴、前轮(整圈)、座管、车座、后轮(整圈)一气呵成 | **眼镜**(两轮 = 镜片,车座 = 左眉,车把 = 右眉,车架 = 鼻梁两侧) | 中景横移(约 2.2×),从右往左"骑"过去 | 弓奏回来,88 BPM,每个轮子一句上行琶音;L2 "Then someone teaches you to let go." |-| 4 初恋 | 13.9–19.2 | 线沿左镜框滑下左法令纹,到嘴角**变红**;一段笑的弧线,然后一条线画出两个相对的侧脸:额头、鼻尖相碰、嘴唇,头顶一道弧把两人连起来——**共用同一条线**;再接笑的右半 | **嘴**(红色的笑,中间是两张侧脸) | 近景(约 4.7×),两张脸居中,镜头最稳的一段 | 大提琴最高、最歌唱的一句,72 BPM;鼻尖相碰 = 全曲最高音 A4 长音;L3 "For a while, one line was enough for two." |-| 5 房子 | 19.2–22.6 | 线变回墨色,沿右法令纹上去;戒指(一个小圆)、门、第二扇圆窗、墙、尖屋顶、烟囱 | **鼻子**(戒指和圆窗是两个鼻孔) | 近景(约 4.5×) | 中音区平稳的双音,温暖 |-| 6 失去 | 22.6–25.8 | 线沿镜框进到右眼:一条闭着的眼睑,三根睫毛;在外眼角往下一勾,23.9 **停住**。1.7 秒一动不动,墨点洇开、往下坠成泪滴 | **右眼 + 眼角的泪** | 大特写推近(约 4.6×):观众只看得见眼睛、笔尖和墨点 | 大提琴一个长音 A3 渐弱到无,**真静音 1.2 秒**(只有极轻的纸声);L4 "Sometimes it stops. And then it goes on.","goes on"时线重新走 |-| 7 孩子 | 25.8–30.0 | 线出眼角到镜框,沿镜框到外上方,成了一根大人的手指;一只婴儿的小手攥上来——**和开场同一个画面,镜像**:这次他是那个大人 | **右耳**(与左耳对称) | 大特写(约 4.3×),与第 1 镜同样的构图,镜像 | "握"的动机原样回来(高八度),攥紧落在 D4——失去之后,生命继续 |-| 8 老年 + 揭示 | 30.0–38.2 | 颤抖的线从右耳后沿脸边下来:下颌、下巴、左脸边,断墨、飞白越来越多;最后弯进左镜片,画出第二只闭着的眼睛——最后一笔。33.0 起镜头连续拉远(4.5× → 1×),脸在最后几笔里"合上" | 脸的轮廓 + 左眼,完成整张脸 | **本片招牌镜头**:一镜到底的拉远,镜头结束时整条线一次看全 | 低音区慢板 56 BPM,宽而慢的揉弦(和线的颤抖同频);38.2 最后一笔落在主音 D 的长音 |-| 9 凝视 | 38.2–39.6 | 整张脸静止,纯观看 | — | 固定全景 | 长音延续 |-| 10 交接 | 39.6–42.6 | 老人大手的影子里伸进一只小手的影子,握住笔;大手的影子退出画面。40.9 新线从旧线末端出发——细、淡、歪,往空白纸跑 | 线从脸里"走出去" | 全景,镜头轻轻让出空白(未来在那边) | L5 "Your turn."(老人的声音);40.9 新线起笔时一声 hand chimes 高音 D6;孩子的笔声更轻更碎 |-| 11 片尾卡 | 42.6–46.0 | 新线还在慢慢画;空白处浮现片名、ONE-LINE DRAWING、LemoLab × Claude Opus 5.5 | — | 固定 | 钟声余韵,大提琴最后一个泛音;最后只剩笔声 |--**首尾呼应**:第一笔是被攥住的手指,第七段是去被攥住的手指(他成了那个大人);第一笔从左镜片外上方落下,最后一笔在同一只镜片里闭上眼睛;结尾的新线又是童年那种细而歪的线。-------## 五、cue map(音乐先行)--**配器**:只有一把"独奏"大提琴(`cellos` 低力度 + 单声部 + 窄声像模拟独奏的连奏长音),童年段 `cellos_pizz`,结尾一声 `hand_chimes`(D6)。**没有钢琴,没有弦乐铺底**。调性 D 大调(空弦 D、A 共鸣最好),失去段转 B 小调色彩,结尾回 D。--| cue | 时间 | 速度 | 配器 / 写法 | 情绪 | 卡点 |-|---|---|---|---|---|---|-| A 握 | 1.0–4.9 | 自由 ~66 | 弓奏,D3 从 niente 渐入;动机 D–F#–A,攥紧上行到 D4 | 初生、温柔 | 1.0 落笔(音乐在第一笔起);4.3 攥紧 = D4 |-| B 风筝 | 4.9–9.6 | 104 | 拨奏跳跃的上行音型,每笔一拨 | 轻快、好奇 | 风筝四个角 4 拨;两个蝴蝶结 2 拨 |-| C 骑车 | 9.6–13.9 | 88 | 弓奏回来,两轮各一句上行琶音(D–A–D–F#),换弓在圆周的最低点 | 自由、加速 | 前轮合圈、后轮合圈各落一个换弓 |-| D 初恋 | 13.9–19.2 | 72 | 最高、最长的一句旋律(A 大调色彩的倚音),连奏,揉弦加深 | 心动、歌唱 | 线变红 15.0 起渐强;鼻尖相碰 = 全曲最高音 A4 |-| E 家 | 19.2–22.6 | 72 | 中音区双音(两个音符叠奏),平稳四分音符 | 安定、温暖 | 屋顶尖、烟囱各落一拍 |-| F 失去 | 22.6–25.8 | — | A3 长音渐弱到无 → **绝对静音** 24.2–25.4 | 空 | 23.9 停笔;25.6 重新落弓(很轻的 F#3) |-| G 孩子 | 25.8–30.0 | 自由 ~66 | "握"的动机原样重现,高八度 | 轮回、柔软 | 攥紧 = D4 |-| H 老年 | 30.0–38.2 | 56,渐慢 | 低音区慢板,宽揉弦,句尾下行回主音;33.0 拉远开始时音区缓缓升高、力度渐强 | 回望、释然 | 38.2 最后一笔 = 主音 D2+D3 长音 |-| I 交接 | 38.2–46.0 | — | 长音余韵 + 40.9 hand chimes D6;44.5 大提琴最后一个轻泛音 | 新生 | 40.9 新线起笔 = 钟声 |--**声画同步做法**:先按 cue 表定每段的起止时间;段内的笔速按路径曲率自动分配(拐角减速),把每个"拐角到达时刻"导出为音符起点,写旋律时让换音/换弓落在这些时刻上(线快弓快、线停音延长)。笔速同时驱动沙沙声的强弱和亮度。-------## 六、声音设计--- **笔尖沙沙声(本片最重要的音效)**:连续合成——带通噪声(1.8–7 kHz)× 纸纤维颗粒(随机细小"咔"声,密度随笔速);响度 ∝ 笔速^0.7,亮度随笔速升高;慢处更闷更"湿"(墨多);老年段加入断续(断墨时声音也断);孩子的笔更轻、更快、更碎。声像跟随笔尖在画面里的横向位置。-- **落笔**:轻木质"嗒" + 纸的闷响;**停笔洇墨**:几乎听不到的湿润声,主要是静音。-- **底噪**:极轻的室内空气声(−52 dBFS),静音段一起切掉。-- **人声**:温和、回望的男声(老人自己在讲)。先试 `am_liam` 与 `am_eric`,按音高、共鸣和语气选更温暖的一个,速度约 0.88。5 句,每句都短,给线留空间。音乐在人声下闪避约 6 dB(大提琴本来就很轻)。-- 混音:人声压缩;大提琴一把琴一个声像(稍偏左,像坐在画家身边);沙沙声在中间随笔移动;总响度 −14 LUFS;**grain = 0**(纸纹自己做)。--**旁白(暂定,whisper 校对后可能微调)**--| # | 句子 | 时间 |-|---|---|---|-| L1 | Everyone begins by holding on. | 2.4–4.9 |-| L2 | Then someone teaches you to let go. | 10.6–13.4 |-| L3 | For a while, one line was enough for two. | 16.6–19.4 |-| L4 | Sometimes it stops. And then it goes on. | 24.2–27.4 |-| L5 | Your turn. | 39.8–41.4 |-------## 七、视觉规格--- **纸**:暖白 `#F4EFE4`,程序化纸纹(大尺度云斑 ±3%、细纤维、极细颗粒),纸纹锚定在纸上随镜头移动缩放;拉远时细颗粒淡出防闪烁;轻暗角 0.12。-- **墨**:暖黑 `#1D1A17`;童年墨色 0.78 透明度、壮年 0.96、老年 0.9 + 飞白。**红线** `#B3332B`(只在初恋到戒指这一段)。无填色、无阴影、无第三种颜色。-- **笔触**:路径按弧长重采样,线宽 = 年龄基准宽 × 速度系数(快细慢粗,0.65–1.45);边缘有一点毛(高频噪声 ±6% 线宽);慢处和停笔处墨会积(更黑、更粗、圆形墨点);老年段垂直于路径的颤抖(振幅 0.9 单位,~7 Hz 空间频率)+ 断墨飞白(沿弧长的长尺度噪声决定断点)。线宽以纸面单位定义(拉近时线变粗,像微距镜头下的真墨线)。-- **镜头**:跟拍笔尖,带 0.3 秒延迟与 0.35 秒预判的平滑;每段有构图关键帧(中心、缩放、微转),跟拍与构图按权重混合,保证场景完成时构图完整、笔尖始终在画内;转动 ≤ ±10°。-- **笔**:触纸点一个 3 px 暗点 + 柔和的笔杆投影(高斯模糊楔形,朝右下,透明度 0.16)。-------## 八、字幕与片名设计--- **字幕**:手写感 OFL 字体 **Caveat**(500,46 px),墨色 78% 透明度,无底框,底部居中(基线距底 104 px);出现时**从左到右"写"出来**(0.45 秒遮罩)、消失时淡出;背后一圈极淡的纸色光晕,避免与经过的墨线打架。小而安静。每句 ≥ 语音 + 0.6 秒且 ≥ 1.8 秒。-- **片名**:**Sacramento**(单线连笔的手写体,本身就是"一笔画"的字)88 px,从左到右写出,下方 Caveat 小字 "a one-line drawing"。-- **片尾卡**:片名 + "ONE-LINE DRAWING"(Caveat 600,字距加宽)+ "LemoLab × Claude Opus 5.5",写在右侧空白纸上,孩子的新线还在旁边画。-------## 九、与风格说明的差异及理由--1. **时长 46 秒而非 35 秒**:八个人生段落(出生、风筝、自行车、初恋+戒指、房子、孩子、失去、老年)每段 3.6–5.4 秒才能让观众读出画的是什么;揭示后需要 1 秒纯凝视 + 交接 3 秒 + 片尾 3.4 秒。压到 35 秒会让每段只剩 2.5 秒,违背"节奏以观众为准"。-2. **最终图像的五官映射**:风格说明建议"拉远组成一张脸",我把每个段落都设计成一个五官(而不只是散落在轮廓上的小画),让揭示有"原来如此"的层次:观众会依次认出眼镜、耳朵、红色的笑、泪。-3. **红线的位置**:说明允许初恋段短暂变红。红线最终留在脸上成为**笑容**——老人脸上唯一的颜色就是他爱过的人。-4. **笔的呈现**:只用投影表现笔和手,不画笔、不画手,保持画面里只有一条线。-5. **"失去"放在"房子"之后、"孩子"之前**(风格说明的顺序是孩子在前):一是拓扑——右眼在镜片里面,右耳在外面,只有"先画眼、再出到耳朵"才能让下颌轮廓从右耳后一笔画完,不产生多余的脸颊线;二是情绪——失去之后紧接着一个新生命攥住他的手指,"And then it goes on" 有了具体的画面。-6. **五官的具体画法经过十几轮迭代**(见 PRODUCTION_LOG):嘴试过"两个头组成的心""转 90° 的唇",最后定为"笑的弧线中间两张鼻尖相碰的侧脸"(像鲁宾花瓶,局部读得出两个人,全脸读得出嘴);眼睛从"带眼袋的杏仁眼"改成"闭着的眼睑 + 三根睫毛",读得最清楚。-------## 十、关卡 1 交付--三张风格帧(用片中引擎按真实时间点直接渲染,带笔影和字幕):-- `demo/stills/frame_v1_hand.jpg`:出生——婴儿的小手攥住大人的手指(t=4.5,大特写、笔影、L1 字幕)-- `demo/stills/frame_v1_love.jpg`:初恋——两个侧脸共用同一条红线(t=18.7,近景、L3 字幕)-- `demo/stills/frame_v1_face.jpg`:拉远后整条线组成的一张脸(t=39.5,整条路径画完,笔停在最后一笔处)--------## 十一、关卡 1 之后的修改(按协调者意见,制作阶段已落实)--1. **耳朵**:婴儿的小拳头竖着弯成耳廓的 C 形贴在头侧,大人的手指(眼镜腿)从镜片外上方伸进拳头,指尖藏在拳里;四个短胖圆润的指节包在手指上,拇指从下面扣上来,手腕一道褶,胖胖的小胳膊就是耳垂。-2. **秃顶**:头顶是一条干净的圆弧,风筝线从头顶翘出来成为唯一一根头发;风筝画完、尾巴飘完,笔顺着尾巴和头发原路"收线"回到头顶(重描),再沿头顶另一半下来——头型不再被风筝线破坏。-3. **下半脸**:更长的椭圆,下颌收窄,脸颊微凹,单线轮廓(从右耳垂一笔画到左脸),只保留一道左法令纹和两道鱼尾纹。-4. **嘴**:去掉两个头顶之间的弧;两张侧脸的后脑成为上唇的 M(丘比特弓),下面一道红色弧线是笑;两人的脖子在笑弧中点汇合,一笔回路在鼻尖相碰处交叉;侧脸放大到 1.05。-5. **线宽**:线宽用的缩放下限 1.3,拉远时屏幕线宽保持约 3–4 px,笔压变化保留。-6. **婴儿小手**:见第 1 条;小手更小更胖,四根短胖手指,拇指在另一侧。-7. **旁白微调**(whisper 校对):L4 改为 "Sometimes the line stops. / And then it goes on."(分两段,"goes" 落在笔重新出发的一刻);L5 改为 "Your turn now."("Your turn." 被听成 "Your turns")。-8. **最终时长 47.5 秒**:停笔延长到 3.05 秒(L4 两句都在停笔里说完,"goes on" 时笔才走);交接改为"拉远看全脸 1 秒 → 推近到闭上的左眼交接 → 跟着孩子的新线拉回",新线在左边空白纸上画一只歪歪的小风筝,片尾卡写在右边。diff --git a/styles/one-line/style.json b/styles/one-line/style.jsonnew file mode 100644index 0000000..db25ff7--- /dev/null+++ b/styles/one-line/style.json@@ -0,0 +1,18 @@+{+ "slug": "one-line",+ "num": "05",+ "en": "One-line Drawing",+ "cn": "一笔画",+ "category_en": "Hand-drawn & Painting",+ "category_cn": "手绘与绘画",+ "film": "The Line That Never Lifted",+ "line": "One unbroken line draws a whole life, then the pen passes to a child.",+ "line_cn": "一根不离纸的线画完一个人的一生,再把笔交给孩子。",+ "uses": [+ "Brand stories",+ "Life milestones",+ "Minimal ads"+ ],+ "frame_sec": 39.9,+ "dur": 47.5+}diff --git a/styles/paper-lantern/DEMO.md b/styles/paper-lantern/DEMO.mdnew file mode 100644index 0000000..faa6547--- /dev/null+++ b/styles/paper-lantern/DEMO.md@@ -0,0 +1,216 @@+# Paper-cut Lightbox — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *一个月饼的相思 · A Mooncake's Longing* (121.8 s) · `paper-lantern.mp4` · source in [`demo/`](demo/) · engine: three.js 0.170 (WebGL, SSAA 2×, VSM soft shadows, custom DoF + bloom compositor), Canvas2D-drawn paper layers, headless Chrome frame capture.+++**The demo narration is Mandarin Chinese** (edge-tts `zh-CN-XiaoxiaoNeural`) with Chinese subtitles. The library default is English with Kokoro (`core/tts/`); "Score structure" and "Engine reference" show how to switch. The demo runs 2 minutes; 45–120 s all work in this style.++## Story & structure++The film opens on the real lightbox on a table and pushes into it. The box cavity is **0.56 × 0.33 m, 0.16 m deep**. The film is bookended by the **real world**: a walnut table in a dark room, the lit lightbox in a wooden frame, a tea set and a plate of real mooncakes lit by the box's spill light. The first shot pushes from the room into the box; the last pulls back out.++How the demo used the medium's powers:++| Native power | Story use |+|---|---|+| **Light turns on** | The opening is literally switching the lamp on: moon, then far layers, then windows light up one by one. "Lights coming on" = a story beginning, a home, someone waiting. |+| **Depth = distance** | Stacked layers of mountains, rivers, cities make *distance* visible. Journeys, longing, "far away" stories are native. |+| **Silhouettes** | People are black cut-outs with a few jointed parts (an arm, a sleeve). Faceless figures read as everyone — good for folk tales, family, festivals. |+| **Windows** | A lit window with a silhouette inside is the strongest image this style has. Two lit windows sharing one moon is the demo's thesis shot. |+| **Paper text** | Titles, letters and poems are paper too: vertical brush calligraphy on a cut strip, revealed column by column, with a red seal. |+| **The box itself** | Pulling out to the real table at the end says "this was a keepsake / a story told at home". |++**Story shape (proven in the demo):** room → lamp on → push into the box, title → origin (grandma's kitchen, the mooncake is pressed) → a bit of culture (a Ming-dynasty scroll quote) → the absence (an empty seat) → the journey (train across layered mountains, a myth told on the way, a box passing the other way) → arrival in the far city → the letter → **the twist: the other box was going the other way** (mutual longing — two windows, one moon) → a classical poem → pull out of the box, "中秋快乐".++Adapting any topic: find the **two places** and the **one light** they share (a moon, a lighthouse, a window). Build each place as a layer stack; build one travel sequence between them; end with both lit at once.++## Shots++| Beat | Camera |+|---|---|+| Opening | Room wide (z 1.45) on the dark box → lamp on → 7 s ease-in-out push through the frame to z ≈ 0.56, then keep creeping in. Focus pulls from the front layer to the village. |+| In-box shots | Nearly frontal, slow dolly in/out (`aim(cam, [px,py,pz, tx,ty,tz], t)`), hand-held micro-drift `hand ≈ .0006 m`. Aperture 12–26 (in `post()`), focus on the story layer so foreground reeds and back mountains soften. |+| Top-down inserts | The mooncake press and the open gift box are shot as flat top-down layer stacks (same engine, different set). |+| Train | Lateral travel: layers scroll at speeds proportional to depth (parallax). |+| Ending | Push inside the box, then a pull back out to the table (z 0.5 → 1.08), tea set enters frame, title 「中秋快乐」 fades in inside the box, credits under it, 1.2 s fade to black. |++Motion as built in the demo:++- **Everything moves like paper on a stick**: layers slide (x/y), rotate about a pivot (`ax/ay` anchor = joint), scale in from 0 along one axis ("written out"), or light up. No squash and stretch, no morphing.+- **Jointed figures**: a body sheet + a separate arm sheet anchored at the shoulder (`GRAN_SHOULDER`, `GIRL_SHOULDER`, `SUSHI_SHOULDER` in `people.js`); animate `rotation.z` only.+- **Light cues are the big motion**: lamp-on sequence in S01 — moon (0.5–3.2 s) → sky → each layer's translucency staggered by 0.42 s → key light → windows → lanterns flicker (`1 + .06·sin(7.3t)·sin(3.1t)`).+- **Text reveal**: paper strips grow from their anchor edge (`reveal()` in `s13_note.js` scales the mesh *and* the texture repeat so glyphs are not squashed), timed to the spoken word.+- **Hard action beats land on whisper word times**: the wooden mould slams on 「啪」(`E.word('L04', 13)`), the 「圆」 character flashes on its word, the light arcs grow from 「互」.+- **Transitions**: 0.5–1.2 s dissolves between shots (`in: { type: 'dissolve', dur }`), an `iris` mode exists (circular wipe from `center`). The signature transition is a **near-plane auspicious-cloud curtain** (`cloudCurtain()` in `s17_sushi.js`) closing over the last 1.2 s of a shot and opening on the next — the two halves must meet exactly at their front edges.++## Score structure++**Voice (demo, Mandarin):** `edge-tts`, voice `zh-CN-XiaoxiaoNeural`, rate `+10%`, pitch `-2Hz` (`demo/tts.py`); per-line `rate` overrides in `script.json` (L01 `+5%`, quoted letters `+2%`, the poem L23 **`-12%`**, closing line `-6%`). Output is trimmed at 2 % of peak (20 ms pre-roll, 120 ms tail) → 48 kHz mono `vo/<id>.wav` + `vo/dur.json`.+- **Polyphonic characters**: feed TTS a homophone via a `say` field and keep the real text for subtitles: 「相思的"相"」→ `say: 原来,相思的香,是互相的香。` (TTS otherwise reads xiàng).+- **Proof**: `demo/asr.py` (faster-whisper **medium**, zh) prints OK/DIFF per line; DIFFs that are homophones or numerals (八月十五 → 8月15, 她 → 他) are fine — listen to the rest.+- **Word timings**: `demo/words.py <ids…>` → `vo/words.json` (whisper word timestamps). Shots read them via `E.word(id, k)`; **k is a whisper token index, not a character index** (whisper groups 「我们」 as one token) — print the list and count.++**Voice (English, library default):** write `lines.json` with `{id, text, voice, speed}`, run `core/tts/tts.py` (Kokoro, e.g. `bf_emma` / `af_heart`, speed ≈ .9) into `demo/vo/`, then `core/tts/asr_check.py` which writes `vo/dur.json` and a compatible `vo/words.json` (English word indices). Put the same ids/text into `script.json`. See "Switching to English" under Engine reference for the subtitle-split change.++**Music:** Kevin MacLeod — **"Ripples"** (guzheng, 0 → ~37 s) handing over to **"Nu Flute"** (dizi + strings) with a 4.5 s crossfade; both CC BY 4.0 (incompetech.com). The handover is solved backwards so Nu Flute's own 70 s swell lands on the poem: `T_FLU = C.L23.at − 70 + .3`. Nu Flute −3.3 dB relative. 2 s fade in, 3 s fade out. Why these: pentatonic, no drums (percussive energy < 0.02) — see `demo/music/MUSIC.md` for the librosa analysis and the rejected candidates.++**Mix (`demo/mix.py`):** voice → downsampled-envelope compressor (−22 dB, 3:1) → HP 70 Hz → RMS −18 dB; music RMS −27.5 dB with **5.5 dB ducking** under speech (0.25 s smoothed envelope); procedural foley at −24…−34 dB: switch click + rising shimmer (lamp on), wooden-mould thud + puff, chimes on reveals, paper rustles, lid thud, train bed (rumble + 0.62 s "clack-clack"), whoosh for the passing train and cloud curtain, city hum, a bite crunch. Everything is placed from `out/timeline.json` (line starts) and `vo/words.json`. Peak-limited to −1 dBFS; the final mux normalises to **−14 LUFS** (two-pass loudnorm in `core/render/mux.sh`).++## Palette & props++**Units and layout.** Everything is in metres, y up. Box cavity `BOX = { w: .56, h: .33, d: .16 }` (`src/room.js`). Layers sit at z from about **−0.14 (sky) to 0 (front)**; in-box camera at z ≈ 0.3–0.56 with fov 26°. Full-bleed layers inside the box are `.558 × .328` — **never larger than the cavity**, or they poke through the wooden frame in the room shots.++**Layer stack for a night exterior (S01):**+| z | Layer | Colour | backlight `trans` |+|---|---|---|---|+| −.135 | sky gradient (unlit, `skyPanel`) + stars | `#0a1330 → #172a58 → #2e4478 → #43598a` | — |+| −.125 | moon disc + additive halo | `#fffaf0 / #fff0cf / #f7dca4` | — |+| −.112 | auspicious clouds (祥云) | `#c3cbe8` | .9 |+| −.098 | far karst mountains, carved contour slits | `#6a86c2` | .7 |+| −.080 | mid mountains | `#3f5a92` | .45 |+| −.062 | village (江南 houses) + emissive windows | `#5a70a6` walls / `#1b284f` roofs, glow `#ffb862` | .25 |+| −.046 | river + moon trail (emissive) | `#22325e`, trail `#e9cf96` | .3 |+| −.030 | osmanthus tree + bridge, emissive blossoms | `#17224a`, flowers `#d9a24a` | .12 |+| −.014 | foreground bank + reeds | `#0e1532` | .05 |+| +.004 | hanging lanterns (emissive) | `#0d1328`, glow `#ff8a48` | .05 |++Rule: **back layers bright + translucent, front layers dark + opaque**. Interiors use the same ladder in warm browns (kitchen wall `#b08058`, props `#6e3b1f`, figure `#2e170d`, lamp glow `#ffc878`); the far city uses violets (`#2a2456`, windows `#e8cc90`).++**Accents:** seal red `#b3302a`, gold title paper `#f1dbac` / `#f3d998`, box red `#9e2a20`, a single blue box `#2a4f7a` for the granddaughter's reply.++**Paper finish** (`finish()` in `src/paper.js`): tiled fibre grain (`GRAIN`, 512², α .9, `source-atop`), top rim band `rgba(255,236,200,.35)` shifted 3 px, bottom shade `rgba(0,0,0,.28)` shifted 3 px. Canvas resolution `PPM = 5200` px/m.++**Backlight shader** (`paperMat()`): `emissive += albedo × lightCol × trans × uLit × fall × (.35 + 1.3·cloud)`, `fall = mix(.22, 1, exp(−d²/R²))` around the per-shot light point `uLight` (usually the moon). `cloud` is a tiled pulp-mottle texture (`CLOUD()`). Emissive windows come from a second Canvas (`glowDraw`, white = light) scaled by `glow` and gated by `uGlowLit` (0→1 to "switch on").++**Fonts** (`demo/fonts/`, OFL): Ma Shan Zheng `FONT.brush` for titles/poems, Zhi Mang Xing `FONT.xing` for running script, Long Cang `FONT.hand` for the child's handwriting, Noto Serif SC `FONT.song` for subtitles and credits.++**Real-world set** (`lightbox()` in `src/room.js`): extruded walnut frame (Poly Haven `american_walnut_veneer`, tint `#8a6a52`), black paper lining inside, walnut table, dark radial wall `#2a2018 → #0a0806`, a `RectAreaLight` spill `#ffc98a` (intensity 6–7) at the box mouth, hemisphere fill `.25`, Poly Haven `tea_set_01` (teapot, cup, saucer, plate) and two procedural 3D mooncakes (cylinder + bump-mapped face from `cakeFace`).++## Titles, subtitles & end card++- Burned-in DOM subtitle (`#sub` in `index.html`): Noto Serif SC 500, 40 px, `#fbf3e4`, letter-spacing .06em, 74 px from the bottom, soft black shadow; fades in 0.15 s before the line, out 0.3 s after. Lines longer than 21 characters split at the comma nearest the middle; trailing punctuation is dropped and inner `,。:` become full-width spaces.+- **Lines that appear as paper in the picture are not subtitled** (`"sub": false` in `script.json`): grandma's letter (L17) and the poem (L23). Don't show the same words twice.+- Title: vertical Ma Shan Zheng on a paper strip inside the box (「一个月饼 / 的相思」) with a red seal 「中秋」, fading in after the second line.+- End card: 「中秋快乐」 paper title inside the box + red seal 「团圆」; the credit block (`#credit`, 19 px, two lines: music / assets / fonts) fades in 0.6 s after the last line.+- **Sign-off (this library's demo only):** our demo's end card carries **"LemoLab × Claude Opus 5.5"** as a **paper-cut strip inside the lightbox**, not as overlay text: `sign` sheet in `src/shots/s18_finale.js` — `w .26, h .02`, centred at `y −.1515` on the dark foreground bank, `z −.024` (in front of the bank layer, near the final focus plane), `text(…, .0115, FONT.song, { fill: '#f3d998', weight: 600 })`, `trans .3`, `shadow/recv: false`. It fades in over `tT + 1.0 → tT + 2.0` (1 s after 「中秋快乐」 starts, ≈116.6–117.6 s) and stays to the end, so it reads as part of the lamp while the credit block sits on the table below. It belongs to the library's own demos: a user's film carries no LemoLab credit, no strip like this and no copy of this end card.+- `paper-lantern.srt` holds all 25 lines (including the two in-picture ones) at their spoken times.++## Pitfalls we hit (demo record)++- **`destination-out` cut-outs need an opaque fillStyle**: set `x.fillStyle = '#000'` (or any opaque colour) before punching holes; a transparent or glow-white fill leaves the hole half-cut. `props.js` `cut(x, fn)` does it for you.+- **VSM shadows leak light bleeding / self-shadow halos**: layers that must not take part (titles, lanterns in front, light arcs, curtains) need **both** `shadow: false` **and** `recv: false`.+- **Additive glows**: a transparent radial-gradient `CanvasTexture` shows a visible square edge. Use the analytic `ShaderMaterial` falloff (`burst()` in `paper.js`) for light spilling out of an opened box.+- **Near-plane cloud curtain**: compute the closing position so the two curtains' **front edges** touch (`±.035` offset in `s16_mutual.js`), otherwise a slit of the old shot shows through.+- **Layers bigger than the cavity** poke through the wooden frame in room shots — keep full-bleed sheets ≤ `.558 × .328`.+- **Grade uniforms were sticky (fixed 2026-09-26)**: v1 of `Pipe.final()` only wrote `lift`/`gain` when a shot's `grade()` returned them, so a shot without them inherited the previous shot's values and the result depended on which frame a render worker started on — the first release (`paper-lantern_v1.mp4`) had visible grade pops at the worker boundaries 60.9 s (S09) and 101.5 s (S16). Now every missing grade key falls back to `GRADE0` (`post.js`: lift `[0, .005, .018]` cool night default, gain `[1.03, 1, .95]`), so renders are identical for any worker count. Night exteriors rely on the defaults; interiors must return their warm `lift` explicitly (S08 was fixed this way).+- Whisper medium mishears Chinese homophones (八月 → 8月, 她 → 他, 婵娟 → 禅绢); judge DIFFs by ear, not by string match.+- Headless Chrome must run with GPU flags (`--use-angle=gl --enable-gpu --ignore-gpu-blocklist`, `render/browser.mjs`); SwiftShader is ~6× slower.++## Build notes++```+styles/paper-lantern/demo/+ index.html page: canvas + #sub + #credit, importmap → /node_modules/three (repo root is the static server root)+ script.json lines: {id, text, rate?, say?, sub?}+ tts.py asr.py words.py edge-tts → vo/*.wav + dur.json; whisper proof; word timings → vo/words.json+ src/main.js timeline (GAP table), shot scheduler (lazy build / dispose), dissolves, subtitles, credits, window.render(t)+ src/shots/index.js shot list, each start anchored to a line: start: L('L06') - .5+ src/shots/sNN_*.js one module per shot: build(E) → { S, update(t), post(t), grade(t) }+ src/paper.js stage.js post.js room.js art.js people.js props.js lib.js engine (see Engine reference)+ render/still.mjs video.mjs cues.mjs stills, parallel video render, export out/timeline.json+ mix.py voice + music + foley → out/mix.wav+ music/ candidate tracks + MUSIC.md (only km_Ripples.mp3 and km_Nu_Flute.mp3 are used)+```++All commands from the repo root (`Lemo-Opuscar/`). Python = `.venv/bin/python`; `edge-tts` must be on `PATH` (user-level `pip install edge-tts`; it is not in `.venv`).++```sh+D=styles/paper-lantern/demo+# 1. voice (Mandarin demo) — delete vo/<id>.mp3 or set "redo": true to regenerate a line+python3 $D/tts.py # → $D/vo/<id>.wav, $D/vo/dur.json+.venv/bin/python $D/asr.py # OK / DIFF per line (≈1.5 min, whisper medium, CPU)+.venv/bin/python $D/words.py L01 L02 … L25 # → $D/vo/words.json (pass ALL ids: it rewrites the file)+# English instead: .venv/bin/python core/tts/tts.py $D/lines_en.json $D/vo && .venv/bin/python core/tts/asr_check.py $D/lines_en.json $D/vo++# 2. timeline + review stills (any number of times, seconds)+node $D/render/cues.mjs # → $D/out/timeline.json (DUR, line cues C, shot plan P)+node $D/render/still.mjs 5 12.5 62.5 116 --out $D/out/review # add --q '?ssaa=1' for fast previews+# core renderer works too: node core/render/still.mjs $D 12.5 --out $D/out/review+# debug: ?sheet (character sheet), ?nolit=1 (backlight off), ?hide=clouds,far (S01 layers)++# 3. mix+.venv/bin/python $D/mix.py # → $D/out/mix.wav (optional arg: other output path)++# 4. render video (≈90 s for 3653 frames with 6 workers on an M-series Mac; ≈3 min with 2)+node $D/render/video.mjs --workers 6 # → $D/out/video.mp4 (segments written next to the output; any worker count gives the same frames)++# 5. mux: two-pass loudnorm −14 LUFS, 30 fps, no grain+sh core/render/mux.sh $D/out/video.mp4 $D/out/mix.wav styles/paper-lantern/paper-lantern.mp4 30 0+```++Review loop: stills of every shot at its key word time → sheet (`ffmpeg … tile=6x5`) → fix → only then the full render. Check the room shots (first 10 s, last 8 s) at full SSAA; they carry the "it's a real object" illusion.++## Engine reference++**Page contract** (`src/main.js`): exposes `window.READY`, `window.DUR`, `window.render(t)` (deterministic per frame), `window.CUES` (line cues), `window.PLAN` (shot table). Query `?ssaa=N` (default 2).++**Timeline**: lines start at 2.6 s; each line lasts its `dur.json` length followed by `GAP[id]` seconds (`GAP` table in `main.js`, e.g. `L02: 4.2` for the title beat, `L25: 5.0` for the ending). Shots are anchored to lines in `src/shots/index.js`; changing a voice line re-times everything automatically.++**Shot context `E`** (passed to `build`): `dur`, `T0`, `C` (all cues), `env` (PMREM room env map), `W` (words), `cue(id)` / `cueEnd(id)` (line start/end in shot-local seconds), `word(id, k)` (shot-local start of whisper token k).++| Module | Key API | Notes |+|---|---|---|+| `paper.js` | `sheet({ U, w, h, draw, glowDraw?, glow, glowCol, trans, z, x, y, ax, ay, shadow, recv, finish, ppm, bumpDraw? })` | One paper layer. `draw(x, k)` paints in metres (origin centre, y up). `glowDraw` paints the emissive map (white = light, black = mask). `trans` = backlight translucency. `ax/ay` = pivot. Returns a Mesh; `m.material.userData.u` has `uTrans`, `uGlowLit`, `uClip` (circle clip `[cx, cy, r, inside?]`). |+| | `skyPanel({ w, h, z, stops, stars, starMinY, gain })` | Unlit gradient back panel. |+| | `moon({ x, y, z, r, gain, halo, haloGain, art? })`, `setMoon(m, k)` | Disc + additive halo; `k` = brightness 0…1+. |+| | `text(x, s, px, py, size, font, o)`, `vtext(…)` | Text in metre space (vertical for `vtext`). |+| | `burst(w, h, col)` → `m.userData.set(k)` | Analytic additive glow. |+| | `paint(w, h, draw, ppm)`, `finish(c, o)`, `tex(c)`, `PPM`, `GRAIN`, `CLOUD()` | Low-level canvas helpers. |+| `stage.js` | `stage({ light, lightR, lightCol, key, keyCol, keyPos, keyTarget, keyAngle, amb, ambCol, shadowR, fov, bg })` → `{ scene, U, cam, key, amb, add(...) }` | Scene + top LED spot (VSM, 2048², radius 10) + ambient + backlight uniforms `U`. |+| | `aim(cam, [px,py,pz, tx,ty,tz], t, { hand, handF, roll, fov })` | Camera with hand-held drift. |+| | `dispose(scene)` | Called by the scheduler when a shot leaves. |+| `post.js` | `Pipe.shot(scene, cam, { focus, aper, maxCoc, bloom: { strength, radius, threshold } }, target)` | MSAA4 half-float → CoC → 96-tap gather DoF → UnrealBloom. `focus` = distance in metres. |+| | `Pipe.final({ mixB, mode, center, expo, fade, vig, sat, contrast, lift, gain })` | Dissolve / iris, grade, vignette, neutral tone map, sRGB. Keys a shot omits fall back to `GRADE0` every frame. |+| `room.js` | `await lightbox(S, E, { spill, spillCol })` → `{ g, frame, spill, table, props }`, `BOX` | Real-world box, table, tea set, mooncakes. Textures load from `/core/assets/polyhaven/`. |+| `art.js` | `karst`, `ridge`, `xiangyun`, `waves`, `waterTop`, `osmanthus`, `pine`, `willow`, `reeds`, `jiangnanHouse(x, o, g)`, `pavilion`, `lantern(x, o, g)`, `mooncake`, `FONT` | Paper-cut motifs; functions with `g` draw their windows into the glow canvas. |+| `people.js` | `grannyStand/Sit`, `girlStand/Sit`, `childStand`, `sushi`, `change` (Chang'e), `rabbit`, `arm(x, s, a, b)`, `spline`, `ribbon`, `*_SHOULDER` | Silhouette figures, scale `s` = height in m. |+| `props.js` | `cut(x, fn)`, `roundWindow`, `steamers`, `stove`, `jar`, `bowl`, `teapot`, `pendant`, `calendar`, `table`, `chair`, `boxFront`, `label`, `cake3q` | Interior props. |+| `lib.js` | `ss`, `seg`, `eio`, `eo`, `ei`, `back`, `spring`, `lerp`, `clamp`, `mulberry`, `vnoise`, `track`, `env` | Deterministic helpers. |++**Minimal shot** (a moonlit hill with one lit window; add it to `SHOTS()` as `{ id: 'S99', start: L('L05') - .3, in: { type: 'dissolve', dur: .8 }, build: s99.build }`):++```js+import { sheet, skyPanel, moon, setMoon } from '../paper.js';+import { karst, jiangnanHouse } from '../art.js';+import { stage, aim } from '../stage.js';+import { seg, ss, eio, lerp } from '../lib.js';++export function build(E) {+ const MN = [.08, .07, -.13];+ const S = stage({ light: MN, lightR: .15, lightCol: '#ffe2ae', key: 1.0, amb: .3, ambCol: '#7d90c8', keyCol: '#d6dcff' });+ const { U } = S;+ S.add(skyPanel({ w: .56, h: .33, z: -.14, stops: [[0, '#0a1330'], [1, '#43598a']], stars: 200 }));+ const mn = S.add(moon({ x: MN[0], y: MN[1], z: MN[2], r: .035 }));+ S.add(sheet({ U, w: .558, h: .328, z: -.1, trans: .7, draw: x => { x.fillStyle = '#6a86c2';+ karst(x, { x0: -.28, x1: .28, base: -.03, peaks: [[-.15, .06, .03], [.1, .05, .025]], carve: .0005 }); } }));+ const house = { cx: -.05, by: -.09, w: .06, h: .03, windows: [[.012, .01, .01, .01]], wall: '#5a70a6', tile: '#1b284f' };+ const town = S.add(sheet({ U, w: .558, h: .328, z: -.06, trans: .25, glow: 2.2, glowCol: '#ffb862',+ draw: x => jiangnanHouse(x, house), glowDraw: g => jiangnanHouse(null, house, g) }));+ S.add(sheet({ U, w: .558, h: .328, z: -.02, trans: .05, draw: x => { x.fillStyle = '#0e1532'; x.fillRect(-.28, -.165, .56, .075); } }));+ const tOn = E.word('L05', 2); // light the window on the 3rd spoken token+ return {+ S,+ update(t) {+ setMoon(mn, ss(seg(t, 0, 1.5)));+ town.material.userData.u.uGlowLit.value = ss(seg(t, tOn, tOn + .6));+ aim(S.cam, [0, 0, lerp(.56, .48, eio(t / E.dur)), 0, 0, -.07], t);+ },+ post() { return { focus: S.cam.position.z + .06, aper: 14, maxCoc: 14, bloom: { strength: .35, radius: .6, threshold: 1.15 } }; },+ grade() { return { expo: 1.05, vig: .42, sat: 1.05, contrast: .1 }; }, // missing lift/gain → GRADE0 (cool night); interiors add lift: [.012, .006, 0]+ };+}+```++**Switching to English**: in `main.js` the subtitle splitter assumes Chinese (`st.length > 21`, split on `[,。:]`, punctuation → full-width space). For English change it to split at the `, ` nearest the middle when longer than ~42 characters and keep punctuation; set `#sub` to a Latin serif (e.g. add an OFL font such as Cormorant to `fonts/`) at ~38 px. `E.word(id, k)` then counts English words. Everything else (timeline, mix, render) is language-agnostic.diff --git a/styles/paper-lantern/STYLE.md b/styles/paper-lantern/STYLE.mdindex b80cdba..8c6ddf8 100644--- a/styles/paper-lantern/STYLE.md+++ b/styles/paper-lantern/STYLE.md@@ -1,224 +1,114 @@# Paper-cut Lightbox — Style Prompt-> A layered paper-cut shadow box (纸雕灯) lit from behind: 6–9 sheets of cut card stacked in a shallow wooden box, a warm LED glowing through the paper, windows and moons burning through holes, soft shadows falling from each layer onto the next. The film opens on the real lightbox on a table and pushes into it.-> Demo: *一个月饼的相思 · A Mooncake's Longing* (121.8 s) · `paper-lantern.mp4` · source in `demo/` · engine: three.js 0.170 (WebGL, SSAA 2×, VSM soft shadows, custom DoF + bloom compositor), Canvas2D-drawn paper layers, headless Chrome frame capture.-> **The demo narration is Mandarin Chinese** (edge-tts `zh-CN-XiaoxiaoNeural`) with Chinese subtitles. The library default is English with Kokoro (`core/tts/`) — §6 and §10 show how to switch.-> References (grammar only): commercial paper-cut shadow-box lamps (纸雕灯 / "shadow box lightbox"), Lotte Reiniger's silhouette films for the cut-out figure language, and Chinese 剪纸 motifs (祥云 auspicious clouds, 江南 houses, karst mountains). Do not copy any specific lamp design, film frame or character.+> A layered paper-cut shadow box (纸雕灯) lit from behind: 6–9 sheets of cut card stacked in a shallow box, a warm light glowing through the paper, windows and moons burning through holes, soft shadows falling from each layer onto the next. The frame is the box; the camera is a macro lens inside a lamp.+> References (grammar only): commercial paper-cut shadow-box lamps (纸雕灯 / "shadow box lightbox") for the layer stack and backlight; Lotte Reiniger's silhouette films for the cut-out, jointed figure language; Chinese 剪纸 motifs (auspicious clouds, eaves, mountains) as one possible vocabulary. Do not copy any specific lamp design, film frame or character.-You are directing a film in the **Paper-cut Lightbox** style. The user gives you a topic. You decide everything else — story, shots, timing, sound — and deliver a finished film. The demo runs 2 minutes; 45–120 s all work in this style. Follow this guide.+## 1. Essence, and what it is not------## 1. What this style is--Every shot is **one physical object**: a shallow box (inner cavity **0.56 × 0.33 m, 0.16 m deep**) holding parallel sheets of paper cut into silhouettes. Everything you see is one of three things:--1. **A paper layer** — a flat cut sheet, one flat colour per layer (plus a few details), with fibre grain, a thin warm **rim of light on its top edge** and a thin **dark band on its bottom edge**. Layers further back are lighter and bluer; the frontmost layer is almost black. That value ladder *is* the depth.-2. **Light through paper** — the backlight glows through each sheet as a warm, cloudy translucency (paper-pulp mottling), strongest near the light source (the moon, a lamp) and falling off away from it. Windows, lanterns, moon trails are **holes/emissive windows** that burn bright and bloom.-3. **Shadows** — a top LED spot casts **soft VSM shadows** from every layer onto the layers behind. This is what sells "real paper in a real box"; never turn it off.--The frame is the box. Camera moves are small (a real macro lens inside a lamp): slow push-ins, slight parallax between layers, shallow depth of field that pulls focus between layers. The film is bookended by the **real world**: a walnut table in a dark room, the lit lightbox in a wooden frame, a tea set and a plate of real mooncakes lit by the box's spill light. The first shot pushes from the room into the box; the last pulls back out.--## 2. Story: what fits this style--| Native power | Story use |-|---|---|-| **Light turns on** | The opening is literally switching the lamp on: moon, then far layers, then windows light up one by one. "Lights coming on" = a story beginning, a home, someone waiting. |-| **Depth = distance** | Stacked layers of mountains, rivers, cities make *distance* visible. Journeys, longing, "far away" stories are native. |-| **Silhouettes** | People are black cut-outs with a few jointed parts (an arm, a sleeve). Faceless figures read as everyone — good for folk tales, family, festivals. |-| **Windows** | A lit window with a silhouette inside is the strongest image this style has. Two lit windows sharing one moon is the demo's thesis shot. |-| **Paper text** | Titles, letters and poems are paper too: vertical brush calligraphy on a cut strip, revealed column by column, with a red seal. |-| **The box itself** | Pulling out to the real table at the end says "this was a keepsake / a story told at home". |--**Story shape (proven in the demo):** room → lamp on → push into the box, title → origin (grandma's kitchen, the mooncake is pressed) → a bit of culture (a Ming-dynasty scroll quote) → the absence (an empty seat) → the journey (train across layered mountains, a myth told on the way, a box passing the other way) → arrival in the far city → the letter → **the twist: the other box was going the other way** (mutual longing — two windows, one moon) → a classical poem → pull out of the box, "中秋快乐".--Adapting any topic: find the **two places** and the **one light** they share (a moon, a lighthouse, a window). Build each place as a layer stack; build one travel sequence between them; end with both lit at once.--## 3. Visual language+Every shot is **one physical object**: a shallow box (a cavity about 0.56 × 0.33 m, 0.16 m deep) holding parallel sheets of cut paper. Everything on screen is one of three things:-**Units and layout.** Everything is in metres, y up. Box cavity `BOX = { w: .56, h: .33, d: .16 }` (`src/room.js`). Layers sit at z from about **−0.14 (sky) to 0 (front)**; in-box camera at z ≈ 0.3–0.56 with fov 26°. Full-bleed layers inside the box are `.558 × .328` — **never larger than the cavity**, or they poke through the wooden frame in the room shots.+1. **A paper layer**: a flat cut sheet, one flat colour, fibre grain, a thin warm **rim of light on its top edge** and a **dark band on its bottom edge**. Back layers lighter and cooler, the front almost black: that value ladder *is* the depth.+2. **Light through paper**: a warm, cloudy translucency (pulp mottling), strongest near the light source. Windows, lanterns, trails of light are **holes / emissive windows** that burn and bloom.+3. **Shadows**: a top spot casts **soft shadows** from every layer onto the layers behind. This sells "real paper in a real box"; never turn it off.-**Layer stack for a night exterior (S01):**-| z | Layer | Colour | backlight `trans` |-|---|---|---|---|-| −.135 | sky gradient (unlit, `skyPanel`) + stars | `#0a1330 → #172a58 → #2e4478 → #43598a` | — |-| −.125 | moon disc + additive halo | `#fffaf0 / #fff0cf / #f7dca4` | — |-| −.112 | auspicious clouds (祥云) | `#c3cbe8` | .9 |-| −.098 | far karst mountains, carved contour slits | `#6a86c2` | .7 |-| −.080 | mid mountains | `#3f5a92` | .45 |-| −.062 | village (江南 houses) + emissive windows | `#5a70a6` walls / `#1b284f` roofs, glow `#ffb862` | .25 |-| −.046 | river + moon trail (emissive) | `#22325e`, trail `#e9cf96` | .3 |-| −.030 | osmanthus tree + bridge, emissive blossoms | `#17224a`, flowers `#d9a24a` | .12 |-| −.014 | foreground bank + reeds | `#0e1532` | .05 |-| +.004 | hanging lanterns (emissive) | `#0d1328`, glow `#ff8a48` | .05 |+The film may step out of the box into the **real world** (the lit lamp on a table, spill light on nearby objects) to say "this is an object someone keeps"; whether, where and how often is a choice of the film.-Rule: **back layers bright + translucent, front layers dark + opaque**. Interiors use the same ladder in warm browns (kitchen wall `#b08058`, props `#6e3b1f`, figure `#2e170d`, lamp glow `#ffc878`); the far city uses violets (`#2a2456`, windows `#e8cc90`).+Not flat paper-cut animation (here: depth, backlight, cast shadows), not shadow puppetry (no single screen, no rods), not a 3D diorama (every element is a flat sheet parallel to the box front).-**Accents:** seal red `#b3302a`, gold title paper `#f1dbac` / `#f3d998`, box red `#9e2a20`, a single blue box `#2a4f7a` for the granddaughter's reply.+## 2. Materials & rendering-**Paper finish** (`finish()` in `src/paper.js`): tiled fibre grain (`GRAIN`, 512², α .9, `source-atop`), top rim band `rgba(255,236,200,.35)` shifted 3 px, bottom shade `rgba(0,0,0,.28)` shifted 3 px. Canvas resolution `PPM = 5200` px/m.+- **Units in metres, y up.** Layers from z ≈ −0.14 (sky) to 0 (front); camera at z ≈ 0.3–0.56, fov ~26°. Full-bleed sheets are **never larger than the cavity**.+- **A layer** is a Canvas2D drawing in metre space mapped to a plane; cut-outs are `destination-out` holes. Finish on every sheet: fibre grain (`source-atop`), a warm top rim and a dark bottom shade, each shifted a few px.+- **Backlight shader**: `emissive += albedo × lightCol × trans × lit × falloff × (base + cloud)`, with a Gaussian falloff around a per-shot light point and a tiled pulp-mottle texture. `trans` per layer goes from ~.9 (far) to ~.05 (front).+- **Emissive windows**: a second canvas (white = light) gated by a 0→1 "switch on" uniform; bloom makes them burn. Titles, lights and curtains in front neither cast nor receive shadows.+- **Lens**: shallow depth of field, bloom, a gentle vignette; supersample 2× so cut edges stay crisp.+- **Real-world set** (when used): wood frame, black lining, a dark room, an area light as the box's spill onto real objects.-**Backlight shader** (`paperMat()`): `emissive += albedo × lightCol × trans × uLit × fall × (.35 + 1.3·cloud)`, `fall = mix(.22, 1, exp(−d²/R²))` around the per-shot light point `uLight` (usually the moon). `cloud` is a tiled pulp-mottle texture (`CLOUD()`). Emissive windows come from a second Canvas (`glowDraw`, white = light) scaled by `glow` and gated by `uGlowLit` (0→1 to "switch on").+## 3. Colour logic-**Fonts** (`demo/fonts/`, OFL): Ma Shan Zheng `FONT.brush` for titles/poems, Zhi Mang Xing `FONT.xing` for running script, Long Cang `FONT.hand` for the child's handwriting, Noto Serif SC `FONT.song` for subtitles and credits.+- **Back layers bright and translucent, front layers dark and opaque.** Each layer is one flat colour; the ladder of values from back to front is the depth. Never break it (a pale front layer flattens the box).+- **One temperature per stack**, chosen by the scene (cool night, warm interior, violet or green elsewhere). Changing ladder is how the film says "another place".+- **Light is warm** (amber to gold) against the stack, and it is the only saturated element besides one accent.+- **One accent colour** (a seal red, or a single object's colour) marks what the story is about. A second accent only when the story has two sides (one each).+- Examples of ladders: night village — `#0a1330` sky → `#6a86c2` far → `#3f5a92` mid → `#0e1532` front, windows `#ffb862`; desert caravan — `#f0c890` dusk sky → `#c07850` dunes → `#6a3020` → `#1e0e08`, fires `#ffd080`; winter forest — `#dfe6ee` → `#9aaec4` → `#4a6078` → `#101820`, one red scarf.-**Real-world set** (`lightbox()` in `src/room.js`): extruded walnut frame (Poly Haven `american_walnut_veneer`, tint `#8a6a52`), black paper lining inside, walnut table, dark radial wall `#2a2018 → #0a0806`, a `RectAreaLight` spill `#ffc98a` (intensity 6–7) at the box mouth, hemisphere fill `.25`, Poly Haven `tea_set_01` (teapot, cup, saucer, plate) and two procedural 3D mooncakes (cylinder + bump-mapped face from `cakeFace`).+## 4. Type & subtitles-## 4. Motion+- **Text in the picture is paper**: titles, letters, poems and captions are cut strips inside the box, revealed by growing from an anchor edge (scale the texture repeat with the mesh so glyphs aren't squashed), with an optional small seal.+- Chinese: an OFL brush font (e.g. Ma Shan Zheng) for titles, a running script for handwriting, Noto Serif SC for subtitles. Latin: an OFL serif (e.g. Cormorant) at similar weight.+- **Subtitles** are a quiet burned-in line under the box (serif 500, ~40 px CJK / ~38 px Latin, warm off-white, soft shadow, ~74 px from the bottom), fading in just before the line. Split long lines at the comma nearest the middle (~21 CJK / ~42 Latin characters).+- **Words that appear as paper are not subtitled**: never show the same words twice.+- Hold ≥ max(1.8 s, speech + 0.6 s).-- **Everything moves like paper on a stick**: layers slide (x/y), rotate about a pivot (`ax/ay` anchor = joint), scale in from 0 along one axis ("written out"), or light up. No squash and stretch, no morphing.-- **Jointed figures**: a body sheet + a separate arm sheet anchored at the shoulder (`GRAN_SHOULDER`, `GIRL_SHOULDER`, `SUSHI_SHOULDER` in `people.js`); animate `rotation.z` only.-- **Light cues are the big motion**: lamp-on sequence in S01 — moon (0.5–3.2 s) → sky → each layer's translucency staggered by 0.42 s → key light → windows → lanterns flicker (`1 + .06·sin(7.3t)·sin(3.1t)`).-- **Text reveal**: paper strips grow from their anchor edge (`reveal()` in `s13_note.js` scales the mesh *and* the texture repeat so glyphs are not squashed), timed to the spoken word.-- **Hard action beats land on whisper word times**: the wooden mould slams on 「啪」(`E.word('L04', 13)`), the 「圆」 character flashes on its word, the light arcs grow from 「互」.-- **Transitions**: 0.5–1.2 s dissolves between shots (`in: { type: 'dissolve', dur }`), an `iris` mode exists (circular wipe from `center`). The signature transition is a **near-plane auspicious-cloud curtain** (`cloudCurtain()` in `s17_sushi.js`) closing over the last 1.2 s of a shot and opening on the next — the two halves must meet exactly at their front edges.+## 5. Motion quality-## 5. Camera+- **Everything moves like paper on a stick**: layers slide (x/y), rotate about a pivot, scale in from 0 along one axis ("written out"), or light up. No squash and stretch, no morphing, no bending.+- **Jointed figures**: a body sheet + separate limb sheets anchored at the joint; animate rotation only.+- **Light cues are the big motion**: the source, then each layer's translucency in a ~0.4 s stagger, then windows, then flicker (`1 + .06·sin(7.3t)·sin(3.1t)`).+- **Hard action lands on spoken words** (use whisper word timings): an object slams, a character flashes, a light arc grows on its word.+- Hand-held micro-drift on the camera (~0.6 mm) keeps a locked frame alive. Render on ones at 30 fps; never step.-| Beat | Camera |-|---|---|-| Opening | Room wide (z 1.45) on the dark box → lamp on → 7 s ease-in-out push through the frame to z ≈ 0.56, then keep creeping in. Focus pulls from the front layer to the village. |-| In-box shots | Nearly frontal, slow dolly in/out (`aim(cam, [px,py,pz, tx,ty,tz], t)`), hand-held micro-drift `hand ≈ .0006 m`. Aperture 12–26 (in `post()`), focus on the story layer so foreground reeds and back mountains soften. |-| Top-down inserts | The mooncake press and the open gift box are shot as flat top-down layer stacks (same engine, different set). |-| Train | Lateral travel: layers scroll at speeds proportional to depth (parallax). |-| Ending | Push inside the box, then a pull back out to the table (z 0.5 → 1.08), tea set enters frame, title 「中秋快乐」 fades in inside the box, credits under it, 1.2 s fade to black. |+## 6. Camera grammar-## 6. Sound+A vocabulary, not a route. The lens is small and the box is shallow: moves are short. Opening and ending come from the topic.-**Voice (demo, Mandarin):** `edge-tts`, voice `zh-CN-XiaoxiaoNeural`, rate `+10%`, pitch `-2Hz` (`demo/tts.py`); per-line `rate` overrides in `script.json` (L01 `+5%`, quoted letters `+2%`, the poem L23 **`-12%`**, closing line `-6%`). Output is trimmed at 2 % of peak (20 ms pre-roll, 120 ms tail) → 48 kHz mono `vo/<id>.wav` + `vo/dur.json`.-- **Polyphonic characters**: feed TTS a homophone via a `say` field and keep the real text for subtitles: 「相思的"相"」→ `say: 原来,相思的香,是互相的香。` (TTS otherwise reads xiàng).-- **Proof**: `demo/asr.py` (faster-whisper **medium**, zh) prints OK/DIFF per line; DIFFs that are homophones or numerals (八月十五 → 8月15, 她 → 他) are fine — listen to the rest.-- **Word timings**: `demo/words.py <ids…>` → `vo/words.json` (whisper word timestamps). Shots read them via `E.word(id, k)`; **k is a whisper token index, not a character index** (whisper groups 「我们」 as one token) — print the list and count.--**Voice (English, library default):** write `lines.json` with `{id, text, voice, speed}`, run `core/tts/tts.py` (Kokoro, e.g. `bf_emma` / `af_heart`, speed ≈ .9) into `demo/vo/`, then `core/tts/asr_check.py` which writes `vo/dur.json` and a compatible `vo/words.json` (English word indices). Put the same ids/text into `script.json`. See §10 for the subtitle-split change.--**Music:** Kevin MacLeod — **"Ripples"** (guzheng, 0 → ~37 s) handing over to **"Nu Flute"** (dizi + strings) with a 4.5 s crossfade; both CC BY 4.0 (incompetech.com). The handover is solved backwards so Nu Flute's own 70 s swell lands on the poem: `T_FLU = C.L23.at − 70 + .3`. Nu Flute −3.3 dB relative. 2 s fade in, 3 s fade out. Why these: pentatonic, no drums (percussive energy < 0.02) — see `demo/music/MUSIC.md` for the librosa analysis and the rejected candidates.--**Mix (`demo/mix.py`):** voice → downsampled-envelope compressor (−22 dB, 3:1) → HP 70 Hz → RMS −18 dB; music RMS −27.5 dB with **5.5 dB ducking** under speech (0.25 s smoothed envelope); procedural foley at −24…−34 dB: switch click + rising shimmer (lamp on), wooden-mould thud + puff, chimes on reveals, paper rustles, lid thud, train bed (rumble + 0.62 s "clack-clack"), whoosh for the passing train and cloud curtain, city hum, a bite crunch. Everything is placed from `out/timeline.json` (line starts) and `vo/words.json`. Peak-limited to −1 dBFS; the final mux normalises to **−14 LUFS** (two-pass loudnorm in `core/render/mux.sh`).--## 7. Subtitles & titles--- Burned-in DOM subtitle (`#sub` in `index.html`): Noto Serif SC 500, 40 px, `#fbf3e4`, letter-spacing .06em, 74 px from the bottom, soft black shadow; fades in 0.15 s before the line, out 0.3 s after. Lines longer than 21 characters split at the comma nearest the middle; trailing punctuation is dropped and inner `,。:` become full-width spaces.-- **Lines that appear as paper in the picture are not subtitled** (`"sub": false` in `script.json`): grandma's letter (L17) and the poem (L23). Don't show the same words twice.-- Title: vertical Ma Shan Zheng on a paper strip inside the box (「一个月饼 / 的相思」) with a red seal 「中秋」, fading in after the second line.-- End card: 「中秋快乐」 paper title inside the box + red seal 「团圆」; the credit block (`#credit`, 19 px, two lines: music / assets / fonts) fades in 0.6 s after the last line.-- **Sign-off (library rule):** the end card carries **"LemoLab × Claude Opus 5.5"** as a **paper-cut strip inside the lightbox**, not as overlay text: `sign` sheet in `src/shots/s18_finale.js` — `w .26, h .02`, centred at `y −.1515` on the dark foreground bank, `z −.024` (in front of the bank layer, near the final focus plane), `text(…, .0115, FONT.song, { fill: '#f3d998', weight: 600 })`, `trans .3`, `shadow/recv: false`. It fades in over `tT + 1.0 → tT + 2.0` (1 s after 「中秋快乐」 starts, ≈116.6–117.6 s) and stays to the end, so it reads as part of the lamp while the credit block sits on the table below. Keep this placement for new films; if the end frame has no dark band at the bottom of the box, put the strip on the darkest front layer.-- `paper-lantern.srt` holds all 25 lines (including the two in-picture ones) at their spoken times.--## 8. Pitfalls we hit+| Move | What it expresses | Can serve |+|---|---|---|+| Slow dolly in, nearly frontal | intimacy; being drawn into a place | a memory; a detail that matters; a lit window |+| Slow dolly out | context; loneliness; scale | a figure alone; before/after; the whole place at once |+| Rack focus between layers | attention moving in depth | two people near and far; a clue behind; now and then |+| Lateral travel with depth parallax | journey; time passing | a road trip; a process in stages; a timeline |+| Top-down layer stack | a made thing seen as a craftsman sees it | a recipe; a letter; a map; a product being assembled |+| Pull out of / push into the box | the frame as object; "this is a story told" | a keepsake; a framing device; returning to the present |+| Locked frame with only light changing | waiting; the passage of a day or a night | a vigil; seasons; a city going to sleep |+| Tilt up/down the stack | climbing; falling; sky vs ground | a mountain; a well; hope and weight |+| Near-plane occluder wipe | a curtain between scenes | chapter changes; dreams; a secret revealed |-- **`destination-out` cut-outs need an opaque fillStyle**: set `x.fillStyle = '#000'` (or any opaque colour) before punching holes; a transparent or glow-white fill leaves the hole half-cut. `props.js` `cut(x, fn)` does it for you.-- **VSM shadows leak light bleeding / self-shadow halos**: layers that must not take part (titles, lanterns in front, light arcs, curtains) need **both** `shadow: false` **and** `recv: false`.-- **Additive glows**: a transparent radial-gradient `CanvasTexture` shows a visible square edge. Use the analytic `ShaderMaterial` falloff (`burst()` in `paper.js`) for light spilling out of an opened box.-- **Near-plane cloud curtain**: compute the closing position so the two curtains' **front edges** touch (`±.035` offset in `s16_mutual.js`), otherwise a slit of the old shot shows through.-- **Layers bigger than the cavity** poke through the wooden frame in room shots — keep full-bleed sheets ≤ `.558 × .328`.-- **Grade uniforms were sticky (fixed 2026-09-26)**: v1 of `Pipe.final()` only wrote `lift`/`gain` when a shot's `grade()` returned them, so a shot without them inherited the previous shot's values and the result depended on which frame a render worker started on — the first release (`paper-lantern_v1.mp4`) had visible grade pops at the worker boundaries 60.9 s (S09) and 101.5 s (S16). Now every missing grade key falls back to `GRADE0` (`post.js`: lift `[0, .005, .018]` cool night default, gain `[1.03, 1, .95]`), so renders are identical for any worker count. Night exteriors rely on the defaults; interiors must return their warm `lift` explicitly (S08 was fixed this way).-- Whisper medium mishears Chinese homophones (八月 → 8月, 她 → 他, 婵娟 → 禅绢); judge DIFFs by ear, not by string match.-- Headless Chrome must run with GPU flags (`--use-angle=gl --enable-gpu --ignore-gpu-blocklist`, `render/browser.mjs`); SwiftShader is ~6× slower.+Framing: the story layer in focus, foreground and far layers soft; box edges fully out of frame inside, clearly in frame outside, never half. Transitions: dissolves (0.5–1.2 s), an iris, light off/on, a near-plane curtain whose halves meet exactly. No whip pans, no digital zooms.-## 9. Production recipe (this repo)+## 7. Sound palette-```-styles/paper-lantern/demo/- index.html page: canvas + #sub + #credit, importmap → /node_modules/three (repo root is the static server root)- script.json lines: {id, text, rate?, say?, sub?}- tts.py asr.py words.py edge-tts → vo/*.wav + dur.json; whisper proof; word timings → vo/words.json- src/main.js timeline (GAP table), shot scheduler (lazy build / dispose), dissolves, subtitles, credits, window.render(t)- src/shots/index.js shot list, each start anchored to a line: start: L('L06') - .5- src/shots/sNN_*.js one module per shot: build(E) → { S, update(t), post(t), grade(t) }- src/paper.js stage.js post.js room.js art.js people.js props.js lib.js engine (see §10)- render/still.mjs video.mjs cues.mjs stills, parallel video render, export out/timeline.json- mix.py voice + music + foley → out/mix.wav- music/ candidate tracks + MUSIC.md (only km_Ripples.mp3 and km_Nu_Flute.mp3 are used)-```+- **Instruments** that sit like light behind paper: felt piano, music box, celesta, harp or plucked zithers, bamboo flutes, soft strings; a solo instrument of the topic's culture. No drum kit; percussion only as single soft strokes (woodblock, small gong, hand drum).+- **Foley is paper and light**: switch click + rising shimmer when a light turns on; paper rustle and slide; card-stock tap; lid thud; chimes on reveals; soft whoosh for curtains; beds from the scene (river, rails, city hum, crickets, snow wind).+- **Silence**: the lamp switched off — all sound but a room tone drops out, then returns with the light.+- **Mix character**: voice compressed and forward (RMS ~−18 dB), music underneath with ~5–6 dB of ducking under speech, foley low (−24…−34 dB), peak-limited, final at −14 LUFS.+- **Options**: a new instrument entering when the film changes place; one foley sound per light cue; a music hand-over solved backwards so a swell lands on the line that matters.+- **Voice**: warm, a storyteller at a table, not an announcer. Proof every line with whisper; for Chinese polyphonic characters feed TTS a homophone and keep the real text for subtitles.-All commands from the repo root (`Lemo-Opuscar/`). Python = `.venv/bin/python`; `edge-tts` must be on `PATH` (user-level `pip install edge-tts`; it is not in `.venv`).+## 8. Native moves-```sh-D=styles/paper-lantern/demo-# 1. voice (Mandarin demo) — delete vo/<id>.mp3 or set "redo": true to regenerate a line-python3 $D/tts.py # → $D/vo/<id>.wav, $D/vo/dur.json-.venv/bin/python $D/asr.py # OK / DIFF per line (≈1.5 min, whisper medium, CPU)-.venv/bin/python $D/words.py L01 L02 … L25 # → $D/vo/words.json (pass ALL ids: it rewrites the file)-# English instead: .venv/bin/python core/tts/tts.py $D/lines_en.json $D/vo && .venv/bin/python core/tts/asr_check.py $D/lines_en.json $D/vo+A menu: use the ones your story needs.-# 2. timeline + review stills (any number of times, seconds)-node $D/render/cues.mjs # → $D/out/timeline.json (DUR, line cues C, shot plan P)-node $D/render/still.mjs 5 12.5 62.5 116 --out $D/out/review # add --q '?ssaa=1' for fast previews-# core renderer works too: node core/render/still.mjs $D 12.5 --out $D/out/review-# debug: ?sheet (character sheet), ?nolit=1 (backlight off), ?hide=clouds,far (S01 layers)+- **The lamp turns on.** Source, then far layers, then windows light up one by one. *Fits content like:* a shop opening at dawn; a startup's first customer; a stadium before a match.+- **Two windows, one light.** Two lit places sharing one light source (a moon, a lighthouse, a satellite). *Fits content like:* a long-distance friendship; two labs working on the same problem; a sister city pair.+- **Depth as distance.** A stack of ranges or streets makes "far away" visible; travel moves layers at speeds proportional to depth. *Fits content like:* a migration route; shipping a parcel; the history of a river.+- **Paper that writes itself.** A strip grows from its edge on the spoken word. *Fits content like:* a recipe; the terms of a treaty; a child's first word.+- **The box as keepsake.** The camera finds the real lamp in a room, real objects lit by its spill. *Fits content like:* a wedding anniversary; a product unboxing; a museum object's story.+- **Light burst from an opened thing.** A lid lifts and analytic glow spills out. *Fits content like:* a gift; a discovery; a new idea.+- **Silhouette in a window.** One jointed figure inside a lit frame. *Fits content like:* someone working late; a portrait of a craftsperson; a patient waiting.-# 3. mix-.venv/bin/python $D/mix.py # → $D/out/mix.wav (optional arg: other output path)+## 9. Pitfalls of the medium-# 4. render video (≈90 s for 3653 frames with 6 workers on an M-series Mac; ≈3 min with 2)-node $D/render/video.mjs --workers 6 # → $D/out/video.mp4 (segments written next to the output; any worker count gives the same frames)+- `destination-out` cut-outs need an **opaque fillStyle** before punching, or the hole is half-cut (`props.js` `cut(x, fn)` does it).+- Soft shadows bleed and halo: layers that must not take part need **both** `shadow: false` and `recv: false`.+- A transparent radial-gradient texture shows a square edge as an additive glow → use an analytic shader falloff (`burst()`).+- A near-plane curtain whose halves don't meet at their **front edges** leaves a slit of the old shot.+- Sheets larger than the cavity poke through the frame in outside shots.+- **Grade state must not carry over** between shots: every grade key a shot omits must fall back to a default each frame, or renders depend on which frame a worker started on (visible pops at worker boundaries).+- Headless Chrome must run with GPU flags; SwiftShader is ~6× slower.-# 5. mux: two-pass loudnorm −14 LUFS, 30 fps, no grain-sh core/render/mux.sh $D/out/video.mp4 $D/out/mix.wav styles/paper-lantern/paper-lantern.mp4 30 0-```+## 10. Engine-Review loop: stills of every shot at its key word time → sheet (`ffmpeg … tile=6x5`) → fix → only then the full render. Check the room shots (first 10 s, last 8 s) at full SSAA; they carry the "it's a real object" illusion.+In `demo/src/`: `paper.js` (`sheet()` = one lit paper layer; `skyPanel`, `moon`, `text`, `burst`), `stage.js` (scene, top spot, `aim()` camera), `post.js` (DoF, bloom, transitions, grade), `room.js` (the real box and table), `art.js` / `people.js` / `props.js` (motifs, jointed figures, props), `lib.js`. `src/main.js` schedules shots, each `build(E) → { S, update(t), post(t), grade(t) }`. API table and a minimal shot: [DEMO.md](DEMO.md) "Engine reference".-## 10. Engine usage+## 11. Variation space-**Page contract** (`src/main.js`): exposes `window.READY`, `window.DUR`, `window.render(t)` (deterministic per frame), `window.CUES` (line cues), `window.PLAN` (shot table). Query `?ssaa=N` (default 2).+You decide the places, the figures (or none), the ladders, the light source, whether the real world appears, the opening, the ending and the camera path. All far from our demo:-**Timeline**: lines start at 2.6 s; each line lasts its `dur.json` length followed by `GAP[id]` seconds (`GAP` table in `main.js`, e.g. `L02: 4.2` for the title beat, `L25: 5.0` for the ending). Shots are anchored to lines in `src/shots/index.js`; changing a voice line re-times everything automatically.+- Structures: **one window, one year** (a locked lamp; the scene inside changes season by season, light the only transition); **a vertical stack** (the film tilts down through sky, city, street, underground, each a chapter); **a relay of objects** (a single object passes hand to hand across five small boxes, each a different ladder).+- Openings: **already lit, mid-scene** (a figure walking through a lit street; we learn it is paper only when the camera racks focus); **darkness and one hole** (a single pinprick of light widens into a moon, a door, an eye); **top-down** (hands' view of a sheet being cut; the cut sheet slides into the stack).+- Endings: **the lights go out one by one**, the last window last; **rack focus to the front layer** until the story blurs into warm light; **a new sheet slides in** at the front, starting the next story.-**Shot context `E`** (passed to `build`): `dur`, `T0`, `C` (all cues), `env` (PMREM room env map), `W` (words), `cue(id)` / `cueEnd(id)` (line start/end in shot-local seconds), `word(id, k)` (shot-local start of whisper token k).+----| Module | Key API | Notes |-|---|---|---|-| `paper.js` | `sheet({ U, w, h, draw, glowDraw?, glow, glowCol, trans, z, x, y, ax, ay, shadow, recv, finish, ppm, bumpDraw? })` | One paper layer. `draw(x, k)` paints in metres (origin centre, y up). `glowDraw` paints the emissive map (white = light, black = mask). `trans` = backlight translucency. `ax/ay` = pivot. Returns a Mesh; `m.material.userData.u` has `uTrans`, `uGlowLit`, `uClip` (circle clip `[cx, cy, r, inside?]`). |-| | `skyPanel({ w, h, z, stops, stars, starMinY, gain })` | Unlit gradient back panel. |-| | `moon({ x, y, z, r, gain, halo, haloGain, art? })`, `setMoon(m, k)` | Disc + additive halo; `k` = brightness 0…1+. |-| | `text(x, s, px, py, size, font, o)`, `vtext(…)` | Text in metre space (vertical for `vtext`). |-| | `burst(w, h, col)` → `m.userData.set(k)` | Analytic additive glow. |-| | `paint(w, h, draw, ppm)`, `finish(c, o)`, `tex(c)`, `PPM`, `GRAIN`, `CLOUD()` | Low-level canvas helpers. |-| `stage.js` | `stage({ light, lightR, lightCol, key, keyCol, keyPos, keyTarget, keyAngle, amb, ambCol, shadowR, fov, bg })` → `{ scene, U, cam, key, amb, add(...) }` | Scene + top LED spot (VSM, 2048², radius 10) + ambient + backlight uniforms `U`. |-| | `aim(cam, [px,py,pz, tx,ty,tz], t, { hand, handF, roll, fov })` | Camera with hand-held drift. |-| | `dispose(scene)` | Called by the scheduler when a shot leaves. |-| `post.js` | `Pipe.shot(scene, cam, { focus, aper, maxCoc, bloom: { strength, radius, threshold } }, target)` | MSAA4 half-float → CoC → 96-tap gather DoF → UnrealBloom. `focus` = distance in metres. |-| | `Pipe.final({ mixB, mode, center, expo, fade, vig, sat, contrast, lift, gain })` | Dissolve / iris, grade, vignette, neutral tone map, sRGB. Keys a shot omits fall back to `GRADE0` every frame. |-| `room.js` | `await lightbox(S, E, { spill, spillCol })` → `{ g, frame, spill, table, props }`, `BOX` | Real-world box, table, tea set, mooncakes. Textures load from `/core/assets/polyhaven/`. |-| `art.js` | `karst`, `ridge`, `xiangyun`, `waves`, `waterTop`, `osmanthus`, `pine`, `willow`, `reeds`, `jiangnanHouse(x, o, g)`, `pavilion`, `lantern(x, o, g)`, `mooncake`, `FONT` | Paper-cut motifs; functions with `g` draw their windows into the glow canvas. |-| `people.js` | `grannyStand/Sit`, `girlStand/Sit`, `childStand`, `sushi`, `change` (Chang'e), `rabbit`, `arm(x, s, a, b)`, `spline`, `ribbon`, `*_SHOULDER` | Silhouette figures, scale `s` = height in m. |-| `props.js` | `cut(x, fn)`, `roundWindow`, `steamers`, `stove`, `jar`, `bowl`, `teapot`, `pendant`, `calendar`, `table`, `chair`, `boxFront`, `label`, `cake3q` | Interior props. |-| `lib.js` | `ss`, `seg`, `eio`, `eo`, `ei`, `back`, `spring`, `lerp`, `clamp`, `mulberry`, `vnoise`, `track`, `env` | Deterministic helpers. |--**Minimal shot** (a moonlit hill with one lit window; add it to `SHOTS()` as `{ id: 'S99', start: L('L05') - .3, in: { type: 'dissolve', dur: .8 }, build: s99.build }`):--```js-import { sheet, skyPanel, moon, setMoon } from '../paper.js';-import { karst, jiangnanHouse } from '../art.js';-import { stage, aim } from '../stage.js';-import { seg, ss, eio, lerp } from '../lib.js';--export function build(E) {- const MN = [.08, .07, -.13];- const S = stage({ light: MN, lightR: .15, lightCol: '#ffe2ae', key: 1.0, amb: .3, ambCol: '#7d90c8', keyCol: '#d6dcff' });- const { U } = S;- S.add(skyPanel({ w: .56, h: .33, z: -.14, stops: [[0, '#0a1330'], [1, '#43598a']], stars: 200 }));- const mn = S.add(moon({ x: MN[0], y: MN[1], z: MN[2], r: .035 }));- S.add(sheet({ U, w: .558, h: .328, z: -.1, trans: .7, draw: x => { x.fillStyle = '#6a86c2';- karst(x, { x0: -.28, x1: .28, base: -.03, peaks: [[-.15, .06, .03], [.1, .05, .025]], carve: .0005 }); } }));- const house = { cx: -.05, by: -.09, w: .06, h: .03, windows: [[.012, .01, .01, .01]], wall: '#5a70a6', tile: '#1b284f' };- const town = S.add(sheet({ U, w: .558, h: .328, z: -.06, trans: .25, glow: 2.2, glowCol: '#ffb862',- draw: x => jiangnanHouse(x, house), glowDraw: g => jiangnanHouse(null, house, g) }));- S.add(sheet({ U, w: .558, h: .328, z: -.02, trans: .05, draw: x => { x.fillStyle = '#0e1532'; x.fillRect(-.28, -.165, .56, .075); } }));- const tOn = E.word('L05', 2); // light the window on the 3rd spoken token- return {- S,- update(t) {- setMoon(mn, ss(seg(t, 0, 1.5)));- town.material.userData.u.uGlowLit.value = ss(seg(t, tOn, tOn + .6));- aim(S.cam, [0, 0, lerp(.56, .48, eio(t / E.dur)), 0, 0, -.07], t);- },- post() { return { focus: S.cam.position.z + .06, aper: 14, maxCoc: 14, bloom: { strength: .35, radius: .6, threshold: 1.15 } }; },- grade() { return { expo: 1.05, vig: .42, sat: 1.05, contrast: .1 }; }, // missing lift/gain → GRADE0 (cool night); interiors add lift: [.012, .006, 0]- };-}-```--**Switching to English**: in `main.js` the subtitle splitter assumes Chinese (`st.length > 21`, split on `[,。:]`, punctuation → full-width space). For English change it to split at the `, ` nearest the middle when longer than ~42 characters and keep punctuation; set `#sub` to a Latin serif (e.g. add an OFL font such as Cormorant to `fonts/`) at ~38 px. `E.word(id, k)` then counts English words. Everything else (timeline, mix, render) is language-agnostic.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/paper-lantern/demo/assets/tea_set_01/tea_set_01.bin b/styles/paper-lantern/demo/assets/tea_set_01/tea_set_01.bindeleted file mode 100644index dab1411..0000000Binary files a/styles/paper-lantern/demo/assets/tea_set_01/tea_set_01.bin and /dev/null differdiff --git a/styles/paper-lantern/demo/assets/tea_set_01/tea_set_01.gltf b/styles/paper-lantern/demo/assets/tea_set_01/tea_set_01.gltfdeleted file mode 100644index 6ec3643..0000000--- a/styles/paper-lantern/demo/assets/tea_set_01/tea_set_01.gltf+++ /dev/null@@ -1,862 +0,0 @@-{- "asset": {- "generator": "Khronos glTF Blender I/O v1.6.16",- "version": "2.0"- },- "scene": 0,- "scenes": [- {- "name": "Scene",- "nodes": [- 0,- 1,- 2,- 3,- 4,- 5,- 6,- 7,- 8,- 9- ]- }- ],- "nodes": [- {- "mesh": 0,- "name": "tea_set_01_plate_large_square_01",- "translation": [- -0.3466275632381439,- 0,- -0.18865355849266052- ]- },- {- "mesh": 1,- "name": "tea_set_01_cup_small_01",- "translation": [- 0.15337243676185608,- 0,- 0.061346426606178284- ]- },- {- "mesh": 2,- "name": "tea_set_01_saucer_circular_03",- "translation": [- 0.4033724367618561,- 0,- -0.1886536180973053- ]- },- {- "mesh": 3,- "name": "tea_set_01_plate_large_circular_03",- "translation": [- -0.09662759304046631,- 0,- -0.18865357339382172- ]- },- {- "mesh": 4,- "name": "tea_set_01_sugar_cup_01",- "translation": [- -0.09662757068872452,- 0,- 0.061346426606178284- ]- },- {- "mesh": 5,- "name": "tea_set_01_teapot_01",- "translation": [- -0.3466275632381439,- 0,- 0.06134644150733948- ]- },- {- "mesh": 6,- "name": "tea_set_01_cup_small_02",- "translation": [- 0.40337246656417847,- 0,- 0.06134641170501709- ]- },- {- "mesh": 7,- "name": "tea_set_01_saucer_circular_04",- "translation": [- 0.15337242186069489,- 0,- -0.1886535882949829- ]- },- {- "mesh": 8,- "name": "tea_set_01_sugar_cup_01_lid",- "translation": [- -0.09662757068872452,- 0.0003039799630641937,- 0.061346426606178284- ]- },- {- "mesh": 9,- "name": "tea_set_01_teapot_01_lid",- "translation": [- -0.3466275632381439,- 0.0015413056826218963,- 0.06134644150733948- ]- }- ],- "materials": [- {- "doubleSided": true,- "name": "tea_set_01",- "normalTexture": {- "index": 0- },- "pbrMetallicRoughness": {- "baseColorTexture": {- "index": 1- },- "metallicRoughnessTexture": {- "index": 2- }- }- }- ],- "meshes": [- {- "name": "Circle.009",- "primitives": [- {- "attributes": {- "POSITION": 0,- "NORMAL": 1,- "TEXCOORD_0": 2- },- "indices": 3,- "material": 0- }- ]- },- {- "name": "Circle.012",- "primitives": [- {- "attributes": {- "POSITION": 4,- "NORMAL": 5,- "TEXCOORD_0": 6- },- "indices": 7,- "material": 0- }- ]- },- {- "name": "Circle.022",- "primitives": [- {- "attributes": {- "POSITION": 8,- "NORMAL": 9,- "TEXCOORD_0": 10- },- "indices": 11,- "material": 0- }- ]- },- {- "name": "Circle.023",- "primitives": [- {- "attributes": {- "POSITION": 12,- "NORMAL": 13,- "TEXCOORD_0": 14- },- "indices": 15,- "material": 0- }- ]- },- {- "name": "Circle.027",- "primitives": [- {- "attributes": {- "POSITION": 16,- "NORMAL": 17,- "TEXCOORD_0": 18- },- "indices": 19,- "material": 0- }- ]- },- {- "name": "Circle.001",- "primitives": [- {- "attributes": {- "POSITION": 20,- "NORMAL": 21,- "TEXCOORD_0": 22- },- "indices": 23,- "material": 0- }- ]- },- {- "name": "Circle.003",- "primitives": [- {- "attributes": {- "POSITION": 24,- "NORMAL": 25,- "TEXCOORD_0": 26- },- "indices": 27,- "material": 0- }- ]- },- {- "name": "Circle.002",- "primitives": [- {- "attributes": {- "POSITION": 28,- "NORMAL": 29,- "TEXCOORD_0": 30- },- "indices": 31,- "material": 0- }- ]- },- {- "name": "Circle.004",- "primitives": [- {- "attributes": {- "POSITION": 32,- "NORMAL": 33,- "TEXCOORD_0": 34- },- "indices": 35,- "material": 0- }- ]- },- {- "name": "Circle.005",- "primitives": [- {- "attributes": {- "POSITION": 36,- "NORMAL": 37,- "TEXCOORD_0": 38- },- "indices": 39,- "material": 0- }- ]- }- ],- "textures": [- {- "sampler": 0,- "source": 0- },- {- "sampler": 0,- "source": 1- },- {- "sampler": 0,- "source": 2- }- ],- "images": [- {- "mimeType": "image/jpeg",- "name": "tea_set_01_nor_gl",- "uri": "textures/tea_set_01_nor_gl_1k.jpg"- },- {- "mimeType": "image/jpeg",- "name": "tea_set_01_diff",- "uri": "textures/tea_set_01_diff_1k.jpg"- },- {- "mimeType": "image/jpeg",- "name": "tea_set_01_metal-tea_set_01_rough",- "uri": "textures/tea_set_01_arm_1k.jpg"- }- ],- "accessors": [- {- "bufferView": 0,- "componentType": 5126,- "count": 1634,- "max": [- 0.09400609880685806,- 0.01688862405717373,- 0.09495928883552551- ],- "min": [- -0.09400609880685806,- -0.0008325735689140856,- -0.09495928883552551- ],- "type": "VEC3"- },- {- "bufferView": 1,- "componentType": 5126,- "count": 1634,- "type": "VEC3"- },- {- "bufferView": 2,- "componentType": 5126,- "count": 1634,- "type": "VEC2"- },- {- "bufferView": 3,- "componentType": 5123,- "count": 9504,- "type": "SCALAR"- },- {- "bufferView": 4,- "componentType": 5126,- "count": 2328,- "max": [- 0.05345918610692024,- 0.0697360709309578,- 0.053459182381629944- ],- "min": [- -0.05345918610692024,- 0.002385602565482259,- -0.07950614392757416- ],- "type": "VEC3"- },- {- "bufferView": 5,- "componentType": 5126,- "count": 2328,- "type": "VEC3"- },- {- "bufferView": 6,- "componentType": 5126,- "count": 2328,- "type": "VEC2"- },- {- "bufferView": 7,- "componentType": 5123,- "count": 12468,- "type": "SCALAR"- },- {- "bufferView": 8,- "componentType": 5126,- "count": 1490,- "max": [- 0.07447617501020432,- 0.015210483223199844,- 0.0744762048125267- ],- "min": [- -0.0744761973619461,- -0.0007006535306572914,- -0.0744762048125267- ],- "type": "VEC3"- },- {- "bufferView": 9,- "componentType": 5126,- "count": 1490,- "type": "VEC3"- },- {- "bufferView": 10,- "componentType": 5126,- "count": 1490,- "type": "VEC2"- },- {- "bufferView": 11,- "componentType": 5123,- "count": 8640,- "type": "SCALAR"- },- {- "bufferView": 12,- "componentType": 5126,- "count": 1634,- "max": [- 0.09375955909490585,- 0.016888633370399475,- 0.09375956654548645- ],- "min": [- -0.09375956654548645,- -0.0008325648959726095,- -0.09375958144664764- ],- "type": "VEC3"- },- {- "bufferView": 13,- "componentType": 5126,- "count": 1634,- "type": "VEC3"- },- {- "bufferView": 14,- "componentType": 5126,- "count": 1634,- "type": "VEC2"- },- {- "bufferView": 15,- "componentType": 5123,- "count": 9504,- "type": "SCALAR"- },- {- "bufferView": 16,- "componentType": 5126,- "count": 2926,- "max": [- 0.0508304201066494,- 0.06985670328140259,- 0.07091706991195679- ],- "min": [- -0.0508304126560688,- 0.002385602565482259,- -0.07091706991195679- ],- "type": "VEC3"- },- {- "bufferView": 17,- "componentType": 5126,- "count": 2926,- "type": "VEC3"- },- {- "bufferView": 18,- "componentType": 5126,- "count": 2926,- "type": "VEC2"- },- {- "bufferView": 19,- "componentType": 5123,- "count": 15552,- "type": "SCALAR"- },- {- "bufferView": 20,- "componentType": 5126,- "count": 4697,- "max": [- 0.08237607032060623,- 0.12179280817508698,- 0.13891728222370148- ],- "min": [- -0.08237607032060623,- -0.00018621094932314008,- -0.128876730799675- ],- "type": "VEC3"- },- {- "bufferView": 21,- "componentType": 5126,- "count": 4697,- "type": "VEC3"- },- {- "bufferView": 22,- "componentType": 5126,- "count": 4697,- "type": "VEC2"- },- {- "bufferView": 23,- "componentType": 5123,- "count": 25296,- "type": "SCALAR"- },- {- "bufferView": 24,- "componentType": 5126,- "count": 2328,- "max": [- 0.05345918610692024,- 0.0697360709309578,- 0.053459182381629944- ],- "min": [- -0.05345918610692024,- 0.002385602565482259,- -0.07950614392757416- ],- "type": "VEC3"- },- {- "bufferView": 25,- "componentType": 5126,- "count": 2328,- "type": "VEC3"- },- {- "bufferView": 26,- "componentType": 5126,- "count": 2328,- "type": "VEC2"- },- {- "bufferView": 27,- "componentType": 5123,- "count": 12468,- "type": "SCALAR"- },- {- "bufferView": 28,- "componentType": 5126,- "count": 1490,- "max": [- 0.07447617501020432,- 0.015210483223199844,- 0.0744762048125267- ],- "min": [- -0.0744761973619461,- -0.0007006535306572914,- -0.0744762048125267- ],- "type": "VEC3"- },- {- "bufferView": 29,- "componentType": 5126,- "count": 1490,- "type": "VEC3"- },- {- "bufferView": 30,- "componentType": 5126,- "count": 1490,- "type": "VEC2"- },- {- "bufferView": 31,- "componentType": 5123,- "count": 8640,- "type": "SCALAR"- },- {- "bufferView": 32,- "componentType": 5126,- "count": 1385,- "max": [- 0.048947423696517944,- 0.10231786966323853,- 0.04894748330116272- ],- "min": [- -0.04894746094942093,- 0.06854259967803955,- -0.04894740879535675- ],- "type": "VEC3"- },- {- "bufferView": 33,- "componentType": 5126,- "count": 1385,- "type": "VEC3"- },- {- "bufferView": 34,- "componentType": 5126,- "count": 1385,- "type": "VEC2"- },- {- "bufferView": 35,- "componentType": 5123,- "count": 7680,- "type": "SCALAR"- },- {- "bufferView": 36,- "componentType": 5126,- "count": 1963,- "max": [- 0.06268994510173798,- 0.16261917352676392,- 0.06098145246505737- ],- "min": [- -0.06268994510173798,- 0.11304481327533722,- -0.06439840793609619- ],- "type": "VEC3"- },- {- "bufferView": 37,- "componentType": 5126,- "count": 1963,- "type": "VEC3"- },- {- "bufferView": 38,- "componentType": 5126,- "count": 1963,- "type": "VEC2"- },- {- "bufferView": 39,- "componentType": 5123,- "count": 11136,- "type": "SCALAR"- }- ],- "bufferViews": [- {- "buffer": 0,- "byteLength": 19608,- "byteOffset": 0- },- {- "buffer": 0,- "byteLength": 19608,- "byteOffset": 19608- },- {- "buffer": 0,- "byteLength": 13072,- "byteOffset": 39216- },- {- "buffer": 0,- "byteLength": 19008,- "byteOffset": 52288- },- {- "buffer": 0,- "byteLength": 27936,- "byteOffset": 71296- },- {- "buffer": 0,- "byteLength": 27936,- "byteOffset": 99232- },- {- "buffer": 0,- "byteLength": 18624,- "byteOffset": 127168- },- {- "buffer": 0,- "byteLength": 24936,- "byteOffset": 145792- },- {- "buffer": 0,- "byteLength": 17880,- "byteOffset": 170728- },- {- "buffer": 0,- "byteLength": 17880,- "byteOffset": 188608- },- {- "buffer": 0,- "byteLength": 11920,- "byteOffset": 206488- },- {- "buffer": 0,- "byteLength": 17280,- "byteOffset": 218408- },- {- "buffer": 0,- "byteLength": 19608,- "byteOffset": 235688- },- {- "buffer": 0,- "byteLength": 19608,- "byteOffset": 255296- },- {- "buffer": 0,- "byteLength": 13072,- "byteOffset": 274904- },- {- "buffer": 0,- "byteLength": 19008,- "byteOffset": 287976- },- {- "buffer": 0,- "byteLength": 35112,- "byteOffset": 306984- },- {- "buffer": 0,- "byteLength": 35112,- "byteOffset": 342096- },- {- "buffer": 0,- "byteLength": 23408,- "byteOffset": 377208- },- {- "buffer": 0,- "byteLength": 31104,- "byteOffset": 400616- },- {- "buffer": 0,- "byteLength": 56364,- "byteOffset": 431720- },- {- "buffer": 0,- "byteLength": 56364,- "byteOffset": 488084- },- {- "buffer": 0,- "byteLength": 37576,- "byteOffset": 544448- },- {- "buffer": 0,- "byteLength": 50592,- "byteOffset": 582024- },- {- "buffer": 0,- "byteLength": 27936,- "byteOffset": 632616- },- {- "buffer": 0,- "byteLength": 27936,- "byteOffset": 660552- },- {- "buffer": 0,- "byteLength": 18624,- "byteOffset": 688488- },- {- "buffer": 0,- "byteLength": 24936,- "byteOffset": 707112- },- {- "buffer": 0,- "byteLength": 17880,- "byteOffset": 732048- },- {- "buffer": 0,- "byteLength": 17880,- "byteOffset": 749928- },- {- "buffer": 0,- "byteLength": 11920,- "byteOffset": 767808- },- {- "buffer": 0,- "byteLength": 17280,- "byteOffset": 779728- },- {- "buffer": 0,- "byteLength": 16620,- "byteOffset": 797008- },- {- "buffer": 0,- "byteLength": 16620,- "byteOffset": 813628- },- {- "buffer": 0,- "byteLength": 11080,- "byteOffset": 830248- },- {- "buffer": 0,- "byteLength": 15360,- "byteOffset": 841328- },- {- "buffer": 0,- "byteLength": 23556,- "byteOffset": 856688- },- {- "buffer": 0,- "byteLength": 23556,- "byteOffset": 880244- },- {- "buffer": 0,- "byteLength": 15704,- "byteOffset": 903800- },- {- "buffer": 0,- "byteLength": 22272,- "byteOffset": 919504- }- ],- "samplers": [- {- "magFilter": 9729,- "minFilter": 9987- }- ],- "buffers": [- {- "byteLength": 941776,- "uri": "tea_set_01.bin"- }- ]-}\ No newline at end of filediff --git a/styles/paper-lantern/demo/assets/tea_set_01/textures/tea_set_01_arm_1k.jpg b/styles/paper-lantern/demo/assets/tea_set_01/textures/tea_set_01_arm_1k.jpgdeleted file mode 100644index 88c4503..0000000Binary files a/styles/paper-lantern/demo/assets/tea_set_01/textures/tea_set_01_arm_1k.jpg and /dev/null differdiff --git a/styles/paper-lantern/demo/assets/tea_set_01/textures/tea_set_01_diff_1k.jpg b/styles/paper-lantern/demo/assets/tea_set_01/textures/tea_set_01_diff_1k.jpgdeleted file mode 100644index 0a30ea7..0000000Binary files a/styles/paper-lantern/demo/assets/tea_set_01/textures/tea_set_01_diff_1k.jpg and /dev/null differdiff --git a/styles/paper-lantern/demo/assets/tea_set_01/textures/tea_set_01_nor_gl_1k.jpg b/styles/paper-lantern/demo/assets/tea_set_01/textures/tea_set_01_nor_gl_1k.jpgdeleted file mode 100644index 86029b2..0000000Binary files a/styles/paper-lantern/demo/assets/tea_set_01/textures/tea_set_01_nor_gl_1k.jpg and /dev/null differdiff --git a/styles/paper-lantern/demo/assets/walnut_diff.jpg b/styles/paper-lantern/demo/assets/walnut_diff.jpgdeleted file mode 100644index aeb3662..0000000Binary files a/styles/paper-lantern/demo/assets/walnut_diff.jpg and /dev/null differdiff --git a/styles/paper-lantern/demo/assets/walnut_nor.jpg b/styles/paper-lantern/demo/assets/walnut_nor.jpgdeleted file mode 100644index 43adb25..0000000Binary files a/styles/paper-lantern/demo/assets/walnut_nor.jpg and /dev/null differdiff --git a/styles/paper-lantern/demo/assets/walnut_rough.jpg b/styles/paper-lantern/demo/assets/walnut_rough.jpgdeleted file mode 100644index aee5586..0000000Binary files a/styles/paper-lantern/demo/assets/walnut_rough.jpg and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L01.mp3 b/styles/paper-lantern/demo/vo/L01.mp3deleted file mode 100644index 976366b..0000000Binary files a/styles/paper-lantern/demo/vo/L01.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L01.wav b/styles/paper-lantern/demo/vo/L01.wavdeleted file mode 100644index 9fe578a..0000000Binary files a/styles/paper-lantern/demo/vo/L01.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L02.mp3 b/styles/paper-lantern/demo/vo/L02.mp3deleted file mode 100644index 5c8d909..0000000Binary files a/styles/paper-lantern/demo/vo/L02.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L02.wav b/styles/paper-lantern/demo/vo/L02.wavdeleted file mode 100644index 88640d8..0000000Binary files a/styles/paper-lantern/demo/vo/L02.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L03.mp3 b/styles/paper-lantern/demo/vo/L03.mp3deleted file mode 100644index aa16a3e..0000000Binary files a/styles/paper-lantern/demo/vo/L03.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L03.wav b/styles/paper-lantern/demo/vo/L03.wavdeleted file mode 100644index e9b6208..0000000Binary files a/styles/paper-lantern/demo/vo/L03.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L04.mp3 b/styles/paper-lantern/demo/vo/L04.mp3deleted file mode 100644index 78b283a..0000000Binary files a/styles/paper-lantern/demo/vo/L04.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L04.wav b/styles/paper-lantern/demo/vo/L04.wavdeleted file mode 100644index c8178a8..0000000Binary files a/styles/paper-lantern/demo/vo/L04.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L05.mp3 b/styles/paper-lantern/demo/vo/L05.mp3deleted file mode 100644index f3cf988..0000000Binary files a/styles/paper-lantern/demo/vo/L05.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L05.wav b/styles/paper-lantern/demo/vo/L05.wavdeleted file mode 100644index 0d81bc2..0000000Binary files a/styles/paper-lantern/demo/vo/L05.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L06.mp3 b/styles/paper-lantern/demo/vo/L06.mp3deleted file mode 100644index f75b056..0000000Binary files a/styles/paper-lantern/demo/vo/L06.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L06.wav b/styles/paper-lantern/demo/vo/L06.wavdeleted file mode 100644index c049db7..0000000Binary files a/styles/paper-lantern/demo/vo/L06.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L07.mp3 b/styles/paper-lantern/demo/vo/L07.mp3deleted file mode 100644index 5449ab0..0000000Binary files a/styles/paper-lantern/demo/vo/L07.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L07.wav b/styles/paper-lantern/demo/vo/L07.wavdeleted file mode 100644index c6326cf..0000000Binary files a/styles/paper-lantern/demo/vo/L07.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L08.mp3 b/styles/paper-lantern/demo/vo/L08.mp3deleted file mode 100644index a7ef8f9..0000000Binary files a/styles/paper-lantern/demo/vo/L08.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L08.wav b/styles/paper-lantern/demo/vo/L08.wavdeleted file mode 100644index 86f014f..0000000Binary files a/styles/paper-lantern/demo/vo/L08.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L09.mp3 b/styles/paper-lantern/demo/vo/L09.mp3deleted file mode 100644index ed65273..0000000Binary files a/styles/paper-lantern/demo/vo/L09.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L09.wav b/styles/paper-lantern/demo/vo/L09.wavdeleted file mode 100644index 5bdfb72..0000000Binary files a/styles/paper-lantern/demo/vo/L09.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L10.mp3 b/styles/paper-lantern/demo/vo/L10.mp3deleted file mode 100644index 158ff56..0000000Binary files a/styles/paper-lantern/demo/vo/L10.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L10.wav b/styles/paper-lantern/demo/vo/L10.wavdeleted file mode 100644index 60718c9..0000000Binary files a/styles/paper-lantern/demo/vo/L10.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L11.mp3 b/styles/paper-lantern/demo/vo/L11.mp3deleted file mode 100644index 6684666..0000000Binary files a/styles/paper-lantern/demo/vo/L11.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L11.wav b/styles/paper-lantern/demo/vo/L11.wavdeleted file mode 100644index 91654b6..0000000Binary files a/styles/paper-lantern/demo/vo/L11.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L12.mp3 b/styles/paper-lantern/demo/vo/L12.mp3deleted file mode 100644index c45b596..0000000Binary files a/styles/paper-lantern/demo/vo/L12.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L12.wav b/styles/paper-lantern/demo/vo/L12.wavdeleted file mode 100644index a7e0ff6..0000000Binary files a/styles/paper-lantern/demo/vo/L12.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L13.mp3 b/styles/paper-lantern/demo/vo/L13.mp3deleted file mode 100644index 17a3832..0000000Binary files a/styles/paper-lantern/demo/vo/L13.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L13.wav b/styles/paper-lantern/demo/vo/L13.wavdeleted file mode 100644index a88f739..0000000Binary files a/styles/paper-lantern/demo/vo/L13.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L14.mp3 b/styles/paper-lantern/demo/vo/L14.mp3deleted file mode 100644index 9528fb4..0000000Binary files a/styles/paper-lantern/demo/vo/L14.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L14.wav b/styles/paper-lantern/demo/vo/L14.wavdeleted file mode 100644index 09da243..0000000Binary files a/styles/paper-lantern/demo/vo/L14.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L15.mp3 b/styles/paper-lantern/demo/vo/L15.mp3deleted file mode 100644index 62f70f4..0000000Binary files a/styles/paper-lantern/demo/vo/L15.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L15.wav b/styles/paper-lantern/demo/vo/L15.wavdeleted file mode 100644index 30158dd..0000000Binary files a/styles/paper-lantern/demo/vo/L15.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L16.mp3 b/styles/paper-lantern/demo/vo/L16.mp3deleted file mode 100644index 276d980..0000000Binary files a/styles/paper-lantern/demo/vo/L16.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L16.wav b/styles/paper-lantern/demo/vo/L16.wavdeleted file mode 100644index 9b14a67..0000000Binary files a/styles/paper-lantern/demo/vo/L16.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L17.mp3 b/styles/paper-lantern/demo/vo/L17.mp3deleted file mode 100644index 2f814c0..0000000Binary files a/styles/paper-lantern/demo/vo/L17.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L17.wav b/styles/paper-lantern/demo/vo/L17.wavdeleted file mode 100644index 7604778..0000000Binary files a/styles/paper-lantern/demo/vo/L17.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L18.mp3 b/styles/paper-lantern/demo/vo/L18.mp3deleted file mode 100644index 539aff4..0000000Binary files a/styles/paper-lantern/demo/vo/L18.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L18.wav b/styles/paper-lantern/demo/vo/L18.wavdeleted file mode 100644index 27dda0d..0000000Binary files a/styles/paper-lantern/demo/vo/L18.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L19.mp3 b/styles/paper-lantern/demo/vo/L19.mp3deleted file mode 100644index 9edfeff..0000000Binary files a/styles/paper-lantern/demo/vo/L19.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L19.wav b/styles/paper-lantern/demo/vo/L19.wavdeleted file mode 100644index 5f9c25c..0000000Binary files a/styles/paper-lantern/demo/vo/L19.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L20.mp3 b/styles/paper-lantern/demo/vo/L20.mp3deleted file mode 100644index 6e76c73..0000000Binary files a/styles/paper-lantern/demo/vo/L20.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L20.wav b/styles/paper-lantern/demo/vo/L20.wavdeleted file mode 100644index 7c9d5c9..0000000Binary files a/styles/paper-lantern/demo/vo/L20.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L21.mp3 b/styles/paper-lantern/demo/vo/L21.mp3deleted file mode 100644index a9b71ba..0000000Binary files a/styles/paper-lantern/demo/vo/L21.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L21.wav b/styles/paper-lantern/demo/vo/L21.wavdeleted file mode 100644index eca1a2d..0000000Binary files a/styles/paper-lantern/demo/vo/L21.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L22.mp3 b/styles/paper-lantern/demo/vo/L22.mp3deleted file mode 100644index 4760fcd..0000000Binary files a/styles/paper-lantern/demo/vo/L22.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L22.wav b/styles/paper-lantern/demo/vo/L22.wavdeleted file mode 100644index 3515077..0000000Binary files a/styles/paper-lantern/demo/vo/L22.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L23.mp3 b/styles/paper-lantern/demo/vo/L23.mp3deleted file mode 100644index 32ca650..0000000Binary files a/styles/paper-lantern/demo/vo/L23.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L23.wav b/styles/paper-lantern/demo/vo/L23.wavdeleted file mode 100644index e65c8d7..0000000Binary files a/styles/paper-lantern/demo/vo/L23.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L24.mp3 b/styles/paper-lantern/demo/vo/L24.mp3deleted file mode 100644index 79fbcf7..0000000Binary files a/styles/paper-lantern/demo/vo/L24.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L24.wav b/styles/paper-lantern/demo/vo/L24.wavdeleted file mode 100644index eca22e5..0000000Binary files a/styles/paper-lantern/demo/vo/L24.wav and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L25.mp3 b/styles/paper-lantern/demo/vo/L25.mp3deleted file mode 100644index 78ccc42..0000000Binary files a/styles/paper-lantern/demo/vo/L25.mp3 and /dev/null differdiff --git a/styles/paper-lantern/demo/vo/L25.wav b/styles/paper-lantern/demo/vo/L25.wavdeleted file mode 100644index 92285e5..0000000Binary files a/styles/paper-lantern/demo/vo/L25.wav and /dev/null differdiff --git a/styles/paper-lantern/style.json b/styles/paper-lantern/style.jsonnew file mode 100644index 0000000..7f62985--- /dev/null+++ b/styles/paper-lantern/style.json@@ -0,0 +1,18 @@+{+ "slug": "paper-lantern",+ "num": "10",+ "en": "Paper-cut Lightbox",+ "cn": "纸雕灯影",+ "category_en": "East Asian Traditions",+ "category_cn": "东方传统",+ "film": "A Mooncake's Longing",+ "line": "A single mooncake tells the Mid-Autumn story of reunion and longing inside a glowing paper-cut lightbox.",+ "line_cn": "一枚月饼讲中秋的团圆与思念,纸雕灯箱层层透光。",+ "uses": [+ "Festivals",+ "Gift brands",+ "Cultural stories"+ ],+ "frame_sec": 60.9,+ "dur": 121.8+}diff --git a/styles/paper-popup/DEMO.md b/styles/paper-popup/DEMO.mdnew file mode 100644index 0000000..d876fc7--- /dev/null+++ b/styles/paper-popup/DEMO.md@@ -0,0 +1,229 @@+# Paper Pop-up Book — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *The Little Sprite's Adventure* (*Pip's Paper Adventure*, 小精灵冒险记) (133.0 s, 1920×1080, 60 fps) · `paper-popup.mp4` · source in [`demo/`](demo/) · engine: three.js r170 (WebGL2) rendered frame by frame in headless Chrome, Canvas2D for all paper art, Python for score editing and mixing+++## Story & structure++A storybook opens on a real wooden desk and becomes a stage; at the end the hero jumps off the page into the real room.++How the demo used the native moves:++| Native power | Story use in the demo |+|---|---|+| **The book opens** | The opening is a physical ritual: a closed book, a creak, the cover swings up and the world pops up piece by piece with a sparkle. It is the "once upon a time". |+| **Page turn = scene change** | Each chapter is one spread. Transitions are real page turns: a curved sheet whose front is the old ground and whose back is the new sky, while the old pop-ups fold down and the new ones spring up. No cuts inside the book. |+| **Paper mechanisms** | Pull-tab tricks are story beats: a sun on a stick that rises from behind the hills and sinks at dusk, a door on a hinge, a river of three wave strips that slide, a sky of **four slats that flip from day to night** like a three-sided billboard, a moon and stars that drop in on strings. |+| **Paper as character** | A crumpled-up grump (Crumple) is **smoothed out** and poofs into a folded paper plane (Fold), who becomes a friend and later a vehicle. |+| **The edge of the page** | The last page is unfinished (pencil sketches, "The End" printed on the ground); the hero looks out past the edge, jumps, and lands on the real desk under the real lamp. |+| **The real light was always there** | At dusk "another light came on" is the actual desk lamp brightening over the page. The payoff: "a reading lamp… and someone, reading along." |++Story shape: real desk establishing (10 s) → book opens → Chapter 1 home world and the hero's wish (the light beyond the page) → Chapter 2 an obstacle character, beaten by stomping and then *helped* (smoothed out), who turns into a companion → Chapter 3 a journey with a gag (a whale spouts confetti) and a day → night flip → Final Chapter: the blank last page, fear, "Here goes!" → the companion catches the hero and they fly out over the desk → landing, reveal, "Hello, big world!" → end title on the desk with "The End?".++How we suggested adapting it at the time (kept for history; STYLE.md §11 now gives the range): make the topic's world the book's spreads (3–4 chapters, each with one paper mechanism), give the hero one wish that points *outside* the book, and end by crossing into the real room.++## Shots++A single virtual macro camera, fov 30 (56 for the reverse shot), keyed as `[t, pos xyz, target xyz, fov, aperture, focus]` in `main.js SH` and interpolated with a monotone cubic (`track`). Each inner list is one continuous shot; a new list = a hard cut.++| Beat | Camera |+|---|---|+| Establishing | High over the desk (1.1 m away), slow descending dolly towards the closed book; lamp dust motes in the light beam. |+| Book opens | Settles low and frontal on the page while the cover stands up; the sparkle rises. |+| In the book | Eye level with the paper actors: camera 5–10 cm above the page, 30–45 cm back, focus on the actor (aperture 2.2–2.5, shallow). Slow lateral moves that follow walks. |+| Page turn | Pull up and back to a 3/4 view of the whole spread (aperture 1.8–2, deeper) so the turning page reads, then drop into the new world. |+| Emotional close | Push in to 28 cm on the face (aperture 2.5). |+| Edge of the page | **Reverse shot**: camera behind Pip (fov 56, focus 11 cm) looking out past the page edge at the real, blurred room and the huge lamp. The only time we see "outside". |+| Flight out | Cut to a wide front view of the desk (1 m, fov 32); the plane is followed across the desk, then the camera settles low at Pip's height on the wood (aperture 4, focus ~0.52 m). |+| End | Slow pull back and up to reveal the whole desk, the open book behind, for the end title. |++Depth of field (`post.js`): CoC in pixels, max 14, 64-tap golden-angle spiral gather.++## Motion numbers++- Pop-ups: `back(seg(t, t0, t0+.55), 1.7)`; each piece's delay is `(.3 − z) × 1.2` s after its spread's `RISE` time; pieces near the back lie back (`dir −1`), others fall forward face-down (`dir +1`).+- Sway: `sin(1.6t + phase) × sway` around the base (0.01–0.08 rad).+- Characters: pose quantized to 1/40; eyes `open/happy/wide/closed/dizzy`, mouth `smile/open/o/grin/worried/determined`, blink every 3.7 s. Walk = legs swing by `sin(phase)`, bounce `|sin(phase)| × 1.2 mm`, arms counter-swing; phase advances 1.8 cm per half step. Turning: `S.face = cos(...)` animates the `scale.x` flip (FrontSide front drawing, BackSide back-of-head drawing).+- Jumps: `arc(t, t0, t1, a, b, h)` + squash on take-off and landing (`land`, `crouch` in `pipState`) + paper-puff cloud.+- Page turn (`book.setLeaf(u)`): 40-segment strip, `φ = θ·(1 − L·(s − ½))`, bend `L = .55·sin(πu)`, eased with `eio` over 2.3 s.+- Mechanisms: four sky slats flip 0.28 s apart; the door swings with `back()`; river strips slide ±12 mm on each "swish" of the narration.++## Score structure++- **Narration**: one warm storyteller, Kokoro `af_bella`, speed 0.9, en-us; 15 short lines (2–9 s), written like a picture book ("The cardboard hills. The paper sun on its wooden stick."). Lines pronounced differently from how they are displayed live in `tts/lines.json` (e.g. "Swish Swash Sea" without the hyphen; "..." instead of "…"); displayed text lives in `story.js VO`. Trim silence at 1 % of peak (+10 ms head, +100 ms tail). Every line checked with whisper (`asr.py`, `words.py` for word times to sync gags).+- **Character blips**: bubbles type at 30 chars/s, a blip every second letter; Pip = square wave, bright pitches (C6-ish), Crumple = low 180–240 Hz, Fold = triangle wave.+- **Music**: three Kevin MacLeod tracks (CC BY 4.0), edited in `music/edit.py`: *Dreamy Flashback* (0–16.2 s, fade out 1.6 s) for the real desk; *Jaunty Gumption* from 15.4 s for the whole paper world, with **one bar-aligned internal jump cut** (73.21 s → 102.79 s of the track, 0.42 s crossfade) chosen by `music/jump.py`/`jump2.py` (beat-synced chroma + MFCC self-similarity, cut length a multiple of 4 beats) so that the song's real ending lands at 104.22 s — the instant Pip jumps off the page; *Heartwarming* from its 39.38 s mark at 104.8 s (×1.15) for the real world and the end card.+- **Sound effects**, all synthesized in `mix.py` from `events.json` (250 events exported by `render.mjs events`): book creak + thump, pop-up pops (sine sweep + paper crinkle), page swish, door squeak, boing, hops, footsteps (tiny taps + crinkle on each walk half-cycle), paper roll, "!" bang, stomps, NICE/GREAT arpeggios, sparkles (bells), poof, paper folding, whoosh, splash, whale spout, slat clacks, star tinks, lamp switch + warm chord, landing skid. Per-type gains in the `G` table.+- **Ambience beds** per spread: room tone + clock ticks on the desk, birds + river in the valley, crickets at dusk, birds + leaf rustle in the forest, waves at sea, room tone on the last page and in the real world.+- **Mix**: voice high-passed 90 Hz, compressed (−24 dB, 3:1), limited, set 8.5 dB above the music in speech regions; music ducked by 40 % under speech (300 ms smoothing); 7 % reverb on voice; SFX limited per channel to 0.5; ambience ×2. Normalise to 0.89 peak, then `mux.sh` applies `loudnorm I=−14 TP=−1.2 LRA=11`.++## Palette & props++**Scale (metres):** book page 0.44 × 0.30 (`BW`, `BD`), page block height `PG` = 0.0175. Pip is `H = 0.036` tall, Crumple 0.042, the paper plane 0.052 long, the whale 0.10 wide, the boat 0.062. Hills 0.2–0.26 wide, trees 0.05–0.16 tall. Camera near plane 0.004 m.++**The desk:** walnut table, desk lamp, teacup, alarm clock, pencil, potted plant (Poly Haven CC0); `lythwood_lounge_2k.hdr` as environment and background (blurriness .22, yaw 2.3), walnut veneer (`#c9a88a` tint, env .8), a procedural pencil. The book: hardcover 44 × 30 cm, spine on the far side, the cover swings to 90° and stands behind the page as a painted sky.++**Cut-paper finish** (`paper.js finishCut(art, border, o)`), 16+ angles on three rings (r, .66r, .33r): grey cardboard edge `#b9ad9c`, border + 2.5 px, offset 1.5 px down; off-white border `#fffdf7`, 12–16 px (static props 14 px at 5200 px/m, characters 16 px); 512 px grain texture at alpha .5–.85.++**Drawing** (`art.js`): ink `#3a2a24`, outline 9 px (`LW`), detail 5 px (`LW2`); `crescent(x, path, shade, dx, dy, base)`; `blob`, `smoothClosed` with 3-harmonic noise. Faces: big black oval eyes with two white highlights, curved mouth, pink cheeks.++| Use | Colours |+|---|---|+| Home valley | grass `#86c763`→`#9fd57a`, hills `#b5e39a` `#a9dd8c` `#8fd06e` (shade `#6fb553`), path `#ecd49a`, sky `#7cc6ef`→`#c9ecf7` |+| Forest | ground `#4f8f46`→`#62a653`, back pines `#8cc9a0`, front pines `#3f9a5c`, sky `#a8e0cf` with light shafts |+| Sea | waves light→dark `#9ad8f5` `#79c3ee` `#58ade3` `#3f95d6` `#2f7fc4`, sky day `#4fb3ea`, night `#131d44`→`#4a5a94` |+| Last page | cream paper `#f5eedc`, graphite pencil lines `rgba(70,72,82,.45)`, IM Fell English "The End" |+| Hero Pip | skin `#ffe2bd` (shade `#f3c393`), leaf cap `#62c24c`/`#3e9a34`, tunic `#3fa1de`/`#2a78b3`, boots `#8a5530`, wings `#d4f3ff` |+| Accents | mushroom-house red `#e8413a`, sun `#ffd766`, sign/banner gold `#ffcf3f`, ribbon red `#d8423a` |+| Book | cloth `#1f5566`, gold foil `#e0b456` (metalness map), page edges `#efe6d2` with fine lines |++**Pop-up pieces** (`cutmesh.js cutMesh`): back colour `#efe8da` (or `#8a5a34` for the door) via `onBeforeCompile`; `alphaTest .5` + `alphaToCoverage`; `customDepthMaterial`. The boat = sail card behind + hull card in front; Fold = four triangles hinged on a keel.++**Fonts:** Fredoka 500/600/700 (subtitles, bubbles, signs), Lilita One (cover, chapter banners, action words, end title), IM Fell English (cover tagline, "The End", "The End?"), ZCOOL KuaiLe (Chinese). All OFL, downloaded to `demo/fonts/` by `fetch_fonts.mjs` (Chinese subset = only the characters in the source files).++**Titles and subtitles as built:**+- Narration subtitles (`hud.js drawSubs`): English Fredoka 500 40 px, cream `#fffaf0`, 8 px dark-brown outline, soft shadow, wrap at 1720 px; Chinese in ZCOOL KuaiLe 32 px below. Fade in 0.3 s before the line, hold until 0.25 s after the audio, fade 0.3 s.+- Speech bubbles (`drawBubbles`): radius 44, 6 px ink outline, soft drop shadow, tail projected from 3D every frame, pops in with `back()`, English at 30 chars/s (Fredoka 600 46 px), then the Chinese (ZCOOL KuaiLe 32 px, `#7a5e4c`) and a bobbing red "next" triangle.+- Chapter banners (`drawChapter`): a hanging cardboard sign on two strings, red ribbon "Chapter N", title in Lilita One 84 px gold `#ffcf3f` with a 12 px ink stroke, Chinese under it.+- Action words (`drawAction`, `drawBang`): "NICE!" / "GREAT!" in italic Lilita One 120 px, gradient fill, white + ink double stroke, rays; a red "!" over the startled hero.+- Title: the book cover (cloth texture + gold-foil "The Little Sprite's Adventure ~ a paper tale ~" with a roughness/metalness map, and a round Pip illustration).+- A bilingual `.srt` is generated from `story.js` (`make_srt.mjs`): narration + bubbles, English line then Chinese line.++## End card++`drawEnd`, from 123.4 s, over the live desk shot: title in Lilita One 96 px gold (y 170), Chinese title (y 262), italic "The End?" popping in (y 350), then from 127.6 s the sign-off and the asset credits (22 px, y 960/998/1036; the Chinese row uses `'"ZCOOL KuaiLe", Fredoka'`) fade in together; fade to black over the last 1.5 s.++The sign-off **"LemoLab × Claude Opus 5.5"** (× = U+00D7) belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card. In the demo it sits centred under "The End?" at y 430: Fredoka 600 36 px, cream `#fffaf0` fill with a 7 px `rgba(30,20,14,.75)` outline (it lies over the cream backdrop page, so the outline is what makes it read), fading in with the asset credits at 127.6 s, never covering the characters.++## Pitfalls tied to this demo++- **A single-plane boat hid the character sitting in it**: split into sail (behind, z −3 mm) and hull (in front, z +2 mm) with Pip between them.+- **Foreground blur**: forest ferns and a bush at 20.9 s filled the frame near the lens.+- **Mixer bug**: passing a stereo (N×2) array to a 1-D limiter silently crushed all SFX to −96 dB. Limit each channel separately.+- **Shadow settings that worked**: spot shadow map 4096², bias −6e-5, normalBias 4e-4. Leaf materials: emissive map = colour map, emissive .42.+- **Headless WebGL speed**: default Chrome uses SwiftShader (~620 ms/frame); `--use-angle=gl --enable-gpu --ignore-gpu-blocklist` gives tens of ms per frame on Apple Silicon. Serve over HTTP (`serve.mjs`, started inside `render.mjs`).+- **Poly Haven API**: Python `urllib` gets 403; download with `curl`.+- **Font subsetting**: `fetch_fonts.mjs` only includes characters present in `story.js/hud.js/main.js/art.js` at download time. The ZCOOL KuaiLe subset has no Latin glyphs, so Latin words in the Chinese credit row fell back to a system serif; use `'"ZCOOL KuaiLe", Fredoka'`.+- **Redraw cost**: Pip's canvases are redrawn only when the pose (quantized to 1/40) changes.++## Build notes++```+styles/paper-popup/demo/+ index.html importmap (three from demo/node_modules) + fonts.css + main.js+ main.js scene: renderer, HDRI, desk & props, book, particles, choreography (pipState/crumpleState/foldState),+ camera keys SH, lightsAt(t), sound-event list EV, window.render(t)+ story.js timeline (single source of truth): DUR, VO narration, BUB bubbles, CHAPTERS, CREDITS, OPEN, TURNS+ book.js the book (cover, spine, page blocks, ground/back pages, curling leaf), texOf()+ sets.js page art per spread (pages()), pop-up pieces (buildSets), sky slats, updatePops/riseOf, RISE/FOLD+ art.js all Canvas2D drawings: drawPip/drawPipBack, drawCrumple, drawWhale, props (hill, pine, mushHouse, …)+ paper.js canvas helpers: finishCut (white border + card edge + grain), paperFill, crescent, blob, sh+ cutmesh.js cutMesh (front art / back paper / cut-out shadow), blobShadow, thread, particles (InstancedMesh)+ actors.js makePip, makeCrumple, makeFold (foldable paper plane), makeWhale, makeBoat+ post.js DOF pass (CoC + 64-tap gather) → bloom → vignette/warmth → output+ hud.js 2D overlay: subtitles, bubbles, chapter banners, NICE/GREAT, "!", end card, blip times+ render.mjs stills / events / video (N workers → out/seg_*.mp4) serve.mjs static server+ tts/ lines.json + gen.py (all lines) / gen1.py (selected lines) → voices/*.wav + dur.json+ asr.py words.py whisper check / word timestamps music/edit.py score.wav mix.py mix.wav+ mux.sh segments + mix → ../paper-popup.mp4 make_srt.mjs → ../paper-popup.srt+```++All commands can be run from the repo root. Python = the repo `.venv` (numpy, scipy, soundfile, librosa, kokoro-onnx, faster-whisper are installed there).++```sh+D=styles/paper-popup/demo; PY=.venv/bin/python+# 0. once: fonts (re-run after changing Chinese text) and music+(cd $D && node fetch_fonts.mjs)+# download the three MP3s from incompetech.com into $D/music/, then convert to 48 kHz WAV:+for f in Dreamy_Flashback Jaunty_Gumption Heartwarming; do ffmpeg -y -i $D/music/$f.mp3 -ar 48000 -ac 2 $D/music/$f.wav; done+# 1. voice (Kokoro model is shared from core/tts/): all lines, or only some+$PY $D/tts/gen.py af_bella # → voices/v01..v15.wav + voices/dur.json+$PY $D/tts/gen1.py v04 v07 # regenerate selected lines+# 2. proof-listen+$PY $D/asr.py; $PY $D/words.py # whisper transcript / word timestamps for gag sync+# 3. timeline: edit story.js (VO start times use voices/dur.json), then check stills+node $D/render.mjs stills 6.5 30 61.8 82.6 118 # → demo/stills/t_*.jpg (STILLS_DIR=out/x to redirect)+# 4. score (only when the edit points change)+$PY $D/music/edit.py # → music/score.wav (jump-cut search: music/jump.py, jump2.py)+# 5. sound events + mix+node $D/render.mjs events # → events.json (250 events)+$PY $D/mix.py # → mix.wav (argument = other output path)+# 6. video: 7980 frames, N workers (8 used for the demo ≈ 2.5 min; use 2 when other jobs share the GPU)+node $D/render.mjs video 8 # → out/seg_0..7.mp4 + out/list.txt+# 7. mux (+ film grain noise=c0s=2, loudnorm −14 LUFS) and subtitles+zsh $D/mux.sh # → styles/paper-popup/paper-popup.mp4 (OUT=... to write elsewhere)+node $D/make_srt.mjs # → styles/paper-popup/paper-popup.srt+```+Helpers: `shot.mjs page.html out.png` (screenshot any page, e.g. `sheet.html` = character & prop model sheet), `probe.mjs '<js expr>'` (evaluate inside the loaded scene; `window.DBG` exposes pip/boat/fold/whale/book/cam), `gltest.mjs` (GPU flag benchmark), `tile.py` (contact sheet of stills), `music/survey.py` (tempo/loudness survey of candidate tracks). The generic `node core/render/still.mjs styles/paper-popup/demo 30` also works (the page uses only relative URLs).++## Engine reference++**Coordinates.** World = metres, y up; desk top at y = −PG relative to the page. `book.stage` is the page frame: x ∈ [−0.22, 0.22] left→right, z ∈ [0, 0.30] from the spine (far) to the reader (near), y up from the page. `book.sky` is the standing backdrop frame (after the cover opens): x as above, y ∈ [0, 0.30] up the backdrop, small +z = in front of it. Characters go in `book.stage`; hanging clouds/moon/stars go in `book.sky`.++| Module | Key API | Notes |+|---|---|---|+| `lib.js` | `seg(t,a,b)`, `ss`, `eio`, `eo`, `ei`, `back(t,s)`, `spring(t,k,z)`, `env(t,a,b,fi,fo)`, `mulberry(seed)`, `track([[t,[…]],…])` | all animation is `f(t)`; `track` = monotone cubic keyframes (camera, flight path) |+| `paper.js` | `cv(w,h)`, `finishCut(art, border=14, {paper, edge, grain, grainA})`, `paperFill(x,w,h,col,seed,mott)`, `crescent(x,pathFn,shade,dx,dy,base)`, `blob(x,cx,cy,rx,ry,wob,seed)`, `sh(x,fill,lw,stroke)`, `smoothClosed/smoothOpen`, `GRAIN`, `INK` | Canvas2D toolkit for anything paper |+| `art.js` | `cut(wm,hm,draw,{pad,border,ax,ay,raw})` → `{c,w,h,ax,ay}` at `PPM`=5200 px/m; props `hill(w,h,col,shade,seed,{bumps,dots})`, `lolliTree(h,col,shade,seed)`, `pine`, `bush`, `flower(h,petal,seed)`, `mushHouse(h)`, `door`, `windowGlow`, `sunOnStick(r,stick)`, `cloud(w,seed)`, `sign(w,text)`, `fence(w,h)`, `waveStrip(w,h,col,dark,seed,n)`, `boat(w,'sail'|'hull')`, `moon`, `star`, `island`, `mushroom`, `log`, `fern`, `sketchTree`, `sketchHouse`, `leafBit`, `bang`; characters `drawPip(x,pose)`, `drawPipBack`, `drawCrumple(x,{mood,blink,mouthOpen})`, `drawWhale(x,{happy})` | every prop returns an item for `cutMesh`; anchor (ax, ay) = bottom centre by default |+| `cutmesh.js` | `cutMesh(item,{s,backCol,shadow,tex})` → Group (origin = anchor), `blobShadow(r,a)`, `thread(len)`, `particles(geo,mat,n,(i,t)=>({x,y,z,rx,ry,rz,s,col})|null)` → InstancedMesh with `.userData.update(t)` | cut-out shadows, paper-coloured back |+| `book.js` | `coverCanvases(drawIcon)` → `{c,m}`; `makeBook(cover)` → `{root, stage, sky, groundMat, backMat, leafFront, leafBack, setOpen(θ), setLeaf(u), coverMat}`; `texOf(canvas,{linear})`; `BW BD PG` | `setOpen(π/2)` = fully open; set `groundMat.map`/`backMat.map` per spread; `setLeaf(0..1)` = page turn (0/1 hides the leaf) |+| `sets.js` | `pages()` → canvases `sky0 ground0 sky1 ground1 sky2day sky2night ground2 sky3 ground3` (2048 × 1396, `gx(x)`/`gz(z)` map metres to pixels); `buildSets(book)` → `{L, ex}`; `updatePops(L,t)`; `RISE[spread]`, `FOLD[spread]`; internal `popper(list, spread, parent, item, x, y, z, {d, dir, sway, ph, pop, ry})` | add a spread = page art + a block of `popper` calls with a new spread index, and extend `RISE/FOLD/TURNS` |+| `actors.js` | `makePip(H)` → `{root, body, shadow, pose(p), head()}`; `makeCrumple(D)`; `makeFold(L,S,KD)` → `{fold(f 0..1), drawFace(mood,blink)}`; `makeWhale(w)` → `{setHappy}`; `makeBoat(w)` | pose `p` = `{walk, stride, armL, armR, flap, eyes, mouth, look:[x,y], blink, lean}` |+| `post.js` | `makePost(renderer, scene, cam, w, h)` → `{composer, dof:{focus, aper, maxCoc}, bloom, vig:{uniforms:{amt,fade,warm}}}` | call `post.composer.render()` instead of `renderer.render` |+| `hud.js` | `drawSubs(ctx,t,dur)`, `drawBubbles(ctx,t,{who:[sx,sy]})`, `drawChapter`, `drawAction(ctx,t,[{t0,text,p,col}])`, `drawBang`, `drawEnd`, `blipTimes()` | all read `story.js`; draw on the 1920×1080 `#ov` canvas |++**Page contract** (what `render.mjs` needs): `window.READY = true` after assets load; `window.render(t)` draws second `t` deterministically; `window.DUR`; `window.EV = [{t, type, …}]` for `mix.py` (types listed in "Score structure"; add a new branch in `mix.py` for a new type).++**Minimal example** — a new spread with one pop-up hill, a hero walking on it and a page-turn camera, inside `main.js`-style code:++```js+import * as THREE from 'three';+import { makeBook, coverCanvases, texOf, BW, BD } from './book.js';+import { cutMesh } from './cutmesh.js';+import { makePip } from './actors.js';+import { makePost } from './post.js';+import * as A from './art.js';+import { cv, paperFill } from './paper.js';+import { seg, back, eio, track } from './lib.js';++const renderer = new THREE.WebGLRenderer({ antialias: false, preserveDrawingBuffer: true });+renderer.setSize(1920, 1080); renderer.shadowMap.enabled = true; renderer.shadowMap.type = THREE.PCFSoftShadowMap;+renderer.toneMapping = THREE.NeutralToneMapping; renderer.outputColorSpace = THREE.SRGBColorSpace;+document.getElementById('stage').appendChild(renderer.domElement);+const scene = new THREE.Scene(), cam = new THREE.PerspectiveCamera(30, 16 / 9, .004, 30);+const post = makePost(renderer, scene, cam, 1920, 1080);+// (load the HDRI + desk exactly as main.js lines 34–43)++const book = makeBook(coverCanvases((x, px, py, w, h) => { /* draw the cover medallion */ }));+scene.add(book.root);+const ground = cv(2048, 1396); paperFill(ground.getContext('2d'), 2048, 1396, '#9fd57a', 2);+book.groundMat.map = texOf(ground);++// a pop-up hill: lies flat (rotation.x = −π/2 · (1−k)) and springs up around its bottom edge+const hill = new THREE.Group(); hill.add(cutMesh(A.hill(.24, .075, '#b5e39a', '#93cc78', 11)));+hill.position.set(0, 0, .04); book.stage.add(hill);++const pip = makePip(); book.stage.add(pip.root, pip.shadow);+const camKeys = track([[0, [.0, .27, .78, 0, .1, .1]], [4, [0, .06, .38, 0, .04, .13]]]);+const sun = new THREE.DirectionalLight('#fff3e0', 2.6); sun.position.set(-.35, .55, .75); sun.castShadow = true;+Object.assign(sun.shadow.camera, { left: -.3, right: .3, top: .3, bottom: -.3 }); scene.add(sun);++window.render = t => {+ book.setOpen(Math.PI / 2 * eio(seg(t, .5, 3.1))); // cover swings up into the backdrop+ const k = back(seg(t, 3.0, 3.55), 1.7); // pop-up with overshoot+ hill.visible = k > .002; hill.rotation.x = -(Math.PI / 2) * (1 - k);+ const w = seg(t, 4, 7), ph = w * .15 / .018 * Math.PI * 2; // walk 15 cm, phase from distance+ pip.pose({ walk: ph, stride: w > 0 && w < 1 ? 1 : 0, armL: .25 + Math.sin(ph) * .5, armR: .25 - Math.sin(ph) * .5 });+ pip.root.position.set(-.1 + .15 * w, Math.abs(Math.sin(ph)) * .0012, .15);+ pip.shadow.position.set(pip.root.position.x, .0004, .15);+ const c = camKeys(t); cam.position.set(c[0], c[1], c[2]); cam.lookAt(c[3], c[4], c[5]); cam.updateProjectionMatrix();+ post.dof.focus = cam.position.distanceTo(new THREE.Vector3(c[3], c[4], c[5])); post.dof.aper = 2.3;+ scene.updateMatrixWorld(true); post.composer.render();+};+window.DUR = 8; window.EV = [{ t: .5, type: 'creak' }, { t: 3.1, type: 'pop' }];+window.READY = true;+```++To reuse the engine for a different film (your own story, not this one), copy the engine files, write a new `story.js` (lines, bubbles, chapters, `OPEN`, `TURNS`, `DUR`), replace the spreads in `sets.js` (`pages()` + `buildSets`), redraw characters in `art.js`, then re-key `pipState`, the camera list `SH` and `lightsAt` in `main.js`. Keep book/paper/cutmesh/post/render/mix unchanged.diff --git a/styles/paper-popup/STYLE.md b/styles/paper-popup/STYLE.mdindex 0b5032d..cf00194 100644--- a/styles/paper-popup/STYLE.md+++ b/styles/paper-popup/STYLE.md@@ -1,246 +1,117 @@# Paper Pop-up Book — Style Prompt-> A storybook opens on a real wooden desk and becomes a stage: flat cut-paper characters with white borders act in front of pop-up sets that spring up from the page, and at the end the hero jumps off the page into the real room.-> Demo: *The Little Sprite's Adventure* (*Pip's Paper Adventure*, 小精灵冒险记) (133.0 s, 1920×1080, 60 fps) · `paper-popup.mp4` · source in `demo/` · engine: three.js r170 (WebGL2) rendered frame by frame in headless Chrome, Canvas2D for all paper art, Python for score editing and mixing-> References (grammar only): the *Paper Mario* series (flat cut-paper actors with a white border in a 3D diorama, bubbles that type on with blips, "NICE!/GREAT!" action ratings); Robert Sabuda / Matthew Reinhart pop-up books (paper engineering: layered V-folds, pieces rising back to front, pull-tab mechanisms); macro "tiny world on a real desk" photography. Never copy their characters, logos, UI or music.+> A pop-up book on a real desk becomes a stage: flat cut-paper actors with white borders perform in front of paper sets that spring up from the page, under real lamp light and a real macro lens.+> References (grammar only): the *Paper Mario* series (flat cut-paper actors with a white border in a 3D diorama, bubbles that type on with blips, action ratings); Robert Sabuda / Matthew Reinhart pop-up books (layered V-folds, pieces rising back to front, pull-tabs); macro "tiny world on a real desk" photography. Never copy their characters, logos, UI or music, and never name them in the film.-You are directing a film in the **Paper Pop-up Book** style. The user gives you a topic. You decide everything else (story, spreads, characters, shots, timing, sound) and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not----+Two worlds in one frame. **The real world** at human scale: a photoreal surface lit by an HDRI room, a few real objects, a macro lens (shallow focus, warm practical light, soft contact shadows). **The paper world**: a hardcover book in that room; when it opens, one board stands up as the **backdrop** and the lower page is the ground. Every set piece is a **flat cut-paper card** that lies on the page and **pops up** around its bottom edge. Characters are cut paper too: a few centimetres tall, flat, with a thick off-white border, a grey cardboard edge and grain.++What sells it is the **mismatch of scale and material**: flat, saturated, outlined paper cartoons under real light, casting cut-out-shaped shadows and going soft in real lens blur. Keep the paper graphic; let light and lens make it real.++Not a papercut silhouette film (no one-colour lace, no backlight), not a 3D cartoon (nothing modelled round), not claymation (paper hinges, folds, curls and slides; it never squishes).++## 2. Materials & rendering++- **Real units** (metres): page 0.3–0.5 m wide, actors 3–5 cm, near plane a few mm, so HDRI, shadows and depth of field behave like a real macro shot.+- **Cut-paper finish**: Canvas2D art with a dark ink outline; its silhouette dilated (drawn at many angles on several rings, recoloured `source-in`) into a grey cardboard edge offset slightly down (thickness) and a wide off-white border; a shared paper grain on top (`source-atop`).+- **Drawing**: one dark-brown ink (never black), thick outline + thinner detail line, round joins; shading = one hard **crescent** (fill with shade, refill shifted with base); wobbly shapes (low-harmonic noise), never perfect geometry; simple faces.+- **Pop-up pieces**: planes with art on the front and plain paper on the back (same alpha); `alphaTest` + `alphaToCoverage`; a custom depth material with the alpha map so **the shadow is the cut-out silhouette**. Anything "3D" is several flat cards (front/back layers, triangles hinged on a keel).+- **The book** is modelled: cloth cover with foil title (roughness/metalness map), page block with edge lines, a curling leaf.+- **Real world**: HDRI environment and softly blurred background, real wood or fabric, a few CC0 props. **Neutral tone mapping** (ACES shifts paper colours).+- **Depth of field by hand**: CoC = aperture × (1/focus − 1/z), spiral gather that keeps far samples off a sharp foreground (stock bokeh looks fake at this scale); then light bloom, vignette, warmth.++## 3. Colour logic-## 1. What this style is+- Saturated children's-book colour, **never neon**; the real world stays natural and slightly warm so paper pops against it.+- **One dominant hue family per spread**, so a page turn is also a colour change; a few accents (a red, a yellow, a gold) recur across spreads to stitch the book together.+- Ink dark brown, border off-white, card backs plain paper.+- Unfinished or "outside the story" pages lose colour: graphite on cream. Night is a change of the paper art; the real lamp keeps its warmth.-Two worlds in one frame:+Examples of spread families: green meadow under sky blue; pink-and-lilac market with mint accents; ochre desert with a turquoise oasis.-1. **The real world**: a photoreal desk at human scale, lit by an HDRI room, with a walnut table, a desk lamp, a teacup, an alarm clock, a pencil and a potted plant (Poly Haven CC0). The camera behaves like a macro lens: shallow depth of field, warm lamp light, soft contact shadows.-2. **The paper world**: a hardcover book, 44 × 30 cm, lying on that desk. The spine is on the far side. When the cover opens it swings up to 90° and **stands upright behind the page as the backdrop** (a painted sky). The lower page is the ground. Every set piece is a **flat cut-paper card** that lies flat on the page and **pops up** around its bottom edge. The characters are cut-paper too: 3.6 cm tall, flat, with a thick off-white border, a grey cardboard edge and paper grain.+## 4. Type & subtitles-What sells it is the **mismatch in scale and material**: flat, saturated, outlined paper cartoons under real physical light. They cast real (cut-out shaped) shadows, catch the real lamp, and go soft in the real lens blur. Keep the paper flat and graphic, and let the light and the lens make it feel real.+- Rounded OFL faces: a rounded sans for subtitles, bubbles, signs (e.g. Fredoka); a chunky display face for cover, banners, action words (e.g. Lilita One); a storybook serif for taglines (e.g. IM Fell English); a playful Chinese face (e.g. ZCOOL KuaiLe) with the Latin face in its stack.+- **Narration subtitles**: bottom centre, ~40 px, cream with a thick dark-brown outline and soft shadow, second language smaller below. Hold ≥ max(1.8 s, speech + 0.6 s).+- **Speech bubbles** live in the paper world: white card, ink outline, tail projected each frame to the speaker; pop in with overshoot, type on with blips.+- **Titles are paper objects**: a cardboard sign dropping on strings and swinging; the cover itself is the film title. Action words (italic display, gradient, double stroke, rays) sparingly, like a game rating.+- Subset Chinese fonts to the characters used; re-subset after every text change.-## 2. Story: what fits this style+## 5. Motion quality-| Native power | Story use |-|---|---|-| **The book opens** | The opening is a physical ritual: a closed book, a creak, the cover swings up and the world pops up piece by piece with a sparkle. It is the "once upon a time". |-| **Page turn = scene change** | Each chapter is one spread. Transitions are real page turns: a curved sheet whose front is the old ground and whose back is the new sky, while the old pop-ups fold down and the new ones spring up. No cuts are needed inside the book. |-| **Paper mechanisms** | Pull-tab tricks are story beats: a sun on a stick that rises from behind the hills and sinks at dusk, a door on a hinge, a river of three wave strips that slide, a sky of **four slats that flip from day to night** like a three-sided billboard, a moon and stars that drop in on strings. |-| **Paper as character** | Characters are made *of* paper, so paper behaviour is their drama: a crumpled-up grump (Crumple) is **smoothed out** and poofs into a folded paper plane (Fold), who becomes a friend and later a vehicle. |-| **The edge of the page** | The biggest turn is crossing from paper to reality. The last page is unfinished (pencil sketches, "The End" printed on the ground); the hero looks out past the edge, jumps, and lands on the real desk under the real lamp. |-| **The real light was always there** | Plant the real world inside the story: at dusk "another light came on" is the actual desk lamp brightening over the page. The payoff reveals where it came from: "a reading lamp… and someone, reading along." |+- On ones (60 fps suits the smooth macro camera), all a pure function of `t`. Paper moves stiffly; life comes from easing: `back()` overshoot for pop-ups, springs for things on strings, squash and stretch on characters.+- **Pop-ups rise back to front** (delay grows with distance from the reader), far pieces lying back, near ones folding forward face-down; they fold down in the same order.+- Plants and light props sway a few hundredths of a radian around their base.+- **Characters are flat cards redrawn per quantized pose** (walk phase, arms, eyes, mouth, look, blink); walk phase follows distance walked, so feet don't slide.+- **Turning around = a `scale.x` flip** between front and back drawings; never `rotation.y`. Jumps: parabolic arcs, squash at both ends, a paper puff on landing.+- **Page turn**: a many-segment strip whose bend is integrated along its length, so it curls like paper.+- Never moves: the room.-**Story shape (proven in the demo):** real desk establishing (10 s) → book opens → Chapter 1 home world and the hero's wish (the light beyond the page) → Chapter 2 an obstacle character, beaten by stomping and then *helped* (smoothed out), who turns into a companion → Chapter 3 a journey with a gag (a whale spouts confetti) and a day → night flip → Final Chapter: the blank last page, fear, "Here goes!" → the companion catches the hero and they fly out over the desk → landing, reveal, "Hello, big world!" → end title on the desk with "The End?".+## 6. Camera grammar-Adapting any topic: make the topic's world the book's spreads (3–4 chapters, each with one paper mechanism), give the hero one wish that points *outside* the book, and end by crossing into the real room. A product story: the product is the reader's lamp/mug on the desk; a history: each era is a spread; a kids' lesson: the obstacle character is helped rather than defeated.--## 3. Visual language--**Scale (metres, real-world units):** book page 0.44 × 0.30 (`BW`, `BD`), page block height `PG` = 0.0175. Pip is `H = 0.036` tall, Crumple 0.042, the paper plane 0.052 long, the whale 0.10 wide, the boat 0.062. Hills are 0.2–0.26 wide, trees 0.05–0.16 tall. Camera near plane 0.004 m. Working in real units makes the HDRI, shadows and depth of field behave like a real macro shot.--**Cut-paper finish** (`paper.js finishCut(art, border, o)`): draw the art with a Canvas2D ink outline, then dilate its silhouette by drawing it at 16+ angles on three rings (r, .66r, .33r) and recolouring with `source-in`:-- grey cardboard edge `#b9ad9c`, border + 2.5 px, offset 1.5 px down (the paper's thickness)-- off-white paper border `#fffdf7`, 12–16 px (static props use 14 px at 5200 px/m, characters 16 px)-- the art on top, then the shared 512 px **paper grain** texture (random fibres + speckle) with `source-atop` at alpha .5–.85.--**Drawing rules** (`art.js`): ink `#3a2a24`, main outline 9 px (`LW`), detail lines 5 px (`LW2`), round joins. Shading is a single hard **crescent** (`crescent(x, path, shade, dx, dy, base)`: fill the shape with the shade colour, then refill it shifted by (−dx, −dy) with the base colour). Shapes are "wobbly" (`blob`, `smoothClosed` with 3-harmonic noise) so nothing is perfectly geometric. Faces are big black oval eyes with two white highlights, a curved mouth, pink cheeks.--**Palette** (saturated, children's-book, never neon):-| Use | Colours |-|---|---|-| Home valley | grass `#86c763`→`#9fd57a`, hills `#b5e39a` `#a9dd8c` `#8fd06e` (shade `#6fb553`), path `#ecd49a`, sky `#7cc6ef`→`#c9ecf7` |-| Forest | ground `#4f8f46`→`#62a653`, back pines `#8cc9a0`, front pines `#3f9a5c`, sky `#a8e0cf` with light shafts |-| Sea | waves light→dark `#9ad8f5` `#79c3ee` `#58ade3` `#3f95d6` `#2f7fc4`, sky day `#4fb3ea`, night `#131d44`→`#4a5a94` |-| Last page | cream paper `#f5eedc`, graphite pencil lines `rgba(70,72,82,.45)`, IM Fell English "The End" |-| Hero Pip | skin `#ffe2bd` (shade `#f3c393`), leaf cap `#62c24c`/`#3e9a34`, tunic `#3fa1de`/`#2a78b3`, boots `#8a5530`, wings `#d4f3ff` |-| Accents | mushroom-house red `#e8413a`, sun `#ffd766`, sign/banner gold `#ffcf3f`, ribbon red `#d8423a` |-| Book | cloth `#1f5566`, gold foil `#e0b456` (metalness map), page edges `#efe6d2` with fine lines |--**Pop-up pieces** (`cutmesh.js cutMesh`): a plane with the cut-paper texture; the **front** uses the art, the **back** uses the same alpha but a plain paper colour (`#efe8da`, or `#8a5a34` for the door) via `onBeforeCompile`; `alphaTest .5` + `alphaToCoverage` for clean MSAA edges; a `customDepthMaterial` with the same alpha map so the **shadow is the cut-out silhouette**, not a rectangle. Anything that should look 3D is built from several flat cards (the boat = sail card behind + hull card in front; Fold = four triangles hinged on a keel).--**Real world:** `lythwood_lounge_2k.hdr` as environment and background (blurriness .22, yaw 2.3), walnut veneer desk (`#c9a88a` tint, env .8), Poly Haven glTF props, a procedural pencil. Tone mapping **Neutral** (ACES desaturates and shifts the paper colours). Output sRGB.--**Fonts:** Fredoka 500/600/700 (subtitles, bubbles, signs), Lilita One (cover, chapter banners, action words, end title), IM Fell English (storybook serif: cover tagline, "The End", "The End?"), ZCOOL KuaiLe (Chinese). All OFL, downloaded to `demo/fonts/` by `fetch_fonts.mjs` (Chinese subset = only the characters in the source files).--## 4. Motion language--- **Everything runs on ones at 60 fps** and is a pure function of `t` (`window.render(t)`). Paper pieces move stiffly; the life comes from easing: `back()` overshoot for pop-ups (`back(seg(t, t0, t0+.55), 1.7)`), `spring()` for things dropping on strings (clouds, moon, stars), squash & stretch on characters (`land`, `crouch` in `pipState`).-- **Pop-ups rise back to front**: each piece's delay is `(.3 − z) × 1.2` s after its spread's `RISE` time, so the far hills stand first and the foreground flowers last (the set "unfolds towards you"). Pieces near the back lie back (`dir −1`), others fall forward face-down (`dir +1`). On a page turn they fold down again in z order.-- **Paper sway**: trees, ferns and flowers rock `sin(1.6t + phase) × sway` around their base (0.01–0.08 rad).-- **Characters are flat cards redrawn every pose**: the Canvas2D drawing is regenerated when the (quantized) pose changes: walk phase, arm angles, wing flap, eyes (`open/happy/wide/closed/dizzy`), mouth (`smile/open/o/grin/worried/determined`), look direction, blink every 3.7 s. Walk = legs swing by `sin(phase)`, a bounce `|sin(phase)| × 1.2 mm`, arms counter-swing; phase advances by distance walked (1.8 cm per half step), so feet don't slide.-- **Turning around = `scale.x` flip**, never `rotation.y`: the card has a front drawing (FrontSide) and a back-of-head drawing (BackSide); a negative `scale.x` flips which one faces the camera (`S.face = cos(...)` animates it like a card being turned).-- **Jumps** are parabolic arcs (`arc(t, t0, t1, a, b, h)`) with a squash on take-off and landing and a paper-puff cloud on landing.-- **Page turn** (`book.setLeaf(u)`): a 40-segment strip bent by integrating the angle along its arc length (`φ = θ·(1 − L·(s − ½))`, bend `L = .55·sin(πu)`), so the sheet curls like real paper instead of rotating as a board; eased with `eio` over 2.3 s.-- **Mechanisms**: the day→night sky is four slats that flip in sequence (0.28 s apart); the door swings on its hinge with `back()`; river strips slide ±12 mm on each "swish" of the narration.--## 5. Camera language--A single virtual macro camera, fov 30 (56 for the reverse shot), keyed as `[t, pos xyz, target xyz, fov, aperture, focus]` in `main.js SH` and interpolated with a monotone cubic (`track`). Each inner list is one continuous shot; a new list = a hard cut.--| Beat | Camera |-|---|---|-| Establishing | High over the desk (1.1 m away), slow descending dolly towards the closed book; lamp dust motes in the light beam. |-| Book opens | Settles low and frontal on the page while the cover stands up; the sparkle rises. |-| In the book | Eye level with the paper actors: camera 5–10 cm above the page, 30–45 cm back, focus on the actor (aperture 2.2–2.5, shallow). Slow lateral moves that follow walks. |-| Page turn | Pull up and back to a 3/4 view of the whole spread (aperture 1.8–2, deeper) so the turning page reads, then drop into the new world. |-| Emotional close | Push in to 28 cm on the face (aperture 2.5). |-| Edge of the page | **Reverse shot**: camera behind Pip (fov 56, focus 11 cm) looking out past the page edge at the real, blurred room and the huge lamp. The only time we see "outside". |-| Flight out | Cut to a wide front view of the desk (1 m, fov 32); the plane is followed across the desk, then the camera settles low at Pip's height on the wood (aperture 4, focus ~0.52 m). |-| End | Slow pull back and up to reveal the whole desk, the open book behind, for the end title. |--Depth of field is written by hand (`post.js`): CoC = aperture × (1/focus − 1/z) in pixels (max 14), then a 64-tap golden-angle spiral gather that stops far samples from bleeding onto sharp foreground. This beats three.js BokehPass, which looked fake at this scale.--## 6. Sound--- **Narration**: one warm storyteller, Kokoro `af_bella`, speed 0.9, en-us; 15 short lines (2–9 s). Written like a picture book ("The cardboard hills. The paper sun on its wooden stick."). Lines that must be pronounced differently from how they are displayed live in `tts/lines.json` (e.g. "Swish Swash Sea" without the hyphen; "..." instead of "…"); the displayed text lives in `story.js VO`. Trim silence at 1 % of peak (+10 ms head, +100 ms tail). Check every line with whisper (`asr.py`, `words.py` for word times to sync gags).-- **Character voices = typing blips** (no TTS): each speech bubble types on at 30 chars/s and every second letter plays a blip; Pip = square wave, bright pitches (C6-ish), Crumple = low 180–240 Hz, Fold = triangle wave.-- **Music**: three Kevin MacLeod tracks (CC BY 4.0), edited in `music/edit.py`: *Dreamy Flashback* (0–16.2 s, fade out 1.6 s) for the real desk; *Jaunty Gumption* from 15.4 s for the whole paper world, with **one bar-aligned internal jump cut** (73.21 s → 102.79 s of the track, 0.42 s crossfade) chosen by `music/jump.py`/`jump2.py` (beat-synced chroma + MFCC self-similarity, cut length a multiple of 4 beats) so that the song's real ending lands at 104.22 s — the instant Pip jumps off the page; *Heartwarming* from its 39.38 s mark at 104.8 s (×1.15) for the real world and the end card.-- **Sound effects are all synthesized** in `mix.py` from the page's event list (`events.json`, 250 events exported by `render.mjs events`): book creak + thump, pop-up pops (sine sweep + paper crinkle), page swish, door squeak, boing, hops, footsteps (tiny taps + crinkle on each walk half-cycle), paper roll, "!" bang, stomps, NICE/GREAT arpeggios, sparkles (bells), poof, paper folding, whoosh, splash, whale spout, slat clacks, star tinks, lamp switch + warm chord, landing skid. Per-type gains in the `G` table.-- **Ambience beds** per spread: room tone + clock ticks on the desk, birds + river in the valley, crickets at dusk, birds + leaf rustle in the forest, waves at sea, room tone on the last page and in the real world.-- **Mix**: voice high-passed 90 Hz, compressed (−24 dB, 3:1), limited, and set 8.5 dB above the music in speech regions; music ducked by 40 % under speech (300 ms smoothing); 7 % reverb on voice; SFX limited per channel to 0.5; ambience ×2. Normalise to 0.89 peak, then `mux.sh` applies `loudnorm I=−14 TP=−1.2 LRA=11`.--## 7. Subtitles & titles--- **Narration subtitles** (`hud.js drawSubs`): bottom centre, English Fredoka 500 40 px, cream `#fffaf0` with an 8 px dark-brown outline and a soft shadow, wrap at 1720 px; the Chinese line under it in ZCOOL KuaiLe 32 px. Fade in 0.3 s before the line, hold until 0.25 s after the audio, fade 0.3 s.-- **Speech bubbles** (`drawBubbles`): a rounded white card (radius 44, 6 px ink outline, soft drop shadow) with a tail to the speaker's head (projected from 3D every frame), pops in with `back()`, types the English at 30 chars/s (Fredoka 600 46 px), then fades in the Chinese (ZCOOL KuaiLe 32 px, `#7a5e4c`) and a bobbing red "next" triangle.-- **Chapter banners** (`drawChapter`): a hanging cardboard sign on two strings that drops in with overshoot and swings: red ribbon "Chapter N", title in Lilita One 84 px gold `#ffcf3f` with a 12 px ink stroke, Chinese under it.-- **Action words** (`drawAction`, `drawBang`): "NICE!" / "GREAT!" in italic Lilita One 120 px with a gradient fill, white + ink double stroke and a burst of rays; a red "!" over the startled hero.-- **Title**: the book cover itself (cloth texture + gold-foil "The Little Sprite's Adventure ~ a paper tale ~" with a roughness/metalness map, and a round Pip illustration).-- **End card** (`drawEnd`, from 123.4 s) over the live desk shot: title in Lilita One 96 px gold (y 170), Chinese title (y 262), italic "The End?" popping in (y 350), then from 127.6 s the sign-off and the asset credits (22 px, y 960/998/1036; the Chinese row uses `'"ZCOOL KuaiLe", Fredoka'`) fade in together; fade to black over the last 1.5 s.-- **Sign-off (required)**: every film ends with **"LemoLab × Claude Opus 5.5"** (× = U+00D7). In the demo it sits centred under "The End?" at y 430: Fredoka 600 36 px, cream `#fffaf0` fill with a 7 px `rgba(30,20,14,.75)` outline (it lies over the cream backdrop page, so the outline is what makes it read), fading in with the asset credits at 127.6 s. Keep the title and asset credits; never let the sign-off cover the characters.-- A bilingual `.srt` is generated from `story.js` (`make_srt.mjs`): narration + bubbles, English line then Chinese line.--## 8. Pitfalls we hit--- **Headless WebGL speed**: default Chrome uses SwiftShader (~620 ms/frame). Launch with `--use-angle=gl --enable-gpu --ignore-gpu-blocklist` (tens of ms per frame on Apple Silicon).-- **ES modules don't load over `file://`**: always serve the demo over HTTP (`serve.mjs`, started inside `render.mjs`).-- **Turning a character with `rotation.y`** shows the back of the card edge-on and then the paper-coloured back. Flip `scale.x` instead (front/back drawings swap automatically).-- **Negative scale flips a cut-paper card's front and back materials**: never mirror a prop with `flip` / `scale.x = −1`; draw a mirrored version instead.-- **A single-plane boat hid the character sitting in it**: split into sail (behind, z −3 mm) and hull (in front, z +2 mm) and put Pip between them. Same rule for any "inside" object.-- **Foreground pop-ups near the lens fill the frame with blur** (forest ferns, a bush at 20.9 s). Keep foreground pieces out of the camera path or lower the aperture for that shot.-- **Mixer bug**: passing a stereo (N×2) array to a 1-D limiter silently crushed all SFX to −96 dB. Limit each channel separately.-- **Shadows**: rectangle shadows ruin the paper illusion; every cut mesh needs `customDepthMaterial` with the alpha map. Spot shadow map 4096², bias −6e-5, normalBias 4e-4, or the thin cards shadow-acne.-- **The turning page went black** when facing away from the lights: give leaf materials an emissive map equal to their colour map (emissive .42).-- **Tone mapping**: ACES shifted the paper greens and reds; `NeutralToneMapping` keeps them.-- **Poly Haven API**: Python `urllib` gets 403; download with `curl`.-- **Chinese font subsetting**: `fetch_fonts.mjs` only includes characters present in `story.js/hud.js/main.js/art.js` at download time. Re-run it after changing any Chinese text or new characters render as tofu.-- **Font stacks for mixed text**: the ZCOOL KuaiLe subset has no Latin glyphs, so Latin words in a Chinese line fall back to a system serif (visible in the demo's Chinese credit row). Use `'"ZCOOL KuaiLe", Fredoka'`.-- **Redraw cost**: Pip's canvases are redrawn only when the pose (quantized to 1/40) changes; otherwise texture uploads dominate the frame time.--## 9. Production recipe (this repo)--```-styles/paper-popup/demo/- index.html importmap (three from demo/node_modules) + fonts.css + main.js- main.js scene: renderer, HDRI, desk & props, book, particles, choreography (pipState/crumpleState/foldState),- camera keys SH, lightsAt(t), sound-event list EV, window.render(t)- story.js timeline (single source of truth): DUR, VO narration, BUB bubbles, CHAPTERS, CREDITS, OPEN, TURNS- book.js the book (cover, spine, page blocks, ground/back pages, curling leaf), texOf()- sets.js page art per spread (pages()), pop-up pieces (buildSets), sky slats, updatePops/riseOf, RISE/FOLD- art.js all Canvas2D drawings: drawPip/drawPipBack, drawCrumple, drawWhale, props (hill, pine, mushHouse, …)- paper.js canvas helpers: finishCut (white border + card edge + grain), paperFill, crescent, blob, sh- cutmesh.js cutMesh (front art / back paper / cut-out shadow), blobShadow, thread, particles (InstancedMesh)- actors.js makePip, makeCrumple, makeFold (foldable paper plane), makeWhale, makeBoat- post.js DOF pass (CoC + 64-tap gather) → bloom → vignette/warmth → output- hud.js 2D overlay: subtitles, bubbles, chapter banners, NICE/GREAT, "!", end card, blip times- render.mjs stills / events / video (N workers → out/seg_*.mp4) serve.mjs static server- tts/ lines.json + gen.py (all lines) / gen1.py (selected lines) → voices/*.wav + dur.json- asr.py words.py whisper check / word timestamps music/edit.py score.wav mix.py mix.wav- mux.sh segments + mix → ../paper-popup.mp4 make_srt.mjs → ../paper-popup.srt-```--All commands can be run from the repo root. Python = the repo `.venv` (numpy, scipy, soundfile, librosa, kokoro-onnx, faster-whisper are installed there).--```sh-D=styles/paper-popup/demo; PY=.venv/bin/python-# 0. once: fonts (re-run after changing Chinese text) and music-(cd $D && node fetch_fonts.mjs)-# download the three MP3s from incompetech.com into $D/music/, then convert to 48 kHz WAV:-for f in Dreamy_Flashback Jaunty_Gumption Heartwarming; do ffmpeg -y -i $D/music/$f.mp3 -ar 48000 -ac 2 $D/music/$f.wav; done-# 1. voice (Kokoro model is shared from core/tts/): all lines, or only some-$PY $D/tts/gen.py af_bella # → voices/v01..v15.wav + voices/dur.json-$PY $D/tts/gen1.py v04 v07 # regenerate selected lines-# 2. proof-listen-$PY $D/asr.py; $PY $D/words.py # whisper transcript / word timestamps for gag sync-# 3. timeline: edit story.js (VO start times use voices/dur.json), then check stills-node $D/render.mjs stills 6.5 30 61.8 82.6 118 # → demo/stills/t_*.jpg (STILLS_DIR=out/x to redirect)-# 4. score (only when the edit points change)-$PY $D/music/edit.py # → music/score.wav (jump-cut search: music/jump.py, jump2.py)-# 5. sound events + mix-node $D/render.mjs events # → events.json (250 events)-$PY $D/mix.py # → mix.wav (argument = other output path)-# 6. video: 7980 frames, N workers (8 used for the demo ≈ 2.5 min; use 2 when other jobs share the GPU)-node $D/render.mjs video 8 # → out/seg_0..7.mp4 + out/list.txt-# 7. mux (+ film grain noise=c0s=2, loudnorm −14 LUFS) and subtitles-zsh $D/mux.sh # → styles/paper-popup/paper-popup.mp4 (OUT=... to write elsewhere)-node $D/make_srt.mjs # → styles/paper-popup/paper-popup.srt-```-Helpers: `shot.mjs page.html out.png` (screenshot any page, e.g. `sheet.html` = character & prop model sheet), `probe.mjs '<js expr>'` (evaluate inside the loaded scene; `window.DBG` exposes pip/boat/fold/whale/book/cam), `gltest.mjs` (GPU flag benchmark), `tile.py` (contact sheet of stills), `music/survey.py` (tempo/loudness survey of candidate tracks). The generic `node core/render/still.mjs styles/paper-popup/demo 30` also works (the page uses only relative URLs).--## 10. Engine usage--**Coordinates.** World = metres, y up; desk top at y = −PG relative to the page. `book.stage` is the page frame: x ∈ [−0.22, 0.22] left→right, z ∈ [0, 0.30] from the spine (far) to the reader (near), y up from the page. `book.sky` is the standing backdrop frame (after the cover opens): x as above, y ∈ [0, 0.30] up the backdrop, small +z = in front of it. Characters go in `book.stage`; hanging clouds/moon/stars go in `book.sky`.--| Module | Key API | Notes |+One virtual macro camera keyed as position / target / fov / aperture / focus with monotone-cubic interpolation; a new key list = a hard cut. A vocabulary, not a route. Opening and ending come from the topic.++| Move | What it expresses | Can serve ||---|---|---|-| `lib.js` | `seg(t,a,b)`, `ss`, `eio`, `eo`, `ei`, `back(t,s)`, `spring(t,k,z)`, `env(t,a,b,fi,fo)`, `mulberry(seed)`, `track([[t,[…]],…])` | all animation is `f(t)`; `track` = monotone cubic keyframes (camera, flight path) |-| `paper.js` | `cv(w,h)`, `finishCut(art, border=14, {paper, edge, grain, grainA})`, `paperFill(x,w,h,col,seed,mott)`, `crescent(x,pathFn,shade,dx,dy,base)`, `blob(x,cx,cy,rx,ry,wob,seed)`, `sh(x,fill,lw,stroke)`, `smoothClosed/smoothOpen`, `GRAIN`, `INK` | Canvas2D toolkit for anything paper |-| `art.js` | `cut(wm,hm,draw,{pad,border,ax,ay,raw})` → `{c,w,h,ax,ay}` at `PPM`=5200 px/m; props `hill(w,h,col,shade,seed,{bumps,dots})`, `lolliTree(h,col,shade,seed)`, `pine`, `bush`, `flower(h,petal,seed)`, `mushHouse(h)`, `door`, `windowGlow`, `sunOnStick(r,stick)`, `cloud(w,seed)`, `sign(w,text)`, `fence(w,h)`, `waveStrip(w,h,col,dark,seed,n)`, `boat(w,'sail'|'hull')`, `moon`, `star`, `island`, `mushroom`, `log`, `fern`, `sketchTree`, `sketchHouse`, `leafBit`, `bang`; characters `drawPip(x,pose)`, `drawPipBack`, `drawCrumple(x,{mood,blink,mouthOpen})`, `drawWhale(x,{happy})` | every prop returns an item for `cutMesh`; anchor (ax, ay) = bottom centre by default |-| `cutmesh.js` | `cutMesh(item,{s,backCol,shadow,tex})` → Group (origin = anchor), `blobShadow(r,a)`, `thread(len)`, `particles(geo,mat,n,(i,t)=>({x,y,z,rx,ry,rz,s,col})|null)` → InstancedMesh with `.userData.update(t)` | cut-out shadows, paper-coloured back |-| `book.js` | `coverCanvases(drawIcon)` → `{c,m}`; `makeBook(cover)` → `{root, stage, sky, groundMat, backMat, leafFront, leafBack, setOpen(θ), setLeaf(u), coverMat}`; `texOf(canvas,{linear})`; `BW BD PG` | `setOpen(π/2)` = fully open; set `groundMat.map`/`backMat.map` per spread; `setLeaf(0..1)` = page turn (0/1 hides the leaf) |-| `sets.js` | `pages()` → canvases `sky0 ground0 sky1 ground1 sky2day sky2night ground2 sky3 ground3` (2048 × 1396, `gx(x)`/`gz(z)` map metres to pixels); `buildSets(book)` → `{L, ex}`; `updatePops(L,t)`; `RISE[spread]`, `FOLD[spread]`; internal `popper(list, spread, parent, item, x, y, z, {d, dir, sway, ph, pop, ry})` | add a spread = page art + a block of `popper` calls with a new spread index, and extend `RISE/FOLD/TURNS` |-| `actors.js` | `makePip(H)` → `{root, body, shadow, pose(p), head()}`; `makeCrumple(D)`; `makeFold(L,S,KD)` → `{fold(f 0..1), drawFace(mood,blink)}`; `makeWhale(w)` → `{setHappy}`; `makeBoat(w)` | pose `p` = `{walk, stride, armL, armR, flap, eyes, mouth, look:[x,y], blink, lean}` |-| `post.js` | `makePost(renderer, scene, cam, w, h)` → `{composer, dof:{focus, aper, maxCoc}, bloom, vig:{uniforms:{amt,fade,warm}}}` | call `post.composer.render()` instead of `renderer.render` |-| `hud.js` | `drawSubs(ctx,t,dur)`, `drawBubbles(ctx,t,{who:[sx,sy]})`, `drawChapter`, `drawAction(ctx,t,[{t0,text,p,col}])`, `drawBang`, `drawEnd`, `blipTimes()` | all read `story.js`; draw on the 1920×1080 `#ov` canvas |--**Page contract** (what `render.mjs` needs): `window.READY = true` after assets load; `window.render(t)` draws second `t` deterministically; `window.DUR`; `window.EV = [{t, type, …}]` for `mix.py` (types listed in §6; add a new branch in `mix.py` for a new type).--**Minimal example** — a new spread with one pop-up hill, a hero walking on it and a page-turn camera, inside `main.js`-style code:--```js-import * as THREE from 'three';-import { makeBook, coverCanvases, texOf, BW, BD } from './book.js';-import { cutMesh } from './cutmesh.js';-import { makePip } from './actors.js';-import { makePost } from './post.js';-import * as A from './art.js';-import { cv, paperFill } from './paper.js';-import { seg, back, eio, track } from './lib.js';--const renderer = new THREE.WebGLRenderer({ antialias: false, preserveDrawingBuffer: true });-renderer.setSize(1920, 1080); renderer.shadowMap.enabled = true; renderer.shadowMap.type = THREE.PCFSoftShadowMap;-renderer.toneMapping = THREE.NeutralToneMapping; renderer.outputColorSpace = THREE.SRGBColorSpace;-document.getElementById('stage').appendChild(renderer.domElement);-const scene = new THREE.Scene(), cam = new THREE.PerspectiveCamera(30, 16 / 9, .004, 30);-const post = makePost(renderer, scene, cam, 1920, 1080);-// (load the HDRI + desk exactly as main.js lines 34–43)--const book = makeBook(coverCanvases((x, px, py, w, h) => { /* draw the cover medallion */ }));-scene.add(book.root);-const ground = cv(2048, 1396); paperFill(ground.getContext('2d'), 2048, 1396, '#9fd57a', 2);-book.groundMat.map = texOf(ground);--// a pop-up hill: lies flat (rotation.x = −π/2 · (1−k)) and springs up around its bottom edge-const hill = new THREE.Group(); hill.add(cutMesh(A.hill(.24, .075, '#b5e39a', '#93cc78', 11)));-hill.position.set(0, 0, .04); book.stage.add(hill);--const pip = makePip(); book.stage.add(pip.root, pip.shadow);-const camKeys = track([[0, [.0, .27, .78, 0, .1, .1]], [4, [0, .06, .38, 0, .04, .13]]]);-const sun = new THREE.DirectionalLight('#fff3e0', 2.6); sun.position.set(-.35, .55, .75); sun.castShadow = true;-Object.assign(sun.shadow.camera, { left: -.3, right: .3, top: .3, bottom: -.3 }); scene.add(sun);--window.render = t => {- book.setOpen(Math.PI / 2 * eio(seg(t, .5, 3.1))); // cover swings up into the backdrop- const k = back(seg(t, 3.0, 3.55), 1.7); // pop-up with overshoot- hill.visible = k > .002; hill.rotation.x = -(Math.PI / 2) * (1 - k);- const w = seg(t, 4, 7), ph = w * .15 / .018 * Math.PI * 2; // walk 15 cm, phase from distance- pip.pose({ walk: ph, stride: w > 0 && w < 1 ? 1 : 0, armL: .25 + Math.sin(ph) * .5, armR: .25 - Math.sin(ph) * .5 });- pip.root.position.set(-.1 + .15 * w, Math.abs(Math.sin(ph)) * .0012, .15);- pip.shadow.position.set(pip.root.position.x, .0004, .15);- const c = camKeys(t); cam.position.set(c[0], c[1], c[2]); cam.lookAt(c[3], c[4], c[5]); cam.updateProjectionMatrix();- post.dof.focus = cam.position.distanceTo(new THREE.Vector3(c[3], c[4], c[5])); post.dof.aper = 2.3;- scene.updateMatrixWorld(true); post.composer.render();-};-window.DUR = 8; window.EV = [{ t: .5, type: 'creak' }, { t: 3.1, type: 'pop' }];-window.READY = true;-```--For a full film, copy the demo, rewrite `story.js` (lines, bubbles, chapters, `OPEN`, `TURNS`, `DUR`), replace the spreads in `sets.js` (`pages()` + `buildSets`), redraw characters in `art.js`, then re-key `pipState`, the camera list `SH` and `lightsAt` in `main.js`. Keep book/paper/cutmesh/post/render/mix unchanged.+| Eye-level macro track, shallow focus | being inside the story at the actors' size | a walk; a conversation; a chase |+| Pull up to a 3/4 view of the spread | the mechanism, the map | a page turn; a new setting; a plan |+| Descending dolly from human height | entering the book's scale | an arrival; zooming into one part of a system |+| Push-in on a face | feeling | a wish; a fear; a decision |+| Reverse shot from inside the book to the blurred room | the world beyond the page is huge | curiosity; an outside threat; a reader watching |+| Rack focus paper ↔ real object | paper and reality touch | cause and effect; a real product in a paper story |+| Top-down over the open spread | a board game, a diagram | a route; two sides of the gutter compared |+| Locked frame on a pull-tab | the trick is the event | before/after; a count |+| Rising crane leaving the book small | scale, distance | aftermath; a summary; time passing |++Actors in focus, room objects as soft foreground or background; keep near pop-ups out of the lens path. Transitions: page turns, a book closing and reopening, a hard cut on a paper sound; never a video dissolve inside the book.++## 7. Sound palette++- **Paper foley is the signature**: page swish, cardboard thump, pop-up snap (short sine sweep + crinkle), fold and crease, pull-tab slide, footsteps as tiny taps with crinkle, slat flaps, string-drop tinks; the book's spine creak and closing thump. All synthesizable from the page's event list.+- **Character voices as typing blips**: one waveform and pitch range per character, a blip every other letter.+- **Narration**: one warm storyteller, picture-book sentences; pronunciations kept apart from displayed text.+- **Music**: whimsical, acoustic or toy-like: music box, pizzicato strings, clarinet, glockenspiel, ukulele, toy piano, brushes. Options: a warmer cue for anything in the real room; a bar-aligned internal edit of a library track so its ending lands on a picture event; a pull-tab's clicks setting a cue's pulse.+- **Ambience**: room tone and a clock for the room; one bed per spread for the paper world.+- **Silence** = the book held still with only room tone; before a turn that matters, or a hesitation.+- **Mix**: voice high-passed, compressed, well above music; music ducked under speech with smooth release; limit SFX per channel; −14 LUFS.++## 8. Native moves++A menu: use the ones your story needs.++- **The book opens**: creak, the board swings up, the world pops up back to front. *Fits content like:* a project launch; a first school day; a recipe book.+- **Page turn = scene change**: old pieces fold down as new ones spring up. *Fits content like:* stages of a process; a farm's seasons; chapters of a biography.+- **Pull-tab mechanisms**: flipping slats, a sun on a stick, sliding strips, a hinged door, pieces on strings. *Fits content like:* a forecast; old way/new way; a lock opening.+- **Paper as character**: crumpled, smoothed, refolded, torn, taped. *Fits content like:* a mistake becoming a lesson; recycling; a rejected draft becoming the design.+- **The edge of the page**: crossing between paper and the room, either way. *Fits content like:* a character stepping into a phone on the desk; a real object entering the story; a drawing coming true.+- **The real object plays a part**: a lamp as a sun, a mug as a tower. *Fits content like:* a product at home; the reader's presence; real clock time.+- **Typed bubbles and ratings**. *Fits content like:* a tutorial; a quiz; a small victory.++## 9. Pitfalls of the medium++- `rotation.y` shows a card edge-on, then its blank back → `scale.x` flip. Negative scale also swaps front/back materials → draw mirrored props instead.+- A one-plane container hides its contents → back card + front card, contents between.+- Near-lens foreground pop-ups fill the frame with blur → move them or close the aperture.+- Rectangle shadows kill the illusion → alpha-mapped depth material on every card; tight shadow bias and a big shadow map against acne on thin cards.+- A turning page goes black facing away from lights → emissive map = colour map.+- ACES shifts paper colours → Neutral.+- Headless Chrome falls back to software WebGL → GPU ANGLE flags; ES modules need HTTP.+- Redrawing character canvases each frame → redraw only on pose change.+- Chinese subsets miss new characters and Latin glyphs → re-subset; Latin face in the stack.++## 10. Engine++In `demo/` (three.js r170 + Canvas2D): `paper.js` (cut finish, grain, crescent, blobs), `cutmesh.js` (cut mesh with paper back and cut-out shadow, strings, particles), `book.js` (`setOpen(θ)`, `setLeaf(u)` curling page), `art.js` (drawings at a fixed px/m), `actors.js` (posable flat characters, a foldable plane), `sets.js` (spreads, back-to-front pop scheduling), `post.js` (hand DOF → bloom → vignette), `hud.js` (subtitles, bubbles, banners), `lib.js` (easing, `back`, `spring`, `track`), `render.mjs` (stills / events / video). API table and a minimal new-spread example: DEMO.md "Engine reference".++## 11. Variation space++You decide the book, the room, the characters (or none), the spreads and mechanisms, the opening, the ending, the camera path and each spread's palette. All far from our demo:++- Structures: **the almanac** (one spread per month or stage, each pull-tab left running so the book fills with motion); **two books facing each other**, characters trading objects across the gap; **one spread pulled again and again**, each pull a step of how something is made.+- Openings: **mid-turn** (a page already curling, we land in chapter three); **inside the gutter** (low along the fold as the first piece rises over the lens); **a mechanism alone** (a tab slides by itself before any character appears).+- Endings: **the book closes** (pieces fold in reverse, a puff of air, stillness); **one piece stays up** (everything folds but the card that is the point); **the shelf** (the camera finds this book among many).++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/paper-popup/demo/assets/alarm_clock_01/alarm_clock_01.bin b/styles/paper-popup/demo/assets/alarm_clock_01/alarm_clock_01.bindeleted file mode 100644index 64be074..0000000Binary files a/styles/paper-popup/demo/assets/alarm_clock_01/alarm_clock_01.bin and /dev/null differdiff --git a/styles/paper-popup/demo/assets/alarm_clock_01/alarm_clock_01.gltf b/styles/paper-popup/demo/assets/alarm_clock_01/alarm_clock_01.gltfdeleted file mode 100644index 6bae9c3..0000000--- a/styles/paper-popup/demo/assets/alarm_clock_01/alarm_clock_01.gltf+++ /dev/null@@ -1,544 +0,0 @@-{- "asset": {- "generator": "Khronos glTF Blender I/O v3.5.30",- "version": "2.0"- },- "scene": 0,- "scenes": [- {- "name": "Scene",- "nodes": [- 0,- 1,- 2,- 3- ]- }- ],- "nodes": [- {- "mesh": 0,- "name": "alarm_clock_01",- "rotation": [- -0.5,- -0.5,- -0.5,- 0.5- ],- "translation": [- 0,- 0.064597487449646,- 0- ]- },- {- "mesh": 1,- "name": "houd_hand",- "rotation": [- 0.39852431416511536,- 0.5841047167778015,- 0.5841047763824463,- 0.39852431416511536- ],- "translation": [- 0,- 0.064597487449646,- 0- ]- },- {- "mesh": 2,- "name": "minute_hand",- "rotation": [- 0.6842025518417358,- -0.17851309478282928,- -0.17851300537586212,- 0.6842025518417358- ],- "translation": [- 0,- 0.064597487449646,- 0- ]- },- {- "mesh": 3,- "name": "second_hand",- "rotation": [- -0.1445818543434143,- -0.6921676993370056,- -0.1445818692445755,- 0.6921676397323608- ],- "translation": [- 0,- 0.064597487449646,- 0- ]- }- ],- "materials": [- {- "doubleSided": true,- "name": "alarm_clock_01",- "normalTexture": {- "index": 0- },- "pbrMetallicRoughness": {- "baseColorTexture": {- "index": 1- },- "metallicRoughnessTexture": {- "index": 2- }- }- },- {- "alphaMode": "BLEND",- "doubleSided": true,- "name": "alarm_clock_01_Glass",- "normalTexture": {- "index": 3- },- "pbrMetallicRoughness": {- "baseColorTexture": {- "index": 4- },- "metallicRoughnessTexture": {- "index": 5- }- }- }- ],- "meshes": [- {- "name": "Cylinder.030",- "primitives": [- {- "attributes": {- "POSITION": 0,- "TEXCOORD_0": 1,- "NORMAL": 2- },- "indices": 3,- "material": 0- },- {- "attributes": {- "POSITION": 4,- "TEXCOORD_0": 5,- "NORMAL": 6- },- "indices": 7,- "material": 1- }- ]- },- {- "name": "Plane.012",- "primitives": [- {- "attributes": {- "POSITION": 8,- "TEXCOORD_0": 9,- "NORMAL": 10- },- "indices": 11,- "material": 0- }- ]- },- {- "name": "Plane.013",- "primitives": [- {- "attributes": {- "POSITION": 12,- "TEXCOORD_0": 13,- "NORMAL": 14- },- "indices": 15,- "material": 0- }- ]- },- {- "name": "Plane.014",- "primitives": [- {- "attributes": {- "POSITION": 16,- "TEXCOORD_0": 17,- "NORMAL": 18- },- "indices": 19,- "material": 0- }- ]- }- ],- "textures": [- {- "sampler": 0,- "source": 0- },- {- "sampler": 0,- "source": 1- },- {- "sampler": 0,- "source": 2- },- {- "sampler": 0,- "source": 3- },- {- "sampler": 0,- "source": 4- },- {- "sampler": 0,- "source": 5- }- ],- "images": [- {- "mimeType": "image/jpeg",- "name": "alarm_clock_01_nor_gl.png",- "uri": "textures/alarm_clock_01_nor_gl_1k.jpg"- },- {- "mimeType": "image/jpeg",- "name": "alarm_clock_01_diff.png",- "uri": "textures/alarm_clock_01_diff_1k.jpg"- },- {- "mimeType": "image/jpeg",- "name": "alarm_clock_01_metal.png-alarm_clock_01_rough.png",- "uri": "textures/alarm_clock_01_arm_1k.jpg"- },- {- "mimeType": "image/jpeg",- "name": "alarm_clock_01_nor_gl",- "uri": "textures/alarm_clock_01_nor_gl_1k.jpg"- },- {- "mimeType": "image/jpeg",- "name": "alarm_clock_01_diff",- "uri": "textures/alarm_clock_01_diff_1k.jpg"- },- {- "mimeType": "image/jpeg",- "name": "alarm_clock_01_metal-alarm_clock_01_rough",- "uri": "textures/alarm_clock_01_arm_1k.jpg"- }- ],- "accessors": [- {- "bufferView": 0,- "componentType": 5126,- "count": 6397,- "max": [- 0.037977274507284164,- 0.06582528352737427,- 0.10833010077476501- ],- "min": [- -0.024242693558335304,- -0.06582528352737427,- -0.06582528352737427- ],- "type": "VEC3"- },- {- "bufferView": 1,- "componentType": 5126,- "count": 6397,- "type": "VEC2"- },- {- "bufferView": 2,- "componentType": 5126,- "count": 6397,- "type": "VEC3"- },- {- "bufferView": 3,- "componentType": 5123,- "count": 23520,- "type": "SCALAR"- },- {- "bufferView": 4,- "componentType": 5126,- "count": 385,- "max": [- 0.04250587522983551,- 0.05906614288687706,- 0.05906614288687706- ],- "min": [- 0.030722396448254585,- -0.05906614288687706,- -0.05906613916158676- ],- "type": "VEC3"- },- {- "bufferView": 5,- "componentType": 5126,- "count": 385,- "type": "VEC2"- },- {- "bufferView": 6,- "componentType": 5126,- "count": 385,- "type": "VEC3"- },- {- "bufferView": 7,- "componentType": 5123,- "count": 2160,- "type": "SCALAR"- },- {- "bufferView": 8,- "componentType": 5126,- "count": 193,- "max": [- 0.004351007752120495,- 0.0254962295293808,- 0.0043509965762495995- ],- "min": [- -0.04333455115556717,- 0.02490372210741043,- -0.004351010546088219- ],- "type": "VEC3"- },- {- "bufferView": 9,- "componentType": 5126,- "count": 193,- "type": "VEC2"- },- {- "bufferView": 10,- "componentType": 5126,- "count": 193,- "type": "VEC3"- },- {- "bufferView": 11,- "componentType": 5123,- "count": 600,- "type": "SCALAR"- },- {- "bufferView": 12,- "componentType": 5126,- "count": 147,- "max": [- 0.004351008217781782,- 0.02489468827843666,- 0.004351007752120495- ],- "min": [- -0.05332012102007866,- 0.0242923591285944,- -0.004351000301539898- ],- "type": "VEC3"- },- {- "bufferView": 13,- "componentType": 5126,- "count": 147,- "type": "VEC2"- },- {- "bufferView": 14,- "componentType": 5126,- "count": 147,- "type": "VEC3"- },- {- "bufferView": 15,- "componentType": 5123,- "count": 456,- "type": "SCALAR"- },- {- "bufferView": 16,- "componentType": 5126,- "count": 81,- "max": [- 0.024226035922765732,- 0.05301994830369949,- 0.0033735933247953653- ],- "min": [- 0.024067969992756844,- -0.0033736019395291805,- -0.003373598912730813- ],- "type": "VEC3"- },- {- "bufferView": 17,- "componentType": 5126,- "count": 81,- "type": "VEC2"- },- {- "bufferView": 18,- "componentType": 5126,- "count": 81,- "type": "VEC3"- },- {- "bufferView": 19,- "componentType": 5123,- "count": 219,- "type": "SCALAR"- }- ],- "bufferViews": [- {- "buffer": 0,- "byteLength": 76764,- "byteOffset": 0,- "target": 34962- },- {- "buffer": 0,- "byteLength": 51176,- "byteOffset": 76764,- "target": 34962- },- {- "buffer": 0,- "byteLength": 76764,- "byteOffset": 127940,- "target": 34962- },- {- "buffer": 0,- "byteLength": 47040,- "byteOffset": 204704,- "target": 34963- },- {- "buffer": 0,- "byteLength": 4620,- "byteOffset": 251744,- "target": 34962- },- {- "buffer": 0,- "byteLength": 3080,- "byteOffset": 256364,- "target": 34962- },- {- "buffer": 0,- "byteLength": 4620,- "byteOffset": 259444,- "target": 34962- },- {- "buffer": 0,- "byteLength": 4320,- "byteOffset": 264064,- "target": 34963- },- {- "buffer": 0,- "byteLength": 2316,- "byteOffset": 268384,- "target": 34962- },- {- "buffer": 0,- "byteLength": 1544,- "byteOffset": 270700,- "target": 34962- },- {- "buffer": 0,- "byteLength": 2316,- "byteOffset": 272244,- "target": 34962- },- {- "buffer": 0,- "byteLength": 1200,- "byteOffset": 274560,- "target": 34963- },- {- "buffer": 0,- "byteLength": 1764,- "byteOffset": 275760,- "target": 34962- },- {- "buffer": 0,- "byteLength": 1176,- "byteOffset": 277524,- "target": 34962- },- {- "buffer": 0,- "byteLength": 1764,- "byteOffset": 278700,- "target": 34962- },- {- "buffer": 0,- "byteLength": 912,- "byteOffset": 280464,- "target": 34963- },- {- "buffer": 0,- "byteLength": 972,- "byteOffset": 281376,- "target": 34962- },- {- "buffer": 0,- "byteLength": 648,- "byteOffset": 282348,- "target": 34962- },- {- "buffer": 0,- "byteLength": 972,- "byteOffset": 282996,- "target": 34962- },- {- "buffer": 0,- "byteLength": 438,- "byteOffset": 283968,- "target": 34963- }- ],- "samplers": [- {- "magFilter": 9729,- "minFilter": 9987- }- ],- "buffers": [- {- "byteLength": 284408,- "uri": "alarm_clock_01.bin"- }- ]-}\ No newline at end of filediff --git a/styles/paper-popup/demo/assets/alarm_clock_01/textures/alarm_clock_01_arm_1k.jpg b/styles/paper-popup/demo/assets/alarm_clock_01/textures/alarm_clock_01_arm_1k.jpgdeleted file mode 100644index 9e99d4b..0000000Binary files a/styles/paper-popup/demo/assets/alarm_clock_01/textures/alarm_clock_01_arm_1k.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/assets/alarm_clock_01/textures/alarm_clock_01_diff_1k.jpg b/styles/paper-popup/demo/assets/alarm_clock_01/textures/alarm_clock_01_diff_1k.jpgdeleted file mode 100644index bda2b4b..0000000Binary files a/styles/paper-popup/demo/assets/alarm_clock_01/textures/alarm_clock_01_diff_1k.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/assets/alarm_clock_01/textures/alarm_clock_01_nor_gl_1k.jpg b/styles/paper-popup/demo/assets/alarm_clock_01/textures/alarm_clock_01_nor_gl_1k.jpgdeleted file mode 100644index b378ab0..0000000Binary files a/styles/paper-popup/demo/assets/alarm_clock_01/textures/alarm_clock_01_nor_gl_1k.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/assets/desk_lamp_arm_01/desk_lamp_arm_01.bin b/styles/paper-popup/demo/assets/desk_lamp_arm_01/desk_lamp_arm_01.bindeleted file mode 100644index 7258e27..0000000Binary files a/styles/paper-popup/demo/assets/desk_lamp_arm_01/desk_lamp_arm_01.bin and /dev/null differdiff --git a/styles/paper-popup/demo/assets/desk_lamp_arm_01/desk_lamp_arm_01.gltf b/styles/paper-popup/demo/assets/desk_lamp_arm_01/desk_lamp_arm_01.gltfdeleted file mode 100644index 29fb63a..0000000--- a/styles/paper-popup/demo/assets/desk_lamp_arm_01/desk_lamp_arm_01.gltf+++ /dev/null@@ -1,250 +0,0 @@-{- "asset": {- "generator": "Khronos glTF Blender I/O v3.2.40",- "version": "2.0"- },- "scene": 0,- "scenes": [- {- "name": "Scene",- "nodes": [- 0- ]- }- ],- "nodes": [- {- "mesh": 0,- "name": "desk_lamp_arm_01"- }- ],- "materials": [- {- "doubleSided": true,- "name": "desk_lamp_arm_01",- "normalTexture": {- "index": 0- },- "pbrMetallicRoughness": {- "baseColorTexture": {- "index": 1- },- "metallicRoughnessTexture": {- "index": 2- }- }- },- {- "doubleSided": true,- "emissiveFactor": [- 1,- 0.9837890267372131,- 0.649111270904541- ],- "name": "desk_lamp_arm_01_light",- "normalTexture": {- "index": 3- },- "pbrMetallicRoughness": {- "baseColorTexture": {- "index": 4- },- "metallicRoughnessTexture": {- "index": 5- }- }- }- ],- "meshes": [- {- "name": "Box.001",- "primitives": [- {- "attributes": {- "POSITION": 0,- "NORMAL": 1,- "TEXCOORD_0": 2- },- "indices": 3,- "material": 0- },- {- "attributes": {- "POSITION": 4,- "NORMAL": 5,- "TEXCOORD_0": 6- },- "indices": 7,- "material": 1- }- ]- }- ],- "textures": [- {- "sampler": 0,- "source": 0- },- {- "sampler": 0,- "source": 1- },- {- "sampler": 0,- "source": 2- },- {- "sampler": 0,- "source": 0- },- {- "sampler": 0,- "source": 1- },- {- "sampler": 0,- "source": 2- }- ],- "images": [- {- "mimeType": "image/jpeg",- "name": "desk_lamp_arm_01_nor_gl",- "uri": "textures/desk_lamp_arm_01_nor_gl_1k.jpg"- },- {- "mimeType": "image/jpeg",- "name": "desk_lamp_arm_01_diff",- "uri": "textures/desk_lamp_arm_01_diff_1k.jpg"- },- {- "mimeType": "image/jpeg",- "name": "desk_lamp_arm_01_metal-desk_lamp_arm_01_rough",- "uri": "textures/desk_lamp_arm_01_arm_1k.jpg"- }- ],- "accessors": [- {- "bufferView": 0,- "componentType": 5126,- "count": 17533,- "max": [- 0.08325615525245667,- 0.8046169281005859,- 0.3172350823879242- ],- "min": [- -0.11847317218780518,- -0.08799377083778381,- -0.29663750529289246- ],- "type": "VEC3"- },- {- "bufferView": 1,- "componentType": 5126,- "count": 17533,- "type": "VEC3"- },- {- "bufferView": 2,- "componentType": 5126,- "count": 17533,- "type": "VEC2"- },- {- "bufferView": 3,- "componentType": 5123,- "count": 67794,- "type": "SCALAR"- },- {- "bufferView": 4,- "componentType": 5126,- "count": 973,- "max": [- 0.027660036459565163,- 0.7424256801605225,- -0.1412101536989212- ],- "min": [- -0.03705751523375511,- 0.6487915515899658,- -0.21220247447490692- ],- "type": "VEC3"- },- {- "bufferView": 5,- "componentType": 5126,- "count": 973,- "type": "VEC3"- },- {- "bufferView": 6,- "componentType": 5126,- "count": 973,- "type": "VEC2"- },- {- "bufferView": 7,- "componentType": 5123,- "count": 4512,- "type": "SCALAR"- }- ],- "bufferViews": [- {- "buffer": 0,- "byteLength": 210396,- "byteOffset": 0- },- {- "buffer": 0,- "byteLength": 210396,- "byteOffset": 210396- },- {- "buffer": 0,- "byteLength": 140264,- "byteOffset": 420792- },- {- "buffer": 0,- "byteLength": 135588,- "byteOffset": 561056- },- {- "buffer": 0,- "byteLength": 11676,- "byteOffset": 696644- },- {- "buffer": 0,- "byteLength": 11676,- "byteOffset": 708320- },- {- "buffer": 0,- "byteLength": 7784,- "byteOffset": 719996- },- {- "buffer": 0,- "byteLength": 9024,- "byteOffset": 727780- }- ],- "samplers": [- {- "magFilter": 9729,- "minFilter": 9987- }- ],- "buffers": [- {- "byteLength": 736804,- "uri": "desk_lamp_arm_01.bin"- }- ]-}\ No newline at end of filediff --git a/styles/paper-popup/demo/assets/desk_lamp_arm_01/textures/desk_lamp_arm_01_arm_1k.jpg b/styles/paper-popup/demo/assets/desk_lamp_arm_01/textures/desk_lamp_arm_01_arm_1k.jpgdeleted file mode 100644index 954c769..0000000Binary files a/styles/paper-popup/demo/assets/desk_lamp_arm_01/textures/desk_lamp_arm_01_arm_1k.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/assets/desk_lamp_arm_01/textures/desk_lamp_arm_01_diff_1k.jpg b/styles/paper-popup/demo/assets/desk_lamp_arm_01/textures/desk_lamp_arm_01_diff_1k.jpgdeleted file mode 100644index a2eabe2..0000000Binary files a/styles/paper-popup/demo/assets/desk_lamp_arm_01/textures/desk_lamp_arm_01_diff_1k.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/assets/desk_lamp_arm_01/textures/desk_lamp_arm_01_nor_gl_1k.jpg b/styles/paper-popup/demo/assets/desk_lamp_arm_01/textures/desk_lamp_arm_01_nor_gl_1k.jpgdeleted file mode 100644index 6af8542..0000000Binary files a/styles/paper-popup/demo/assets/desk_lamp_arm_01/textures/desk_lamp_arm_01_nor_gl_1k.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/assets/potted_plant_04/potted_plant_04.bin b/styles/paper-popup/demo/assets/potted_plant_04/potted_plant_04.bindeleted file mode 100644index 248b478..0000000Binary files a/styles/paper-popup/demo/assets/potted_plant_04/potted_plant_04.bin and /dev/null differdiff --git a/styles/paper-popup/demo/assets/potted_plant_04/potted_plant_04.gltf b/styles/paper-popup/demo/assets/potted_plant_04/potted_plant_04.gltfdeleted file mode 100644index c3a1060..0000000--- a/styles/paper-popup/demo/assets/potted_plant_04/potted_plant_04.gltf+++ /dev/null@@ -1,391 +0,0 @@-{- "asset": {- "generator": "Khronos glTF Blender I/O v4.1.63",- "version": "2.0"- },- "scene": 0,- "scenes": [- {- "name": "Scene",- "nodes": [- 0,- 1,- 2,- 3- ]- }- ],- "nodes": [- {- "mesh": 0,- "name": "potted_plant_04_ground"- },- {- "mesh": 1,- "name": "potted_plant_04_dirt"- },- {- "mesh": 2,- "name": "potted_plant_04_plant"- },- {- "mesh": 3,- "name": "potted_plant_04_pot"- }- ],- "materials": [- {- "doubleSided": true,- "name": "potted_plant_04",- "normalTexture": {- "index": 0- },- "pbrMetallicRoughness": {- "baseColorTexture": {- "index": 1- },- "metallicFactor": 0,- "metallicRoughnessTexture": {- "index": 2- }- }- }- ],- "meshes": [- {- "name": "HaworthiaScan_Model_2.001",- "primitives": [- {- "attributes": {- "POSITION": 0,- "NORMAL": 1,- "TEXCOORD_0": 2- },- "indices": 3,- "material": 0- }- ]- },- {- "name": "Plane.118",- "primitives": [- {- "attributes": {- "POSITION": 4,- "NORMAL": 5,- "TEXCOORD_0": 6- },- "indices": 7,- "material": 0- }- ]- },- {- "name": "Plane.116",- "primitives": [- {- "attributes": {- "POSITION": 8,- "NORMAL": 9,- "TEXCOORD_0": 10- },- "indices": 11,- "material": 0- }- ]- },- {- "name": "Mesh",- "primitives": [- {- "attributes": {- "POSITION": 12,- "NORMAL": 13,- "TEXCOORD_0": 14- },- "indices": 15,- "material": 0- }- ]- }- ],- "textures": [- {- "sampler": 0,- "source": 0- },- {- "sampler": 0,- "source": 1- },- {- "sampler": 0,- "source": 2- }- ],- "images": [- {- "mimeType": "image/jpeg",- "name": "potted_plant_04_nor_gl",- "uri": "textures/potted_plant_04_nor_gl_1k.jpg"- },- {- "mimeType": "image/jpeg",- "name": "potted_plant_04_diff",- "uri": "textures/potted_plant_04_diff_1k.jpg"- },- {- "mimeType": "image/jpeg",- "name": "potted_plant_04_rough",- "uri": "textures/potted_plant_04_arm_1k.jpg"- }- ],- "accessors": [- {- "bufferView": 0,- "componentType": 5126,- "count": 846,- "max": [- 0.0730348601937294,- 0.15447069704532623,- 0.0733804777264595- ],- "min": [- -0.07429894804954529,- 0.13273943960666656,- -0.07550132274627686- ],- "type": "VEC3"- },- {- "bufferView": 1,- "componentType": 5126,- "count": 846,- "type": "VEC3"- },- {- "bufferView": 2,- "componentType": 5126,- "count": 846,- "type": "VEC2"- },- {- "bufferView": 3,- "componentType": 5123,- "count": 4140,- "type": "SCALAR"- },- {- "bufferView": 4,- "componentType": 5126,- "count": 320,- "max": [- 0.07750431448221207,- 0.15339542925357819,- 0.07759721577167511- ],- "min": [- -0.07887636125087738,- 0.13423533737659454,- -0.07863402366638184- ],- "type": "VEC3"- },- {- "bufferView": 5,- "componentType": 5126,- "count": 320,- "type": "VEC3"- },- {- "bufferView": 6,- "componentType": 5126,- "count": 320,- "type": "VEC2"- },- {- "bufferView": 7,- "componentType": 5123,- "count": 1233,- "type": "SCALAR"- },- {- "bufferView": 8,- "componentType": 5126,- "count": 2241,- "max": [- 0.08372806012630463,- 0.26783305406570435,- 0.1008082702755928- ],- "min": [- -0.06238364055752754,- 0.13549184799194336,- -0.07231908291578293- ],- "type": "VEC3"- },- {- "bufferView": 9,- "componentType": 5126,- "count": 2241,- "type": "VEC3"- },- {- "bufferView": 10,- "componentType": 5126,- "count": 2241,- "type": "VEC2"- },- {- "bufferView": 11,- "componentType": 5123,- "count": 10182,- "type": "SCALAR"- },- {- "bufferView": 12,- "componentType": 5126,- "count": 2475,- "max": [- 0.08394316583871841,- 0.15544982254505157,- 0.08394315838813782- ],- "min": [- -0.08394315838813782,- 0.0003753884811885655,- -0.08394315838813782- ],- "type": "VEC3"- },- {- "bufferView": 13,- "componentType": 5126,- "count": 2475,- "type": "VEC3"- },- {- "bufferView": 14,- "componentType": 5126,- "count": 2475,- "type": "VEC2"- },- {- "bufferView": 15,- "componentType": 5123,- "count": 11232,- "type": "SCALAR"- }- ],- "bufferViews": [- {- "buffer": 0,- "byteLength": 10152,- "byteOffset": 0,- "target": 34962- },- {- "buffer": 0,- "byteLength": 10152,- "byteOffset": 10152,- "target": 34962- },- {- "buffer": 0,- "byteLength": 6768,- "byteOffset": 20304,- "target": 34962- },- {- "buffer": 0,- "byteLength": 8280,- "byteOffset": 27072,- "target": 34963- },- {- "buffer": 0,- "byteLength": 3840,- "byteOffset": 35352,- "target": 34962- },- {- "buffer": 0,- "byteLength": 3840,- "byteOffset": 39192,- "target": 34962- },- {- "buffer": 0,- "byteLength": 2560,- "byteOffset": 43032,- "target": 34962- },- {- "buffer": 0,- "byteLength": 2466,- "byteOffset": 45592,- "target": 34963- },- {- "buffer": 0,- "byteLength": 26892,- "byteOffset": 48060,- "target": 34962- },- {- "buffer": 0,- "byteLength": 26892,- "byteOffset": 74952,- "target": 34962- },- {- "buffer": 0,- "byteLength": 17928,- "byteOffset": 101844,- "target": 34962- },- {- "buffer": 0,- "byteLength": 20364,- "byteOffset": 119772,- "target": 34963- },- {- "buffer": 0,- "byteLength": 29700,- "byteOffset": 140136,- "target": 34962- },- {- "buffer": 0,- "byteLength": 29700,- "byteOffset": 169836,- "target": 34962- },- {- "buffer": 0,- "byteLength": 19800,- "byteOffset": 199536,- "target": 34962- },- {- "buffer": 0,- "byteLength": 22464,- "byteOffset": 219336,- "target": 34963- }- ],- "samplers": [- {- "magFilter": 9729,- "minFilter": 9987- }- ],- "buffers": [- {- "byteLength": 241800,- "uri": "potted_plant_04.bin"- }- ]-}\ No newline at end of filediff --git a/styles/paper-popup/demo/assets/potted_plant_04/textures/potted_plant_04_arm_1k.jpg b/styles/paper-popup/demo/assets/potted_plant_04/textures/potted_plant_04_arm_1k.jpgdeleted file mode 100644index 4319432..0000000Binary files a/styles/paper-popup/demo/assets/potted_plant_04/textures/potted_plant_04_arm_1k.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/assets/potted_plant_04/textures/potted_plant_04_diff_1k.jpg b/styles/paper-popup/demo/assets/potted_plant_04/textures/potted_plant_04_diff_1k.jpgdeleted file mode 100644index b714459..0000000Binary files a/styles/paper-popup/demo/assets/potted_plant_04/textures/potted_plant_04_diff_1k.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/assets/potted_plant_04/textures/potted_plant_04_nor_gl_1k.jpg b/styles/paper-popup/demo/assets/potted_plant_04/textures/potted_plant_04_nor_gl_1k.jpgdeleted file mode 100644index 789df22..0000000Binary files a/styles/paper-popup/demo/assets/potted_plant_04/textures/potted_plant_04_nor_gl_1k.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/assets/tea_set_01/tea_set_01.bin b/styles/paper-popup/demo/assets/tea_set_01/tea_set_01.bindeleted file mode 100644index dab1411..0000000Binary files a/styles/paper-popup/demo/assets/tea_set_01/tea_set_01.bin and /dev/null differdiff --git a/styles/paper-popup/demo/assets/tea_set_01/tea_set_01.gltf b/styles/paper-popup/demo/assets/tea_set_01/tea_set_01.gltfdeleted file mode 100644index 6ec3643..0000000--- a/styles/paper-popup/demo/assets/tea_set_01/tea_set_01.gltf+++ /dev/null@@ -1,862 +0,0 @@-{- "asset": {- "generator": "Khronos glTF Blender I/O v1.6.16",- "version": "2.0"- },- "scene": 0,- "scenes": [- {- "name": "Scene",- "nodes": [- 0,- 1,- 2,- 3,- 4,- 5,- 6,- 7,- 8,- 9- ]- }- ],- "nodes": [- {- "mesh": 0,- "name": "tea_set_01_plate_large_square_01",- "translation": [- -0.3466275632381439,- 0,- -0.18865355849266052- ]- },- {- "mesh": 1,- "name": "tea_set_01_cup_small_01",- "translation": [- 0.15337243676185608,- 0,- 0.061346426606178284- ]- },- {- "mesh": 2,- "name": "tea_set_01_saucer_circular_03",- "translation": [- 0.4033724367618561,- 0,- -0.1886536180973053- ]- },- {- "mesh": 3,- "name": "tea_set_01_plate_large_circular_03",- "translation": [- -0.09662759304046631,- 0,- -0.18865357339382172- ]- },- {- "mesh": 4,- "name": "tea_set_01_sugar_cup_01",- "translation": [- -0.09662757068872452,- 0,- 0.061346426606178284- ]- },- {- "mesh": 5,- "name": "tea_set_01_teapot_01",- "translation": [- -0.3466275632381439,- 0,- 0.06134644150733948- ]- },- {- "mesh": 6,- "name": "tea_set_01_cup_small_02",- "translation": [- 0.40337246656417847,- 0,- 0.06134641170501709- ]- },- {- "mesh": 7,- "name": "tea_set_01_saucer_circular_04",- "translation": [- 0.15337242186069489,- 0,- -0.1886535882949829- ]- },- {- "mesh": 8,- "name": "tea_set_01_sugar_cup_01_lid",- "translation": [- -0.09662757068872452,- 0.0003039799630641937,- 0.061346426606178284- ]- },- {- "mesh": 9,- "name": "tea_set_01_teapot_01_lid",- "translation": [- -0.3466275632381439,- 0.0015413056826218963,- 0.06134644150733948- ]- }- ],- "materials": [- {- "doubleSided": true,- "name": "tea_set_01",- "normalTexture": {- "index": 0- },- "pbrMetallicRoughness": {- "baseColorTexture": {- "index": 1- },- "metallicRoughnessTexture": {- "index": 2- }- }- }- ],- "meshes": [- {- "name": "Circle.009",- "primitives": [- {- "attributes": {- "POSITION": 0,- "NORMAL": 1,- "TEXCOORD_0": 2- },- "indices": 3,- "material": 0- }- ]- },- {- "name": "Circle.012",- "primitives": [- {- "attributes": {- "POSITION": 4,- "NORMAL": 5,- "TEXCOORD_0": 6- },- "indices": 7,- "material": 0- }- ]- },- {- "name": "Circle.022",- "primitives": [- {- "attributes": {- "POSITION": 8,- "NORMAL": 9,- "TEXCOORD_0": 10- },- "indices": 11,- "material": 0- }- ]- },- {- "name": "Circle.023",- "primitives": [- {- "attributes": {- "POSITION": 12,- "NORMAL": 13,- "TEXCOORD_0": 14- },- "indices": 15,- "material": 0- }- ]- },- {- "name": "Circle.027",- "primitives": [- {- "attributes": {- "POSITION": 16,- "NORMAL": 17,- "TEXCOORD_0": 18- },- "indices": 19,- "material": 0- }- ]- },- {- "name": "Circle.001",- "primitives": [- {- "attributes": {- "POSITION": 20,- "NORMAL": 21,- "TEXCOORD_0": 22- },- "indices": 23,- "material": 0- }- ]- },- {- "name": "Circle.003",- "primitives": [- {- "attributes": {- "POSITION": 24,- "NORMAL": 25,- "TEXCOORD_0": 26- },- "indices": 27,- "material": 0- }- ]- },- {- "name": "Circle.002",- "primitives": [- {- "attributes": {- "POSITION": 28,- "NORMAL": 29,- "TEXCOORD_0": 30- },- "indices": 31,- "material": 0- }- ]- },- {- "name": "Circle.004",- "primitives": [- {- "attributes": {- "POSITION": 32,- "NORMAL": 33,- "TEXCOORD_0": 34- },- "indices": 35,- "material": 0- }- ]- },- {- "name": "Circle.005",- "primitives": [- {- "attributes": {- "POSITION": 36,- "NORMAL": 37,- "TEXCOORD_0": 38- },- "indices": 39,- "material": 0- }- ]- }- ],- "textures": [- {- "sampler": 0,- "source": 0- },- {- "sampler": 0,- "source": 1- },- {- "sampler": 0,- "source": 2- }- ],- "images": [- {- "mimeType": "image/jpeg",- "name": "tea_set_01_nor_gl",- "uri": "textures/tea_set_01_nor_gl_1k.jpg"- },- {- "mimeType": "image/jpeg",- "name": "tea_set_01_diff",- "uri": "textures/tea_set_01_diff_1k.jpg"- },- {- "mimeType": "image/jpeg",- "name": "tea_set_01_metal-tea_set_01_rough",- "uri": "textures/tea_set_01_arm_1k.jpg"- }- ],- "accessors": [- {- "bufferView": 0,- "componentType": 5126,- "count": 1634,- "max": [- 0.09400609880685806,- 0.01688862405717373,- 0.09495928883552551- ],- "min": [- -0.09400609880685806,- -0.0008325735689140856,- -0.09495928883552551- ],- "type": "VEC3"- },- {- "bufferView": 1,- "componentType": 5126,- "count": 1634,- "type": "VEC3"- },- {- "bufferView": 2,- "componentType": 5126,- "count": 1634,- "type": "VEC2"- },- {- "bufferView": 3,- "componentType": 5123,- "count": 9504,- "type": "SCALAR"- },- {- "bufferView": 4,- "componentType": 5126,- "count": 2328,- "max": [- 0.05345918610692024,- 0.0697360709309578,- 0.053459182381629944- ],- "min": [- -0.05345918610692024,- 0.002385602565482259,- -0.07950614392757416- ],- "type": "VEC3"- },- {- "bufferView": 5,- "componentType": 5126,- "count": 2328,- "type": "VEC3"- },- {- "bufferView": 6,- "componentType": 5126,- "count": 2328,- "type": "VEC2"- },- {- "bufferView": 7,- "componentType": 5123,- "count": 12468,- "type": "SCALAR"- },- {- "bufferView": 8,- "componentType": 5126,- "count": 1490,- "max": [- 0.07447617501020432,- 0.015210483223199844,- 0.0744762048125267- ],- "min": [- -0.0744761973619461,- -0.0007006535306572914,- -0.0744762048125267- ],- "type": "VEC3"- },- {- "bufferView": 9,- "componentType": 5126,- "count": 1490,- "type": "VEC3"- },- {- "bufferView": 10,- "componentType": 5126,- "count": 1490,- "type": "VEC2"- },- {- "bufferView": 11,- "componentType": 5123,- "count": 8640,- "type": "SCALAR"- },- {- "bufferView": 12,- "componentType": 5126,- "count": 1634,- "max": [- 0.09375955909490585,- 0.016888633370399475,- 0.09375956654548645- ],- "min": [- -0.09375956654548645,- -0.0008325648959726095,- -0.09375958144664764- ],- "type": "VEC3"- },- {- "bufferView": 13,- "componentType": 5126,- "count": 1634,- "type": "VEC3"- },- {- "bufferView": 14,- "componentType": 5126,- "count": 1634,- "type": "VEC2"- },- {- "bufferView": 15,- "componentType": 5123,- "count": 9504,- "type": "SCALAR"- },- {- "bufferView": 16,- "componentType": 5126,- "count": 2926,- "max": [- 0.0508304201066494,- 0.06985670328140259,- 0.07091706991195679- ],- "min": [- -0.0508304126560688,- 0.002385602565482259,- -0.07091706991195679- ],- "type": "VEC3"- },- {- "bufferView": 17,- "componentType": 5126,- "count": 2926,- "type": "VEC3"- },- {- "bufferView": 18,- "componentType": 5126,- "count": 2926,- "type": "VEC2"- },- {- "bufferView": 19,- "componentType": 5123,- "count": 15552,- "type": "SCALAR"- },- {- "bufferView": 20,- "componentType": 5126,- "count": 4697,- "max": [- 0.08237607032060623,- 0.12179280817508698,- 0.13891728222370148- ],- "min": [- -0.08237607032060623,- -0.00018621094932314008,- -0.128876730799675- ],- "type": "VEC3"- },- {- "bufferView": 21,- "componentType": 5126,- "count": 4697,- "type": "VEC3"- },- {- "bufferView": 22,- "componentType": 5126,- "count": 4697,- "type": "VEC2"- },- {- "bufferView": 23,- "componentType": 5123,- "count": 25296,- "type": "SCALAR"- },- {- "bufferView": 24,- "componentType": 5126,- "count": 2328,- "max": [- 0.05345918610692024,- 0.0697360709309578,- 0.053459182381629944- ],- "min": [- -0.05345918610692024,- 0.002385602565482259,- -0.07950614392757416- ],- "type": "VEC3"- },- {- "bufferView": 25,- "componentType": 5126,- "count": 2328,- "type": "VEC3"- },- {- "bufferView": 26,- "componentType": 5126,- "count": 2328,- "type": "VEC2"- },- {- "bufferView": 27,- "componentType": 5123,- "count": 12468,- "type": "SCALAR"- },- {- "bufferView": 28,- "componentType": 5126,- "count": 1490,- "max": [- 0.07447617501020432,- 0.015210483223199844,- 0.0744762048125267- ],- "min": [- -0.0744761973619461,- -0.0007006535306572914,- -0.0744762048125267- ],- "type": "VEC3"- },- {- "bufferView": 29,- "componentType": 5126,- "count": 1490,- "type": "VEC3"- },- {- "bufferView": 30,- "componentType": 5126,- "count": 1490,- "type": "VEC2"- },- {- "bufferView": 31,- "componentType": 5123,- "count": 8640,- "type": "SCALAR"- },- {- "bufferView": 32,- "componentType": 5126,- "count": 1385,- "max": [- 0.048947423696517944,- 0.10231786966323853,- 0.04894748330116272- ],- "min": [- -0.04894746094942093,- 0.06854259967803955,- -0.04894740879535675- ],- "type": "VEC3"- },- {- "bufferView": 33,- "componentType": 5126,- "count": 1385,- "type": "VEC3"- },- {- "bufferView": 34,- "componentType": 5126,- "count": 1385,- "type": "VEC2"- },- {- "bufferView": 35,- "componentType": 5123,- "count": 7680,- "type": "SCALAR"- },- {- "bufferView": 36,- "componentType": 5126,- "count": 1963,- "max": [- 0.06268994510173798,- 0.16261917352676392,- 0.06098145246505737- ],- "min": [- -0.06268994510173798,- 0.11304481327533722,- -0.06439840793609619- ],- "type": "VEC3"- },- {- "bufferView": 37,- "componentType": 5126,- "count": 1963,- "type": "VEC3"- },- {- "bufferView": 38,- "componentType": 5126,- "count": 1963,- "type": "VEC2"- },- {- "bufferView": 39,- "componentType": 5123,- "count": 11136,- "type": "SCALAR"- }- ],- "bufferViews": [- {- "buffer": 0,- "byteLength": 19608,- "byteOffset": 0- },- {- "buffer": 0,- "byteLength": 19608,- "byteOffset": 19608- },- {- "buffer": 0,- "byteLength": 13072,- "byteOffset": 39216- },- {- "buffer": 0,- "byteLength": 19008,- "byteOffset": 52288- },- {- "buffer": 0,- "byteLength": 27936,- "byteOffset": 71296- },- {- "buffer": 0,- "byteLength": 27936,- "byteOffset": 99232- },- {- "buffer": 0,- "byteLength": 18624,- "byteOffset": 127168- },- {- "buffer": 0,- "byteLength": 24936,- "byteOffset": 145792- },- {- "buffer": 0,- "byteLength": 17880,- "byteOffset": 170728- },- {- "buffer": 0,- "byteLength": 17880,- "byteOffset": 188608- },- {- "buffer": 0,- "byteLength": 11920,- "byteOffset": 206488- },- {- "buffer": 0,- "byteLength": 17280,- "byteOffset": 218408- },- {- "buffer": 0,- "byteLength": 19608,- "byteOffset": 235688- },- {- "buffer": 0,- "byteLength": 19608,- "byteOffset": 255296- },- {- "buffer": 0,- "byteLength": 13072,- "byteOffset": 274904- },- {- "buffer": 0,- "byteLength": 19008,- "byteOffset": 287976- },- {- "buffer": 0,- "byteLength": 35112,- "byteOffset": 306984- },- {- "buffer": 0,- "byteLength": 35112,- "byteOffset": 342096- },- {- "buffer": 0,- "byteLength": 23408,- "byteOffset": 377208- },- {- "buffer": 0,- "byteLength": 31104,- "byteOffset": 400616- },- {- "buffer": 0,- "byteLength": 56364,- "byteOffset": 431720- },- {- "buffer": 0,- "byteLength": 56364,- "byteOffset": 488084- },- {- "buffer": 0,- "byteLength": 37576,- "byteOffset": 544448- },- {- "buffer": 0,- "byteLength": 50592,- "byteOffset": 582024- },- {- "buffer": 0,- "byteLength": 27936,- "byteOffset": 632616- },- {- "buffer": 0,- "byteLength": 27936,- "byteOffset": 660552- },- {- "buffer": 0,- "byteLength": 18624,- "byteOffset": 688488- },- {- "buffer": 0,- "byteLength": 24936,- "byteOffset": 707112- },- {- "buffer": 0,- "byteLength": 17880,- "byteOffset": 732048- },- {- "buffer": 0,- "byteLength": 17880,- "byteOffset": 749928- },- {- "buffer": 0,- "byteLength": 11920,- "byteOffset": 767808- },- {- "buffer": 0,- "byteLength": 17280,- "byteOffset": 779728- },- {- "buffer": 0,- "byteLength": 16620,- "byteOffset": 797008- },- {- "buffer": 0,- "byteLength": 16620,- "byteOffset": 813628- },- {- "buffer": 0,- "byteLength": 11080,- "byteOffset": 830248- },- {- "buffer": 0,- "byteLength": 15360,- "byteOffset": 841328- },- {- "buffer": 0,- "byteLength": 23556,- "byteOffset": 856688- },- {- "buffer": 0,- "byteLength": 23556,- "byteOffset": 880244- },- {- "buffer": 0,- "byteLength": 15704,- "byteOffset": 903800- },- {- "buffer": 0,- "byteLength": 22272,- "byteOffset": 919504- }- ],- "samplers": [- {- "magFilter": 9729,- "minFilter": 9987- }- ],- "buffers": [- {- "byteLength": 941776,- "uri": "tea_set_01.bin"- }- ]-}\ No newline at end of filediff --git a/styles/paper-popup/demo/assets/tea_set_01/textures/tea_set_01_arm_1k.jpg b/styles/paper-popup/demo/assets/tea_set_01/textures/tea_set_01_arm_1k.jpgdeleted file mode 100644index 88c4503..0000000Binary files a/styles/paper-popup/demo/assets/tea_set_01/textures/tea_set_01_arm_1k.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/assets/tea_set_01/textures/tea_set_01_diff_1k.jpg b/styles/paper-popup/demo/assets/tea_set_01/textures/tea_set_01_diff_1k.jpgdeleted file mode 100644index 0a30ea7..0000000Binary files a/styles/paper-popup/demo/assets/tea_set_01/textures/tea_set_01_diff_1k.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/assets/tea_set_01/textures/tea_set_01_nor_gl_1k.jpg b/styles/paper-popup/demo/assets/tea_set_01/textures/tea_set_01_nor_gl_1k.jpgdeleted file mode 100644index 86029b2..0000000Binary files a/styles/paper-popup/demo/assets/tea_set_01/textures/tea_set_01_nor_gl_1k.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/assets/walnut_diff.jpg b/styles/paper-popup/demo/assets/walnut_diff.jpgdeleted file mode 100644index aeb3662..0000000Binary files a/styles/paper-popup/demo/assets/walnut_diff.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/assets/walnut_nor.jpg b/styles/paper-popup/demo/assets/walnut_nor.jpgdeleted file mode 100644index 43adb25..0000000Binary files a/styles/paper-popup/demo/assets/walnut_nor.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/assets/walnut_rough.jpg b/styles/paper-popup/demo/assets/walnut_rough.jpgdeleted file mode 100644index aee5586..0000000Binary files a/styles/paper-popup/demo/assets/walnut_rough.jpg and /dev/null differdiff --git a/styles/paper-popup/demo/fonts/f0.woff2 b/styles/paper-popup/demo/fonts/f0.woff2deleted file mode 100644index 102e55d..0000000Binary files a/styles/paper-popup/demo/fonts/f0.woff2 and /dev/null differdiff --git a/styles/paper-popup/demo/fonts/f1.woff2 b/styles/paper-popup/demo/fonts/f1.woff2deleted file mode 100644index c0fab34..0000000Binary files a/styles/paper-popup/demo/fonts/f1.woff2 and /dev/null differdiff --git a/styles/paper-popup/demo/fonts/f2.woff2 b/styles/paper-popup/demo/fonts/f2.woff2deleted file mode 100644index 61e74be..0000000Binary files a/styles/paper-popup/demo/fonts/f2.woff2 and /dev/null differdiff --git a/styles/paper-popup/demo/fonts/f3.woff2 b/styles/paper-popup/demo/fonts/f3.woff2deleted file mode 100644index 9c9c082..0000000Binary files a/styles/paper-popup/demo/fonts/f3.woff2 and /dev/null differdiff --git a/styles/paper-popup/demo/fonts/f4.woff2 b/styles/paper-popup/demo/fonts/f4.woff2deleted file mode 100644index 2b0d4bd..0000000Binary files a/styles/paper-popup/demo/fonts/f4.woff2 and /dev/null differdiff --git a/styles/paper-popup/demo/fonts/f5.woff2 b/styles/paper-popup/demo/fonts/f5.woff2deleted file mode 100644index 1fe1443..0000000Binary files a/styles/paper-popup/demo/fonts/f5.woff2 and /dev/null differdiff --git a/styles/paper-popup/demo/fonts/f6.woff2 b/styles/paper-popup/demo/fonts/f6.woff2deleted file mode 100644index 9a03c61..0000000Binary files a/styles/paper-popup/demo/fonts/f6.woff2 and /dev/null differdiff --git a/styles/paper-popup/demo/fonts/f7.woff2 b/styles/paper-popup/demo/fonts/f7.woff2deleted file mode 100644index 284c48e..0000000Binary files a/styles/paper-popup/demo/fonts/f7.woff2 and /dev/null differdiff --git a/styles/paper-popup/demo/music/jg_ssm.png b/styles/paper-popup/demo/music/jg_ssm.pngdeleted file mode 100644index 326aaea..0000000Binary files a/styles/paper-popup/demo/music/jg_ssm.png and /dev/null differdiff --git a/styles/paper-popup/demo/music/survey.png b/styles/paper-popup/demo/music/survey.pngdeleted file mode 100644index 67fd768..0000000Binary files a/styles/paper-popup/demo/music/survey.png and /dev/null differdiff --git a/styles/paper-popup/style.json b/styles/paper-popup/style.jsonnew file mode 100644index 0000000..fea532a--- /dev/null+++ b/styles/paper-popup/style.json@@ -0,0 +1,18 @@+{+ "slug": "paper-popup",+ "num": "41",+ "en": "Paper Pop-up Book",+ "cn": "纸片立体书",+ "category_en": "Materials & 3D",+ "category_cn": "材质与 3D",+ "film": "Pip's Paper Adventure",+ "line": "A pop-up book opens on a desk; a sprite named Pip adventures through paper worlds and jumps out into ours.",+ "line_cn": "立体书在书桌上打开,小精灵 Pip 在纸片世界冒险,最后跳出书外。",+ "uses": [+ "Children's books",+ "Game trailers",+ "Story films"+ ],+ "frame_sec": 26.6,+ "dur": 133.0+}diff --git a/styles/papercut-red/DEMO.md b/styles/papercut-red/DEMO.mdnew file mode 100644index 0000000..cd6243b--- /dev/null+++ b/styles/papercut-red/DEMO.md@@ -0,0 +1,122 @@+# Red Paper-cut — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Nian Comes to Town* (49 s) · `papercut-red.mp4` · source in [`demo/`](demo/)+++## Story & structure++New Year's Eve: the monster Nian comes into the village and every house puts out its lights. A little girl folds a sheet of red paper three times and makes one cut; the unfolded rosette goes on her window, a candle is lit, eight cut lanterns fly to eight dark windows and the whole village lights up again; the scraps she cut off become firecrackers, and Nian runs from the red light and the noise. At dawn the camera pulls back: the whole film was one window flower pasted on a real window.++The brief this film was written to (and the rule it followed for itself): choose a story where **the craft of cutting paper is the plot**, use several native moves, and make one of them the *cause* of the ending, not decoration. Here the fold – cut – unfold is the cause: one lantern cut in the wedge = eight lanterns in the rosette = eight houses lit.++How the demo framed "adapting any topic": find the **one thing that gets cut** and make its *unfolded* form the answer (a product's silhouette folded into a wedge that unfolds into all its uses; two lovers cut from one folded sheet; one house cut in a folded strip that unfolds into a street). Treat these as examples of the fold move, not as a required structure.++Arc (40–55 s as planned, 49 s delivered): cold open on the scissors (0–3 s) → title → peaceful world → threat (the world goes dark and silent) → a quiet decision → **fold–cut–unfold** on the downbeat → the pattern becomes light and fixes the world → dawn → scale reveal.++Native moves spent: fold – cut – unfold (the climax), holes are light (the backlit rosette on the window, its pattern projected across the snow onto Nian's face), symmetry replicates (the rosette's lanterns fly off; small rosettes unfold as fireworks), scraps have a future (the offcuts come back as firecrackers), everything is one flat sheet (the sawtooth ridge of the far hills stands up and is Nian's back; the final pull-back to the window).++## Shots++120 BPM, 2/4: one beat = 0.5 s, one bar = 1.0 s.++| # | Time (s) | Picture | Camera | Sound |+|---|---|---|---|---|+| S1 | 0.0–3.0 | Black 0.25 s → scissor blades bite red paper; two scraps fall; at 2.4 the cut sheet flies away, revealing rice paper | Extreme close-up tracking the tip | snips at 0.25 / 1.0 / 1.75; pipa slide-in at 2.5 |+| S2 | 3.0–7.0 | Title *NIAN COMES TO TOWN* in cut letters, sawtooth banner border, a 年 seal; paper snow; at 6.5 the title sheet folds over along its middle | Flat front view; exit by page turn | theme A tutti, small gong at 3.0 |+| S3 | 7.0–12.0 | Night village: indigo paper, punched snow; far hills / houses / bare branches in three layers; warm window flowers; stops on the girl cutting paper at her window | Slow pan in parallax, push to her lit window | theme A soft; L1 |+| S4 | 12.0–17.0 | The far ridge shivers and **stands up**: its sawtooth is Nian's back; he turns his head, huge, each step a shake; windows go out one per beat, last at 16.5 | Low wide, Nian towering behind the far hills | frame-drum hit, heartbeat + erhu glide; a muffled drum per window; L2 |+| S5 | 17.0–19.5 | From the dark room: Nian's eye slides into the lattice, fills the window, blinks; the girl ducks below the sill | Locked, inside the room (the film's memorable shot) | **music stops**: wind, snow, heavy breathing |+| S6 | 19.5–24.0 | The girl from fear to resolve; three inserts on "red / light / noise": red paper, a candle, a string of firecrackers; she swaps to the determined face and nods | Medium close-up, props pop on the three words | zheng tremolo bed, one pipa note per word; L3 |+| S7 | 24.0–30.0 | Fold (24.0 / 25.0 / 26.0, a woodblock each) → cut (26.5–29.5): sawtooth edge, crescents, a lantern; scraps pile on the table; 29.5 the scissors stop | Top-down tabletop; fixed for folds, following the scissors for the cut | pipa tremolo + zheng eighth-note ostinato climbing; a snip per cut; 29.5–30.0 silence |+| S8 | 30.0–31.0 | Unfolds at 30.0 / 30.25 / 30.5; at 31.0 the rosette blooms and fills the frame | Pull out | three zheng glissandi → tutti + big gong at 31.0 |+| S9 | 31.0–38.0 | Rosette on the window, candle lit: **backlit**, the pattern sweeps the snow and lands on Nian's face; eight lantern motifs fly out, eight windows light (32.0–33.75, one per eighth note, nearest house first); scraps become firecrackers, small rosettes burst as fireworks; Nian squints, covers his eyes, tucks his tail and flees | Push on the glowing window, pull back to the whole village; CU Nian dazzled | theme A tutti + synthetic firecrackers; eight rising zheng notes; L5 |+| S10 | 38.0–42.5 | Dawn: the night sheet **peels off** from the top-right corner to reveal the day sheet; a gold-foil sun rises; the girl asleep at the window, scissors in hand | Medium close-up | dizi solo (slow) + zheng harmonics; L6 |+| S11 | 42.5–46.0 | Scale reveal: the whole picture is a round window flower on the paper of a wooden lattice window, sunlit from behind; scissors and red scraps on the sill (rhyming with the opening) | Slow pull-back | last phrase, cadence + small gong at 44.0 |+| S12 | 46.0–49.0 | End card (below) | Locked | small gong tail + two woodblocks |++## Score structure++Original score (`demo/music/score.py`), D gong pentatonic (D E F# A B), 2/4 at 120 BPM, a 4-bar original theme. Instruments: `pluck:pipa` (melody + tremolo), `dan_tranh` / `dan_tranh_trem` (as zheng / yangqin: broken chords, glissandi, tremolo), `erhu` (counter-melody, glides), `flute` as dizi, `woodblock` (beats, folds), `gong2:small` (phrase heads and tails), `gong2:big` (only once, at 31.0), `frame_drum`. No piano, no string section, no opera gongs-and-drums or suona (to keep clear of shadow-puppet and ink-wash).++| Cue | Time | Tempo | Content | Hits |+|---|---|---|---|---|+| C0 cut | 0–3 | free | scissors only; pipa slide-in | snips 0.25 / 1.0 / 1.75; 2.5 |+| C1 title | 3–7 | 120 | theme A: pipa, zheng, dizi octave up, woodblock on each beat | 3.0 small gong; 6.5 fold (zheng upward sweep) |+| C2 night village | 7–12 | 120 | theme A soft, woodblock off-beats | ducks under voice |+| C3 Nian | 12–17 | 60 feel | frame-drum heartbeat, erhu slow glide D4→A3, low zheng | 12.0 hit; one drum per window |+| C4 silence | 17–19.5 | — | **no music** (wind, breath) | 18.3 blink (a very soft woodblock) |+| C5 resolve | 19.5–24 | 120 | zheng tremolo, pipa ×3, erhu rising | 23.5 pipa cadence |+| C6 fold & cut | 24–30 | 120 | woodblocks on folds; pipa tremolo + zheng ostinato, up a step each bar | a snip per cut; 29.5 all stop |+| C7 unfold | 30–31 | 120 | three zheng glissandi | **31.0 tutti + big gong** |+| C8 village alight | 31–38 | 120 | theme A tutti + frame drum + small gong + firecrackers; eight zheng notes | 32.0–33.75 windows; 35.0 Nian turns; 37.5 small gong |+| C9 dawn | 38–42.5 | 90 | dizi solo, zheng harmonics, erhu long notes | |+| C10 reveal | 42.5–46 | 90 | last phrase in unison, cadence on D | 44.0 chord + small gong |+| C11 end | 46–49 | — | gong tail + two woodblocks | 46.5 / 47.0 |++Music ducks ~8–9 dB under the voice; downbeats avoid the first word of a line.++Foley specific to this film: Nian's cardboard steps (55 Hz + low noise, each with a ~6 px frame shake), his breathing (low-passed noise), a dazzled whimper (an erhu sample pitched down and low-passed); candles out ("puff") and lit (match + whoomp); fireworks = rising whistle + boom + crackle + falling scraps; a long paper peel at dawn; two bird chirps.++Voice: a warm grandmother telling the story on New Year's Eve, Kokoro `af_sarah`, speed 0.9, five lines:++| id | Start | Text |+|---|---|---|+| L1 | 7.6 | Every New Year's Eve, the monster Nian came down from the mountains. |+| L2 | 13.6 | One by one, the village put out its lights. |+| L3 | 19.8 | But Nian fears three things: the color red, bright light, and loud noise. |+| L5 | 35.2 | Crackle, bang! And away ran Nian. |+| L6 | 38.6 | That is why, every New Year, we still paste red paper on our windows. |++Whisper hears "Nian" as "Nyan"/"Nion", the correct pronunciation of nián, so it is registered as an `asr` alias in `lines.json`.++## Palette & props++- Heroes and window flowers `#d2201f`; Nian one step deeper `#b00f26`; near limbs one step brighter `#c4162c`, far limbs darker (`#8a0c20`, girl `#b8191b`); fold back colour `#de3b30`.+- Rice paper `#f2e8d0`, night paper indigo `#1c2446`, ink sky `#0f142a`, gold foil `#d9a93f` only at the end (sun, title flecks).+- Night: far hills `#1f2a55`, near hills `#29356e`, houses `#35457f`, trees `#28346c`, snow `#7a88ba`, all indigo papers; only window flowers, lanterns, the girl and Nian are red (at gate 1 the background was red too and the silhouettes stopped popping). Day: rice-paper sky, red houses, far hills `#e0877f`, mid hills `#cf4f4a`.+- Paper shadow: offset 2.6/3.6 px, blur 5 px × zoom, `rgba(52,6,10,.38)`. Inset contour: a 1.5-unit slit 3.5 units inside the outline. Night ambient ~`rgb(214,214,236)`; bloom 10 px / 40 px at strength ≈ 0.55.+- Backlit window flower: radial light `#fff6d6 → #ffc46e → #ec782e`, rice-paper fibres multiplied at 50 %, the rosette's transmission sprite in `#b51d18`. Projected pattern squashed onto the ground with `[1.25,0,-0.9,0.3]`.+- The rosette: middle ring *yang* cut (lanterns, ruyi scrolls on the fold lines, sawtooth on the ring edges), inner and outer rings *yin* cut.+- The girl: head, coat, 2 × (upper arm, forearm + hand), 2 × (thigh, shin + shoe), scissors (2 blades on a rivet); face pieces smile ∩, surprise, scared, determined almond eye, asleep ∪; cheek rosettes.+- Nian: body, head (big, ×1.32), hinged jaw, mane, tail, 4 × (upper leg, lower leg + paw); sturdy legs with four curved claw tips and swirl knee joints (the first version's crescent-striped shins were dropped). When the light hits him, pattern + solid warm spot are added inside his layer, so the squint and big tears are holes that read on the lit face (the gag); unlit parts darken to silhouette.+- Cutting: reveal circles r ≈ 62 units; blades open/close every 0.25 s (each snip = one eighth note); the camera holds the tip at ~32 %. Each fold ≈ 0.55 s on a woodblock; three unfolds 0.25 s apart.++## End card++Couplet strips slide in beside the window, a red banner with cream cut letters "RED PAPER-CUT" drops in above, gold-foil flecks, and the credit line "LemoLab × Claude Opus 5.5" below in ink. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++Title and subtitles as built: cut letters in Fraunces 800 on rice paper with sawtooth border strips, a red seal with the character 年 cut as a hole, an italic subline. Subtitle banner `#a8111f`, gold flecks, Fraunces SemiBold 44 px in cream `#fff1d6`, centred 70 px from the bottom, hold ≥ voice + 0.7 s and ≥ 1.8 s.++## Build notes++```+styles/papercut-red/demo/+ paper.js paper textures, piece builder (fill, cut, inset, edge, grain), shadows, transmission+ motifs.js folk pattern library rig.js 2D affine rig helpers+ girl.js jointed girl + face pieces nian.js jointed monster + eye pieces + poses+ tuanhua.js 8-fold rosette (one wedge × D4) village.js houses, hills, plum tree, snow, lanterns+ light.js night lightmap, backlit windows, bloom, rays, masked projected light+ world.js village layout (night/day palettes) + lighting pass+ fold.js fold – cut – unfold sequence hud.js subtitle banner, cut-letter text+ story.js timeline (single source of truth, 120 BPM) main.js shots, cameras, events+ sheet.js / climax.js / test.js model sheets and gate-1 style frame (?test=sheet_girl | sheet_nian | frame)+ lines.json voice script music/score.py original score mix.py foley + voice + music subs.py srt+```++1. `node core/render/still.mjs styles/papercut-red/demo <t…> [--q nosub=1]`: review stills; `?test=sheet_girl` etc. for model sheets.+2. `.venv/bin/python core/tts/tts.py lines.json voices` → `core/tts/asr_check.py` until all OK.+3. `node core/render/events.mjs` → `music/score.py` → `mix.py` → `subs.py`.+4. `node core/render/video.mjs styles/papercut-red/demo --fps 24 --workers 3` (1176 frames, ~30 s).+5. `sh core/render/mux.sh out/video24.mp4 mix.wav papercut-red.mp4 24 0`, then `check_final.py` (per-line whisper on the final mix + blackdetect).+Or simply `sh styles/papercut-red/demo/build.sh`.++Engine traps: `put()` uses `setTransform`, so it ignores an enclosing `translate`: pass absolute matrices. Test-mode pages must not throw to stop the module (the render harness exits on any page error): guard the `window.render` assignment instead. Engine numbers as used: paper grain mottling ±7 % at ~130 px; edge wobble ≈ 0.35 units; `sawRow`, `sawEdge`, `crescent` / `crescentRows`, `swirl` / `doubleSwirl`, `cloudCut`, `rosette`, `plum`, `coin` in `motifs.js`; half-res bloom blurs; smoothing turned the houses into bread loaves.++Pitfalls tied to this demo's props:+- Storing the wall height in a house piece's `p.h` stretched the house (`x0,y0,w,h` is the drawing box).+- Darkening the snow layer through the light map made ghost legs visible through the snow.+- The folding scissors first pointed backwards.+- The projected pattern centred on Nian's eye hid the eye; it was centred on the snout with a solid warm spot so the squint and tears read.+- The cold open's flying sheet overlaps the title card to avoid blank frames.diff --git a/styles/papercut-red/STYLE.md b/styles/papercut-red/STYLE.mdindex 23b3cc0..7f870e3 100644--- a/styles/papercut-red/STYLE.md+++ b/styles/papercut-red/STYLE.md@@ -1,130 +1,108 @@# Red Paper-cut — Style Prompt-> Chinese window-flower paper-cuts brought to life: jointed red cut-outs on rice paper and indigo night paper, where the cut *is* the drawing and the holes are where the light gets in.-> Demo: *Nian Comes to Town* (49 s) · `papercut-red.mp4` · source in `demo/`+> Chinese window-flower paper-cuts brought to life: jointed red cut-outs on paper grounds, where the cut *is* the drawing and the holes are where the light gets in.+> References (grammar only): folk window flowers of Shaanxi and Yuxian (sawtooth, crescent, cloud and swirl cuts, fold-symmetric rosettes, *yin* and *yang* cutting); the 1958–59 Shanghai Animation Film Studio cut-paper shorts (jointed figures, profile acting, paper layers in parallax). Copy no studio character, no named artist's work and no real motif sheet: generate every pattern from code, and never name the references in the film.-You are directing a 30–60 second film in the **Red Paper-cut** style. The user gives you a topic (and maybe a story). You decide everything else — story, shots, timing, music, sound — and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not----+Every visible thing is **a piece of paper that was cut with scissors** and laid flat on another sheet. There is no painting, no gradient shading, no outline stroke: detail, volume and expression come only from **what was cut away**. Red paper is the hero material; grounds are paper too (a light paper by day, a deep dyed paper by night). Characters are **jointed cut-outs** (head, torso, upper and lower limbs pinned at rivets) animated in hard 12 fps steps.-## 1. What this style is+Not shadow puppetry: no light behind a screen, no translucent dyed hide, no rods. Here the paper is **front-lit and opaque**; backlight is a special event you save for the moment that needs it. Not flat vector art (no strokes, no gradients), not a silhouette film (every shape's interior is cut).-Every visible thing is **a piece of paper that was cut with scissors** and laid flat on another sheet of paper. There is no painting, no gradient shading, no outline stroke: detail, volume and expression come only from **what was cut away**. Red paper is the hero material; backgrounds are paper too (warm rice paper by day, deep indigo paper by night). Characters are **jointed cut-outs** (head, torso, upper and lower limbs pinned at rivets) animated in hard 12 fps steps, like the classic Chinese cut-paper films.+## 2. Materials & rendering-Learn the grammar of **folk window flowers** (Shaanxi / Yuxian): sawtooth (锯齿纹), crescent (月牙纹), cloud and swirl (云纹 / 旋涡纹), fold-symmetric rosettes (团花), and the difference between *yin* cutting (lines cut out of a red field) and *yang* cutting (a red line network left standing in an open field). Learn the jointed-figure animation and profile acting of the 1958–59 Shanghai Animation Film Studio cut-paper shorts. **Do not** copy any studio character, any named artist's work, or any real motif sheet — generate all patterns from code.+- **Paper grain:** a neutral-grey texture in `soft-light` inside each piece (dye mottling, fibres, specks), then the piece's alpha restored with `destination-in`, so holes stay holes.+- **Cut edge:** every silhouette is a polyline with a slight low-frequency wobble (hand-cut), a 1 px light rim upper-left and a dark rim lower-right (the cut face). Architecture and machines use straight segments + wobble, never smoothing.+- **Paper thickness:** each piece casts a tight soft shadow on the layer below; stacked folded paper shows 2–6 offset darker edges.+- **Figures: red block + yin lines.** Every figure piece gets an **inset contour** (a thin slit a few units inside the outline): the classic double outline, which also separates red-on-red overlaps (an arm over a coat).+- **Folk cutting vocabulary** (`demo/motifs.js`): sawtooth rows (fur, grass, tiles, fringe), serrated edges, crescents (scales, quilting), swirls (joints), clouds, rosettes, plum, coin, tapered slits.+- **No floating islands.** A closed ring cut would drop its centre out of real paper. Eyes are two crescents (upper and lower lid) that leave bridges, plus a pupil *hole*.+- Faces never morph: expressions are **swappable face pieces** (smile, surprise, fear, determined, asleep).+- **The rosette (团花)** is designed as one 45° wedge and mirrored 8× (D4); other folds give 2×, 4× or 6×. Alternate rings of *yang* cut (band cut away, red lines left) and *yin* cut (lines cut out of a red field). Fold seams leave faint crease lines: keep them, they are true to the craft.+- **Light:** front-lit scenes use the paper as is. Night: `frame × lightmap` + warm pools, then **emissive** backlit pieces (light × paper transmission via `multiply`; holes at full light), a two-level bloom and optional rays. Keep bloom low enough that the pattern stays legible at the centre.+- **Projected pattern:** a piece's hole mask, squashed onto the ground and added with `lighter`; on a character, masked by its layer alpha over a solid warm spot, so cut features still read as holes.-Keep it distinct from shadow puppetry: no light behind a screen, no translucent dyed hide, no rods. Here the paper is **front-lit and opaque**; backlight is a special event you save for the climax.+## 3. Colour logic-## 2. Story: what fits this style+- **China red** (around `#d2201f`, range `#c8102e`–`#d7261e`) is the hero material. Depth and role are shown by **paper tones one step apart**, not by shading: near pieces one step brighter, far pieces one step darker, an antagonist or a heavy object one step deeper.+- **Ground and hero must be different paper families.** If background and hero are both red, the silhouettes stop popping. At night, all background layers are one dark dyed family and only the pieces that matter to the story are red; by day, a light paper ground with red and pale-red layers.+- **Gold foil** is an accent kept for one late moment (a sun, a title, a coin); never a second main colour.+- Examples of ground families: indigo night papers (far layers lighter blue, near darker); a warm rice-paper day with pale-red far hills; a jade-green or black paper for a story that isn't festive. Choose from the topic.-Pick stories where **the craft of cutting paper is the plot**. Paper-cut has five native powers — use at least three, and make at least one the *cause* of the ending, not decoration:+## 4. Type & subtitles-| Native power | Story use |-|---|---|-| **Fold – cut – unfold** | Fold a sheet 2/4/8 times; one cut becomes many. *One lantern cut in the wedge = eight lanterns in the rosette = eight houses lit.* Put the unfold on the strongest beat. |-| **Holes are light** | A cut-out pasted on a window, lit from behind: the paper glows deep red, every hole glows gold, and the pattern is projected onto the world. Light has the shape of the pattern. |-| **Symmetry replicates** | A mirrored motif can peel off and multiply: rosette → window flowers → fireworks (a firework is just a small rosette unfolding in the sky). |-| **Scraps have a future** | The bits that fall while cutting come back later (as firecrackers, snow, confetti). Setup / payoff for free. |-| **Everything is one flat sheet** | Mountains and monsters share the same sawtooth — a ridge can stand up and be a beast. End on a **scale reveal**: the whole film was one window flower on a real window. |+- **Subtitles are a paper strip in the world**, e.g. a red banner (横批) darker than the picture's reds so cream text holds, serrated edges, swallow-tail ends; a sturdy OFL serif (e.g. Fraunces SemiBold) around 44 px, low, with a paper shadow. It drops in on two 12 fps steps, like a couplet being pasted. Hold ≥ max(1.8 s, speech + 0.7 s); never overlap.+- **Titles** are cut-out letters (*yang*-cut, counters are real holes) popping in letter by letter on 12 fps steps, with sawtooth border strips and a seal cut by code.+- Small credits may be printed ink on paper.-Adapting any topic: find the **one thing that gets cut**, and make its *unfolded* form the answer. A product launch → the product's silhouette is folded into a wedge and unfolds into a pattern of all its uses. A love story → two figures cut from one folded sheet (a mirrored pair). A city → one house cut in a folded strip unfolds into a street.+## 5. Motion quality-**Emotional arc (40–55 s):** cold open on the scissors (0–3 s) → title → peaceful world → threat (the world goes dark / silent) → a quiet decision → **fold–cut–unfold** on the downbeat → the pattern becomes light and fixes the world → dawn → scale reveal.+- **Characters step at 12 fps** (pose sampled at `floor(t·12)/12`); **camera, light, weather, flames and flying pieces move on ones** at 24 fps.+- Rigs pin pieces at rivets (neck, shoulders, elbows, hips, knees, jaws, tails). Hard poses, tiny eases, 1-frame overshoots ("pop" = 1.15× for one step). Weight comes from **size and camera shake**.+- In profile, a raised near arm crosses the face: keep hands forward of the face or let a prop cover them.+- **Folding:** the flap is split into ~16 strips; each is compressed by cosθ and enlarged along the fold by `1 + 0.28·height` (fake perspective), darkened as it stands up, in a lighter back colour past 90°, with a growing shadow and a crease after. About half a second per fold, each on a hit.+- **Cutting:** the pattern is revealed through a mask of circles along the scissor path; the offcut drops once the outer edge is passed; blades open and close on a subdivision of the beat; scraps flutter out and land.+- **Unfolding:** successive unfolds a fraction of a second apart, each flap swinging from folded to flat with ease-out (the "pa!" snap), then a scale bump and warm flash on the accent.-## 3. Visual language+## 6. Camera grammar-### Paper-- **China red** `#d2201f` for heroes and window flowers (brief range `#c8102e`–`#d7261e`). The monster / antagonist one step deeper: `#b00f26`. Near limbs one step brighter (`#c4162c`), far limbs one step darker (`#8a0c20` / girl `#b8191b`) — layered paper, not shading.-- **Rice paper** `#f2e8d0` (long fibers + cloudy density), **night paper** indigo `#1c2446`, **ink sky** `#0f142a`, **gold foil** `#d9a93f` only at the end (sun, title flecks).-- **Night rule (important):** all background layers (far hills `#1f2a55`, near hills `#29356e`, houses `#35457f`, trees `#28346c`, snow `#7a88ba`) are *indigo papers*. Only window flowers, lanterns and the protagonists are red. If background and hero are both red, the cut-out silhouettes stop "popping" (we got this wrong at gate 1).-- **Day rule:** rice-paper sky, red houses, far hills as a paler red `#e0877f`, mid hills `#cf4f4a`.-- **Paper grain:** a tileable neutral-grey texture applied with `soft-light` inside each piece (dye mottling ±7% at ~130 px, fibers, dark specks), then the piece's own alpha restored with `destination-in`, so holes stay holes.-- **Cut edge:** every silhouette is sampled to a polyline and wobbled (≈0.35 units, low frequency along the arc) — hand-cut irregularity. A 1 px light rim on the upper-left of every edge and a dark rim on the lower-right (the paper's cut face). Architecture uses straight segments + wobble, *not* smoothing (smoothing turns houses into bread loaves).-- **Paper thickness:** each piece casts a tight soft shadow on the layer below (offset 2.6/3.6 px, blur 5 px × zoom, `rgba(52,6,10,.38)`). Stacked folded paper shows 2–6 offset darker edges.+A vocabulary, not a route. Opening and ending come from the topic.-### Cutting grammar-- Figures: **red block + yin lines**. Every figure piece gets an **inset contour** (a 1.5-unit slit 3.5 units inside the outline) — the classic double outline, and it separates red-on-red overlaps (arm over coat).-- Motif library (all in `demo/motifs.js`): `sawRow` (row of thin triangular holes = fur, grass, tiles, fringe), `sawEdge` (serrated silhouette), `crescent` / `crescentRows` (scales, quilting), `swirl` / `doubleSwirl` (animal joints), `cloudCut`, `rosette` (cheek flowers), `plum`, `coin`, tapered slits.-- **No floating islands.** A closed ring cut would drop its centre out of real paper. Eyes are two crescents (upper and lower lid) that leave bridges, plus a pupil *hole*.-- Faces never morph: expressions are **swappable face pieces** (smile ∩, surprise, scared, determined almond eye, asleep ∪).-- The **团花 rosette** is designed as one 45° wedge and mirrored 8× (D4). Its middle ring is *yang* cut (band cut away, red lines left: lanterns, ruyi scrolls on the fold lines, sawtooth on the ring edges); inner and outer rings are *yin* cut. Fold seams leave faint crease lines — keep them, they are true to the craft.--### Light-- Front-lit scenes: paper as is. Night scenes: `frame × lightmap` (ambient ~`rgb(214,214,236)` — mild, the papers are already dark) + warm pools around lit windows, then **emissive** backlit windows on top (light field × paper transmission via `multiply`; holes stay at full light), then a two-level bloom (half-res blur 10 px / 40 px, strength ≈0.55) and optional zoom-blur rays from the window.-- **Backlit window flower:** radial light `#fff6d6 → #ffc46e → #ec782e`, rice-paper fibers multiplied at 50%, the rosette's transmission sprite in `#b51d18`. Keep bloom moderate — the pattern must stay legible at the centre.-- **Projected pattern:** the rosette's hole mask, squashed onto the ground (`[1.25,0,-0.9,0.3]`) and added with `lighter`; on a character it is **masked by that character's layer alpha** and added on top of a solid warm spot, so the lit face is brighter than paper and the cut eye / tears read as dark holes.--## 4. Motion language--- **Characters step at 12 fps** (pose sampled at `floor(t·12)/12`); **camera, light, snow, flames and flying lanterns move on ones** at 24 fps.-- Rigs: girl = head, coat, 2 × (upper arm, forearm+hand), 2 × (thigh, shin+shoe), scissors (2 blades on a rivet). Monster = body, head (big, ×1.32), jaw on a hinge, mane, tail, 4 × (upper leg, lower leg+paw). Rivet points: neck, shoulders, elbows, hips, knees, jaw, tail.-- Hard poses, tiny eases, 1-frame overshoots ("pop" = 1.15× for one step). Weight comes from **size and camera shake** (every monster footfall shakes the frame ~6 px, decaying in 0.3 s).-- In profile, a raised near arm crosses the face — keep hands forward of the face or let a prop (the rosette) cover them.-- **Folding** (the key move): the flap is split into 16 strips along the fold normal; each strip is compressed by cosθ and enlarged along the fold by `1 + 0.28·height` (fake perspective), darkened as it stands up, shown in the lighter back colour `#de3b30` once past 90°, with a shadow that grows with lift and a crease line after. Each fold ≈0.55 s on a woodblock hit.-- **Cutting:** the camera follows the scissor tip at ~32%. The cut pattern is revealed through a mask of circles along the scissor path (r ≈62 units), plus the whole offcut corner is removed once the outer edge has been passed; blades open/close every 0.25 s (each snip = one eighth note); scraps flutter out and land.-- **Unfolding:** three unfolds 0.25 s apart, each flap swinging from s = −1 (folded) to +1 with ease-out — the "pa!" snap — then a scale bump and warm flash on the downbeat.--## 5. Camera language--| Beat | Camera |-|---|---|-| Cold open | Extreme close-up of the scissor blades biting red paper, tracking the tip; the cut-off sheet flies away to reveal the title |-| Title | Flat front view; red cut letters pop in on 12 fps steps; exit by a **page turn** (right half folds over) revealing the next scene |-| World | Slow pan across three paper layers (hills / village / snow), ending in a push to the hero's lit window |-| Threat | Low wide; the sawtooth ridge stands up — the monster rises *behind* the far hills and towers over the village |-| Memorable shot | From a dark room: a giant eye slides into the window lattice and blinks |-| Decision | Medium close-up, props pop on the three spoken words |-| Native move | Top-down tabletop; fixed during folds, following the scissors during the cut, pulling out for the unfold |-| Payoff | Push on the glowing window, pull back to the whole village as lanterns fly to every house; close-up of the monster dazzled |-| Dawn | The night sheet **peels off** from the corner to reveal the day sheet underneath |-| Ending | Pull back until the whole scene is a round window flower on a wooden lattice window, sunlit, scissors on the sill; couplets and banner drop in as the end card |--## 6. Sound--- **Music:** a bright festive Chinese chamber ensemble, *not* piano/strings and *not* the opera percussion of shadow puppetry: pipa (physical model, tremolo on long notes), zheng (`dan_tranh`: broken chords, glissandi, tremolo), erhu, flute as dizi, woodblock, small/big gong, frame drum. D gong pentatonic, 2/4 at 120 BPM, a 4-bar original theme. Threat = low frame-drum heartbeat + erhu glide; **total silence** for the eye-in-the-window and the breath before the unfold; **tutti + big gong on the unfold downbeat**; eight rising zheng notes = eight windows lighting.-- **Foley follows the material:** scissors = metallic shear sweep (2.5–9 kHz) + 3.8 kHz ring + a paper-fibre crack; folds = paper swish + crease tap; unfold = sharp paper snap; monster steps = *cardboard* thud (55 Hz + low noise), not flesh; candle = match strike + soft whoomp, snuff = puff; firecrackers = dense clicks at 20–60 ms, accelerating, with occasional low booms; fireworks = rising whistle + boom + crackle; dawn = a long paper peel; two bird chirps.-- **Voice:** a warm grandmother storyteller — Kokoro `af_sarah`, speed 0.9, 4–6 lines. Duck music ≈9 dB and foley ≈3 dB under the voice; keep foley impacts out of the voice windows. Folk names get an `asr` alias in `lines.json` ("Nian" is heard as "Nyan"/"Nion" — the correct pronunciation, so accept it).+| Move | What it expresses | Can serve |+|---|---|---|+| Extreme close-up tracking the scissor tip | making; attention to craft | a beginning of work; a precise act; a signature |+| Flat front view, locked | the cut-out as an emblem | a title; a statement; a family portrait |+| Slow pan across paper layers (parallax) | a world laid out | a village, a route, a timeline |+| Low wide, a shape standing up from the ground layer | scale, threat | a storm; a rival; a deadline arriving |+| Top-down tabletop | the craft as plot | folding, cutting, assembling, sorting |+| Push toward a lit piece, pull back to many | one act spreading | influence; a network lighting up |+| Page turn / sheet peel | time or place changing | day to night; before and after; chapters |+| Pull back to an object in a room | the film was a thing someone made | memory; a gift; a tradition |+| Rotation around a rosette's centre | order, repetition | a cycle; a team |++Framing: layers stay parallel to the screen; depth comes from parallax and paper tones, never from perspective. Transitions are paper actions (fold, page turn, peel, a sheet flying off, a cut through the frame); no dissolves.++## 7. Sound palette++- **Foley follows the material:** scissors = metallic shear sweep (2.5–9 kHz) + a short ring + a fibre crack; folds = swish + crease tap; unfold = sharp snap; heavy steps = *cardboard* thud, not flesh; paper peel; pasting = a palm pat; match strike, puff; firecrackers = dense clicks 20–60 ms apart with low booms.+- **Instruments:** a bright Chinese chamber ensemble, not piano and strings and not the opera percussion of shadow puppetry: pipa (tremolo on long notes), zheng (`dan_tranh`: broken chords, glissandi, tremolo), erhu (glides), dizi (flute), sheng or yangqin colours, woodblock, small and big gong, frame drum. Pentatonic modes.+- Options: one snip = one beat subdivision; a rising zheng run, one note per thing that appears; a frame-drum heartbeat for weight; one big gong saved for one accent; total silence for a held breath.+- **Voice:** warm storyteller, few lines. Duck music ≈ 9 dB and foley ≈ 3 dB under the voice; keep impacts out of voice windows. Folk names may need an `asr` alias in `lines.json`.- Mix to −14 LUFS, **no film grain** (the paper fibres are the texture).-## 7. Subtitles & titles--- **Subtitle = a red paper banner (横批):** a deep red strip `#a8111f` (darker than the picture's reds so cream text holds), serrated top and bottom edges, swallow-tail ends, gold flecks, a small cut rosette as the bullet; Fraunces SemiBold 44 px, cream `#fff1d6`; centred 70 px from the bottom with a paper shadow. It "drops" into place in two 12 fps steps like a couplet being pasted. Hold ≥ voice + 0.7 s and ≥ 1.8 s; never overlap.-- **Title:** red paper cut-out letters (yang-cut, counters are real holes) on rice paper, Fraunces 800, popping in letter by letter on 12 fps steps; sawtooth border strips; a red seal (the character 年 cut as a hole); an italic subline.-- **End card:** couplet strips slide in beside the window, a red banner with cream cut letters "RED PAPER-CUT" drops in above, credit line "LemoLab × Claude Opus 5.5" below in ink.--## 8. Pitfalls we hit--- **Red on red.** Red houses and hills with a red hero read as one blob. Make the background indigo at night; use near/far paper tones and inset contours for overlaps.-- **Overwriting a piece's `h`.** Piece objects use `x0,y0,w,h` as the drawing box — storing wall height in `p.h` stretched the house.-- **Smoothing architecture** rounded rectangles into loaves: use straight-segment polylines for buildings.-- **Darkening one layer through the light map** also darkened what covers it (ghost legs visible through snow). Tint the layer itself (multiply + restore alpha) instead.-- **`put()` uses `setTransform`**, so it ignores an enclosing `translate`; pass absolute matrices.-- **A flat cos-squashed flap reads as a sliding card**, not a fold. Split it into strips with fake perspective, darken as it stands up, and show the back colour.-- **Cut reveal showed the uncut stack through the holes**: draw stack thickness inside the "uncut" mask only, and give the cut part its own offset copies.-- Folding-scissors pointing backwards: the blade axis must be the direction of travel, with the rivet a little behind the cutting point.-- A projected pattern centred on the monster's eye hid the eye; centre it on the snout and add a solid warm spot so the squint and tears read.-- Blank frames between shots: overlap the flying sheet of the cold open with the title card.-- Test-mode pages must not throw to stop the module (the render harness exits on any page error); guard the `window.render` assignment instead.--## 9. Production recipe (this repo)--```-styles/papercut-red/demo/- paper.js paper textures, piece builder (fill, cut, inset, edge, grain), shadows, transmission- motifs.js folk pattern library rig.js 2D affine rig helpers- girl.js jointed girl + face pieces nian.js jointed monster + eye pieces + poses- tuanhua.js 8-fold rosette (one wedge × D4) village.js houses, hills, plum tree, snow, lanterns- light.js night lightmap, backlit windows, bloom, rays, masked projected light- world.js village layout (night/day palettes) + lighting pass- fold.js fold – cut – unfold sequence hud.js subtitle banner, cut-letter text- story.js timeline (single source of truth, 120 BPM) main.js shots, cameras, events- sheet.js / climax.js / test.js model sheets and gate-1 style frame (?test=sheet_girl | sheet_nian | frame)- lines.json voice script music/score.py original score mix.py foley + voice + music subs.py srt-```--1. `node core/render/still.mjs styles/papercut-red/demo <t…> [--q nosub=1]` — review stills; `?test=sheet_girl` etc. for model sheets.-2. `.venv/bin/python core/tts/tts.py lines.json voices` → `core/tts/asr_check.py` until all OK.-3. `node core/render/events.mjs` → `music/score.py` → `mix.py` → `subs.py`.-4. `node core/render/video.mjs styles/papercut-red/demo --fps 24 --workers 3` (1176 frames, ~30 s).-5. `sh core/render/mux.sh out/video24.mp4 mix.wav papercut-red.mp4 24 0`, then `check_final.py` (per-line whisper on the final mix + blackdetect).-Or simply `sh styles/papercut-red/demo/build.sh`.+## 8. Native moves++A menu: use the ones your story needs.++- **Fold – cut – unfold.** Fold a sheet 2/4/8 times; one cut becomes many. Put the unfold on a strong beat. *Fits content like:* one teacher, many students; a single design mass-produced; one seed becoming a field.+- **Holes are light.** A cut-out lit from behind glows deep red, every hole glows, and the pattern is projected onto the world. *Fits content like:* an idea shining through a person; a lighthouse; a window at night in a story about home.+- **Symmetry replicates.** A mirrored motif peels off and multiplies (rosette → window flowers → fireworks). *Fits content like:* a franchise; cell division; a song spreading through a crowd.+- **Scraps have a future.** The bits that fall while cutting come back later (as snow, confetti, stars). *Fits content like:* recycling; leftover time; small failures that add up.+- **Everything is one flat sheet.** Things share the same cuts, so a ridge can stand up and be a creature, or a wave become a road. *Fits content like:* a landscape that becomes a map; a factory that turns out to be one machine; a zoom out to the made object.+- **Mirrored pair.** Two figures cut from one folded sheet. *Fits content like:* twins; a partnership; before/after of the same person.++## 9. Pitfalls of the medium++- **Red on red** reads as one blob → different ground family, near/far paper tones, inset contours for overlaps.+- **Darkening a layer through the light map** also darkens what covers it → tint the layer itself (multiply + restore alpha).+- **A flat cos-squashed flap reads as a sliding card**, not a fold → strips with fake perspective, darken as it stands up, show the back colour.+- **Cut reveal shows the uncut stack through the holes** → stack thickness inside the "uncut" mask only; the cut part gets its own offset copies.+- Scissors pointing backwards → the blade axis follows the direction of travel, the rivet a little behind the cutting point.+- Blank frames between shots → overlap outgoing and incoming paper actions.+- Engine traps (`put()` transforms, piece boxes, test pages) are in DEMO.md build notes.++## 10. Engine++In `demo/`: `paper.js` (paper textures, piece builder: fill, cut, inset, edge, grain, shadows, transmission), `motifs.js` (folk pattern library), `rig.js` (2D affine rig helpers), `tuanhua.js` (8-fold rosette from one wedge × D4), `light.js` (night lightmap, backlit pieces, bloom, rays, masked projected light), `fold.js` (fold – cut – unfold sequence), `hud.js` (subtitle banner, cut-letter text); `?test=` pages draw model sheets from the real engine. A first test not in the demo: a bicycle from `paper.js` pieces (`sawRow` spokes), wheels riveted in `rig.js`, rolling on 12 fps steps.++## 11. Variation space++You decide the structure, the cast (or none), the sets, the paper families, the opening, the ending, the camera path, the pacing and which native moves carry the story. All far from our demo:++- Structures: **a year of twelve cuts** (a zodiac or calendar wheel, one wedge per month, rotating); **an assembly line** (a product built piece by piece from cut parts, each part a pattern); **a letter** (a folded message unfolds panel by panel, each panel a scene).+- Openings: **a finished pattern** (a full rosette, then one piece falls out and walks away); **an empty ground** (a blank sheet, one fold crease appears); **a crowd of cut figures** already dancing, parallax full.+- Endings: **refold** (the world folds back into a small square that is handed to someone); **scraps settle** (every offcut drifts down into a new pattern); **backlit only** (the lights go off except behind one cut piece, which projects the last image on the wall).++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/papercut-red/TREATMENT.md b/styles/papercut-red/TREATMENT.mddeleted file mode 100644index 29d2ba1..0000000--- a/styles/papercut-red/TREATMENT.md+++ /dev/null@@ -1,186 +0,0 @@-# TREATMENT · 31 Red Paper-cut ·《Nian Comes to Town》--> 2D | 目标时长 ~49 s(说明建议 40 s,理由见第 10 节)| 1920×1080 · 24 fps 输出,角色 12 fps 步进 | 旁白 Kokoro `af_sarah`(奶奶讲故事)| grain 0(纸纤维画面里自己做)-------## 1. 一句话故事--**除夕夜,年兽进村,家家熄灯;一个小女孩把一张红纸折了三折、剪了一刀——展开的团花贴上窗、点亮烛火,八盏剪出来的灯笼飞向八扇黑窗,满村重新亮起,剪下来的纸屑变成爆竹,年兽被红光和响声吓跑。天亮,镜头拉远:整部片就是贴在一扇窗上的一张窗花,窗外是真的晨光。**--情绪弧:-- **主体**:小女孩(唯一主角)。**对手**:年兽(憨,但体积压迫——比房子还大)。-- **目标**:守住除夕夜。-- **转折**:所有人都关灯躲起来("怕"),她反而拿起剪刀("剪")。-- **回响**:开场剪刀特写 ↔ 结尾窗台上的那把剪刀和一地红纸屑;片中"背光透亮的窗花"↔ 结尾真实晨光从背后照透整张窗花;"一刀剪出八个"↔"八扇窗亮起"。--核心构思:**剪纸的对称就是剧情的放大器。** 折成 8 层的纸,剪一次就是八次——她剪下的一盏灯笼,展开后是八盏,八盏飞出去点亮八户人家。剪下来掉在地上的碎纸屑,就是后来噼啪炸响的爆竹。所有"魔法"都来自剪纸本身的工艺逻辑,不是外加的特效。-------## 2. 对标:学什么 / 刻意不学什么--### 上海美术电影制片厂剪纸片《猪八戒吃西瓜》(1958)、《渔童》(1959)-| 学 | 不学 |-|---|---|-| **关节分片动画**:人物拆成头、躯干、上臂、前臂、大腿、小腿几片,绕铆钉点转动,动作"硬"而干脆,有定格的顿挫 | 不复刻任何美影角色造型(八戒、渔童、老渔翁……)和具体画面构图 |-| **侧面造型**为主:剪纸人物的神态靠侧面轮廓读(鼻尖、发髻、下巴),正面只做对称的"团花式"脸谱 | 不用美影片的配乐、配音方式(我们是英文旁白 + 原创民乐) |-| **镂空装饰**当作"体积"和"明暗":衣服褶皱、毛发、肌肉全部用刻线和镂空表达,不用渐变 | 美影后期剪纸片里的套色/彩色剪纸——我们几乎只有红 |-| 场景层层叠放(前景、中景、远景各一层纸),镜头平移时有纸层视差 | |--### 民间窗花:陕北、河北蔚县剪纸的纹样语法-| 学 | 不学 |-|---|---|-| **锯齿纹**(毛发、草、屋瓦、火苗、动物鬃毛)、**月牙纹**(鳞、羽、衣纹)、**云纹 / 旋涡纹**(动物关节——陕北剪纸狮、牛身上的"涡旋")、**团花对称**(折叠剪) | 不照搬任何一位真实艺术家的具体作品;所有纹样由代码组合生成 |-| **阴刻 / 阳刻**:阴刻 = 线被剪掉(大片红里透出白线),阳刻 = 线被留下(大片空里留红线)。人物用阴刻为主(红块面 + 刻线),团花和窗格用阳刻为主(红线网) | 蔚县剪纸的点染彩色 |-| 民间剪纸"憨"的造型:动物大头、大眼、圆身、短腿、尾巴卷成云 | |--### 与已完成的 shadow-puppet(皮影)拉开距离-| 皮影 | 本片 |-|---|---|-| 幕后打光、半透明兽皮、多色染料 | **红纸本身**,平贴在米白宣纸 / 深靛蓝夜色纸上,**正面受光** |-| 竹签操纵、影人离布变虚 | 纸片**贴在纸上**,只有一层薄薄的纸影(表现纸的厚度) |-| 锣鼓经 + 板胡 + 唢呐 | 喜庆小合奏:琵琶轮指 + 筝(扬琴感)+ 二胡 + 笛 + 木鱼 + 小锣 + 手鼓 |-| 连续 24 fps 表演 | **12 fps 步进**,保留剪纸的"硬";镜头与光 24 fps 平滑 |--背光只出现在一个地方:**窗花贴上窗、烛火一亮**——整部片 90% 是正面受光的纸,背光透亮是被"留"到高潮才用的。-------## 3. 原生招式(只有剪纸能做)--| 招式 | 位置 | 为什么只有剪纸能做 / 怎么进入故事因果 |-|---|---|---|-| **① 折—剪—展开**(主招式,情绪最高点) | 24–31 s | 红纸对折 → 再对折 → 斜折成 8 层三角(每一折都卡在木鱼上,折痕、纸的背面、层叠厚度都看得见)。镜头跟着剪刀尖走一遍三角形:锯齿边、月牙、一盏灯笼;纸屑一片片飘落。**31.0 强拍**:三次展开(1/8 → 1/4 → 1/2 → 整张)在八分音符上连开,团花"绽开"——她剪的一盏灯笼,变成了八盏。 |-| **② 背光镂空** | 31–38 s | 团花贴上窗、烛火一亮:红纸透出深红的光、镂空处透出暖白的光,灯光穿过纹样投在雪地和年兽脸上——年兽被"一张纸的花纹"挡在门外。**剪纸的镂空 = 光的形状**。 |-| **③ 对称复制 = 满村亮灯** | 32–34 s | 团花里的八盏灯笼纹样一个个"剥离"飞出,落到八扇黑窗上,每扇窗展开一张自己的窗花亮起来(八分音符八次,筝的五声音阶上行)。"一刀八个"的工艺逻辑直接变成"一户点亮八户"的剧情。 |-| **④ 纸屑成爆竹、烟花是展开的团花** | 33–37 s | 剪团花时落下的碎纸屑从地上飞起、在空中噼啪炸开;天上的烟花是一朵朵在空中"展开"的小团花(和主招式同一个展开动作,缩小重复)。 |-| **⑤ 尺度揭示:整部片是一张窗花** | 42–46 s | 天亮后镜头拉远:整个村子、山、年兽跑远的背影,都在一张圆形团花里,团花贴在木格窗的窗户纸上,窗外真实的晨光从背后把它照透;窗台上放着那把剪刀和一地红纸屑(呼应开场)。 |-------## 4. 视觉语言--- **纸**:- - 红纸(女孩、房子、团花):中国红 `#D2201F`(在说明的 `#C8102E`–`#D7261E` 之间),手染不匀的深浅斑驳(±7% 明度的大尺度云纹)+ 浅色纤维 + 深色杂点;- - 年兽:深一档的红 `#B00F26`,和女孩在同一张画面里也能分开;- - 远山 / 远景房子:再深再灰的红 `#7E1424`(远近靠纸色深浅,不靠模糊);- - 米白宣纸 `#F2E8D0`(室内、白天、片名):长纤维 + 云状疏密;- - 深靛蓝夜色纸 `#1C2446`(夜景底):同样有纤维,是"一张蓝纸"而不是渐变天空;- - 金箔 `#D9A93F`(只在结尾:太阳、片尾卡的洒金)。-- **刀口**:所有轮廓先采样成折线,再加低频抖动(振幅约 0.35 单位),像手剪的微小不齐;刀口上沿一条亮边、下沿一条暗边(纸的切面)。-- **纸影**:每片纸在下层投一个很近的柔影(偏移 3–4 px、模糊 5 px、深红褐 35%)——纸与纸之间有厚度,重叠的红片靠这条影和"内刻线"分开。-- **内刻线**:人物每一片都沿轮廓内侧 4 单位刻一圈 1.6 单位宽的细缝——剪纸人物典型的"双线轮廓",也让叠在一起的红片(胳膊压在衣服上)读得清。-- **纹样库**(代码生成):锯齿纹、月牙纹、云纹、旋涡纹(关节)、鱼鳞、梅花孔、铜钱孔、灯笼、团花(D4 八向对称:画一个 45° 三角楔形,再镜像 8 次——展开动画用的就是同一个楔形)。-- **背光模型**:画面 = 光 × 纸的透射。背后的烛光场(暖白 `#FFE3A6` 径向衰减)先铺满窗,再以 `multiply` 画一张"透射贴图"(深红橙 `#E0401C`,纤维厚处更暗);镂空处保持原光。再对亮部做两层辉光。投影光:团花镂空蒙版按透视压扁、叠加在雪地和年兽身上,外加 16 层缩放叠加的体积光束。-- **雪**:打孔的米白纸圆点(像打孔器打出的纸屑),分三层远近,12 fps 飘落。-- **夜村**:屋顶锯齿瓦、翘檐、窗格窗花、门上的对联条(空白,不写字)、枯树(锯齿枝)、远山云纹。--## 5. 动作语言--- **角色 12 fps 步进**(on twos),关节分片、绕铆钉点转;镜头、光、雪按 24 fps 平滑(机位也步进会被看成卡顿——积木片验证过)。-- 动作有剪纸的"硬":关键姿势之间少量缓动,到位时 1 帧小过冲;换表情 = **换脸片**(剪纸动画的做法),不做渐变。-- **女孩**:剪(前臂小幅上下、剪刀开合 6 帧一次)、惊躲(一帧缩下窗台)、偷看、下决心(点头 + 眉片换)、折纸(双手压折痕)、举起团花贴窗(踮脚)。-- **年兽**:憨、重、慢——每一步落地整张画面微震 2 px;嗅(鼻孔片换、头部上下点)、张嘴(下颌片绕铰链)、被光照到(眯眼片、前爪捂眼、尾巴夹起)、逃(四腿交替的剪纸式奔跑 8 格循环)。-- 折纸:翻起的那一半按 cos(角度) 压缩、过 90° 后露出纸背面(浅一档的粉红),并带一道折痕阴影;展开反过来。--## 6. 镜头语言--| 段落 | 机位意图 |-|---|---|-| 开场 | **极近特写**剪刀刃剪开红纸,镜头跟着刀尖走——第一秒就是这个媒介的"动作" |-| 片名 | 正面平视,宣纸上的红纸字;片名纸对折翻过去,露出下一场(纸做转场) |-| 夜村 | 慢横移,三层纸视差(远山 / 村子 / 前景枯枝和雪),最后停在女孩的窗 |-| 年兽进村 | 远山的锯齿山脊**站了起来**——原来是年兽的背(尺度第一次揭示);低机位仰拍,年兽占满画面、出画 |-| 窗里的眼 | **本片记住的镜头之一**:从黑屋子里看窗,一只巨大的眼睛滑进窗格、填满整扇窗、眨一下 |-| 下决心 | 女孩近景,三次小插入(红纸 / 蜡烛 / 爆竹)卡在旁白的三个词上 |-| 折—剪 | 俯视桌面特写,镜头跟刀尖移动;折叠用固定机位让观众看懂 |-| 展开 | 强拍上团花撑满画面,随后急拉到窗前——团花成为窗花 |-| 亮村 | 大全景(年兽 + 房子 + 窗),光束扫过雪地;八扇窗依次亮 |-| 年兽逃 | 跟摇,年兽缩进远山 |-| 天亮 | 天色从靛蓝纸"换纸"成米白宣纸,金箔太阳升起 |-| 尺度揭示 | 慢拉远,窗框、窗台、剪刀入画,窗外晨光照透窗花 |--## 7. 分镜节拍表(120 BPM,2/4 拍:1 拍 = 0.5 s,1 小节 = 1.0 s;时间为暂定,配音定稿后微调)--| # | 时间 (s) | 画面 | 声音 |-|---|---|---|---|-| S1 | 0.0–3.0 | 黑 0.25 s → 极近特写:一把红纸剪刀的刃咬进红纸,"咔嚓";刀尖沿弧线走,两片碎纸飘落。2.4 剪下的纸被提走(纸翻飞出画),露出下面的宣纸。 | 0.25 / 1.0 / 1.75 剪刀声(清脆纸裂 + 金属刃擦);2.5 琵琶上滑引子 |-| S2 | 3.0–7.0 | **片名**:宣纸上的红纸剪字 *NIAN COMES TO TOWN*,锯齿边横批框,左下一方"年"字红印;雪花纸屑飘过。6.5 片名纸沿中线对折翻过去(纸转场)。 | 主题 A 全奏首句(琵琶 + 筝 + 笛 + 木鱼),3.0 小锣 |-| S3 | 7.0–12.0 | **夜村**:靛蓝夜纸、打孔雪;远山 / 红纸房子 / 前景枯枝三层视差慢横移。家家窗花透着暖光(小面积背光)。镜头停在女孩的窗:她在窗前剪纸(中景)。 | 主题 A 轻(笛旋律 + 筝分解和弦 + 木鱼反拍);L1 |-| S4 | 12.0–17.0 | 12.0 远山山脊抖了一下、**站起来**——锯齿山脊是年兽的背脊。年兽转头,巨大、占满画面,一步一震。窗灯一盏盏熄灭(每拍一盏)。16.5 最后一盏熄。 | 12.0 手鼓低音一击,音乐掉到低音手鼓心跳 + 二胡下滑;每熄一盏一声闷手鼓;L2 |-| S5 | 17.0–19.5 | **静**:黑屋里看窗。年兽的眼睛滑进窗格、填满整扇窗、眨眼。女孩在前景缩下窗台,只露发髻。 | **音乐全停**,只剩风雪声、年兽粗重的鼻息 |-| S6 | 19.5–24.0 | 女孩近景,从怕到下决心。三次小插入卡在旁白"red / light / noise":一张红纸、一支蜡烛、一挂小爆竹。她换上"决心"脸片、点头。 | 筝轻摇指铺底;三个词各一声琵琶单音;L3 |-| S7 | 24.0–30.0 | **折**(24.0 / 25.0 / 26.0 三折,每折一声木鱼)→ **剪**(26.5–29.5):俯视特写,镜头跟刀尖走过锯齿边、月牙、灯笼;纸屑飘落堆在桌上。29.5 剪刀停,屏息。 | 琵琶轮指 + 筝八分音符固定音型、逐渐上行加密;每刀一声剪;29.5–30.0 静 |-| S8 | 30.0–31.0 | **展开**:30.0 / 30.25 / 30.5 三次展开,31.0 强拍整张团花绽开、撑满画面。 | 筝三级刮奏 → 31.0 全奏 + 大锣 |-| S9 | 31.0–38.0 | 团花贴上窗、烛火一亮:**背光透亮**,光束穿过纹样扫过雪地、落在年兽脸上。八盏灯笼纹样飞出,八扇窗依次亮起(32.0–33.75 每八分音符一扇);纸屑飞起成爆竹炸开,天上小团花烟花展开。年兽眯眼、捂眼、夹尾、转身逃进远山。 | 主题 A 全奏(琵琶、筝、二胡、笛、木鱼、手鼓、小锣)+ 合成爆竹(密集噼啪 + 远处闷响);八扇窗 = 筝五声上行八个音;L5 |-| S10 | 38.0–42.5 | **天亮**:靛蓝夜纸像被揭掉一样换成米白宣纸,金箔太阳从山后升起;女孩趴在窗前睡着,手里还捏着剪刀。 | 笛独奏主题(慢)+ 筝泛音;L6 |-| S11 | 42.5–46.0 | **尺度揭示**:慢拉远——整个画面是一张圆形窗花,贴在木格窗的窗户纸上,窗外晨光从背后照透它;窗台上一把剪刀、一地红纸屑。 | 主题尾句,44.0 终止和弦 + 小锣 |-| S12 | 46.0–49.0 | 片尾卡:红纸剪字 *RED PAPER-CUT*,下方 *LemoLab × Claude Opus 5.5*,金箔洒点。 | 小锣余音 + 两声木鱼 |--### 旁白(af_sarah,速度 0.9,奶奶在除夕夜讲故事;实测时长为试音结果)--| id | 起点 | 文本 | 试音时长 |-|---|---|---|---|-| L1 | 7.6 | Every New Year's Eve, the monster Nian came down from the mountains. | 3.85 s |-| L2 | 13.6 | One by one, the village put out its lights. | 2.55 s |-| L3 | 19.8 | But Nian fears three things: the color red, bright light, and loud noise. | ~4.5 s |-| L5 | 35.2 | Crackle, bang! And away ran Nian. | 2.23 s |-| L6 | 38.6 | That is why, every New Year, we still paste red paper on our windows. | 4.35 s |--(whisper 把 Nian 听成 "Nyan"——这其实是正确读音 nián 的近似,按同音在 `asr` 字段登记。)--## 8. Cue map(原创配乐,2/4 拍 120 BPM,D 宫五声音阶 D E F# A B;采样库 READY)--配器:`pluck:pipa`(旋律 + 轮指 trem)、`dan_tranh` / `dan_tranh_trem`(当古筝 / 扬琴:分解和弦、刮奏、摇指)、`erhu`(副旋律、滑音)、`flute`(当笛子:旋律高八度、倚音)、`woodblock`(木鱼:拍点、折纸)、`gong2:small`(小锣:句头 / 句尾)、`gong2:big`(只在 31.0 一次)、`frame_drum`(手鼓:年兽段低音、全奏段节奏)。**不用钢琴、不用弦乐组、不用锣鼓经唢呐**(与 shadow-puppet、ink-wash 区分)。--| Cue | 时间 | 速度 | 配器 | 情绪 | 卡点 |-|---|---|---|---|---|---|-| C0 剪 | 0–3 | 自由 | 无乐,只有剪刀声;2.5 琵琶上滑引子 | 好奇 | 0.25 / 1.0 / 1.75 剪;2.5 引子 |-| C1 片名 | 3–7 | 120 | 主题 A:琵琶旋律(长音轮指)、筝分解、笛高八度、木鱼每拍 | 喜庆、明亮 | 3.0 小锣;6.5 片名翻折(筝上刮) |-| C2 夜村 | 7–12 | 120 | 主题 A 轻:笛独奏旋律 + 筝分解 + 木鱼反拍 | 温暖、安宁 | 旁白下闪避 |-| C3 年兽 | 12–17 | 60(半速感) | 手鼓低音心跳、二胡慢滑下行(D4→A3)、筝低音区单音 | 压迫 | 12.0 手鼓重击;每熄一盏一声闷手鼓;16.5 最后一盏 |-| C4 静 | 17–19.5 | — | **无音乐**(风雪、鼻息) | 屏息 | 18.3 眨眼(极轻木鱼一声) |-| C5 决心 | 19.5–24 | 120 | 筝摇指铺底、琵琶单音 ×3(卡 red / light / noise)、二胡上行 | 从怕到勇 | 23.5 琵琶上行句收束 |-| C6 折剪 | 24–30 | 120 | 24 / 25 / 26 木鱼(折);26.5 起琵琶轮指 + 筝八分固定音型,每小节升一级 | 蓄力 | 每刀一剪;29.5 全停 |-| C7 展开 | 30–31 | 120 | 筝三级刮奏(30.0 / 30.25 / 30.5) | 爆发前一瞬 | **31.0 全奏 + 大锣** |-| C8 满村红 | 31–38 | 120 | 主题 A 全奏 + 手鼓 + 小锣 + 合成爆竹;八扇窗 = 筝八音上行 | 狂欢、胜利 | 32.0–33.75 八窗;35.0 年兽转身;37.5 句尾小锣 |-| C9 天亮 | 38–42.5 | 90 | 笛独奏(慢)、筝泛音、二胡长音 | 释然 | |-| C10 揭示 | 42.5–46 | 90 | 主题尾句(琵琶 + 筝 + 笛齐奏),终止在 D | 回响 | 44.0 终止和弦 + 小锣 |-| C11 片尾 | 46–49 | — | 小锣余音 + 两声木鱼 | 落款 | 46.5 / 47.0 |--旁白期间音乐闪避约 −8 dB;重拍避开旁白词头。--## 9. 声音设计(拟音跟材质走:纸、剪刀、烛火、爆竹)--- **剪刀**:两刃擦过的金属"嚓"(高频带通噪声扫频 + 3.8 kHz 短振铃)+ 纸纤维断裂的清脆"咔"(短促瞬态 + 细碎噪声颗粒)。开场第一声要干净、近、响。-- **纸**:折纸 = 纸面滑过的"沙"+ 压折痕的"嗒";展开 = 纸"啪"地抖开(低频气流 + 纸面振动);碎纸飘落 = 极轻的沙沙;贴窗 = 手掌轻拍纸。-- **年兽**:脚步 = 厚纸板落地的闷"嘭"(纸的声音,不是肉)+ 画面微震;鼻息 = 低通噪声吸呼;被光照到的一声"呜"(二胡采样下移 + 低通,像憨憨的委屈)。-- **灯**:熄灯 = 烛芯"噗";点灯 = 火柴擦 + 火苗"呼"。-- **爆竹**:合成一串密集噼啪(随机间隔 20–60 ms 的短瞬态,越来越密)+ 远处闷响;烟花 = 上升哨音 + 闷响 + 纸屑落下的沙沙。-- **环境**:夜村 = 风雪的低嘶;天亮 = 一两声远处的鸟。--## 10. 字幕设计--"红纸横批":一条深红纸条(`#A8111F`,比画面里的红深一档,才能压得住白字),两端剪成锯齿燕尾,纸面带洒金点和纤维,左端一个小团花孔作句首符;英文字幕 **Fraunces SemiBold(OFL)44 px、米白 `#FFF1D6`**,纸条居中贴底 70 px,自带一层纸影。出现时像贴春联一样从上方轻轻"落"到位(0.15 s,12 fps 两步),消失时淡出。每句停留 ≥ 语音 + 0.6 s 且 ≥ 1.8 s;字幕区间不重叠。片名、片尾是**真的红纸剪字**(阳刻字母,字母内部孔自然镂空)。--## 11. 与风格说明的差异及理由--1. **时长 ~49 s(说明 40 s)**:主招式"折—剪—展开"要让观众看懂三次折叠(每折 1 s)和刀尖走一遍(3 s),再加上窗里的眼(静场 2.5 s)和尺度揭示(3.5 s),压到 40 s 会让折纸变成看不懂的快闪。仍在 30–60 s 规格内,按"观众能看懂"留时长。-2. **灯笼 → 八窗**:说明是"花纹变成满村的窗花和烟花",我把因果收紧为"一刀八个"——团花里的八盏灯笼纹样正好八户人家,让折纸的数学直接成为剧情。-3. **山脊站起来**:年兽的第一次登场用"远山原来是年兽的背"——剪纸里山和兽都是同一种锯齿纹,这个错觉只有剪纸能做。-4. **纸屑成爆竹**:说明里爆竹是合成音效;画面上我让开场和折剪段落下的纸屑在高潮飞起炸开,前后有因果。-5. **表情 = 换脸片**:剪纸人物不做渐变表情,设定表给 4 张可替换的脸片(开心 / 惊 / 怕 / 决心)。-6. **正面视图用"对折剪"生成**:剪纸人物以侧面为主;设定表的正面是把半边剪纸镜像出来的对称形——本身就是剪纸的做法。-------## 12. 制作后记(成片与方案的差异)--- **夜景配色**(关卡 1 协调者意见):背景层(天、远山、近山、房子、树、雪)全部改为靛蓝纸族,只有窗花、灯笼、女孩、年兽是红纸;天亮时整张夜纸从右上角揭掉,露出米白宣纸 + 红纸的白天(多了一个"纸"的转场)。-- **年兽的腿**:去掉小腿月牙横纹,改为粗壮兽腿 + 四个弯爪尖 + 膝部旋涡关节。-- **年兽被照到**:纹样 + 实心暖光用加色叠在年兽图层内,眯眼和大颗眼泪是"孔",在亮面上读得出(笑点);没被照到的部分压暗成剪影。-- **窗花辉光收敛**:辉光强度约 0.55,团花中心不过曝。-- **镜头微调**:窗光这场先推近窗花再拉出全村;灯笼按离女孩家由近到远飞,和 8 个筝音一一对应。片头剪下的纸飞走时叠在片名卡上,避免空白帧。决心、贴窗、睡着三个表情镜头都用中近景。-- **旁白**:L3 缩短为 "But Nian fears three things: the color red, bright light, and loud noise."(4.45 s),三个词分别对应红纸弹一下、蜡烛点亮、爆竹晃动;L4 为 "Crackle, bang! And away ran Nian."。-- **时长**:49.0 s,与方案一致。diff --git a/styles/papercut-red/style.json b/styles/papercut-red/style.jsonnew file mode 100644index 0000000..9da5be1--- /dev/null+++ b/styles/papercut-red/style.json@@ -0,0 +1,18 @@+{+ "slug": "papercut-red",+ "num": "09",+ "en": "Red Paper-cut",+ "cn": "红色窗花剪纸",+ "category_en": "East Asian Traditions",+ "category_cn": "东方传统",+ "film": "Nian Comes to Town",+ "line": "On New Year's Eve the beast Nian comes to town, and one girl's giant paper-cut lights up the village to scare it off.",+ "line_cn": "除夕年兽进村,小女孩剪出的大窗花照亮全村,把它吓跑。",+ "uses": [+ "Lunar New Year",+ "Festive greetings",+ "Folk tales"+ ],+ "frame_sec": 35.28,+ "dur": 49.0+}diff --git a/styles/pictogram-motion/DEMO.md b/styles/pictogram-motion/DEMO.mdnew file mode 100644index 0000000..32fc076--- /dev/null+++ b/styles/pictogram-motion/DEMO.md@@ -0,0 +1,265 @@+# Pictogram Motion — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Aichi-Nagoya 2026 — All 43 Sports* (EN-JP version, 163.6 s, 1920×1080 @ 60 fps, 150 BPM, 70 sport cards, no narration) · `pictogram-motion.mp4` · source in [`demo/`](demo/) (local, not published) · engine: Canvas2D (`engine.js` + `scenes.js` + `poses/*.js`), headless Chrome frame capture, numpy-synthesised score.+++> **Rights note.** The demo is a fan-made promo for a real event, the 20th Asian Games Aichi-Nagoya 2026. The event name (AICHI-NAGOYA 2026 / THE 20TH ASIAN GAMES), the slogan (IMAGINE ONE ASIA / ここで、ひとつに。), the emblem-like red-sun-and-rings mark drawn in code, the five-colour palette and its colour names, and the grid pattern language all follow the organiser's identity. They belong to the organiser (Aichi-Nagoya Asian Games Organising Committee / Olympic Council of Asia). `demo/ref/` holds official images downloaded from the Games' website for reference only. They are never drawn into the film and must not be redistributed. **Any other film made from this code must replace all event-specific elements** (see [Replacing the event elements](#replacing-the-event-elements)).++## Story & structure++A fan promo listing every sport of a multi-sport games, one card per sport, on the beat. How the demo used the style's native powers:++| Native power | Story use |+|---|---|+| **One card = one item** | Any list of 20–80 things: every event of a games, every tool in a kit, every station of a process. The count is the hook ("ALL 43 SPORTS"). |+| **Chapters = colours** | Group the list into 5–7 families. Each family gets a palette hue, so the viewer always knows where they are. |+| **Pictogram action** | Every item needs one *verb* that reads in 1.6 s (throw, jump, swing, pedal). If an item has no body action, give it a prop action (a gear turns, a cup pours). |+| **Pace ladder** | Normal cards are 4 beats (1.6 s). Sub-families become 2-beat rapid-fire runs (4 swim strokes, 4 cycling disciplines, the racket sports), which gives the film a second tempo without changing BPM. |+| **Long take** | The first and biggest chapter is one sideways camera move down a track: 14 stations one screen apart, with a whip-pan on each beat-cut. Use it for the "hero" family. |+| **Grand finale grid** | All items come back as a 9×5 icon wall, flip in, turn one colour, collapse into a single sun, then the slogan and the end card. |++**Story shape (demo):** heartbeat cold open (a red dot pulsing on ink, rings drawing around it) → title slam on a full five-colour pattern → three count-ups (43 SPORTS / 469 EVENTS / 16 DAYS) → "ON YOUR MARKS… SET…" with half a beat of silence → 7 chapters, 70 cards → icon-wall finale → slogan → end card → fade to black over the music's ring-out.++Adapting a topic: list the items; group them into 5–7 chapters; give every item a one-beat verb; pick one chapter for the long take; choose which runs go 2-beat; write a two-line slogan for the finale.++### The demo's look, as built++A **catalogue film**: a set of N items (sports, products, features, dishes, steps) is shown one card at a time, fast, on the beat. Each card = **one pictogram doing one action + a huge title + a second-language line + a mono index "07 / 43"**. Cards are grouped into chapters. Each chapter owns one colour of a five-colour palette. A chapter card with a full-bleed pattern opens each group.++The recognisable ingredients are:+1. **The grid pattern** ("core graphic"): a 180 px square grid. Big discs and half-discs span cells. About half of the cells carry a small motif (fish-scale waves, dot scales, triangle scales, striped sunset, gear/sun wheel, crescent, concentric arcs, checker, gradient quarter-disc…). The pattern uses **5 tones of one hue**, and **whole rows are cut and shifted sideways**. The row shift is the signature: it drives the backgrounds, the chapter beats and the main transitions.+2. **The pictogram athlete**: flat, faceless, built from rounded bars with a disc head. The near-side limbs are drawn in the foreground colour and the far-side limbs in a colour 42 % mixed toward the background. Props are just as geometric: discs, rings, capsules, straight lines.+3. **Type as architecture**: a 900-weight grotesk title (Inter Tight) set 150–330 px tall, and a heavy CJK line (Noto Sans JP) under it. Small DM Mono meta text sits in the corners, as on a broadcast HUD.++The mood is premium sports-broadcast identity: flat colour, no gradients except one soft light sweep, no outlines, no textures except a very light film grain.++## Shots++| # | Section | Camera / picture | Native move / note |+|---|---|---|---|+| 1 | Cold open | Locked frame: a red dot pulsing on ink like a heartbeat, rings drawing around it | the only `oBack` ease |+| 2 | Title | Slam on a full five-colour pattern; rows transition out | row-shift reveal |+| 3 | Count-ups | 43 SPORTS / 469 EVENTS / 16 DAYS, one bar each | count-up slam |+| 4 | "ON YOUR MARKS… SET…" | Locked; half a beat of silence before the first chapter | silence before a big hit |+| 5 | Athletics (chapter 1) | The long take: 14 stations one screen apart, whip on every cut | long take down a track |+| 6 | Chapters 2–7 | Locked cards, layouts A/B/C/M rotated per chapter, 2-beat runs for swim strokes, cycling and rackets | chapter = colour; pace ladder |+| 7 | Finale | 9×5 icon wall flips in, turns one colour, zooms to 0.9, tiles collapse into one red sun | icon wall; many become one |+| 8 | Slogan + end card | Sun and rings rise and shrink; slogan, title, dates, colour bars, credit line; fade to black over the ring-out | see End card |++The camera exists only in the **long take** (`trackScene`). There, 14 stations are laid one screen width apart. The camera drifts at 42 px/s and on every cut whips one full screen (`E.ioExp` from 0.14 s before the beat to 0.24 s after). Two background rows of 360 px motif cells scroll at parallax 0.28 and 0.42. The deep-red track (y 780) has cream lane lines, and dashes roll faster for running events (`RUNNING` speeds). An event spec (`100M`, `4×100M`, `7.26 KG`…) is painted on the track, sheared −0.35, at 12 % cream. Everywhere else the frame is locked and flat; energy comes from the row shifts, transitions and figure actions.++Intro and finale "camera": the finale wall zooms to 0.9 with 10 px gutters, then every tile collapses to the centre and a red sun grows out of it. The end card's sun and rings rise from the centre to y 330 as they shrink to 0.62×.++## Score structure++- **No narration.** The film is carried by type and music. The subtitle file is a title-card track only (see End card).+- **Score**: original, fully synthesised in `demo/music/music.py` (numpy + scipy; no samples). "Wadaiko × electronic", 150 BPM 4/4, D *miyako-bushi* (D Eb G A Bb) over D minor harmony, 101 bars = 161.6 s plus a 2 s ring-out. Instruments are synthesised: odaiko / nagado / shime taiko, *ka* rim clicks, kick, clap, snare, hats, shaker, crash, plus foley-like hits (splash, drop, pok, clank, crack). Shamisen and koto are Karplus-Strong plucks (`ks_render`, koto with pitch bends); there are also a synth bass, pads, detuned-saw chord stabs, risers and a drone.+- **Picture-locked by data**: `music.py` reads `music/timeline.json` (exported from `edl.js`). Every shot start gets an accent chosen by chapter (`card_accent`: splashes for aquatics, *pok* for rackets, odaiko + stab for combat, clank for power…). Chapter and finale starts get a `big_hit`, **preceded by a half-beat of silence** (drums and bass muted). The report checks each of the 79 shot onsets to within ±15 ms (demo: 79/79 pass, offsets ≤ 0.2 ms).+- **Master**: stems `music_bed.wav` + `sfx.wav`, a 2:1 glue compressor and a limiter, at −14 LUFS integrated and ≤ −1 dBTP (demo: −14.11 LUFS, −1.12 dBTP). `music/report.txt` holds loudness, band energy, onset and gap checks. Render time is about 30 s.+- **Section layout is hard-coded** in `compose()` (`EXPECTED = dict(intro=0, ath=12, …, finale=89)` in bars). If the EDL changes, the assert fires. For a new film, re-write `compose()` for the new chapter bars (hand it to a music sub-agent with `timeline.json` and this section) and keep `card_accent`, `big_hit` and the report as they are.++## Palette & props++**Canvas**: 1920×1080, grid `G.CELL = 180` (10.7 columns × 6 rows). Everything snaps to that grid: the chapter band is 2 rows tall, transitions cut by 180 px rows or 240 px columns, and the finale wall is 9×5.++**Palette** (`engine.js` → `G.PAL`; each hue has five tones `t[0]` darkest → `t[4]` lightest; `t[2]` is the base). The demo's values were sampled from the official core graphic:++| key | demo name | t[0] | t[1] | **t[2] base** | t[3] | t[4] | fg (type & figure) |+|---|---|---|---|---|---|---|---|+| red | Jonetsu Red | `#c21d15` | `#d22419` | **`#e83220`** | `#ec5a26` | `#f07a45` | cream `#fbf6ec` |+| purple | Kakitsubata Purple | `#231a6e` | `#2c2084` | **`#4e3a93`** | `#644d9d` | `#7a62a9` | cream |+| green | Shinrin Green | `#006d35` | `#008440` | **`#079a3e`** | `#2da547` | `#68b15d` | cream |+| gold | Kinshachi Gold | `#b48900` | `#c69b00` | **`#d5b102`** | `#debc2f` | `#e7d16c` | dark `#211904` |+| ochre | Dento Ocher | `#946a2e` | `#ac7d38` | **`#c18e46`** | `#d2a55c` | `#e0bf84` | dark `#1e1409` |+| ink | Sumi | `#0f0c15` | `#16121d` | **`#1e1a27`** | `#2a2535` | `#3a3447` | cream, accent = gold |++Cream `G.CREAM = #fbf6ec`, ink `G.INK = #15111c`. **Gold and ochre take dark type and dark figures**; the others take cream. `G.CYCLE = ['red','purple','green','gold','ochre']` is the rotation used by multi-colour chapters and the intro pattern. On cards the pattern is drawn at `spread 0.42` (low contrast, so the type reads), and at `spread 0.95` on chapter cards (full contrast).++**The pattern** (`G.pattern(palKey, seed, {spread, density})`): fill with `t[1]`. On each grid node, 34 % of the time place a disc of radius `CELL` in a random tone, and 16 % of the time a `t[3]` disc with a `t[0]` half-radius disc inside it. Then a fraction `density` of the cells get one of 14 motifs (`G.motif` kinds 0–13): quarter-disc, half-disc, disc + dot, striped sunset, *seigaiha* fish-scale waves, dot-scale disc, triangle scales, concentric arcs, sun wheel / gear, checker, crescent, S-wave, gradient quarter-disc, fading bars. Each motif is rotated by a random multiple of 90°. The canvas is 3 cells wider than the screen, so any row can shift ±1 cell. **All the motifs are generic geometry.** Do not draw event mascots, landmarks or products into cells.++**Pictogram figure** (`G.joints` + `G.drawFigure`): the unit is body height = 1 and the origin is the hip. Segment lengths are torso 0.30, neck 0.045, head radius 0.082, upper arm 0.16, forearm 0.15, thigh and shin 0.225. Widths are torso 0.145, arm 0.076, leg 0.094, all with round caps. The draw order is far leg, far arm (colour `far` = fg mixed 42 % toward the background), then torso, near leg, near arm, head (fg). A second person (opponent or partner) is drawn behind in `far2` (60 % mix). In cards the figure stands on a **sun disc** (r 360–380 px, tone `t[1]` on light-fg hues, `t[4]` on gold/ochre, `t[3]` on ink) with one slow 9 % white light sweep across it.++**Card layouts** (`layoutOf(s)`, rotated per chapter by an order string such as `ball: 'ACBAB'`):+- **A**: text block left (x 130, baseline 610); disc and figure right (centre 1290, or 1370 for horizontal swimmers); a 300 px outline index number bottom-right at 20 % opacity.+- **M**: mirror of A (figure left at 640, text right-aligned at 1800).+- **B**: the title **fills the frame** (330 px, colour `t[1]`/`t[4]` "ghost" tone, a single line fitted to 1760 px). The disc and figure sit *over* the title. A bottom info bar has the JP name at 80 px, the EN name at 44 px and the mono meta right-aligned. 2-beat racket runs always use B.+- **C**: a solid 820 px left panel (`t[0]` or `t[4]`) that wipes in, with a 90 px hairline grid at 10 % and the text block on it; the pattern, disc and figure are on the right (1370).++**Type** (`demo/fonts/`, all OFL):+- Title: Inter Tight 900, 170 px (150 in C, 160 on the track), letter-spacing −0.02 em, auto-fitted with `G.fitFont` to 820 px.+- Second language: Noto Sans JP 900 at 92 px (EN-JP) or Noto Sans SC 900 (ZH version, with an extra JP line at 28 px/500).+- Meta: DM Mono 500 22 px, letter-spacing 3 px, e.g. `ATHLETICS 01 / 43`. Tags: a mono chip (`5×5 · 3×3`, `NEW` in red).+- HUD (every card and chapter): DM Mono 17 px in all four corners (event line top-left, chapter top-right) and a **43-tick progress bar** at the bottom. The current item is a tall 4 px tick; done items are at 75 %, the rest at 28 %.++**Grain**: added only at mux time (`noise=c0s=4:c0f=t+u`). The canvas itself is clean.++### Motion, as built++- **Grid of time**: 150 BPM, 1 beat = 0.4 s, 1 bar = 1.6 s. Every shot starts on a beat (`edl.js`), and every key action in a pose lands on an integer beat `u` (release, contact, landing).+- **Easing**: `E.oExp` (exponential ease-out) for almost every entrance; `E.ioExp` for whip-pans and wipes; `E.o5`/`E.o3` for panels and discs; `E.oBack` only for the intro's first dot.+- **Type entrance**: `G.maskText` slides each line up from below a clip rectangle (title over 0–0.5 s, JP line at +0.08 s, tag at +0.2 s). Meta lines type on (`G.typeText`, no caret). 2-beat cards compress all timings by 0.7.+- **Figure assembly**: for the first 0.42 s (0.28 s on 2-beat cards) the figure layer is cut into 54 px horizontal bands that start offset alternately left and right by 90–250 px and slide into register (`stageFigure(..., asm)`). This echoes the pattern's row shift.+- **Backgrounds breathe**: odd rows drift right and even rows drift left at 26 px/s, plus a fixed sine offset per row. On chapter cards every row **jumps a quarter-cell on each beat of the second bar** (beats 4–7), in time with the drums.+- **Chapter card**: a 2-row solid band grows from the centre (`E.o5`). A 330 px outline chapter numeral rises into it, and the title and JP line slide up. Hairlines sit above and below the band.+- **Transitions** (`transType`, window 0.12 s before to 0.26 s after the cut): `rows` (6 rows slide in alternating directions, used into every chapter and out of the intro), `cols` (8 columns drop or rise, used after chapter cards and in 2-beat runs), `slide` (racket runs: a push with a thin shadow edge), `quarter` (quarter-discs grow from cell corners, used into the finale), `iris` (a circle opens from the previous card's figure centre, with a shrinking ring), `flip` (an 11×6 grid of tiles flips over). Normal cards rotate `['quarter','rows','iris','flip','cols'][ci % 5]`. Inside the athletics long take there is **no** transition: the camera whips instead.+- **Motion blur only where it moves**: `isFast(t)` is true in the transition windows, and then `G.renderFrame` averages 5 sub-frames over a 0.5/60 s shutter. Static card frames render once.++## End card++- The type on the cards *is* the text layer; nothing extra is burned in. `pictogram-motion.srt` lists the title cards (intro lines, chapter titles, each card "01/43 ATHLETICS — SPRINT / 短距離", slogan, end card), generated from the EDL by `demo/srt.cjs`.+- **Bilingual rule**: EN is always the big title. The second language is chosen by `?lang=`: `ej` puts Japanese in the big second line (`s.jpBig || s.jp`) and drops the small JP line; the default (ZH) puts Chinese big and Japanese small.+- **End sequence (demo)**: cream end card, red sun + five-colour rings → **IMAGINE ONE ASIA / ここで、ひとつに。** (the official slogan) → **AICHI-NAGOYA 2026**, the dates, five colour bars and the credit line → fade to black (the last 1.3 s) → 2 s black tail over the music's ring-out.+- **Credit line**: our library's demo ends with "LemoLab × Claude Opus 5.5". It sits on the end card, centred under the five colour bars: `G.maskText(ctx, 'LemoLab × Claude Opus 5.5', W / 2, 1000, F.mono(24), rgba(G.INK, 0.6), inv(0.6, 1.2, l), { ls: '4px', align: 'center' })` in `finaleScene` (right after the colour-bar loop). It slides up 0.6 s after the end card lands (just after the bars), holds for about 3.5 s and fades out with the card. It is quieter than the date line, so it never competes with the title. This sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card (take the line out of `finaleScene` when you adapt the code).++## Build notes++```+styles/pictogram-motion/demo/+ index.html loads fonts + edl.js + engine.js + poses/*.js + scenes.js; exposes window.render(t), DUR, READY+ edl.js edit decision list: every intro/chapter/card/finale shot with beats, names (EN/ZH/JP), pose, flags+ engine.js G: easing, rng, palette, grid pattern + motifs, pictogram skeleton, text helpers+ poses/ base.js (pose API + props G.P) + one file per chapter: ath aqua ball combat power nature asia (70 poses)+ scenes.js intro, chapter card, card layouts A/B/C/M, athletics long take, finale, HUD, transitions, motion blur+ render.mjs headless-Chrome frame renderer (stills / video, N workers → seg_*.mp4 + list.txt)+ shot.mjs quick JPEG stills (+ --sheet contact sheet via sheet.py)+ lab.mjs lab.html pose check sheets; lab.mjs also screenshots cover.html / cover34.html (4:3 and 3:4 posters)+ mux.sh concat segments → 2 s tail → grain → + music.wav → mp4+ srt.cjs title-card .srt from the EDL+ music/ music.py (score), export_timeline.cjs (EDL → timeline.json), timeline.json, report.txt+ fonts/ Inter Tight, Noto Sans SC, Noto Sans JP, DM Mono (OFL)+ ref/ official reference images (NOT used by the film, do not publish)+```++All commands run from `styles/pictogram-motion/demo/`. Node uses the repo's `node_modules/playwright-core`, and Chrome is found by `core/render/browser.mjs` (the playwright headless shell or `PLAYWRIGHT_CHROME`). **The language defaults to EN-JP.**++```sh+cd styles/pictogram-motion/demo++# 1. Edit → timeline for the music (re-run after every change to edl.js)+node music/export_timeline.cjs # → music/timeline.json++# 2. Score (≈30 s; writes music/music_bed.wav, sfx.wav, music.wav, report.txt)+../../../.venv/bin/python music/music.py+grep "shots pass" music/report.txt # expect 79/79++# 3. Pose check sheets and stills while working+node lab.mjs stills/lab_ath.png "p=sprint,hurdles,relay&n=8&beats=4"+node shot.mjs 24.8 63.2 104.9 153 --sheet # EN-JP stills → stills/t_*.jpg + stills/sheet.jpg+LANGQ=zh node shot.mjs 63.2 # Chinese version still++# 4a. Render — EN-JP (default): 9696 frames → out_ej/seg_*.mp4+node render.mjs video 12 # 12 workers ≈ 2 min on an M-series Mac; use 2–3 when sharing the machine+./mux.sh # → ../pictogram-motion.mp4 (163.6 s, 9816 frames)++# 4b. Render — Chinese version+LANGQ=zh node render.mjs video 12 # → out/seg_*.mp4+OUTDIR=out ./mux.sh # → out/pictogram-motion_zh.mp4++# Partial re-render (e.g. only the ending): START/END in seconds, into a separate folder+START=148.1333 END=161.6 OUTDIR=out_tail node render.mjs video 2++# 5. Subtitles and posters+node srt.cjs # → ../pictogram-motion.srt+node lab.mjs stills/cover_ej.png "lang=ej" cover.html # 2880×2160 poster+node lab.mjs stills/cover34_ej.png "lang=ej" cover34.html # 2160×2880 poster+```++How the two language versions differ: the only switch is the URL query `?lang=ej`. `render.mjs` and `shot.mjs` add it from `LANGQ` (default `ej`); `scenes.js` reads it into `G.EJ` and changes the second-language lines (intro title, count-up labels, ON YOUR MARKS, cards, chapter cards, end card). `render.mjs` writes EN-JP segments to `out_ej/` and ZH to `out/`; `mux.sh` reads `OUTDIR` (default `out_ej`). Picture timing and music are identical.++`render.mjs` pipes JPEG-100 screenshots into ffmpeg (`libx264 -crf 12`) per worker; `mux.sh` re-encodes the joined film at `-preset slow -crf 14`, 60 fps, GOP 120, AAC 320k, with a 2 s cloned tail so the music's ring-out plays over black.++Pitfalls we hit (several are tied to this demo's props):++- **Figure environments ate the type.** Water surfaces, ramps, fences and nets belong to the figure layer and spread into the text column. Fix: `stageFigure` renders into its own buffer and applies a `destination-in` gradient mask (`{x0|x1|y1, f}`) that fades the layer to zero 90–120 px before the text area.+- **Gold and ochre need dark type and dark figures** (`fg #211904 / #1e1409`), and their disc is the *lighter* tone `t[4]`. Cream on gold fails contrast.+- **The ink chapter's disc vanished** at `t[1]`. Use `t[3]` for the sun disc on ink.+- **Pattern canvases are big** (2520×1260 each, and every card uses a new seed). Cache them, but cap the cache: `G.pattern` keeps an LRU of about 10 entries. An unbounded cache eats memory fast when 12 browsers render at once.+- **zsh loops**: in `while read line` loops the variable does not word-split. Use `${=line}` when passing lists of times to `node shot.mjs`.+- **Horizontal poses** (swimming) need the stage moved right (`wide`: disc at 1370, text max width 700) or the arms cross the title.+- **Official identity**: the demo imitates a real event's identity closely. That is fine for a fan piece but not for a style library; see [Replacing the event elements](#replacing-the-event-elements).++## Engine reference++### `engine.js` (window.G)++| API | What it does |+|---|---|+| `G.E.{lin,io,o2,o3,i3,io3,oExp,iExp,ioExp,oBack,o5}` | easings (input clamped 0..1) |+| `G.clamp, G.lerp, G.inv(a,b,x)` | `inv` = normalised progress of x between a and b, clamped; used for every timing |+| `G.rng(seed)` | deterministic mulberry-style RNG |+| `G.PAL[key]`, `G.CYCLE`, `G.CREAM`, `G.INK`, `G.mix(a,b,t)`, `G.rgba(hex,a)` | palette and colour helpers |+| `G.pattern(pk, seed, {spread=1, density=0.5, cell=180})` | returns a cached pattern canvas (3 cells wider than the screen) |+| `G.drawPattern(ctx, pat, offs(row)→px, {oy})` | draws the pattern with a per-row horizontal offset (clamped ±1 cell) |+| `G.motif(ctx, kind 0–13, x, y, size, [bg, main, sub, accent], rng)` | one patterned cell |+| `G.joints(pose)` → `{hip, neck, sho, head, up, aL, aR, lL, lR}` | skeleton from a pose object |+| `G.drawFigure(ctx, J, nearCol, farCol)` | draw the pictogram (unit = body height) |+| `G.keyPose(keys, u, loop?)`, `G.lerpPose(a,b,t)` | keyframed poses in beats; each key `{b, ...angles, e:'easing'}` |+| `G.runCycle(phase, k, {lean})`, `G.walkCycle(phase, k)` | procedural gait (phase in cycles) |+| `G.fitFont(ctx, text, 'en'/'zh'/'jp', weight, px, maxW, ls)` | shrink font size to fit |+| `G.maskText(ctx, text, x, y, font, col, p, {align, ls, dir})` | mask slide-up entrance, p 0→1 |+| `G.typeText(ctx, text, x, y, font, col, p, {align, ls, caret})` | typewriter |+| `G.hair(ctx, x, y, w, col, p, lw)` | hairline wipe |++**Pose angle convention**: `rot` = whole body (positive = pitch forward); `torso` = upper-body lean; `head` = nod. Limbs are measured from "straight down = 0°", with forward = 90°, overhead = 180° and backward negative. Arms are in torso space and legs in body space. `aR2` and `lR2` (forearm, shin) are absolute in the same frame, not relative to the upper segment. R = near side (bright), L = far side (dim). `x, y` move the hip.++### Pose definitions (`poses/*.js`, contract in `poses/base.js`)++```js+POSES.name = {+ pose: (u) => ({...}), // or keys: [...] + loop: beats (u = beats since the card started)+ back: (ctx, J, u, C) => {}, // props/environment behind the figure (unit = body height, origin = hip)+ front: (ctx, J, u, C) => {}, // props in front (ball, racket, bow)+ second: (u) => ({...}), secondX: [dx, dy], secondFace: -1, // opponent / partner, drawn in C.far2+ fig: { s, x, y }, // scale/offset inside the stage+ iconU: 0.6, // which beat to freeze for the finale icon wall+};+// C = { fg, far, far2, acc, bg, line } from G.colorsFor(pk, discColour)+// props: G.P.ball, G.P.racket, G.P.stick, G.P.ground, G.P.speed (speed lines), G.P.arc (flight arc)+```+Check poses with `node lab.mjs out.png "p=a,b,c&n=8&beats=4&pal=red"`: each row is one pose sampled at n moments over `beats`.++### `edl.js`++`chapter(id, no, en, zh, jp, palKey)` adds an 8-beat chapter card. `card(n, en, zh, jp, pose, {beats=4, sub, fam, jpBig, track, water, racket, family})` adds one item. `fam: true` means the big title is `sub` and `en` becomes the small family line. `track: true` puts a card into the long take (all track cards must be consecutive). `racket: true` gives 2-beat B-layout cards with slide transitions. `palKey 'multi'` rotates `G.CYCLE` per card. Intro and finale are `{kind:'intro'|'finale', beats: 48}`. The script computes `b0, t0, dur`, then `EDL.DUR` = total beats × 0.4 s.++### `scenes.js`++`G.renderFrame(ctx, t)` → `frame()` finds the shot by binary search, decides whether t is inside a transition window, renders A and B into offscreen buffers and composites them, then draws the HUD. Key functions: `cardScene` (layouts via `layoutOf`), `chapterScene`, `trackScene` (`trackCam`, `stationX`, `SPEC`, `RUNNING`), `introScene`, `finaleScene` (`GRID 9×5`, `rings()`), `hud`, `transType` / `composite`, `stageFigure(ctx, poseName, u, C, x, y, scalePx, asm, mask)`, `patBg`, `multiBg`, `textBlock`, `sun`, `bigNumber`.++### Minimal example — a new card and a new pose++```js+// poses/nature.js (or a new poses/xxx.js added to index.html)+POSES.kite = {+ iconU: 1,+ keys: [+ { b: 0, torso: -6, aR1: 150, aR2: 160, aL1: 20, aL2: 40, lR1: 10, lL1: -12 },+ { b: 1, torso: -12, aR1: 170, aR2: 175, aL1: 30, aL2: 60, lR1: 18, lL1: -20, e: 'oExp' }, // tug on the beat+ ],+ loop: 2,+ front: (ctx, J, u, C) => { // string + diamond kite, all geometry+ const h = J.aR[2], k = [h[0] + 0.55, h[1] - 0.75 + 0.04 * Math.sin(u * Math.PI)];+ G.seg(ctx, h, k, 0.01, C.line);+ G.poly(ctx, [[k[0], k[1] - 0.12], [k[0] + 0.08, k[1]], [k[0], k[1] + 0.12], [k[0] - 0.08, k[1]]], C.acc);+ },+};+// edl.js, inside a chapter+card(44, 'KITE FLYING', '放风筝', '凧揚げ', 'kite', { sub: 'NEW' }); // n = index shown as "44 / N"; update the total (see below)+```+Then: `node lab.mjs stills/lab_kite.png "p=kite&n=8&beats=4"` → `node music/export_timeline.cjs` → (update `compose()` if chapters moved) → `node shot.mjs <t>` → render.++### Replacing the event elements++| What | Where | Replace with |+|---|---|---|+| Event name, edition, host city, dates | `scenes.js` 372–373, 398–407, 417, 539–541, 562–566; `cover.html` 94–114; `cover34.html` 90–113 | your own title and date line |+| Slogan "IMAGINE ONE ASIA / ここで、ひとつに。/ 在这里,合而为一" | `scenes.js` 534–536; covers | your own two-line slogan |+| Emblem-like mark (red sun + five rings, `rings()`, `RINGS`) | `scenes.js` 341–352, intro 356–375, finale 509–531 | an original mark, e.g. your own shape built from the grid motifs |+| Palette names (Jonetsu Red, Kakitsubata Purple, Shinrin Green, Kinshachi Gold, Dento Ocher) and hexes | `engine.js` `PAL` (lines 45–51); the name is printed on chapter cards (`scenes.js` 246) | a custom five-hue set with 5 tones each; keep the dark-fg rule for light hues |+| Item list, counts "/ 43", 43 HUD ticks, "469 EVENTS / 16 DAYS", finale "2026" tile | `edl.js`; `scenes.js` 118, 184, 414–418, 512, 570 | your list and numbers (derive from `CARDS` instead of hard-coding 43) |+| Chapter layout in the score | `music/music.py` `EXPECTED` + `compose()` | re-composed sections |+| Official reference images | `demo/ref/` | never ship; collect your own references |++Keep the grammar: the grid pattern with row shifts, pictogram athletes, the bilingual mask-slide type, the HUD with index and progress, beat-locked cards with a pace ladder, one long take, and the icon-wall finale.diff --git a/styles/pictogram-motion/STYLE.md b/styles/pictogram-motion/STYLE.mdindex 50e7923..a868835 100644--- a/styles/pictogram-motion/STYLE.md+++ b/styles/pictogram-motion/STYLE.md@@ -1,255 +1,117 @@# Pictogram Motion — Style Prompt-> A beat-locked flash-card film built from three things only: a **square-grid "core graphic"** of circles, half-discs and tiny patterned cells whose rows slide past each other; **geometric pictogram athletes** made of round-capped bars and a disc head; and **bold bilingual type** that slides up out of masks. Every cut lands on a drum hit.-> Demo: *Aichi-Nagoya 2026 — All 43 Sports* (EN-JP version, 163.6 s, 1920×1080 @ 60 fps, 150 BPM, 70 sport cards, no narration) · `pictogram-motion.mp4` · source in `demo/` · engine: Canvas2D (`engine.js` + `scenes.js` + `poses/*.js`), headless Chrome frame capture, numpy-synthesised score.-> References (grammar only): Otl Aicher's 1972 Munich pictograms (geometric athletes); multi-sport-games "look of the games" identity systems (a modular pattern + a colour set used for everything); Swiss sports-broadcast graphics (mono meta text, tick-bar progress). Learn the grammar; never copy any real event's pictograms, emblem, slogan or pattern artwork.+> A beat-locked flash-card film built from three things only: a **square-grid "core graphic"** of circles, half-discs and tiny patterned cells whose rows slide past each other; **geometric pictograms** made of round-capped bars and a disc head; and **bold bilingual type** that slides up out of masks. Every cut lands on a drum hit.+> References (grammar only): Otl Aicher's 1972 Munich pictograms (geometric athletes); multi-sport-games "look of the games" identity systems (a modular pattern + a colour set used for everything); Swiss sports-broadcast graphics (mono meta text, tick-bar progress). Learn the grammar; never copy any real event's pictograms, emblem, slogan, pattern artwork or colour names, and never name them in the film.-> **Rights note.** The demo is a fan-made promo for a real event, the 20th Asian Games Aichi-Nagoya 2026. The event name (AICHI-NAGOYA 2026 / THE 20TH ASIAN GAMES), the slogan (IMAGINE ONE ASIA / ここで、ひとつに。), the emblem-like red-sun-and-rings mark drawn in code, the five-colour palette and its colour names, and the grid pattern language all follow the organiser's identity. They belong to the organiser (Aichi-Nagoya Asian Games Organising Committee / Olympic Council of Asia). `demo/ref/` holds official images downloaded from the Games' website for reference only. They are never drawn into the film and must not be redistributed. **Every new film in this style must replace all event-specific elements** (see §10.6).+## 1. Essence, and what it is not-You are directing a film in the **Pictogram Motion** style. The user gives you a topic. You decide everything else (the list of items, chapters, colours, timing, music) and deliver a finished film. Follow this guide.+A **catalogue film**: N items (products, dishes, steps, species…) shown one card at a time, fast, on the beat. Each card = **one pictogram doing one action + a huge title + a second-language line + a mono index "07 / N"**. Cards group into chapters; each chapter owns one hue, opened by a full-bleed pattern card.----+What makes a frame read as this style at a glance:+1. **The grid pattern**: big discs and half-discs spanning square cells, about half the cells carrying a small motif, all in **five tones of one hue**, with **whole rows cut and shifted sideways**: the signature that drives backgrounds and transitions.+2. **The pictogram figure**: flat, faceless, rounded bars and a disc head; far-side limbs mixed toward the background. Props are discs, rings, capsules, lines.+3. **Type as architecture**: a 900-weight grotesk title set very large, a heavy second-language line under it, small mono meta text in the corners like a broadcast HUD.+4. **Beat lock**: every shot starts on a beat, every key action lands on a beat.-## 1. What this style is+Mood: premium broadcast identity; flat colour, light grain, one soft light sweep as the only gradient.-A **catalogue film**: a set of N items (sports, products, features, dishes, steps) is shown one card at a time, fast, on the beat. Each card = **one pictogram doing one action + a huge title + a second-language line + a mono index "07 / 43"**. Cards are grouped into chapters. Each chapter owns one colour of a five-colour palette. A chapter card with a full-bleed pattern opens each group.+Not an isometric infographic (no depth, no 3D), not Swiss motion graphics (the figure and the pattern carry as much as the type), not a cartoon (figures never emote, have no faces), not a data film (numbers are labels, not charts).-The recognisable ingredients are:-1. **The grid pattern** ("core graphic"): a 180 px square grid. Big discs and half-discs span cells. About half of the cells carry a small motif (fish-scale waves, dot scales, triangle scales, striped sunset, gear/sun wheel, crescent, concentric arcs, checker, gradient quarter-disc…). The pattern uses **5 tones of one hue**, and **whole rows are cut and shifted sideways**. The row shift is the signature: it drives the backgrounds, the chapter beats and the main transitions.-2. **The pictogram athlete**: flat, faceless, built from rounded bars with a disc head. The near-side limbs are drawn in the foreground colour and the far-side limbs in a colour 42 % mixed toward the background. Props are just as geometric: discs, rings, capsules, straight lines.-3. **Type as architecture**: a 900-weight grotesk title (Inter Tight) set 150–330 px tall, and a heavy CJK line (Noto Sans JP) under it. Small DM Mono meta text sits in the corners, as on a broadcast HUD.+## 2. Materials & rendering-The mood is premium sports-broadcast identity: flat colour, no gradients except one soft light sweep, no outlines, no textures except a very light film grain.+- **Flat Canvas2D**, rendered clean; grain only at mux time. **One square grid** (cell ≈ 1/6 of the frame height) rules bands, transitions and walls.+- **Pattern model**: fill with a mid-dark tone; on grid nodes randomly place cell-radius discs in random tones and discs-with-inner-discs; then a fraction of cells get one motif from a library of generic geometry (quarter-discs, fish-scale waves, dot and triangle scales, concentric arcs, sun wheels, checkers, crescents…), rotated by multiples of 90°; never mascots, landmarks or logos. Draw it wider than the screen so any row can shift one cell.+- **Figure model**: unit = body height, origin at the hip; draw far limbs (mixed ~40 % toward the background), torso, near limbs, head. A second person sits behind, mixed further (~60 %).+- **Stage**: the figure stands on a large **sun disc** in a neighbouring tone, crossed by one faint light sweep.+- **Figure environments** (water, nets, ramps) live in the figure's own buffer, masked to zero before the text column.-## 2. Story: what fits this style+## 3. Colour logic-| Native power | Story use |-|---|---|-| **One card = one item** | Any list of 20–80 things: every event of a games, every tool in a kit, every station of a process. The count is the hook ("ALL 43 SPORTS"). |-| **Chapters = colours** | Group the list into 5–7 families. Each family gets a palette hue, so the viewer always knows where they are. |-| **Pictogram action** | Every item needs one *verb* that reads in 1.6 s (throw, jump, swing, pedal). If an item has no body action, give it a prop action (a gear turns, a cup pours). |-| **Pace ladder** | Normal cards are 4 beats (1.6 s). Sub-families become 2-beat rapid-fire runs (4 swim strokes, 4 cycling disciplines, the racket sports), which gives the film a second tempo without changing BPM. |-| **Long take** | The first and biggest chapter is one sideways camera move down a track: 14 stations one screen apart, with a whip-pan on each beat-cut. Use it for the "hero" family. |-| **Grand finale grid** | All items come back as a 9×5 icon wall, flip in, turn one colour, collapse into a single sun, then the slogan and the end card. |+- **A set of five hues + one dark neutral**, each hue in **five tones** (darkest → lightest, the middle one is the base). A chapter = one hue; a multi-hue chapter rotates through the set per card.+- Under type the pattern runs at **low contrast**; on chapter cards at **full contrast**.+- **Light hues take dark type and dark figures**, and their disc uses the lighter tone; dark hues take cream. On the dark neutral, the disc uses a lighter tone or it vanishes; its accent is one warm hue.+- One cream and one ink serve every hue. No outlines, no highlights except the sweep.+- Choose the set from the topic. Examples: warm festival (red, violet, forest green, gold, ochre); coastal (navy, teal, coral, sand, sky); kitchen (tomato, basil, saffron, aubergine, flour cream). Invent names for your hues; never borrow an event's colour names.-**Story shape (demo):** heartbeat cold open (a red dot pulsing on ink, rings drawing around it) → title slam on a full five-colour pattern → three count-ups (43 SPORTS / 469 EVENTS / 16 DAYS) → "ON YOUR MARKS… SET…" with half a beat of silence → 7 chapters, 70 cards → icon-wall finale → slogan → end card → fade to black over the music's ring-out.+## 4. Type & subtitles-Adapting a topic: list the items; group them into 5–7 chapters; give every item a one-beat verb; pick one chapter for the long take; choose which runs go 2-beat; write a two-line slogan for the finale.+- Title: a 900-weight grotesk (e.g. Inter Tight), 150–330 px at 1080p, tight tracking, auto-fitted. Second language: a heavy face under it. Meta: a mono (e.g. DM Mono) ~22 px, wide tracking; tags as mono chips.+- **HUD** on every card: mono corner text and a **progress bar of N ticks** (current tall, done dimmed, rest faint), N derived from the item list.+- **Bilingual rule**: one language is always the big title; the second language is chosen per version by a switch, never by hand-editing cards.+- The card type *is* the text layer. With narration, captions are a mono line on a solid band in the chapter hue, bottom, never over the title; hold ≥ max(1.8 s, speech + 0.6 s). A card that must be read (a spec, a number) holds ≥ 1.6 s.+- Deliver an `.srt` of the title cards, generated from the edit list.-## 3. Visual language+## 5. Motion quality-**Canvas**: 1920×1080, grid `G.CELL = 180` (10.7 columns × 6 rows). Everything snaps to that grid: the chapter band is 2 rows tall, transitions cut by 180 px rows or 240 px columns, and the finale wall is 9×5.+- **A grid of time**: pick one tempo for the film; every shot starts on a beat and every key action in a pose (release, contact, landing) lands on an integer beat.+- **Pace ladder**: normal cards last one bar; related sub-items become half-length rapid-fire runs. A second tempo comes from dividing the beat, never from changing tempo.+- Easing: exponential ease-out for entrances, exponential in-out for whips and wipes; a back ease once at most.+- **Type enters by mask slide-up**: title first, second line ~0.08 s later, tag after; meta lines type on without a caret. Short cards compress all timings.+- **Figure assembly**: the figure arrives as horizontal bands sliding into register from alternating sides.+- **Backgrounds breathe**: rows drift in alternating directions; on chapter cards they jump a quarter-cell on beats.+- **Transitions** snap to the grid: sliding rows, dropping columns, a push, quarter-discs from cell corners, an iris from the last figure, a tile flip. Rotate them; each lasts a few frames around the cut.+- **Motion blur only where things move**: sub-frame averaging inside transition and whip windows; static frames render once.-**Palette** (`engine.js` → `G.PAL`; each hue has five tones `t[0]` darkest → `t[4]` lightest; `t[2]` is the base). The demo's values were sampled from the official core graphic:+## 6. Camera grammar-| key | demo name | t[0] | t[1] | **t[2] base** | t[3] | t[4] | fg (type & figure) |-|---|---|---|---|---|---|---|---|-| red | Jonetsu Red | `#c21d15` | `#d22419` | **`#e83220`** | `#ec5a26` | `#f07a45` | cream `#fbf6ec` |-| purple | Kakitsubata Purple | `#231a6e` | `#2c2084` | **`#4e3a93`** | `#644d9d` | `#7a62a9` | cream |-| green | Shinrin Green | `#006d35` | `#008440` | **`#079a3e`** | `#2da547` | `#68b15d` | cream |-| gold | Kinshachi Gold | `#b48900` | `#c69b00` | **`#d5b102`** | `#debc2f` | `#e7d16c` | dark `#211904` |-| ochre | Dento Ocher | `#946a2e` | `#ac7d38` | **`#c18e46`** | `#d2a55c` | `#e0bf84` | dark `#1e1409` |-| ink | Sumi | `#0f0c15` | `#16121d` | **`#1e1a27`** | `#2a2535` | `#3a3447` | cream, accent = gold |+Mostly a locked flat frame; energy comes from row shifts, transitions and figure actions. When the camera moves, it moves along the grid. Opening and ending come from the topic.-Cream `G.CREAM = #fbf6ec`, ink `G.INK = #15111c`. **Gold and ochre take dark type and dark figures**; the others take cream. `G.CYCLE = ['red','purple','green','gold','ochre']` is the rotation used by multi-colour chapters and the intro pattern. On cards the pattern is drawn at `spread 0.42` (low contrast, so the type reads), and at `spread 0.95` on chapter cards (full contrast).+| Move | What it expresses | Can serve |+|---|---|---|+| Locked flat frame | clarity, the card as a poster | any item; a spec that must be read |+| Lateral track with a one-screen whip per beat | one continuous family, momentum | a line of stations; a production line; a route |+| Slow drift along a row | calm, browsing | a gallery; a menu; a slower chapter |+| Vertical scroll by grid rows | ranking, depth, descent | a top-ten; floors of a building; ocean depths |+| Push into one motif cell until it becomes the next frame | zooming into a part | an ingredient inside a dish; a city inside a map |+| Pull back to a tiled wall of items | the whole set at once | a summary; "all of them"; a comparison |+| Tiles collapsing to one point | many become one | a merger; a shared goal; a count reaching zero |+| Split screen along a grid line | two items side by side | versus; before/after; two versions |-**The pattern** (`G.pattern(palKey, seed, {spread, density})`): fill with `t[1]`. On each grid node, 34 % of the time place a disc of radius `CELL` in a random tone, and 16 % of the time a `t[3]` disc with a `t[0]` half-radius disc inside it. Then a fraction `density` of the cells get one of 14 motifs (`G.motif` kinds 0–13): quarter-disc, half-disc, disc + dot, striped sunset, *seigaiha* fish-scale waves, dot-scale disc, triangle scales, concentric arcs, sun wheel / gear, checker, crescent, S-wave, gradient quarter-disc, fading bars. Each motif is rotated by a random multiple of 90°. The canvas is 3 cells wider than the screen, so any row can shift ±1 cell. **All the motifs are generic geometry.** Do not draw event mascots, landmarks or products into cells.+Framing: text and figure never overlap (one text column, one stage); horizontal poses move the stage outward. The HUD stays in the corners. Allowed transitions are the grid ones in §5; never dissolves, 3D camera moves, handheld shake or depth of field.-**Pictogram figure** (`G.joints` + `G.drawFigure`): the unit is body height = 1 and the origin is the hip. Segment lengths are torso 0.30, neck 0.045, head radius 0.082, upper arm 0.16, forearm 0.15, thigh and shin 0.225. Widths are torso 0.145, arm 0.076, leg 0.094, all with round caps. The draw order is far leg, far arm (colour `far` = fg mixed 42 % toward the background), then torso, near leg, near arm, head (fg). A second person (opponent or partner) is drawn behind in `far2` (60 % mix). In cards the figure stands on a **sun disc** (r 360–380 px, tone `t[1]` on light-fg hues, `t[4]` on gold/ochre, `t[3]` on ink) with one slow 9 % white light sweep across it.+## 7. Sound palette-**Card layouts** (`layoutOf(s)`, rotated per chapter by an order string such as `ball: 'ACBAB'`):-- **A**: text block left (x 130, baseline 610); disc and figure right (centre 1290, or 1370 for horizontal swimmers); a 300 px outline index number bottom-right at 20 % opacity.-- **M**: mirror of A (figure left at 640, text right-aligned at 1800).-- **B**: the title **fills the frame** (330 px, colour `t[1]`/`t[4]` "ghost" tone, a single line fitted to 1760 px). The disc and figure sit *over* the title. A bottom info bar has the JP name at 80 px, the EN name at 44 px and the mono meta right-aligned. 2-beat racket runs always use B.-- **C**: a solid 820 px left panel (`t[0]` or `t[4]`) that wipes in, with a 90 px hairline grid at 10 % and the text block on it; the pattern, disc and figure are on the right (1370).+- **Type and music can carry the film alone**; a voice is optional, calm, one line per chapter at most.+- **Percussion is the spine**: choose a drum family that suits the topic (frame drums, taiko, marching snares, steel pans, body percussion, an electronic kit) plus rim clicks, claps, shakers and crashes.+- Colour instruments on top: Karplus-Strong plucks (any lute, koto or harp-like voice, with pitch bends), mallets (marimba, glockenspiel), detuned-saw chord stabs, a synth bass, pads, risers and a drone.+- **Per-family accents**: every shot onset gets a hit chosen by chapter (a splash, a pok, a clank, a crack, a whoosh, a sizzle): foley reads the chapter's matter.+- **Picture-locked by data**: the score reads the edit list's shot times and places accents there; check every onset to ±15 ms.+- **Silence as a tool**: half a beat of drums-and-bass-muted before a big hit, or one whole bar stripped to a single ticking sound under a count.+- Mix: glue compressor and limiter, −14 LUFS, ≤ −1 dBTP.-**Type** (`demo/fonts/`, all OFL):-- Title: Inter Tight 900, 170 px (150 in C, 160 on the track), letter-spacing −0.02 em, auto-fitted with `G.fitFont` to 820 px.-- Second language: Noto Sans JP 900 at 92 px (EN-JP) or Noto Sans SC 900 (ZH version, with an extra JP line at 28 px/500).-- Meta: DM Mono 500 22 px, letter-spacing 3 px, e.g. `ATHLETICS 01 / 43`. Tags: a mono chip (`5×5 · 3×3`, `NEW` in red).-- HUD (every card and chapter): DM Mono 17 px in all four corners (event line top-left, chapter top-right) and a **43-tick progress bar** at the bottom. The current item is a tall 4 px tick; done items are at 75 %, the rest at 28 %.+## 8. Native moves-**Grain**: added only at mux time (`noise=c0s=4:c0f=t+u`). The canvas itself is clean.+A menu: use the ones your film needs.-## 4. Motion+- **One card = one item.** The count is the hook ("ALL N"). *Fits content like:* every tool in a workshop; every station of a subway line; every dish of a regional cuisine.+- **Chapter = colour.** Families become hues so the viewer always knows where they are. *Fits content like:* instrument sections of an orchestra; food groups; departments of a company.+- **One verb per item.** One body action readable in a bar, or a prop action (a gear turns, a cup pours). *Fits content like:* yoga poses; kitchen techniques; jobs on a construction site.+- **Pace ladder run.** A sub-family at double speed. *Fits content like:* four knife cuts; the bones of a hand; weekday routines.+- **Long take down a track.** Stations one screen apart, the camera whipping on each cut. *Fits content like:* the steps of a recipe; checkpoints of a marathon; stages of a rocket launch.+- **Count-up slam.** A big number rolls to its value on a bar. *Fits content like:* tonnes recycled; members of a club; years of a company.+- **Icon wall.** All pictograms return as a grid and turn one colour. *Fits content like:* a summary of a year; a periodic table of habits; a team roster.-- **Grid of time**: 150 BPM, 1 beat = 0.4 s, 1 bar = 1.6 s. Every shot starts on a beat (`edl.js`), and every key action in a pose lands on an integer beat `u` (release, contact, landing).-- **Easing**: `E.oExp` (exponential ease-out) for almost every entrance; `E.ioExp` for whip-pans and wipes; `E.o5`/`E.o3` for panels and discs; `E.oBack` only for the intro's first dot.-- **Type entrance**: `G.maskText` slides each line up from below a clip rectangle (title over 0–0.5 s, JP line at +0.08 s, tag at +0.2 s). Meta lines type on (`G.typeText`, no caret). 2-beat cards compress all timings by 0.7.-- **Figure assembly**: for the first 0.42 s (0.28 s on 2-beat cards) the figure layer is cut into 54 px horizontal bands that start offset alternately left and right by 90–250 px and slide into register (`stageFigure(..., asm)`). This echoes the pattern's row shift.-- **Backgrounds breathe**: odd rows drift right and even rows drift left at 26 px/s, plus a fixed sine offset per row. On chapter cards every row **jumps a quarter-cell on each beat of the second bar** (beats 4–7), in time with the drums.-- **Chapter card**: a 2-row solid band grows from the centre (`E.o5`). A 330 px outline chapter numeral rises into it, and the title and JP line slide up. Hairlines sit above and below the band.-- **Transitions** (`transType`, window 0.12 s before to 0.26 s after the cut): `rows` (6 rows slide in alternating directions, used into every chapter and out of the intro), `cols` (8 columns drop or rise, used after chapter cards and in 2-beat runs), `slide` (racket runs: a push with a thin shadow edge), `quarter` (quarter-discs grow from cell corners, used into the finale), `iris` (a circle opens from the previous card's figure centre, with a shrinking ring), `flip` (an 11×6 grid of tiles flips over). Normal cards rotate `['quarter','rows','iris','flip','cols'][ci % 5]`. Inside the athletics long take there is **no** transition: the camera whips instead.-- **Motion blur only where it moves**: `isFast(t)` is true in the transition windows, and then `G.renderFrame` averages 5 sub-frames over a 0.5/60 s shutter. Static card frames render once.+## 9. Pitfalls of the medium-## 5. Camera+- Figure environments spread into the text column → render the figure layer into its own buffer and fade it out with a gradient mask before the text.+- Cream on light hues fails contrast → dark type and dark figures on light hues; their disc is the lighter tone.+- The sun disc vanishes on the dark neutral → use a lighter tone for it.+- Pattern canvases are large and seeded per card → cache with a bounded LRU; an unbounded cache runs out of memory with parallel renderers.+- Horizontal poses (swimming, lying, crawling) cross the title → move the stage outward and narrow the text column.+- Imitating a real identity too closely → your own palette, mark and slogan from the grid motifs.-The camera exists only in the **long take** (`trackScene`). There, 14 stations are laid one screen width apart. The camera drifts at 42 px/s and on every cut whips one full screen (`E.ioExp` from 0.14 s before the beat to 0.24 s after). Two background rows of 360 px motif cells scroll at parallax 0.28 and 0.42. The deep-red track (y 780) has cream lane lines, and dashes roll faster for running events (`RUNNING` speeds). An event spec (`100M`, `4×100M`, `7.26 KG`…) is painted on the track, sheared −0.35, at 12 % cream. Everywhere else the frame is locked and flat; energy comes from the row shifts, transitions and figure actions.+## 10. Engine-Intro and finale "camera": the finale wall zooms to 0.9 with 10 px gutters, then every tile collapses to the centre and a red sun grows out of it. The end card's sun and rings rise from the centre to y 330 as they shrink to 0.62×.+In `demo/`: `engine.js` (`G.pattern`, `G.motif`, `G.joints` / `G.drawFigure`, `G.keyPose`, `G.maskText`, easings), `poses/base.js` (pose contract, props `G.P`), `edl.js` (edit list in beats), `scenes.js` (layouts, transitions, HUD, motion blur), `lab.mjs` (pose sheets), `music/music.py` (picture-locked score with onset report). API table, pose convention and a minimal example: [DEMO.md](DEMO.md#engine-reference).-## 6. Sound+## 11. Variation space-- **No narration.** The film is carried by type and music. The subtitle file is a title-card track only (see §7).-- **Score**: original, fully synthesised in `demo/music/music.py` (numpy + scipy; no samples). "Wadaiko × electronic", 150 BPM 4/4, D *miyako-bushi* (D Eb G A Bb) over D minor harmony, 101 bars = 161.6 s plus a 2 s ring-out. Instruments are synthesised: odaiko / nagado / shime taiko, *ka* rim clicks, kick, clap, snare, hats, shaker, crash, plus foley-like hits (splash, drop, pok, clank, crack). Shamisen and koto are Karplus-Strong plucks (`ks_render`, koto with pitch bends); there are also a synth bass, pads, detuned-saw chord stabs, risers and a drone.-- **Picture-locked by data**: `music.py` reads `music/timeline.json` (exported from `edl.js`). Every shot start gets an accent chosen by chapter (`card_accent`: splashes for aquatics, *pok* for rackets, odaiko + stab for combat, clank for power…). Chapter and finale starts get a `big_hit`, **preceded by a half-beat of silence** (drums and bass muted). The report checks each of the 79 shot onsets to within ±15 ms (demo: 79/79 pass, offsets ≤ 0.2 ms).-- **Master**: stems `music_bed.wav` + `sfx.wav`, a 2:1 glue compressor and a limiter, at −14 LUFS integrated and ≤ −1 dBTP (demo: −14.11 LUFS, −1.12 dBTP). `music/report.txt` holds loudness, band energy, onset and gap checks. Render time is about 30 s.-- **Section layout is hard-coded** in `compose()` (`EXPECTED = dict(intro=0, ath=12, …, finale=89)` in bars). If the EDL changes, the assert fires. For a new film, re-write `compose()` for the new chapter bars (hand it to a music sub-agent with `timeline.json` and this section) and keep `card_accent`, `big_hit` and the report as they are.+You decide the items, grouping, verbs, palette, chapter order, any long take, the pace ladder, opening, ending, music and voice. All far from our demo:-## 7. Subtitles & titles+- Structures: **a countdown** (items ranked from N to 1, the camera scrolling down rows, the pace speeding up as the list shortens); **a day in pictograms** (one figure, one card per hour, the palette moving from dawn to night hues); **an assembly** (each card adds one part to a single growing pictogram machine seen in the corner).+- Openings: **a single motif cell** (one cell fills the frame and splits into the grid); **mid-action** (the first pictogram is already running when the type slams in); **a blank grid** (hairlines draw the grid on the beat before any colour appears).+- Endings: **one card held long** (the last item stays while the pattern rows stop, one by one); **the figure walks off** (the last pictogram exits the frame and the HUD ticks out); **reverse assembly** (the grid disassembles into rows that slide off-screen, leaving cream).-- The type on the cards *is* the text layer; nothing extra is burned in. `pictogram-motion.srt` lists the title cards (intro lines, chapter titles, each card "01/43 ATHLETICS — SPRINT / 短距離", slogan, end card), generated from the EDL by `demo/srt.cjs`.-- **Bilingual rule**: EN is always the big title. The second language is chosen by `?lang=`: `ej` puts Japanese in the big second line (`s.jpBig || s.jp`) and drops the small JP line; the default (ZH) puts Chinese big and Japanese small.-- **End sequence (demo)**: cream end card, red sun + five-colour rings → **IMAGINE ONE ASIA / ここで、ひとつに。** (the official slogan) → **AICHI-NAGOYA 2026**, the dates, five colour bars and the credit line → fade to black (the last 1.3 s) → 2 s black tail over the music's ring-out.-- **Credit line**: every Lemo-Opuscar film ends with "LemoLab × Claude Opus 5.5". In the demo it sits on the end card, centred under the five colour bars: `G.maskText(ctx, 'LemoLab × Claude Opus 5.5', W / 2, 1000, F.mono(24), rgba(G.INK, 0.6), inv(0.6, 1.2, l), { ls: '4px', align: 'center' })` in `finaleScene` (right after the colour-bar loop). It slides up 0.6 s after the end card lands (just after the bars), holds for about 3.5 s and fades out with the card. It is quieter than the date line, so it never competes with the title. Do the same in new films.+----## 8. Pitfalls we hit--- **Figure environments ate the type.** Water surfaces, ramps, fences and nets belong to the figure layer and spread into the text column. Fix: `stageFigure` renders into its own buffer and applies a `destination-in` gradient mask (`{x0|x1|y1, f}`) that fades the layer to zero 90–120 px before the text area.-- **Gold and ochre need dark type and dark figures** (`fg #211904 / #1e1409`), and their disc is the *lighter* tone `t[4]`. Cream on gold fails contrast.-- **The ink chapter's disc vanished** at `t[1]`. Use `t[3]` for the sun disc on ink.-- **Pattern canvases are big** (2520×1260 each, and every card uses a new seed). Cache them, but cap the cache: `G.pattern` keeps an LRU of about 10 entries. An unbounded cache eats memory fast when 12 browsers render at once.-- **zsh loops**: in `while read line` loops the variable does not word-split. Use `${=line}` when passing lists of times to `node shot.mjs`.-- **Horizontal poses** (swimming) need the stage moved right (`wide`: disc at 1370, text max width 700) or the arms cross the title.-- **Official identity**: the demo imitates a real event's identity closely. That is fine for a fan piece but not for a style library; see §10.6.--## 9. Production recipe (this repo)--```-styles/pictogram-motion/demo/- index.html loads fonts + edl.js + engine.js + poses/*.js + scenes.js; exposes window.render(t), DUR, READY- edl.js edit decision list: every intro/chapter/card/finale shot with beats, names (EN/ZH/JP), pose, flags- engine.js G: easing, rng, palette, grid pattern + motifs, pictogram skeleton, text helpers- poses/ base.js (pose API + props G.P) + one file per chapter: ath aqua ball combat power nature asia (70 poses)- scenes.js intro, chapter card, card layouts A/B/C/M, athletics long take, finale, HUD, transitions, motion blur- render.mjs headless-Chrome frame renderer (stills / video, N workers → seg_*.mp4 + list.txt)- shot.mjs quick JPEG stills (+ --sheet contact sheet via sheet.py)- lab.mjs lab.html pose check sheets; lab.mjs also screenshots cover.html / cover34.html (4:3 and 3:4 posters)- mux.sh concat segments → 2 s tail → grain → + music.wav → mp4- srt.cjs title-card .srt from the EDL- music/ music.py (score), export_timeline.cjs (EDL → timeline.json), timeline.json, report.txt- fonts/ Inter Tight, Noto Sans SC, Noto Sans JP, DM Mono (OFL)- ref/ official reference images (NOT used by the film, do not publish)-```--All commands run from `styles/pictogram-motion/demo/`. Node uses the repo's `node_modules/playwright-core`, and Chrome is found by `core/render/browser.mjs` (the playwright headless shell or `PLAYWRIGHT_CHROME`). **The language defaults to EN-JP.**--```sh-cd styles/pictogram-motion/demo--# 1. Edit → timeline for the music (re-run after every change to edl.js)-node music/export_timeline.cjs # → music/timeline.json--# 2. Score (≈30 s; writes music/music_bed.wav, sfx.wav, music.wav, report.txt)-../../../.venv/bin/python music/music.py-grep "shots pass" music/report.txt # expect 79/79--# 3. Pose check sheets and stills while working-node lab.mjs stills/lab_ath.png "p=sprint,hurdles,relay&n=8&beats=4"-node shot.mjs 24.8 63.2 104.9 153 --sheet # EN-JP stills → stills/t_*.jpg + stills/sheet.jpg-LANGQ=zh node shot.mjs 63.2 # Chinese version still--# 4a. Render — EN-JP (default): 9696 frames → out_ej/seg_*.mp4-node render.mjs video 12 # 12 workers ≈ 2 min on an M-series Mac; use 2–3 when sharing the machine-./mux.sh # → ../pictogram-motion.mp4 (163.6 s, 9816 frames)--# 4b. Render — Chinese version-LANGQ=zh node render.mjs video 12 # → out/seg_*.mp4-OUTDIR=out ./mux.sh # → out/pictogram-motion_zh.mp4--# Partial re-render (e.g. only the ending): START/END in seconds, into a separate folder-START=148.1333 END=161.6 OUTDIR=out_tail node render.mjs video 2--# 5. Subtitles and posters-node srt.cjs # → ../pictogram-motion.srt-node lab.mjs stills/cover_ej.png "lang=ej" cover.html # 2880×2160 poster-node lab.mjs stills/cover34_ej.png "lang=ej" cover34.html # 2160×2880 poster-```--How the two language versions differ: the only switch is the URL query `?lang=ej`. `render.mjs` and `shot.mjs` add it from `LANGQ` (default `ej`); `scenes.js` reads it into `G.EJ` and changes the second-language lines (intro title, count-up labels, ON YOUR MARKS, cards, chapter cards, end card). `render.mjs` writes EN-JP segments to `out_ej/` and ZH to `out/`; `mux.sh` reads `OUTDIR` (default `out_ej`). Picture timing and music are identical.--`render.mjs` pipes JPEG-100 screenshots into ffmpeg (`libx264 -crf 12`) per worker; `mux.sh` re-encodes the joined film at `-preset slow -crf 14`, 60 fps, GOP 120, AAC 320k, with a 2 s cloned tail so the music's ring-out plays over black.--## 10. Engine usage--### 10.1 `engine.js` (window.G)--| API | What it does |-|---|---|-| `G.E.{lin,io,o2,o3,i3,io3,oExp,iExp,ioExp,oBack,o5}` | easings (input clamped 0..1) |-| `G.clamp, G.lerp, G.inv(a,b,x)` | `inv` = normalised progress of x between a and b, clamped; used for every timing |-| `G.rng(seed)` | deterministic mulberry-style RNG |-| `G.PAL[key]`, `G.CYCLE`, `G.CREAM`, `G.INK`, `G.mix(a,b,t)`, `G.rgba(hex,a)` | palette and colour helpers |-| `G.pattern(pk, seed, {spread=1, density=0.5, cell=180})` | returns a cached pattern canvas (3 cells wider than the screen) |-| `G.drawPattern(ctx, pat, offs(row)→px, {oy})` | draws the pattern with a per-row horizontal offset (clamped ±1 cell) |-| `G.motif(ctx, kind 0–13, x, y, size, [bg, main, sub, accent], rng)` | one patterned cell |-| `G.joints(pose)` → `{hip, neck, sho, head, up, aL, aR, lL, lR}` | skeleton from a pose object |-| `G.drawFigure(ctx, J, nearCol, farCol)` | draw the pictogram (unit = body height) |-| `G.keyPose(keys, u, loop?)`, `G.lerpPose(a,b,t)` | keyframed poses in beats; each key `{b, ...angles, e:'easing'}` |-| `G.runCycle(phase, k, {lean})`, `G.walkCycle(phase, k)` | procedural gait (phase in cycles) |-| `G.fitFont(ctx, text, 'en'/'zh'/'jp', weight, px, maxW, ls)` | shrink font size to fit |-| `G.maskText(ctx, text, x, y, font, col, p, {align, ls, dir})` | mask slide-up entrance, p 0→1 |-| `G.typeText(ctx, text, x, y, font, col, p, {align, ls, caret})` | typewriter |-| `G.hair(ctx, x, y, w, col, p, lw)` | hairline wipe |--**Pose angle convention**: `rot` = whole body (positive = pitch forward); `torso` = upper-body lean; `head` = nod. Limbs are measured from "straight down = 0°", with forward = 90°, overhead = 180° and backward negative. Arms are in torso space and legs in body space. `aR2` and `lR2` (forearm, shin) are absolute in the same frame, not relative to the upper segment. R = near side (bright), L = far side (dim). `x, y` move the hip.--### 10.2 Pose definitions (`poses/*.js`, contract in `poses/base.js`)--```js-POSES.name = {- pose: (u) => ({...}), // or keys: [...] + loop: beats (u = beats since the card started)- back: (ctx, J, u, C) => {}, // props/environment behind the figure (unit = body height, origin = hip)- front: (ctx, J, u, C) => {}, // props in front (ball, racket, bow)- second: (u) => ({...}), secondX: [dx, dy], secondFace: -1, // opponent / partner, drawn in C.far2- fig: { s, x, y }, // scale/offset inside the stage- iconU: 0.6, // which beat to freeze for the finale icon wall-};-// C = { fg, far, far2, acc, bg, line } from G.colorsFor(pk, discColour)-// props: G.P.ball, G.P.racket, G.P.stick, G.P.ground, G.P.speed (speed lines), G.P.arc (flight arc)-```-Check poses with `node lab.mjs out.png "p=a,b,c&n=8&beats=4&pal=red"`: each row is one pose sampled at n moments over `beats`.--### 10.3 `edl.js`--`chapter(id, no, en, zh, jp, palKey)` adds an 8-beat chapter card. `card(n, en, zh, jp, pose, {beats=4, sub, fam, jpBig, track, water, racket, family})` adds one item. `fam: true` means the big title is `sub` and `en` becomes the small family line. `track: true` puts a card into the long take (all track cards must be consecutive). `racket: true` gives 2-beat B-layout cards with slide transitions. `palKey 'multi'` rotates `G.CYCLE` per card. Intro and finale are `{kind:'intro'|'finale', beats: 48}`. The script computes `b0, t0, dur`, then `EDL.DUR` = total beats × 0.4 s.--### 10.4 `scenes.js`--`G.renderFrame(ctx, t)` → `frame()` finds the shot by binary search, decides whether t is inside a transition window, renders A and B into offscreen buffers and composites them, then draws the HUD. Key functions: `cardScene` (layouts via `layoutOf`), `chapterScene`, `trackScene` (`trackCam`, `stationX`, `SPEC`, `RUNNING`), `introScene`, `finaleScene` (`GRID 9×5`, `rings()`), `hud`, `transType` / `composite`, `stageFigure(ctx, poseName, u, C, x, y, scalePx, asm, mask)`, `patBg`, `multiBg`, `textBlock`, `sun`, `bigNumber`.--### 10.5 Minimal example — a new card and a new pose--```js-// poses/nature.js (or a new poses/xxx.js added to index.html)-POSES.kite = {- iconU: 1,- keys: [- { b: 0, torso: -6, aR1: 150, aR2: 160, aL1: 20, aL2: 40, lR1: 10, lL1: -12 },- { b: 1, torso: -12, aR1: 170, aR2: 175, aL1: 30, aL2: 60, lR1: 18, lL1: -20, e: 'oExp' }, // tug on the beat- ],- loop: 2,- front: (ctx, J, u, C) => { // string + diamond kite, all geometry- const h = J.aR[2], k = [h[0] + 0.55, h[1] - 0.75 + 0.04 * Math.sin(u * Math.PI)];- G.seg(ctx, h, k, 0.01, C.line);- G.poly(ctx, [[k[0], k[1] - 0.12], [k[0] + 0.08, k[1]], [k[0], k[1] + 0.12], [k[0] - 0.08, k[1]]], C.acc);- },-};-// edl.js, inside a chapter-card(44, 'KITE FLYING', '放风筝', '凧揚げ', 'kite', { sub: 'NEW' }); // n = index shown as "44 / N"; update the total (§10.6)-```-Then: `node lab.mjs stills/lab_kite.png "p=kite&n=8&beats=4"` → `node music/export_timeline.cjs` → (update `compose()` if chapters moved) → `node shot.mjs <t>` → render.--### 10.6 Making a new film: replace every event-specific element--| What | Where | Replace with |-|---|---|---|-| Event name, edition, host city, dates | `scenes.js` 372–373, 398–407, 417, 539–541, 562–566; `cover.html` 94–114; `cover34.html` 90–113 | your own title and date line |-| Slogan "IMAGINE ONE ASIA / ここで、ひとつに。/ 在这里,合而为一" | `scenes.js` 534–536; covers | your own two-line slogan |-| Emblem-like mark (red sun + five rings, `rings()`, `RINGS`) | `scenes.js` 341–352, intro 356–375, finale 509–531 | an original mark, e.g. your own shape built from the grid motifs |-| Palette names (Jonetsu Red, Kakitsubata Purple, Shinrin Green, Kinshachi Gold, Dento Ocher) and hexes | `engine.js` `PAL` (lines 45–51); the name is printed on chapter cards (`scenes.js` 246) | a custom five-hue set with 5 tones each; keep the dark-fg rule for light hues |-| Item list, counts "/ 43", 43 HUD ticks, "469 EVENTS / 16 DAYS", finale "2026" tile | `edl.js`; `scenes.js` 118, 184, 414–418, 512, 570 | your list and numbers (derive from `CARDS` instead of hard-coding 43) |-| Chapter layout in the score | `music/music.py` `EXPECTED` + `compose()` | re-composed sections |-| Official reference images | `demo/ref/` | never ship; collect your own references |--Keep the grammar: the grid pattern with row shifts, pictogram athletes, the bilingual mask-slide type, the HUD with index and progress, beat-locked cards with a pace ladder, one long take, and the icon-wall finale.+How our demo was made (story, shots, score, end card, build, engine reference): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/pictogram-motion/demo/CREDITS b/styles/pictogram-motion/demo/CREDITSindex 11ebd25..b8ce216 100644--- a/styles/pictogram-motion/demo/CREDITS+++ b/styles/pictogram-motion/demo/CREDITS@@ -17,7 +17,7 @@ Third-party names and marks shown in the film (NOT covered by this repo's licencslogan, a press photo). They were used as colour/shape reference only, are not drawn into the film,and must not be redistributed.-Fonts (SIL Open Font License 1.1; licence texts not bundled yet, see ../PRODUCTION_LOG.md)+Fonts (SIL Open Font License 1.1; licence texts not bundled yet, see PRODUCTION_LOG.md)- Inter Tight (variable) — Rasmus Andersson / The Inter Project Authors, via Google Fonts — fonts/InterTightwght.ttf- Noto Sans SC (variable) — Google / Adobe (Noto CJK), via Google Fonts — fonts/NotoSansSCwght.ttf- Noto Sans JP (variable) — Google / Adobe (Noto CJK), via Google Fonts — fonts/NotoSansJPwght.ttfdiff --git a/styles/pictogram-motion/style.json b/styles/pictogram-motion/style.jsonnew file mode 100644index 0000000..d53eea6--- /dev/null+++ b/styles/pictogram-motion/style.json@@ -0,0 +1,18 @@+{+ "slug": "pictogram-motion",+ "num": "21",+ "en": "Pictogram Motion",+ "cn": "象形运动图形",+ "category_en": "Graphic & Type",+ "category_cn": "图形与排版",+ "film": "Aichi-Nagoya 2026 — All 43 Sports",+ "line": "All 43 sports of the 2026 Asian Games as beat-locked geometric pictograms.",+ "line_cn": "2026 亚运会 43 个大项,几何象形人卡着节拍快闪。",+ "uses": [+ "Sports events",+ "Visual identity",+ "Event openers"+ ],+ "frame_sec": 65.44,+ "dur": 163.6+}diff --git a/styles/pixel-rpg/DEMO.md b/styles/pixel-rpg/DEMO.mdnew file mode 100644index 0000000..c0f61ed--- /dev/null+++ b/styles/pixel-rpg/DEMO.md@@ -0,0 +1,125 @@+# 16-bit Pixel RPG — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *The Last Save Point* (54.5 s) · `pixel-rpg.mp4` · source in [`demo/`](demo/)++A 30–60 second film: a lone hero at a save crystal remembers his lost companion through three eras of colour depth, then opens the great door.++## Story & structure++A world drawn at **320×180 native pixels**, scaled ×6 with nearest-neighbour to 1080p. Every color comes from a **limited, indexed palette**. Gradients are **ordered dither**, not blends. Characters are **sprites** around 22×34 px that animate in a handful of frames. Story is told the way a game tells it: through **dialog boxes with portraits**, **menus**, **status bars**, **battle messages** and **save files**.++It is *not* HD-2D (no depth of field, no bloom, no real-time light), *not* CRT nostalgia (no scanlines, no grain), and *not* a parody. It takes the game's systems seriously as a language for feeling.++Never use existing game names, characters, UI frames, fonts, logos, melodies or sound effects. Learn the grammar, not the assets.++Pick stories where **the game's own systems carry the emotion**. The demo used these native powers, the strongest (the palette collapse and flood) at the emotional peak.++| Native power | Story use |+|---|---|+| **Palette = feeling** | Because the image is indexed, you can swap the whole palette in one frame. Memory, grief, hope can literally be color depth. In the demo: older memories have fewer colors (16-bit → 8-bit → 4-color). The present after a loss is **faded**. The collapse of a memory is the palette **dropping one level per beat**. Hope is the full palette **flooding back through an ordered-dither wave**. |+| **Protected colors** | Exempt a few palette indices from every palette effect. One red object (a scarf) that never fades becomes the thread through the whole film, and a perfect **match cut** between eras. |+| **Game UI as narration** | Save files = a list of memories (choosing *NEW FILE* = refusing to overwrite them). A name greyed out in the party list = death, without a word. "No inn will ever heal it" = grief in the medium's own vocabulary. |+| **Text boxes & blips** | A dialog box *is* the subtitle. A character with no voice actor, only text blips, reads as someone who now exists only in text. |+| **Era shifts** | The same characters redrawn in older hardware: 4 shades at half resolution, a 13-color 8-bit set, full 16-bit. Time travel for free. |+| **Genre transitions** | Mosaic in and out for gentle memories. The **encounter swirl** to crash into danger. White flash on the climax. |++Adapting any topic: find the **game system** hidden in it. A product launch is a new item obtained (fanfare, item box, stat comparison). A farewell is a save file that is never overwritten. A career is a level-up screen. A city is an overworld map with save points.++**Arc for 45–60 s:** loneliness (quiet, faded, long scroll) → warmth (a memory) → loss (the system breaks) → resolve (the system restored in full color) → an end card that is also a game prompt (*CONTINUE ▶*).++## Shots++| Beat | Camera |+|---|---|+| Opening | Long side-scroll through a colonnade, hero small (1/6 of the frame height), four parallax layers, one colored object ahead |+| Menus | Locked-off frame, UI on the left third, hero and prop visible on the right |+| Warm memory | Wide, static or slow pan; characters small against sky or fire |+| Battle | Classic side view: enemy left, party right facing left, UI window below, message window on top |+| Loss | Hold the frame. No cut, no move while the palette collapses |+| The monument | **Integer-pixel tilt** up a three-screen-tall door to a rose window, hold, tilt back down. The one memorable camera move |+| Climax | Back view at the threshold, light spilling on the floor, color flooding outward from the hero |++- Output 24 fps. Sprites step at **8 fps** (walk) to **12 fps** (flames, KO blink). Camera and parallax move **on ones** at integer pixels. Walk speed 30 px/s ≈ 1.25 px per frame.+- Game-native acting: hop forward to act, cast pose with raised staff, knockback recoil, kneel, then the **KO blink** (12 fps on/off) and vanish. Breath = shoulders up 1 px for 0.6 s.+- UI motion: windows slide in over 0.3 s (ease-out, integer px). The hand cursor bobs 1 px at 4 fps and **stops bobbing when the character hesitates**. Text types at 38–40 chars/s (30 for 8-bit), with ▼ blinking at 3 Hz when done.+- Transitions: **thumbnail expand + mosaic** (block 10 → 1 over 0.75 s); **mosaic cross** (1 → 16 → 1 over 0.8 s, palette switched at the peak); **encounter swirl** (polar twist growing with `s^1.6`, mosaic, Bayer-dissolve to white, 0.8 s); **screen shake** of 3–2–1 px over 8 frames; **palette step fades** (4 levels), never alpha.++## Score structure++- **Music**: original chiptune (square 12.5/25/50%, 4-bit triangle, LFSR noise, wavetable). One motif runs through every section as **regional variations**. The music's fidelity follows the color depth:+ - 4-color: mono, 4-bit volume steps, 11 kHz sample-and-hold;+ - 8-bit: NES-like, mono;+ - 16-bit: stereo with SNES-style echo (3 taps ~180/270/370 ms, feedback 0.35–0.45, low-pass ~3 kHz in the loop);+ - present: the same music muffled (LP 2.2 kHz).+ During the palette collapse, the music loses one layer per step: harmony, then echo and stereo, then bass, then only a single square tone, then **one beat of silence** exactly when the image reaches the present's grey. The boss prelude is the motif in minor; the full band enters on the bar where color floods back. The end card resolves the phrase the opening left on the dominant.+- **Foley**, all synthesized and bit-crushed to the scene's era: cursor/select blips, text blips (the companion's are higher and 5-bit), stone footsteps with echo, fire crackle, ward shimmer (triangle arpeggio), charge (rising square + noise), blast (swept low-pass noise + 48 Hz thump, crushed to 6-bit), HP tick-down, KO blink, **bit-drop** per palette step (lower and coarser each time), save ticks, door grind (brown noise + AM creak), torch ignite, reverse swell.+- **One organic sound**: the hero's breath before the door, band-passed noise and not crushed. It makes him human at the last moment.+- **Silence**: after the blast (true zero, echo tails cut too) and the beat before the present.+- **Voice**: Kokoro `bm_george` at speed 0.9, first person, 5 short lines. Duck the music ~−7.5 dB under the voice (60 ms attack, 350 ms release). Mix to −14 LUFS, **grain 0**.++## Palette & props++- **Resolution & scaling**: native 320×180 indexed framebuffer (`Uint8Array` of palette indices). Present through a **lookup table** (index → RGB) and scale ×6 nearest-neighbour. Everything, including text, is drawn in the framebuffer. Camera moves are **integer pixels**; each parallax layer rounds its own offset.+- **Master palette**: ENDESGA-32 (`#be4a2f #d77643 #ead4aa #e4a672 #b86f50 #733e39 #3e2731 #a22633 #e43b44 #f77622 #feae34 #fee761 #63c74d #3e8948 #265c42 #193c3e #124e89 #0099db #2ce8f5 #ffffff #c0cbdc #8b9bb4 #5a6988 #3a4466 #262b44 #181425 #ff0044 #68386c #b55088 #f6757a #e8b796 #c28569`), plus **protected duplicates** (scarf red `#e43b44/#a22633/#f6757a`, crystal cyan `#2ce8f5/#0099db/#ffffff/#124e89`) that no palette effect touches.+- **Color-depth tables** (all computed from the master palette):+ - *16-bit*: identity.+ - *8-bit*: nearest of 15 colors `#000000 #fcfcfc #a4a4b8 #58587c #1c2c8c #3c7cfc #94e0fc #b8141c #fc7454 #fcb81c #8c4c1c #2c9c2c #fcd8a8 #0c4c18 #4c2410`. It needs a dark green and a dark brown, or night grass turns blue.+ - *4-color*: fixed luminance thresholds (<60, <115, <175) → `#1f2a1c #4b5e3a #93a263 #d6dba6`. Draw 4-color scenes with the four representative indices (ink / slate / steel / white) so every pixel lands on the intended shade. Render them at **160×90** and double.+ - *Faded*: `lum^0.8 × 7` → 7 blue-greys `#0e0d17 … #c3c9d6`. **Do not** map by rank: rank mapping crushes the scene to black.+ - *Collapse steps*: 16-color and 8-color subsets that **keep warm hues** (orange, pink, plum), or the first step turns the frame red. Then 4 grey-blues, 2 tones, faded.+- **Light is index stepping**: a `LIGHT[]` / `DARK[]` table moves each index one step along its ramp. Torch glow, moonlight and fire are Bayer-thresholded rings of `LIGHT[LIGHT[c]]` / `LIGHT[c]`. Firelight in an 8-bit scene uses a **warm remap** (greens → browns → rust), not generic brightening, which turns grass radioactive.+- **Dither**: 4×4 Bayer for gradients and glows. Light shafts use a flat 50% checker with a 25% edge, which reads cleaner than a gradient.+- **Parallax** (side-scroller): far wall with arched windows 0.35×, colonnade with banners and torches 0.7×, floor with pseudo-perspective joints 1×, black foreground pillars 1.6×.+- **Sprites**: a **rig** (capsule limbs with 3-tone shading from an upper-left light, per-part inner line in the material's darkest tone, global 1-px ink outline) plus **hand-placed ASCII heads**. One rig gives every pose: walk ×4, attack, hurt, look up, push, sit, kneel, back-view push. For 8-bit scenes use the same rig with the **highlight tone removed**. Give the hero a **silhouette mark**: a long scarf whose tails flutter in a **3-frame stepped cycle**, plus a cowlick.+- **Portraits** 32×32, 3/4 view, base face + eye/brow and mouth overlays (neutral, wistful, smile, sad, resolve). They carry all facial acting; the 34-px sprite face has one eye pixel.+- **Props**: the save crystal is a flat-shaded octahedron rotated in 3D and quantized to 4 protected cyans (8 frames per 90°), with a dithered halo. The great door is a front-on paneled stone door with a sunburst tympanum, voussoirs, a rune ring that splits when it opens, and a rose window above for the tilt-up.++## Titles, subtitles & end card++- **The dialog box is the subtitle**, drawn in the framebuffer at y 134–176:+ - three-layer rounded border (ink / white / silver);+ - blue→navy→night dithered fill;+ - 32×32 portrait on the left;+ - original variable-width pixel font (cap 7, x-height 5, descender 2) in white with a 1-px night shadow;+ - types with the voice; ▼ when done.+- **Skins follow the era**: 4-color light box with dark text at 160×90; 8-bit black box with white frame and an 8-bit portrait; 16-bit/present blue (it fades with the present and turns vivid when color returns).+- Battle messages go in a thin top window. Every box stays ≥ 1.8 s and ≥ voice + 0.6 s. The next box cuts the previous one. The `.srt` is exported from the same `window.SUBS` array.+- **Title**: two lines, 2× font, 8-neighbour ink outline, white→silver→steel gradient by row, Bayer-dissolved in and out. **End card**: gold title, blinking `▶ CONTINUE`, style name, `LemoLab × Claude Opus 5.5`, and the red scarf drifting across once. The LemoLab sign-off belongs to this library's demo only: a user's film carries no LemoLab credit and no copy of this card.++## Pitfalls we hit (demo record)++- **Rank-based palette mapping crushes everything to black**: with many dark colors in the master palette, a quantile map puts half the scene in the darkest step. Map by luminance with a gamma (`lum^0.8`).+- **Collapse subsets without warm hues** turn a sunset solid red on the first step. Keep orange, pink and plum in the 16- and 8-color sets.+- **8-bit palette without a dark green**: night grass became blue. **Generic brightening around a fire** made grass neon green. Use a warm remap.+- **Post-quantizing a full-color scene to 4 shades is mud**. Draw 4-color scenes natively with 4 known indices at half resolution.+- Hair drawn as a smooth dome reads as a helmet. Back hair with alternating single pixels reads as sawtooth noise; use 2–3 big spikes. A cream tunic reads as bare skin. A staff held in the front hand crosses the face in side view; hold it in the back hand behind the body. A back-mounted sword crossed the front of the torso; use a hip scabbard.+- A dark plank door reads as a jail. Use recessed panels with bevels lit from the upper left, studs, ring handles and a tympanum. A bug drew the closed door's centre seam as light.+- **Negative modulo**: `Math.floor(t*12) % 4` is negative when a phase offset makes `t` negative, and it indexed `undefined`. Use `((n % m) + m) % m`.+- **Homophones**: whisper hears "inn" as "in". Accept it through the `asr` field; the subtitle disambiguates.+- The dialog box covers the bottom 25%. Put the floor line at y 128 so standing characters stay above it.+- For a match cut on a protected color, compute both screen positions. The demo's scarf is at (197, 104) in both eras.++## Build notes++```+styles/pixel-rpg/demo/+ px.js indexed framebuffer, palettes & LUTs (full/nes/gb4/faded/c16/c8/c4/c2), dither, mosaic+ font.js variable-width pixel font ui.js windows, dialog, menus, file list, status, save+ sprites.js rig + ASCII heads, scarf tails portraits.js 32×32 portraits + expressions+ props.js crystal, halo, pedestal, door memsprites.js 4-color kid sprites+ scenes.js corridor (parallax), door tilt, LIGHT/DARK index lighting, torches+ memscenes.js village (160×90), campfire (8-bit), battle (16-bit), thumbnails, title, end card+ main.js director: shots, transitions, palette timing, EV (sound events), SUBS+ timeline.json single source of timing (music, picture, mix) lines.json voice script+ music/score.py original chiptune from timeline.json mix.py foley + voice + ducking+ sheet.js model sheet (?sheet=1) tools/subs.mjs srt export build.sh one-shot rebuild+```++1. Write `timeline.json` first: sections, BPM, downbeats, hits, silences, the collapse steps. Music, picture and mix all read it.+2. `?sheet=1` → model sheet; `?frame=corridor|door&lut=faded` → environment self-check frames before laying out shots.+3. `core/tts/tts.py` → `asr_check.py` (all OK), then compose `music/score.py` against the timeline (a parallel sub-agent works well).+4. `node core/render/still.mjs demo --range 0.3:54.3:1.5` → `sheet.py` overview; check the key moments frame by frame.+5. `events.mjs` → `mix.py` → `tools/subs.mjs` → `video.mjs --workers 3` (1308 frames in about 20 s) → `mux.sh … 24 0`.+6. `sh demo/build.sh` reproduces everything from scratch.diff --git a/styles/pixel-rpg/STYLE.md b/styles/pixel-rpg/STYLE.mdindex ae23f3b..67ea7c0 100644--- a/styles/pixel-rpg/STYLE.md+++ b/styles/pixel-rpg/STYLE.md@@ -1,130 +1,115 @@# 16-bit Pixel RPG — Style Prompt-> A short film that looks, sounds and *behaves* like a mid-90s console role-playing game: 320×180 pixels, a limited palette, text boxes that type, menus, save points, chip music with echo.-> Demo: *The Last Save Point* (54.5 s) · `pixel-rpg.mp4` · source in `demo/`+> A short film that looks, sounds and *behaves* like a mid-90s console role-playing game: 320×180 pixels, a limited indexed palette, text boxes that type, menus, save files, chip music with echo.+> References (grammar only): mid-90s console RPGs as a system of dialog boxes, menus, battles, overworlds and save points; the palette tricks of indexed hardware (palette swaps, fades by steps, cycling); the colour-depth history of consoles (4 shades → 8-bit → 16-bit). Never use existing game names, characters, UI frames, fonts, logos, melodies or sound effects. Learn the grammar, not the assets.-You are directing a 30–60 second film in the **16-bit Pixel RPG** style. The user gives you a topic. You decide everything else (story, shots, timing, sound) and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not++- **320×180 native pixels**, scaled ×6 nearest-neighbour to 1080p; everything, text included, lives in the framebuffer.+- **A limited, indexed palette**; gradients are **ordered dither**, never blends.+- **Sprites** around 20–34 px tall animating in a handful of frames; faces act in **portraits**.+- **Story told the way a game tells it**: dialog boxes with portraits, menus, status bars, battle messages, save files, item fanfares.+- It takes the game's systems seriously as a language for feeling.++Not HD-2D (no depth of field, bloom or real-time light), not CRT nostalgia (no scanlines, no grain), not a parody.++## 2. Materials & rendering++- **Indexed framebuffer** (`Uint8Array` of palette indices) presented through a **lookup table** (index → RGB), so a whole palette can change in one frame. Camera moves are **integer pixels**; each parallax layer rounds its own offset.+- **Master palette** of ~32 colours (a free palette such as ENDESGA-32), plus **protected duplicates** of a few indices that no palette effect touches.+- **Colour-depth tables** computed from the master palette: identity (16-bit), nearest of ~15 NES-like colours (8-bit; it needs a dark green and a dark brown), 4 fixed luminance thresholds (4-colour, drawn natively at 160×90 and doubled), a faded set (`lum^0.8` → ~7 blue-greys), and intermediate subsets for step-by-step collapse. Map by luminance, never by rank.+- **Light is index stepping**: `LIGHT[]` / `DARK[]` tables move each index one step along its ramp; glows are Bayer-thresholded rings. Firelight in a low-colour era uses a warm remap (greens → browns → rust), not generic brightening.+- **Dither**: 4×4 Bayer for gradients and glows; light shafts as a flat 50 % checker with a 25 % edge.+- **Sprites from a rig**: capsule limbs with 3-tone shading from an upper-left light, a per-part inner line in the material's darkest tone, a global 1-px ink outline, plus hand-placed ASCII heads. One rig gives every pose; lower eras drop the highlight tone. Give the hero a **silhouette mark** (a garment tail, a hat, a hairstyle).+- **Portraits** 32×32, 3/4 view, base face + eye/brow and mouth overlays; they carry facial acting (the sprite face has one eye pixel).+- **Props** can be flat-shaded 3D shapes quantised to a few protected indices (e.g. a rotating crystal at 8 frames per 90°).++## 3. Colour logic++- **Palette = feeling.** Colour depth, fades and swaps are story tools; change the whole palette by table, never by alpha.+- **Colour depth can stand for time**: older = fewer colours, lower resolution.+- **Protected indices**: a few colours exempt from every effect become the thread through the film and allow match cuts between eras. Use one or two; more and they stop meaning anything.+- **Warm hues survive reductions**: keep orange, pink and plum in reduced subsets, or the first step turns a scene solid red.+- Example uses of protected colours: a red scarf across eras; a gold coin in a grey economy; the green of one plant in a faded city.++## 4. Type & subtitles++- **The dialog box is the subtitle**, drawn in the framebuffer at the bottom quarter: a layered rounded border (ink / white / silver), a dithered dark-blue fill, a 32×32 portrait on the left, an **original** variable-width pixel font (cap ~7 px) with a 1-px shadow. It types with the voice (~38–40 chars/s; slower in older eras), ▼ blinks when done.+- **Skins follow the era** (light box for 4-colour, black box with white frame for 8-bit, blue for 16-bit).+- Battle and system messages go in a thin top window. Every box stays ≥ max(1.8 s, speech + 0.6 s); the next box cuts the previous one. Export the `.srt` from the same subtitle array.+- Titles in the pixel font at 2×, 8-neighbour ink outline, row-by-row gradient, Bayer-dissolved in and out.++## 5. Motion quality++- Output 24 fps. Sprites step at **8 fps** (walk) to **12 fps** (flames, blinks); camera and parallax move on ones at integer pixels.+- **Game-native acting**: hop forward to act, cast pose, knockback recoil, kneel, KO blink (12 fps on/off) and vanish; breath = shoulders up 1 px.+- **UI motion**: windows slide in over ~0.3 s (ease-out, integer px); a hand cursor bobs 1 px at 4 fps and **stops when the character hesitates**.+- **Transitions**: thumbnail expand + mosaic, mosaic cross with a palette switch at the peak, the encounter swirl (polar twist + mosaic + Bayer dissolve to white), screen shake (3–2–1 px over 8 frames), palette step fades (4 levels). Never alpha fades.++## 6. Camera grammar++A vocabulary, not a route. Game cameras are simple and legible. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Side-scroll with parallax layers | journey; loneliness; progress | a commute; a quest; a timeline |+| Locked frame with UI on one third | a choice; a system speaking | a menu decision; a stats reveal |+| Battle side view (enemy / party / windows) | conflict as a system | an exam; a negotiation; an illness |+| Top-down overworld pan | the whole world; where things are | a city; a map of a company; a trip |+| Integer-pixel tilt up something tall | awe; scale | a tower; a door; a mountain |+| Hold while the palette changes | loss or change without motion | grief; a memory fading; nightfall |+| Back view at a threshold | resolve; the unknown ahead | a first day; a launch; a departure |+| Zoom by mosaic into a thumbnail | entering a memory or a file | a flashback; a save slot; a photo |++Framing: characters stay above the dialog box (floor line above its top edge); menus leave the action visible.++## 7. Sound palette++- **Chiptune voices**: pulse waves at 12.5/25/50 % duty, 4-bit triangle bass, LFSR noise drums, wavetable leads, SNES-style echo (a few taps ~180–370 ms, feedback ~0.4, low-pass in the loop). Original melodies only.+- **Fidelity follows colour depth** (option): 4-colour = mono, 4-bit volume steps, low sample rate; 8-bit = NES-like mono; 16-bit = stereo with echo; a faded present = the same music muffled.+- **Techniques (options)**: regional variations of one motif; the arrangement losing one layer per palette step; a key change or the full band returning on a colour flood; a phrase left on the dominant and resolved later; an item-get fanfare as a punctuation.+- **Foley**, synthesised and bit-crushed to the scene's era: cursor and select blips, text blips (pitch per speaker), footsteps with echo, fire crackle, magic shimmer (triangle arpeggio), charge and blast, HP tick-down, KO blink, a bit-drop per palette step, save ticks, door grind, coin and item jingles, menu error buzz.+- **One organic sound** (a breath, a heartbeat) can make a character human at one moment.+- **Silence**: true zero including echo tails.+- **Mix**: music ducks ~7–8 dB under voice (fast attack, slow release); −14 LUFS, grain 0.+- **Voice** (optional): first person, few short lines; or text blips only, for a character who exists only in text.++## 8. Native moves++A menu: use the ones your story needs.++- **Palette collapse / flood.** Colour depth drops one level per beat, or full colour floods back through a dither wave. *Fits content like:* a city blackout and recovery; a company in crisis; burnout and rest.+- **Protected colour match cut.** One exempt colour links two eras in the same screen position. *Fits content like:* a family heirloom; a brand colour across decades; a team jersey.+- **Save files as memory.** A list of files; choosing NEW FILE refuses to overwrite. *Fits content like:* versions of a product; chapters of a career; photo albums.+- **Game UI as narration.** A greyed-out name, an item description, a stat screen. *Fits content like:* a team member leaving; a skill learned; a budget.+- **Level up.** Stats rise with a fanfare. *Fits content like:* a student's year; a startup's funding round; learning a language.+- **Encounter swirl.** A crash into danger. *Fits content like:* a deadline; a diagnosis; a storm.+- **Era shift.** The same characters redrawn in older hardware. *Fits content like:* a town's history; grandparents' youth; the evolution of a device.++## 9. Pitfalls of the medium++- Rank-based palette mapping crushes a scene to black → map by luminance with a gamma.+- Reduced subsets without warm hues turn a sunset solid red → keep warm hues.+- An 8-bit set without dark green or brown turns night grass blue; generic brightening near fire turns grass neon → warm remap.+- Post-quantising a full-colour scene to 4 shades is mud → draw low eras natively with known indices at half resolution.+- Pixel hair as a smooth dome reads as a helmet; single-pixel alternation reads as noise → 2–3 big spikes. Pale clothing reads as skin. Held props cross the face in side view → back hand.+- A dark plank door reads as a jail → panels, bevels, studs.+- Negative modulo indexes `undefined` → `((n % m) + m) % m`.+- The dialog box covers the bottom quarter → keep the floor line above it.+- Match cuts on protected colours need both screen positions computed.++## 10. Engine++In `demo/`: `px.js` (indexed framebuffer, palettes and LUTs for every colour depth, Bayer dither, mosaic), `font.js` (variable-width pixel font), `ui.js` (windows, dialog, menus, file list, status bars), `sprites.js` (rig + ASCII heads), `portraits.js` (32×32 portraits + expressions), `props.js`, `scenes.js` (parallax, index lighting, tilt), `main.js` (shots, transitions, palette timing, sound events, subtitles). `?sheet=1` renders a model sheet; `?frame=<scene>&lut=<table>` renders an environment through any colour-depth table. File list and build steps: [DEMO.md](DEMO.md) "Build notes".++## 11. Variation space++You decide which game system the topic hides, the characters, the eras, the palette plan, the opening and the ending. All far from our demo:++- Structures: **an overworld tour** (a top-down map; each town a chapter entered by a door transition); **a shop and an inventory** (the story told entirely through items bought, used and sold); **a turn-based duel** (two sides take turns; each move is a scene of the topic).+- Openings: **PRESS START**, a title screen with an attract-mode demo; **a battle already in progress** with HP low; **a boot screen** that fails to load and must be retried.+- Endings: **GAME OVER** answered by a choice (retry / give up) left open; **credits scrolling over the overworld** as characters walk home; **the save screen** where the last slot is written and the menu closes.----## 1. What this style is--A world drawn at **320×180 native pixels**, scaled ×6 with nearest-neighbour to 1080p. Every color comes from a **limited, indexed palette**. Gradients are **ordered dither**, not blends. Characters are **sprites** around 22×34 px that animate in a handful of frames. Story is told the way a game tells it: through **dialog boxes with portraits**, **menus**, **status bars**, **battle messages** and **save files**.--It is *not* HD-2D (no depth of field, no bloom, no real-time light), *not* CRT nostalgia (no scanlines, no grain), and *not* a parody. It takes the game's systems seriously as a language for feeling.--Never use existing game names, characters, UI frames, fonts, logos, melodies or sound effects. Learn the grammar, not the assets.--## 2. Story: what fits this style--Pick stories where **the game's own systems carry the emotion**. The medium has these native powers. Use at least three, and put the strongest at the emotional peak.--| Native power | Story use |-|---|---|-| **Palette = feeling** | Because the image is indexed, you can swap the whole palette in one frame. Memory, grief, hope can literally be color depth. In the demo: older memories have fewer colors (16-bit → 8-bit → 4-color). The present after a loss is **faded**. The collapse of a memory is the palette **dropping one level per beat**. Hope is the full palette **flooding back through an ordered-dither wave**. |-| **Protected colors** | Exempt a few palette indices from every palette effect. One red object (a scarf) that never fades becomes the thread through the whole film, and a perfect **match cut** between eras. |-| **Game UI as narration** | Save files = a list of memories (choosing *NEW FILE* = refusing to overwrite them). A name greyed out in the party list = death, without a word. "No inn will ever heal it" = grief in the medium's own vocabulary. |-| **Text boxes & blips** | A dialog box *is* the subtitle. A character with no voice actor, only text blips, reads as someone who now exists only in text. |-| **Era shifts** | The same characters redrawn in older hardware: 4 shades at half resolution, a 13-color 8-bit set, full 16-bit. Time travel for free. |-| **Genre transitions** | Mosaic in and out for gentle memories. The **encounter swirl** to crash into danger. White flash on the climax. |--Adapting any topic: find the **game system** hidden in it. A product launch is a new item obtained (fanfare, item box, stat comparison). A farewell is a save file that is never overwritten. A career is a level-up screen. A city is an overworld map with save points.--**Arc for 45–60 s:** loneliness (quiet, faded, long scroll) → warmth (a memory) → loss (the system breaks) → resolve (the system restored in full color) → an end card that is also a game prompt (*CONTINUE ▶*).--## 3. Visual language--- **Resolution & scaling**: native 320×180 indexed framebuffer (`Uint8Array` of palette indices). Present through a **lookup table** (index → RGB) and scale ×6 nearest-neighbour. Everything, including text, is drawn in the framebuffer. Camera moves are **integer pixels**; each parallax layer rounds its own offset.-- **Master palette**: ENDESGA-32 (`#be4a2f #d77643 #ead4aa #e4a672 #b86f50 #733e39 #3e2731 #a22633 #e43b44 #f77622 #feae34 #fee761 #63c74d #3e8948 #265c42 #193c3e #124e89 #0099db #2ce8f5 #ffffff #c0cbdc #8b9bb4 #5a6988 #3a4466 #262b44 #181425 #ff0044 #68386c #b55088 #f6757a #e8b796 #c28569`), plus **protected duplicates** (scarf red `#e43b44/#a22633/#f6757a`, crystal cyan `#2ce8f5/#0099db/#ffffff/#124e89`) that no palette effect touches.-- **Color-depth tables** (all computed from the master palette):- - *16-bit*: identity.- - *8-bit*: nearest of 15 colors `#000000 #fcfcfc #a4a4b8 #58587c #1c2c8c #3c7cfc #94e0fc #b8141c #fc7454 #fcb81c #8c4c1c #2c9c2c #fcd8a8 #0c4c18 #4c2410`. It needs a dark green and a dark brown, or night grass turns blue.- - *4-color*: fixed luminance thresholds (<60, <115, <175) → `#1f2a1c #4b5e3a #93a263 #d6dba6`. Draw 4-color scenes with the four representative indices (ink / slate / steel / white) so every pixel lands on the intended shade. Render them at **160×90** and double.- - *Faded*: `lum^0.8 × 7` → 7 blue-greys `#0e0d17 … #c3c9d6`. **Do not** map by rank: rank mapping crushes the scene to black.- - *Collapse steps*: 16-color and 8-color subsets that **keep warm hues** (orange, pink, plum), or the first step turns the frame red. Then 4 grey-blues, 2 tones, faded.-- **Light is index stepping**: a `LIGHT[]` / `DARK[]` table moves each index one step along its ramp. Torch glow, moonlight and fire are Bayer-thresholded rings of `LIGHT[LIGHT[c]]` / `LIGHT[c]`. Firelight in an 8-bit scene uses a **warm remap** (greens → browns → rust), not generic brightening, which turns grass radioactive.-- **Dither**: 4×4 Bayer for gradients and glows. Light shafts use a flat 50% checker with a 25% edge, which reads cleaner than a gradient.-- **Parallax** (side-scroller): far wall with arched windows 0.35×, colonnade with banners and torches 0.7×, floor with pseudo-perspective joints 1×, black foreground pillars 1.6×.-- **Sprites**: a **rig** (capsule limbs with 3-tone shading from an upper-left light, per-part inner line in the material's darkest tone, global 1-px ink outline) plus **hand-placed ASCII heads**. One rig gives every pose: walk ×4, attack, hurt, look up, push, sit, kneel, back-view push. For 8-bit scenes use the same rig with the **highlight tone removed**. Give the hero a **silhouette mark**: a long scarf whose tails flutter in a **3-frame stepped cycle**, plus a cowlick.-- **Portraits** 32×32, 3/4 view, base face + eye/brow and mouth overlays (neutral, wistful, smile, sad, resolve). They carry all facial acting; the 34-px sprite face has one eye pixel.-- **Props**: the save crystal is a flat-shaded octahedron rotated in 3D and quantized to 4 protected cyans (8 frames per 90°), with a dithered halo. The great door is a front-on paneled stone door with a sunburst tympanum, voussoirs, a rune ring that splits when it opens, and a rose window above for the tilt-up.--## 4. Motion language--- Output 24 fps. Sprites step at **8 fps** (walk) to **12 fps** (flames, KO blink). Camera and parallax move **on ones** at integer pixels. Walk speed 30 px/s ≈ 1.25 px per frame.-- Game-native acting: hop forward to act, cast pose with raised staff, knockback recoil, kneel, then the **KO blink** (12 fps on/off) and vanish. Breath = shoulders up 1 px for 0.6 s.-- UI motion: windows slide in over 0.3 s (ease-out, integer px). The hand cursor bobs 1 px at 4 fps and **stops bobbing when the character hesitates**. Text types at 38–40 chars/s (30 for 8-bit), with ▼ blinking at 3 Hz when done.-- Transitions: **thumbnail expand + mosaic** (block 10 → 1 over 0.75 s); **mosaic cross** (1 → 16 → 1 over 0.8 s, palette switched at the peak); **encounter swirl** (polar twist growing with `s^1.6`, mosaic, Bayer-dissolve to white, 0.8 s); **screen shake** of 3–2–1 px over 8 frames; **palette step fades** (4 levels), never alpha.--## 5. Camera language--| Beat | Camera |-|---|---|-| Opening | Long side-scroll through a colonnade, hero small (1/6 of the frame height), four parallax layers, one colored object ahead |-| Menus | Locked-off frame, UI on the left third, hero and prop visible on the right |-| Warm memory | Wide, static or slow pan; characters small against sky or fire |-| Battle | Classic side view: enemy left, party right facing left, UI window below, message window on top |-| Loss | Hold the frame. No cut, no move while the palette collapses |-| The monument | **Integer-pixel tilt** up a three-screen-tall door to a rose window, hold, tilt back down. The one memorable camera move |-| Climax | Back view at the threshold, light spilling on the floor, color flooding outward from the hero |--## 6. Sound--- **Music**: original chiptune (square 12.5/25/50%, 4-bit triangle, LFSR noise, wavetable). One motif runs through every section as **regional variations**. The music's fidelity follows the color depth:- - 4-color: mono, 4-bit volume steps, 11 kHz sample-and-hold;- - 8-bit: NES-like, mono;- - 16-bit: stereo with SNES-style echo (3 taps ~180/270/370 ms, feedback 0.35–0.45, low-pass ~3 kHz in the loop);- - present: the same music muffled (LP 2.2 kHz).- During the palette collapse, the music loses one layer per step: harmony, then echo and stereo, then bass, then only a single square tone, then **one beat of silence** exactly when the image reaches the present's grey. The boss prelude is the motif in minor; the full band enters on the bar where color floods back. The end card resolves the phrase the opening left on the dominant.-- **Foley**, all synthesized and bit-crushed to the scene's era: cursor/select blips, text blips (the companion's are higher and 5-bit), stone footsteps with echo, fire crackle, ward shimmer (triangle arpeggio), charge (rising square + noise), blast (swept low-pass noise + 48 Hz thump, crushed to 6-bit), HP tick-down, KO blink, **bit-drop** per palette step (lower and coarser each time), save ticks, door grind (brown noise + AM creak), torch ignite, reverse swell.-- **One organic sound**: the hero's breath before the door, band-passed noise and not crushed. It makes him human at the last moment.-- **Silence**: after the blast (true zero, echo tails cut too) and the beat before the present.-- **Voice**: Kokoro `bm_george` at speed 0.9, first person, 5 short lines. Duck the music ~−7.5 dB under the voice (60 ms attack, 350 ms release). Mix to −14 LUFS, **grain 0**.--## 7. Subtitles & titles--- **The dialog box is the subtitle**, drawn in the framebuffer at y 134–176:- - three-layer rounded border (ink / white / silver);- - blue→navy→night dithered fill;- - 32×32 portrait on the left;- - original variable-width pixel font (cap 7, x-height 5, descender 2) in white with a 1-px night shadow;- - types with the voice; ▼ when done.-- **Skins follow the era**: 4-color light box with dark text at 160×90; 8-bit black box with white frame and an 8-bit portrait; 16-bit/present blue (it fades with the present and turns vivid when color returns).-- Battle messages go in a thin top window. Every box stays ≥ 1.8 s and ≥ voice + 0.6 s. The next box cuts the previous one. The `.srt` is exported from the same `window.SUBS` array.-- **Title**: two lines, 2× font, 8-neighbour ink outline, white→silver→steel gradient by row, Bayer-dissolved in and out. **End card**: gold title, blinking `▶ CONTINUE`, style name, `LemoLab × Claude Opus 5.5`, and the red scarf drifting across once.--## 8. Pitfalls we hit--- **Rank-based palette mapping crushes everything to black**: with many dark colors in the master palette, a quantile map puts half the scene in the darkest step. Map by luminance with a gamma (`lum^0.8`).-- **Collapse subsets without warm hues** turn a sunset solid red on the first step. Keep orange, pink and plum in the 16- and 8-color sets.-- **8-bit palette without a dark green**: night grass became blue. **Generic brightening around a fire** made grass neon green. Use a warm remap.-- **Post-quantizing a full-color scene to 4 shades is mud**. Draw 4-color scenes natively with 4 known indices at half resolution.-- Hair drawn as a smooth dome reads as a helmet. Back hair with alternating single pixels reads as sawtooth noise; use 2–3 big spikes. A cream tunic reads as bare skin. A staff held in the front hand crosses the face in side view; hold it in the back hand behind the body. A back-mounted sword crossed the front of the torso; use a hip scabbard.-- A dark plank door reads as a jail. Use recessed panels with bevels lit from the upper left, studs, ring handles and a tympanum. A bug drew the closed door's centre seam as light.-- **Negative modulo**: `Math.floor(t*12) % 4` is negative when a phase offset makes `t` negative, and it indexed `undefined`. Use `((n % m) + m) % m`.-- **Homophones**: whisper hears "inn" as "in". Accept it through the `asr` field; the subtitle disambiguates.-- The dialog box covers the bottom 25%. Put the floor line at y 128 so standing characters stay above it.-- For a match cut on a protected color, compute both screen positions. The demo's scarf is at (197, 104) in both eras.--## 9. Production recipe (this repo)--```-styles/pixel-rpg/demo/- px.js indexed framebuffer, palettes & LUTs (full/nes/gb4/faded/c16/c8/c4/c2), dither, mosaic- font.js variable-width pixel font ui.js windows, dialog, menus, file list, status, save- sprites.js rig + ASCII heads, scarf tails portraits.js 32×32 portraits + expressions- props.js crystal, halo, pedestal, door memsprites.js 4-color kid sprites- scenes.js corridor (parallax), door tilt, LIGHT/DARK index lighting, torches- memscenes.js village (160×90), campfire (8-bit), battle (16-bit), thumbnails, title, end card- main.js director: shots, transitions, palette timing, EV (sound events), SUBS- timeline.json single source of timing (music, picture, mix) lines.json voice script- music/score.py original chiptune from timeline.json mix.py foley + voice + ducking- sheet.js model sheet (?sheet=1) tools/subs.mjs srt export build.sh one-shot rebuild-```--1. Write `timeline.json` first: sections, BPM, downbeats, hits, silences, the collapse steps. Music, picture and mix all read it.-2. `?sheet=1` → model sheet; `?frame=corridor|door&lut=faded` → environment self-check frames before laying out shots.-3. `core/tts/tts.py` → `asr_check.py` (all OK), then compose `music/score.py` against the timeline (a parallel sub-agent works well).-4. `node core/render/still.mjs demo --range 0.3:54.3:1.5` → `sheet.py` overview; check the key moments frame by frame.-5. `events.mjs` → `mix.py` → `tools/subs.mjs` → `video.mjs --workers 3` (1308 frames in about 20 s) → `mux.sh … 24 0`.-6. `sh demo/build.sh` reproduces everything from scratch.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/pixel-rpg/TREATMENT.md b/styles/pixel-rpg/TREATMENT.mddeleted file mode 100644index e9d79e9..0000000--- a/styles/pixel-rpg/TREATMENT.md+++ /dev/null@@ -1,139 +0,0 @@-# TREATMENT · 01 · 16-bit Pixel RPG ·《The Last Save Point》--> 时长 55.0 s | 320×180 原生像素 ×6 = 1920×1080 | 24 fps 输出(精灵 8–12 fps 步进,卷轴按帧走整数像素)-> 旁白:Kokoro `bm_george` speed 0.9,第一人称(主角 ARLO 本人)| 字幕 = RPG 对话框-------## 1. 一句话故事--勇者 ARLO 独自站在最终之门前的存档点。选存档位时,三个旧存档一个比一个老、一个比一个"色少"——出发的村庄(4 色)、篝火的夜晚(8-bit)、失去 WREN 的那场战斗(16-bit 满色)。战斗里她倒下,回忆的颜色一级一级塌掉,塌成他现在活着的这个灰色世界。他新建存档(不覆盖任何回忆),系紧她留下的红围巾,推门——颜色从围巾开始,涨回整个画面。--情绪弧:**孤独 → 温暖 → 失去 → 决心**。一个角色(ARLO)、一个目标(推开那扇门)、一次转折(回忆里她为他挡下致命一击 → 他明白该带着她往前走)。--## 2. 对标:学什么 / 刻意不学什么--| 对标 | 学什么 | 刻意不学什么 |-|---|---|---|-| 《To the Moon》 | 用像素 RPG 讲记忆与失去;**用游戏自身的系统当叙事语言**(存档、道具、HP 在这里都有情绪含义);克制,靠一两个小物件(这里是红围巾)贯穿全片;逆着记忆走向"核心时刻"的结构意识 | 它的具体故事(改写记忆的医生)、钢琴主导的配乐、俯视角地图的画面构成 |-| 《Chrono Trigger》《Final Fantasy VI》时代 SNES | 蓝色渐变对话框 + 头像 + 逐字打印;侧视战斗画面与屏上战报;遇敌旋涡转场;调色板动画(水晶、火把);多层视差卷轴;SNES 回声(echo buffer)式的芯片配乐;存档点主题"温柔、短、可循环",地区变奏用同一动机换配器与节拍,Boss 战前奏用同一动机转小调 | 任何具体角色、精灵、字体、UI 边框样式、菜单布局、旋律、音效;ATB 条之类可辨认的系统设计;Mode 7 旋转地面这种"炫技";不做 CRT、不加颗粒(本风格说明要求干净像素) |-| 更早的掌机 / 8-bit 主机 | 4 色单色、2 脉冲 + 波表 + 噪声;8-bit 的黑夜天空、3 色精灵、三角波低音 | 不用任何真实机型的专用绿色色值,不复刻开机画面 |--与库里 `hd-2d` 风格划清界线:本片**没有**景深、辉光、实时光照,所有"光"都是调色板和抖动画出来的。--## 3. 原生招式(只有像素 / 调色板媒介能做到)--1. **色深即记忆(贯穿全片的规则)**:越久远的回忆色深越低。- - 最早:**4 色单色**,而且分辨率也退一半(160×90,像素块 12×12),像更早的掌机;- - 较早:**8-bit** 限定调色板(13 色、黑夜天空、3 色精灵);- - 最近:**16-bit 满调色板**(ENDESGA-32 全色 + 调色板动画 + 多层视差);- - **现在:褪色**——他失去她之后的世界只剩 6 阶蓝灰,全屏唯二带颜色的是存档水晶(青)和她的红围巾。- - 声音也跟着"色深"走:4 色回忆的配乐是 4-bit 音量阶梯 + 采样率降格;8-bit 回忆是脉冲 + 三角波;16-bit 回忆有立体声和回声;"现在"的配乐被闷住(低通)。-2. **情绪高点 A · 调色板塌缩(失去)**:WREN 倒下后,16-bit 回忆的调色板每 0.6 s 掉一级:32 → 16 → 8 → 4 → 褪色灰,每掉一级一声"掉位"哔声。颜色塌到最后,正好就是"现在"的颜色——**这就是现在为什么是灰的**。只有地上她的红围巾不褪色,**匹配剪辑**到现在 ARLO 脖子上同一位置的红围巾。-3. **情绪高点 B · 调色板回涨(决心)**:推门的那一小节,颜色从围巾开始,用有序抖动(Bayer 阈值)一圈圈向外涨回满调色板;身后走廊的火把按顺序点燃,横幅、彩窗恢复本色。同一小节配乐从闷住的存档主题"满配"进入 Boss 前奏。-4. **转场语法**:温暖的回忆用**马赛克**进出(存档缩略图放大 + 块逐级变小);失去那段用 RPG 的**遇敌旋涡**硬切进战斗——温暖被"遇敌"打断。-5. **游戏系统当情绪**:存档位 = 回忆清单(他最后选"NEW FILE",一个都不覆盖);她的名字在战斗窗口变灰、在现在的状态栏里仍是灰的;"没有旅店能治好的伤";WREN 在回忆里**没有真人声音,只有打字哔声**——她只剩文字了。--## 4. 分镜节拍表(按秒,所有关键点对齐 cue map 的拍点)--| 时间 | 画面 / 表演 | 机位意图 | 声音 |-|---|---|---|---|-| **0.0–0.5** | 黑场 → 调色板 4 级步进淡入:长长的石廊,褪色蓝灰,ARLO 已在走(侧面,8 fps 四帧走路)。远处一点青光 | 开场即运动 + 一点唯一的颜色,3 秒内抓人 | 0.0 水晶"叮"(长回声) |-| 0.5–6.0 | **横向卷轴**:4 层视差(远处拱窗剪影 0.25×、柱廊 0.5×、地面 1×、前景柱子 1.75× 从镜头前扫过)。ARLO 很小,只占画面 1/6 高。1.5 片名 "THE LAST SAVE POINT" 抖动显现,5.25 抖动消失 | 空、长、慢:孤独。前景柱子扫过让镜头有"跟着他走"的体积感 | 存档主题(闷住版),脚步回声 |-| 6.0–9.6 | 对话框 + ARLO 头像(怅然):"The last save point. I thought it'd feel bigger." | | VO1 |-| 8.25–9.0 | 镜头缓停,水晶进画:旋转的八面体(8 帧)、石台、光点。画面右缘露出巨门的门框底部 | 门先只露一角,留给后面的仰拍 | |-| 9.75 | 水晶回应:调色板循环闪一下 | | 叮 |-| 10.5 | 菜单窗弹出 `SAVE / QUIT`,手形光标在 SAVE 上跳动 | | 菜单开 |-| 11.25 | 确认 → 存档位列表滑入:FILE 1 HOLLOWMERE 00:12(4 色缩略图)、FILE 2 EMBER RIDGE 23:48(8-bit)、FILE 3 ASHFALL KEEP 51:09(16-bit)、NEW FILE。旧存档都显示两个人的小头像 | **缩略图把"色深规则"先教给观众** | 确认音 |-| 12.0 / 12.75 | 光标落 FILE 1 → 选中,缩略图放大 + 马赛克 | | 光标、选中 |-| **13.5–21.0 回忆一(4 色 · 160×90)** | 黎明的村口,两个小孩(小 ARLO 拿木剑,小 WREN 围着一条比她还长的围巾)走出木栅门,路牌 HOLLOWMERE。18.5 登上山坡,19.0 小 WREN 指向远方地平线升起的太阳 | 远景、横移,两个小人与大天空:出发的开阔 | 地区变奏 1(4-bit 双脉冲,轻快,96 BPM);VO2 14.2:"We left home with a wooden sword, and one long scarf." |-| 20.6–21.4 | 马赛克块变大到 16 → 调色板换 8-bit → 块变小 | | 下行琶音 |-| **21.0–29.4 回忆二(8-bit)** | 黑夜星空、松树剪影、篝火(3 帧循环火焰 + 调色板闪烁),两人坐在圆木上。22.4 对话框换成 8-bit 黑底白框 + WREN 的 8-bit 头像,逐字打印(**无人声,只有打字哔声**):"Cold? Here. Nothing finds you if we share it." 26.6 她把围巾的另一半绕到他脖子上,27.9 一颗流星划过,28.6 两人靠在一起 | 中景固定机位,篝火居中:温暖、静止、"想永远停在这里" | 地区变奏 2(NES 式三角波 + 脉冲,6/8 摇篮曲)+ 噼啪声;WREN 的打字音高于 ARLO |-| **29.4–30.2** | **遇敌旋涡**:温暖的画面被扭成漩涡、碎成马赛克、闪白 | 被打断:失去是突然的 | 下行扫频 + 噪声 |-| **30.2–33.2 回忆三(16-bit 满色)** | 侧视战斗:黄昏废墟城堡(4 层视差、调色板动画的余烬),右侧 ARLO 与 WREN(全细节精灵),左侧巨大的影兽 THE SHADE(剪影 + 红眼 + 轮廓闪烁)。底部蓝窗:ARLO HP 188/350,WREN HP 12/280(红字)。31.4 顶部战报 "WREN used WARD!",她跨到 ARLO 前面,六边形护盾展开(32.0),32.45 影兽蓄力,**33.2 冲击白闪** | 唯一一段"满色、立体声、全力"的画面:最近的回忆最鲜活,也最痛 | 战斗变奏(16-bit,小调,160 BPM,slap 低音 + 回声);**33.2 音乐一刀切断** |-| 33.2–35.0 | 真静音。WREN 的 HP 数字 12 → 0 滚动,她跪下、倒下,KO 闪烁 12 fps,消失,只剩地上的红围巾。战报 "WREN fell.",窗口里她的名字变灰 | 定机位不动:不给观众躲的地方 | 只有 HP 滚动的细小哔声 |-| **35.0–38.0 原生招式 A** | **调色板塌缩**:35.0 / 35.6 / 36.2 / 36.8 / 37.4 五级:满色 → 16 → 8 → 4 → 褪色灰。围巾始终是红的 | | 每级一声"掉位"哔(逐级更低、更粗);一个高音长音在回声里;VO4 35.6:"Some wounds, no inn can heal." |-| **38.6 匹配剪辑** | 地上围巾 → 现在 ARLO 脖子上的围巾(同一屏幕位置)。回到存档点,褪色世界;存档列表仍开着 | 用"唯一的颜色"连接过去和现在 | 水晶嗡鸣回来 |-| 39.35–40.8 | 光标越过三个旧存档,停在 NEW FILE → 选中 → "SAVING..." 进度条 → 40.8 **SAVE COMPLETE** | 他一个都没覆盖 | 存档完成三音(=主题动机前三音,大调) |-| **41.6–44.8 仰拍** | 切:门脚下的 ARLO(仰望姿势),镜头**按整数像素向上摇**,巨门三屏高,门楣上的浮雕在最顶端;停 0.6 s;摇回来。VO5 42.3:"She'd hate it if I stopped here." | 全片最让人记住的一个镜头:人与门的尺度 | 低沉持续音 |-| 44.8–46.0 | 状态栏滑入:ARLO LV42 HP/MP 条;下一行 WREN 灰色。**深呼吸**(肩膀起伏 2 帧)、手按围巾 | | 呼吸声、一下心跳 |-| **46.0–48.0** | 迈步、双手推门(推门姿势),门缝透出白光,门轴摩擦。VO6 46.4:"Okay. Let's finish this." | 固定侧面,门在右,人在左:向前 | Boss 前奏第一小节:同一动机转小调,低音八分音符 + 定音鼓式噪声 |-| **48.0–49.0 原生招式 B** | **调色板回涨**:从围巾开始,有序抖动一圈圈向外涨回满色;身后火把依次点燃,横幅、彩窗恢复本色 | 情绪最高点,所有东西在同一小节发生 | 48.0 全乐队进入(脉冲铜管八度 + 鼓 + 回声) |-| 49.0–50.0 | 门大开,ARLO 走进白光成剪影 | | 渐强 |-| **50.0** | 白闪(落在强拍) | | 重音后切断 |-| 50.0–50.8 | 白 → 调色板步进到黑 | | 回声尾巴 |-| **50.8–55.0 结尾卡** | 满色结尾卡:片名、光标闪烁的 `CONTINUE ▶`(与开场 "SAVE" 呼应:存档是为了继续)、`16-BIT PIXEL RPG · LEMO-OPUSCAR`、`LemoLab × Claude Opus 5.5` | | 尾声:开场未解决的存档主题乐句,这次落在主和弦上 |--## 5. Cue map(音乐先行,画面卡音乐)--同一个原创动机 **M**(5 音,开场停在属音上"没说完")贯穿全部段落。--| Cue | 时间 | 速度 / 拍号 | 配器(色深) | 情绪 | 卡点 |-|---|---|---|---|---|---|-| A 存档点 | 0.0–13.5 | 80 BPM 4/4(小节 3.0 s) | 12.5% 脉冲旋律 + 三角波低音 + 八音盒琶音,**低通闷住**,长回声 | 孤独、温柔 | 0.0 水晶叮;1.5 片名;6.0 VO1;10.5 菜单;12.0 光标;12.75 选中;乐句停在属音 |-| B 村庄 | 13.5–21.0 | 96 BPM 4/4(小节 2.5 s) | 2 脉冲 + 波表 + 噪声,**4-bit 音量阶梯、11 kHz 降采样**,单声道 | 天真、出发 | 13.5 进;18.5 上坡;19.0 指向远方(重音);20.6 转场琶音 |-| C 篝火 | 21.0–29.4 | 6/8 附点四分 ≈ 86(小节 1.4 s) | 25% 脉冲 + 三角波 + 琶音和弦 + 噪声噼啪,单声道 | 温暖、亲密 | 22.4 文字框;26.6 围巾;27.9 流星(高音点缀) |-| 遇敌 | 29.4–30.2 | — | 下行扫频 + 噪声 + 碎音 | 惊 | 30.2 闪白 |-| D 战斗 | 30.2–33.2 | 160 BPM 4/4(小节 1.5 s) | 16-bit:slap 低音、脉冲铜管、军鼓噪声、立体声 + 回声;M 转小调 | 紧迫 | 31.4 WARD;32.0 护盾;**33.2 一刀切断 → 真静音** |-| 塌缩 | 35.0–38.6 | 自由 | 一个高音长音 + 回声;每级"掉位"哔 | 失去 | 35.0/35.6/36.2/36.8/37.4 |-| E 现在 | 38.6–46.0 | 自由(隐含 80) | 水晶嗡鸣、稀薄长音;40.8 存档完成三音;45.0 呼吸、一下心跳 | 空、下决心 | 40.8、42.0 仰摇、44.8 状态栏 |-| F 最终之门 | 46.0–50.0 | 120 BPM 4/4(小节 2.0 s) | 46.0 小调低音八分 + 定音鼓式噪声;**48.0 满配**:脉冲铜管八度奏 M、鼓、回声、立体声展开 | 决心 | 46.5 推门;48.0 颜色回涨;50.0 白闪重音后切断 |-| G 尾声 | 50.8–55.0 | 80 BPM | 八音盒 + 回声,M 完整乐句**落在主和弦** | 回响 | 51.0 结尾卡;55.0 结束 |--## 6. 声音设计--- **全部程序化合成的芯片拟音**(numpy),并按"色深"处理:4 色回忆里的声音降到 4-bit / 11 kHz;8-bit 回忆 8-bit;16-bit 与"现在"满保真。-- 清单:水晶叮 / 嗡鸣(正弦合唱 + 慢 LFO)、光标移动(方波短哔)、确认(上行两音)、打字哔(ARLO 低、WREN 高)、脚步(石头:噪声短促 + 回声;村庄:更粗的 4-bit 噪声)、篝火噼啪(带通噪声爆点)、遇敌扫频、护盾(上行琶音闪烁)、冲击(噪声爆炸 + 降位)、HP 滚动(细哔)、KO 闪烁(下行哔)、掉位(每级更低、更粗)、存档完成、门轴摩擦(低频棕噪声 + 降位 + 摩擦纹理)、火把点燃(嘶 + 叮)、白闪(反向镲)、呼吸(**唯一不"芯片"的声音**:真实的气声滤波噪声,让 ARLO 在最后一刻像个真人)。-- 静音:33.2–35.0 战斗后真静音(连回声尾巴一起清零)。-- 混音:旁白压缩、音乐在旁白下闪避约 −8 dB;打字哔在旁白句下降到很轻(只做质感),在 WREN 无声的句子里才是主角。−14 LUFS,grain 0。--## 7. 字幕设计(字幕就是 RPG 对话框)--- **原生像素对话框**,画在 320×180 帧缓冲里(不是叠加的矢量字):底部 y 134–174,圆角像素边框(外黑 / 白 / 浅灰三层),蓝色有序抖动渐变底,左侧 32×32 头像(ARLO 四种表情:怅然 / 微笑 / 悲伤 / 决心),自制**大小写可变宽像素字体**(x 高 5、升部 7、降部 2),白字 + 深蓝投影,逐字打印(约 40 字符/秒,与语音同时开始),打完后右下角 ▼ 跳动。-- **对话框跟着色深换皮**:4 色回忆里是掌机式浅底深字;8-bit 回忆是黑底白框;16-bit 与现在是蓝渐变(现在褪色时是灰蓝,颜色回涨后变回鲜蓝)。-- 战报("WREN used WARD!"、"WREN fell.")用顶部细长窗口,和对话框区分。-- 每句停留 ≥ 1.8 s 且 ≥ 语音 + 0.6 s;下一句开始时上一句截止。另交 `.srt`(旁白 + WREN 的文字 + 战报)。--## 8. 相对风格说明的改动与理由--1. **回忆顺序改为 村庄 → 篝火 → 失去**(说明里是村庄 / 失去 / 篝火):短片里要先让观众在乎 WREN,失去才会疼;并且"失去"放在最后,才能让调色板塌缩直接塌成"现在"的灰色,把原生招式变成因果(现在为什么褪色)。情绪弧仍是说明里的"孤独 → 回忆 → 失去 → 决心"。-2. **"现在"从开场就是褪色的**:说明要求推门那一刻"从褪色恢复满调色板",所以褪色必须有来源——本片把它设定为失去之后的世界,并由塌缩那场戏揭示。-3. **4 色回忆分辨率也减半(160×90)**:让"越早越粗糙"在缩略图尺度也一眼可读;三段回忆各自是独立场景,不存在同屏混用像素尺寸的问题(只有马赛克转场里块大小在变,本来就是转场语言)。-4. **加入存档位列表 + "NEW FILE"**:把"存档读条就是回忆转场"具体化为"存档位就是回忆清单",并给 ARLO 一个无声的选择。说明里的"SAVE COMPLETE"保留。-5. **WREN 没有人声,只有打字哔**:原创处理,强化"她只剩下文字"。--## 9. 画面规格--- 帧缓冲:320×180 **索引色**(Uint8 调色板索引),所有色深 / 褪色 / 塌缩 / 回涨都是换调色板查找表,像 SNES 的 CGRAM;最后 ×6 最近邻放大。-- 主调色板 ENDESGA-32 + 保护色(围巾红 3 阶、水晶青 3 阶——褪色表对它们不生效)。-- 有序抖动 4×4 Bayer 做天空、光晕、阴影渐变;无任何模糊、辉光、景深。-- 精灵:ARLO 约 22×32,WREN 约 20×30,8–12 fps;小时候版本(4 色)约 8×12;8-bit 版本 3 色 + 描边。-- 镜头:所有卷轴按整数像素;视差层独立取整;仰拍按整数像素上下摇。-------## 10. 关卡 1 之后的修订(按协调者意见)与最终时间线--**改动**-1. **ARLO 剪影标志**:围巾加长到 16 px,尾端按 8 fps **三帧步进**飘动(像手绘 3 帧循环),背面仰望 / 推门时围巾尾巴从后颈垂下飘向一侧,是褪色画面里唯一的红;加一撮翘起的呆毛(走路时 2 帧摆动),头像同步加上。-2. **塌缩节奏放慢**:五级改为每级一拍(0.9 s):31.0 → 16 色,31.9 → 8 色,32.8 → 4 色,33.7 → 2 色,34.6 → 现在的褪色灰。配乐同步逐级掉保真度(和声先走 → 回声 / 立体声走、旋律单声道 → 低音走、旋律变细脉冲 → 只剩一个方波长音),**34.6 与现在的灰对上时静音一拍**(34.6–35.5,拟音也清零)。-3. **存档位装置**:三个旧档带缩略图(4 色 / 8-bit / 16-bit,各自保有自己的颜色,按区域换查找表)+ 时间戳 + 两人小头像;回到现在后光标 FILE 1 → FILE 2 → **停在 FILE 3(她最后在的那一格)1.5 s,手形光标停止跳动** → 下移 NEW FILE → SAVING → **SAVE COMPLETE 停留 1.6 s**,新档显示为 "FILE 4 LAST DOOR"(缩略图是褪色的现在,只有一点红和一点青)。-4. **背景先自查**:走廊(褪色 / 满色)与门的全尺寸帧先出图检查视差层次、抖动与火把光,再铺镜头(发现并修掉了褪色映射压黑、月光束噪点两个问题)。-5. **配乐**:芯片音乐由 fork 子 agent 按 `demo/timeline.json` 合同合成(numpy),SNES 回声 = 三抽头延迟 + 反馈低通。-6. 旁白第 4 句改为 "Some wounds... no inn will ever heal."(原句 "no inn can heal" 被听成 "know and can heal")。-7. 为了容纳放慢的塌缩和犹豫的光标、又守住 55 s,开场压缩(片名与行走重叠,VO1 与抵达重叠),总长 54.5 s。--**最终时间线(秒)**--| 段落 | 时间 | 要点 |-|---|---|---|-| 存档点(现在,褪色) | 0.0–10.25 | 0.0 水晶叮 + 淡入;1.5 片名;5.0 VO1;7.5 抵达、仰望门;8.0 SAVE 菜单;8.75 存档位滑入;10.25 选 FILE 1 |-| 缩略图放大(马赛克) | 10.25–11.0 | 缩略图框放大到全屏,块 10 → 1 |-| 回忆一 · 4 色 · 160×90 | 11.0–18.0 | 11.5 VO2(掌机式对话框);15.67 登上山坡;16.25 小 WREN 指向太阳,太阳升起;17.6 马赛克转场 |-| 回忆二 · 8-bit 篝火 | 18.0–25.4 | 19.48 WREN 的文字(只有打字哔声);22.44 围巾沿弧线绕到他脖子上;24.0 流星 |-| 遇敌旋涡 | 25.4–26.2 | |-| 回忆三 · 16-bit 战斗 | 26.2–31.0 | 26.95 "WREN used WARD!";27.33 护盾;27.7 蓄力;29.2 冲击白闪 + 震屏 + 音乐切断;29.3 HP 12→0;29.7 跪倒;30.1 KO 闪烁;29.9 "WREN fell." |-| 塌缩 | 31.0–35.5 | 五级(见上);32.2 VO4;34.6 静音一拍 |-| 匹配剪辑 → 现在 | 35.5–41.9 | 地上围巾 (197,104) → ARLO 围巾 (197,104);存档位犹豫;40.3 SAVE COMPLETE |-| 最终之门 | 41.9–49.5 | 42.1–43.3 整数像素仰摇到玫瑰窗,43.9–44.9 摇回;42.4 VO5;44.6 状态栏;44.7 呼吸;46.0 推门;46.1 VO6;47.5 颜色从围巾涌回(1.3 s)、火把依次点燃、满配进入;48.6 走进光;49.5 白闪 |-| 结尾卡 | 50.1–54.5 | 片名、▶ CONTINUE、风格名、LemoLab × Claude Opus 5.5、一条红围巾飘过;54.0 起调色板步进到黑 |diff --git a/styles/pixel-rpg/style.json b/styles/pixel-rpg/style.jsonnew file mode 100644index 0000000..057925c--- /dev/null+++ b/styles/pixel-rpg/style.json@@ -0,0 +1,18 @@+{+ "slug": "pixel-rpg",+ "num": "29",+ "en": "16-bit Pixel RPG",+ "cn": "16-bit 像素 RPG",+ "category_en": "Games",+ "category_cn": "游戏",+ "film": "The Last Save Point",+ "line": "At the final boss door a hero saves the game, and the save screen replays the whole journey.",+ "line_cn": "勇士在最终 Boss 门前存档,存档画面闪回一路冒险。",+ "uses": [+ "Game trailers",+ "Recaps",+ "Nostalgia"+ ],+ "frame_sec": 27.25,+ "dur": 54.5+}diff --git a/styles/risograph/DEMO.md b/styles/risograph/DEMO.mdnew file mode 100644index 0000000..e2016e5--- /dev/null+++ b/styles/risograph/DEMO.md@@ -0,0 +1,81 @@+# Risograph Print — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Sunday Ride* (40 s) · `risograph.mp4` · source in [`demo/`](demo/)+++## Story & structure++A lanky man in round glasses cycles across town on a Sunday morning to eat breakfast by the river. The city starts printed in the Blue plate only; each place he passes adds a plate: the bakery brings Yellow (a baguette handed over without him slowing down), the park brings Pink (a burst of pigeons, one of which hitches a ride on the baguette), and by the river all three plates overprint. He shares the bread with the pigeon; the camera pulls back and the whole film was one sheet sliding out of the printer onto a stack of earlier prints. Theme line: "Same ride every Sunday. Never quite the same print."++Arc (40 s = 20 bars of 2 s): quiet one-ink opening, hook inside 3 s (the ink being laid down) → each location adds a plate and an instrument → a small turn (the pigeon passenger) → full-overprint climax with a held silent bar → warm resolution (sharing) → scale reveal of the paper. One character, one goal, one turn.++Plate recipe for the story: first plate = the "before" state (the sleepy city), each added plate = a turning point, full overprint = the climax. Native moves spent: plates as narrative (Blue → Yellow → Pink), overprint transition (a pink disc swallows the park and becomes the river sun), registration as rhythm (kicks on the title, plate arrivals and the pigeon burst; a drift in the silent bar, snap on the downbeat), reflections as separated plates (the river), every frame a print (grain boil), it is a sheet of paper (the final pull-back).++## Shots++| # | Time | Plates | Shot | Camera / note |+|---|---|---|---|---|+| 1 | 0–2 | B | Bell ECU | Blue plate **rolled on** left→right over handlebar and bell; thumb flicks the bell on the first beat (1.0) |+| 2 | 2–8 | B | Sleepy blue street | Wide lateral tracking: the figure small, the sky big and empty for the title (2.0–5.4); narration from 5.6 |+| 3 | 8–16 | B+Y | Bakery | Cut to medium tracking as Yellow sweeps across; the baker's hand offers the baguette at 11.3, caught without slowing at 12.0 (Tati's no-slowdown hand-off), staged at the rider's reach height, ahead of him, above the basket so nothing covers it |+| 4 | 16–19 | all | Park | Static wide as Pink arrives: let him cross the frame (Tati) |+| 5 | 19–21.5 | all | Pigeons | Ground-level low angle, pigeons big in the foreground; bell at 19.5, the flock bursts at 20.0 with a registration kick |+| 6 | 21.5–24 | all | Passenger | Medium close on rider + pigeon on the baguette for a two-beat look |+| 7 | 24–26 | all | Overprint transition | A pink disc grows from the basket, turns every blue beneath it violet, shrinks into the huge low river sun |+| 8 | 26–29 | all | River | Haugomat composition, locked off; he brakes and stops (the only moment he stops); silent bar, plates drift, snap back at 28.0 |+| 9 | 29–32 | all | Sharing | Medium side shot, the sun behind him; bread crack at 29.5, half to the pigeon at 30.5 |+| 10 | 32–36 | all | Top-down → pull back | Straight top-down with long shadows, then pull back to the paper coming out of the printer onto a stack of earlier prints (blue street, bakery, park visible underneath) |+| 11 | 36–40 | all | End card | Last bell at 38.0 |++## Score structure++Original light **bossa nova**, D major, 120 BPM (1 bar = 2 s, so cuts land on even seconds), `demo/music/score.py` (numpy) + `demo/music/bell.py`. **The music is layered like the plates**: one ink = nylon guitar alone; + Yellow = shaker, rim clave, soft brushes (and the bicycle bell as percussion); + Pink = upright bass and a whistled melody; full overprint = + vibraphone. Bar 1 has no music (paper feed, drum, bell). A fully silent bar (reverb tails cut) under the climax drift (26–28) holds only water, birds and a distant church bell (it is Sunday) at 26.3; the full band returns on the snap at 28.0. During the pull-back the instruments leave one by one (vibraphone → whistle → bass → percussion), one per step of the pull-back; guitar and a held Dmaj9 over the end card.++Foley: the riso machine at every plate arrival (paper feed "shhk" + drum "ka-chunk"; motor and paper rub at the end; a soft paper landing at 39.5). Bicycle bell (two inharmonic partials ~2.1 / 3.4 kHz, 5 fast strikes per ring), freewheel ticks, brake squeal. Bread crust crunch (dense tiny band-passed clicks). Pigeon wings (short band-passed noise bursts), coo (gliding 300–400 Hz tone). Water lapping.++Voice: relaxed male narrator, Kokoro `am_adam`, speed 0.95, 5 short lines at 5.6, 9.0, 21.7, 28.3, 32.8, each verified with whisper. Music ducks −8 dB under voice; −14 LUFS; mux grain 0.++## Palette & props++- Inks: Riso Blue `#0078BF` (screen 15°), Yellow `#FFE800` (0°), Fluorescent Pink `#FF48B0` (75°) on paper `#F6F1E6`. Mixes: Blue + Yellow = green, Blue + Pink = violet/indigo, Yellow + Pink = orange-red, all three = near-black; 60 % Blue dots over solid Pink = purple.+- Shader numbers: rotation ±0.0005 rad; halftone period **7 px at 1080p**, threshold smoothstep ±0.07; solid at ≥ 0.9; grain ±0.08 on the threshold; pinholes where noise > 0.93 (×0.75); ink density `k = 0.80 + 0.14·streak + 0.08·blot` (streak = noise stretched ×10 along the feed); paper fibre ±1.5 %; grain boil 35 %.+- Sky bands 20 / 38 / 62 / 100 %. Paper halo 4–5 px, 12 stamps in a ring.+- The rider (plate densities): skin Yellow 26 % (cream; paper in the one-ink scene); sweater Blue 40 + Pink 100 (light blue dots → berry purple); trousers Blue 75 + Yellow 100 (→ olive green); hair Blue 100 + Pink 22; shoes Blue 100. The chunky scarf is Yellow + Pink only, so it is **blank paper** until the Yellow plate arrives and is the first thing to light up. His head sits against the sun disc at the river.+- Pedalling: crank angle from wheel travel (`crank = distance / wheelRadius / 2.2`), legs by 2-bone IK to the pedals, scarf as a travelling sine wave.+- Pigeons: about 1.2× his head size, round chest, tiny steps with a head bob, head tilts for "thinking", a **4-frame flap cycle** (up / half / down / tuck) on twos; flocks mix sizes 1.2–2.4× and stagger take-off by up to 0.35 s.++## End card++Subtitles: paper-white knockout strip, 6 px radius, centred 1000 px down, Blue text, Jost 500 42 px, 0.5 px tracking. Title card: "SUNDAY RIDE", Bricolage 800 190 px on the Blue plate in the sky, revealed by a left→right wipe on the first chord, removed on a beat.++End card: blank paper, the title double-hit in Pink + Blue (10 px offset), "RISOGRAPH PRINT", the credit line, registration crosshairs in the corners, and a tiny rider crossing the baseline while the bell rings. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/risograph/demo/+ riso.js WebGL2 print shader (plates, halftone, grain, registration, sweeps, water reflection)+ draw.js plate-canvas helpers: ink(b,y,p), over() overprint, layer() paper-halo, IK, limbs+ rider.js rider, bike, pigeon, baguette (all colours as plate densities)+ scenes.js river, street + bakery scenes2.js park, top-down quay, printer, bell ECU+ film.js timeline (120 BPM), shots, registration kicks/drift, plate gates, subtitles, sound events+ sheet.js model sheet (?sheet=1) lines.json narration+ music/score.py original bossa nova (numpy) music/bell.py bicycle bell+ mix.py foley + ambience + ducked voice + score → mix.wav+ tools/ video_png.mjs (PNG frames, lossless intermediate), mux.sh (crf16 -tune grain), subs.py+```++1. Design the plates first: what the one-ink frame looks like and what each plate adds. The model sheet (`?sheet=1&v=2`, [`demo/stills/modelsheet_v2.jpg`](demo/stills/modelsheet_v2.jpg)) has a "plates = story" row: the same character with 1, 2, 3 plates via `S.mask`.+2. `sh styles/risograph/demo/build.sh` rebuilds everything: TTS → whisper → score → events → mix → SRT → render (960 frames, ~2–4 min with 3 workers) → mux → style frame, poster, model sheet.+3. Review: `node core/render/still.mjs styles/risograph/demo --range 0:40:1.5` + `core/render/sheet.py`; key actions at 0.2 s steps; the encoded film at 100 % and 50 % for moiré.++Encoding: PNG frames → lossless intermediate (qp 0, yuv444) → one encode at crf 16 `-tune grain` (~280 MB for 40 s); crf 20 without `-tune grain` is ~120 MB and still clean at 1080p and 50 %. Per-frame jitter + per-frame streaks had pushed x264 to 900 MB.++Pitfalls tied to this demo's props:+- The hand-off: the baker's arm is in the background plane and disappeared behind the rider → the exchange staged ahead of and above him.+- Bridge arches filled solid with `evenodd` → underside traced with `arc(..., true)`.+- The first design (lanky, round glasses, horizontal stripes) read as a famous picture-book character → solid knitwear and a different signature (the chunky scarf).+- Sweater and trousers without Blue showed a floating head in the one-ink opening.+- Pink dots on skin looked like measles → skin is Yellow only.diff --git a/styles/risograph/STYLE.md b/styles/risograph/STYLE.mdindex f879b57..4b2f4e2 100644--- a/styles/risograph/STYLE.md+++ b/styles/risograph/STYLE.md@@ -1,127 +1,123 @@# Risograph Print — Style Prompt-> Animation that looks like it was printed, frame by frame, on a stencil duplicator: two or three translucent spot inks overprinted on warm paper, halftone dots, ink grain, and plates that never quite line up.-> Demo: *Sunday Ride* (40 s) · `risograph.mp4` · source in `demo/`+> Animation that looks printed, frame by frame, on a stencil duplicator: two or three translucent spot inks overprinted on warm paper, halftone dots, ink grain, and plates that never quite line up.+> References (grammar only): Tom Haugomat's riso illustrations (colour fields and silhouettes, a small figure in a large world, extra colours made by overprinting); Jacques Tati's *Jour de fête* (comedy staged small in a wide frame, everyday sounds as rhythm); real riso prints (translucent inks, misregistration, pinholes, feed streaks). Copy none of their characters, compositions or palettes.-You are directing a 30–60 second film in the **Risograph Print** style. The user gives you a topic (and maybe a story). You decide everything else — story, shots, timing, sound — and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not++A risograph prints **one colour at a time**: each colour is its own stencil ("plate") with its own drum of translucent ink. That one fact makes the look:----+- **A tiny palette**: 2–3 spot inks on warm off-white paper.+- **Overprint mixing**: inks multiply, so two inks make a third colour and all three approach black; a tint of one ink over a solid of another gives the brightest mixes.+- **Misregistration**: every plate lands a few pixels off; edges show slivers of paper or a coloured halo.+- **Halftone dots** for mid-tones, each plate on its own screen angle; **imperfect ink**: pinholes in solids, streaks along the feed direction, blotchy density.+- **Flat shapes, no outlines**: forms are colour fields and silhouettes.++Not flat vector art with a noise overlay (every colour comes from the plates), not CMYK pop-art halftone (no process colours, no keyline), not screen-print posters (riso ink is translucent and grainy, not opaque). **Never** show the RISO brand, logo or machine trade dress; ink names are colour references only.++## 2. Materials & rendering++**Pipeline.** Draw each frame into **one RGB canvas where each channel is one plate's density** (R = ink 1, G = ink 2, B = ink 3; 0 = none, 1 = solid). `source-over` gives true **knockouts**; `globalCompositeOperation = 'lighter'` adds ink only to the channels you set: a true **overprint**. A WebGL2 shader "prints" it:++- per plate: offset in px + tiny rotation → misregistration;+- halftone: cosine spot function on a rotated grid, period ~6–8 px at 1080p, anti-aliased threshold; densities ≥ ~0.9 print solid; screen angles ≥ 15° apart;+- grain on the dot threshold, pinholes in solids, density varying with a feed-direction streak and a slow blot noise;+- composite `paper × Π mix(1, ink_i, coverage_i)`, with faint paper fibre;+- dots anchored to the **paper** (screen), not to objects: a pan slides the image under a fixed screen, as if each frame were printed anew;+- a per-plate **gate** and a **roller sweep** (moving edge, slightly heavier ink band) let a plate arrive mid-shot.++**Composition rules.**+- Every area uses **at most two plates, at most one of them as a tint**. Three halftones on top of each other = mud.+- Big flat shapes, lots of solid paper and solid ink; halftone in a few stepped bands (e.g. 20 / 40 / 60 / 100 %) for skies, shadows, distance.+- Characters get a **paper-white knockout halo** (4–5 px): stamp their layer in a ring with `filter: brightness(0)` (zero ink = paper), then draw them. Plates misregister around it, so it picks up coloured fringes like a real trap.+- One horizon, one big flat field or disc, one small figure; the figure's head against the flattest colour in the frame.+- Design for the **one-plate version**: every main colour contains some of the first plate, so a one-ink frame still reads as a complete silhouette. A deliberate exception stays blank paper until its plate arrives: a reveal.++## 3. Colour logic++- **2–3 spot inks, never more**, plus paper; every other colour is an overprint or a tint. No gradients except stepped halftone.+- Pick inks whose pairs mix into useful colours; at least one must carry a silhouette alone.+- Paper is warm off-white (around `#F4EEE2`), never pure white; paper white is a colour too (knockouts, highlights, subtitles).+- Light neutral surfaces (skin): a light tint of the palest ink. Dots of a saturated ink on skin look like a rash.+- Save the full overprint (every plate, densest mixes) for the moment that earns it.+- Example ink sets: Blue `#0078BF` + Yellow `#FFE800` + Fluorescent Pink `#FF48B0`; Teal `#00838A` + Fluorescent Orange `#FF7477`; Federal Blue `#3D5588` + Red `#FF665E` + Sunflower `#FFB511`.++## 4. Type & subtitles++- **Type is printed**: titles and subtitles live on one plate, so they misregister and grain with it. A title can be printed on two plates with a visible offset: the riso double-hit.+- Fonts (OFL): heavy grotesque for titles (e.g. Bricolage Grotesque 800), geometric sans for captions (e.g. Jost 500–700). Preload every weight before `READY`.+- Subtitles: a **paper-white knockout strip** (zero ink, small radius) with text on one plate, ~40–46 px; its edges catch misregistration fringes. Hold ≥ max(1.8 s, speech + 0.6 s).+- Prints don't fade: titles arrive with a roller wipe or on a beat and leave on a cut.++## 5. Motion quality++- **Characters act on twos** (12 fps); **camera moves on ones** (24 fps): a stepped camera reads as judder.+- **Registration is not jittered every frame.** One fixed set of offsets per shot (±1–3 px). A **kick** (≈ 8–14 px, decaying in ~0.25 s with slight ringing) on an accent; a **drift** up to ~25 px through a held moment, snapping back on the downbeat.+- Grain boils partly (about a third re-rolls per print); sheet streaks and blots change only at cuts.+- Simple cycles on few drawings; secondary motion (scarf, flag, tail) as a travelling sine wave.++## 6. Camera grammar++A vocabulary, not a route. Opening and ending come from the topic.-## 1. What this style is+| Move | Expresses | Can serve |+|---|---|---|+| Wide lateral tracking, small figure, empty sky | Travel, routine, room | a commute; a process line; a title |+| Static wide, the subject crosses the frame | Comedy of scale | a gag; an arrival; a crowd |+| Locked composition: horizon, disc, figure | Stillness, awe | a decision; a reveal; the film's one pause |+| Ground-level low angle, big foreground shapes | Energy, abundance | a burst; a harvest; a launch |+| Medium two-shot held for a look | Reaction | a joke landing; a deal; a disagreement |+| Straight top-down, long shadows | Pattern, a map | a schedule; a floor plan; a game board |+| Push into a halftone field until dots are shapes | Entering the print | a close look at data; a memory; a cell |+| Pull back to reveal the paper | It was one sheet | a series; an archive; a summing-up |+| Match cut on a flat shape | Continuity through form | a time jump; cause and effect; before/after |-A risograph prints **one colour at a time**. Each colour is a separate stencil ("plate") run through the machine with its own drum of translucent soy ink. That single fact produces the whole look:+Framing: lots of paper and solid ink, text on empty sky or a knockout strip. Transitions: overprint growths, roller sweeps, shape match cuts, hard cuts on beats. Never a cross-dissolve, never a soft digital wipe.++## 7. Sound palette++- **Instruments**, as options: warm, dry, handmade, slightly lo-fi: upright or electric bass, vibraphone or marimba, nylon guitar, whistled or hummed melody, Rhodes, toy piano, brushed kit, shaker and rim clave, a small drum machine through tape saturation.+- **Layering like plates** (an option): each new plate brings one instrument, and they can leave one by one.+- **The machine is the signature foley**: feed "shhk", drum "ka-chunk" at a plate arrival, motor hum, a sheet landing on a stack, a guillotine cut. Other foley dry, close and papery, following the story's materials.+- **Silence**: a held bar with reverb tails cut, at most ambience or one distant sound; it pairs with a registration drift, and the snap brings everything back.+- **Mix**: dry and close; music ducks ~8 dB under voice; −14 LUFS. Voice relaxed and conversational, short lines, verified with whisper. No grain added at mux: it is in the print.++## 8. Native moves++A menu: use the ones your story needs.++- **Plates as narrative.** The world gains a plate at each turning point. *Fits content like:* a product arriving as a new ink; a city history, one ink per era; colour returning during a recovery.+- **Two inks, a third where they meet.** *Fits content like:* a merger; a duet; two data sets whose overlap is the finding.+- **Overprint transition.** A shape of one ink grows over the frame, turning everything beneath into the mix, then shrinks into the next scene's key shape. *Fits content like:* a pill dissolving; a spotlight becoming a moon; a stamp becoming a map pin.+- **Registration as rhythm and feeling.** Kicks on accents, drift in a held moment, snap on the downbeat. *Fits content like:* nerves before a speech; dizziness; a memory coming into focus.+- **Reflections as separated plates.** Each plate wobbles on its own phase. *Fits content like:* a shop window; heat over a road; a coffee surface.+- **Knockout reveal.** A shape made only of missing ink; its plate arrives later. *Fits content like:* a missing piece; a secret; a logo hidden in plain sight.+- **Halftone scale.** Dots grow into shapes as the camera pushes in. *Fits content like:* population; rainfall; a crowd that turns out to be people.+- **It is a sheet of paper.** The print can be stacked, folded, cut or pinned; grain boils like a flipbook of prints. *Fits content like:* a zine; a poster series; a flyer passed hand to hand.++## 9. Pitfalls of the medium++- Three halftoned plates in one area = mud → two plates, one tint.+- `fract(p*vec2(233.34,851.73))` draws vertical stripes across solids at 1080p → a well-mixed hash (`fract(vec3(p.xyx)*.1031)` family).+- Per-frame registration jitter and sheet streaks flicker and blow up file size → fixed offsets per shot, kicks on accents, sheet noise at cuts, partial boil.+- JPEG screenshots (4:2:0) smear saturated dots → PNG frames into a lossless yuv444 intermediate, encoded once with `-tune grain`; check at 100 % and 50 % for moiré.+- The halo layer must copy the canvas transform, or zoomed shots draw the subject at the wrong scale.+- Additive `over()` inside a transparent layer loses its meaning → overprint on the plate canvas.+- A main colour without the first plate floats loose in one-ink frames → build palette recipes up from the one-ink silhouette.+- `evenodd` fills of arches fill solid → trace the inner edge in the opposite direction.++## 10. Engine++In `demo/`: `riso.js` (print shader: plates, halftone, grain, registration, kicks and drift, gates, roller sweeps, reflection wobble), `draw.js` (`ink(b,y,p)` densities, `over()` overprint, `layer()` paper halo, 2-bone IK, limbs), `sheet.js` (model sheet with a "plates = story" row via `S.mask`), `tools/video_png.mjs` (PNG frames → lossless intermediate), `tools/mux.sh`. Minimal new frame: two plates (R = teal, G = orange); a solid teal hill, an orange disc drawn with `lighter` so it darkens where it crosses the hill, a 40 % teal sky band, a figure knocked out with `layer()`.++## 11. Variation space++You decide the inks and what each plate means, the structure, characters (or none), opening, ending, camera path and pacing. All far from our demo:++- Structures: **two inks in dialogue** (two subjects alternate shots and only overlap at the end, making the third colour); **subtraction** (start at full overprint, lose a plate at each loss, end in one ink); **a zine** (each shot a page turned, each page a different two-plate pairing).+- Openings: **a knockout** (a blank shape in a full-colour field, filled by its plate seconds later); **dots first** (extreme close-up of halftone that pulls back into an image); **ghosts converge** (three colour ghosts drift together and snap into a readable frame on the first beat).+- Endings: **one ink left** (plates lift away until the last line stands in one colour); **the print on a wall** (the last frame becomes a poster pasted up inside the world it showed); **a folded sheet** (the print folds into something the story needs: a boat, an envelope, a ticket).++----- **A tiny palette**: 2–3 spot inks (here Riso Blue `#0078BF`, Yellow `#FFE800`, Fluorescent Pink `#FF48B0`) on warm off-white paper `#F6F1E6`.-- **Overprint mixing**: inks are translucent and multiply. Blue + Yellow = green, Blue + Pink = violet/indigo, Yellow + Pink = orange-red, all three = near-black. Tints (halftone) of one ink over a solid of another give the brightest mixes (60 % Blue dots over solid Pink = purple).-- **Misregistration**: every plate lands a few pixels off. Colour edges show slivers of paper or a coloured halo.-- **Halftone dots** for mid-tones, each plate on its own screen angle (Blue 15°, Yellow 0°, Pink 75°).-- **Imperfect ink**: pinholes of paper in solid areas, faint streaks along the paper-feed direction, blotchy density.-- **Flat graphic shapes, no outlines**: forms are defined by colour fields and silhouettes (Tom Haugomat is the reference), not by line work.--**Never** reference the RISO brand, logo or machine trade dress on screen. Ink names are used only as colour references.--## 2. Story: what fits this style--Pick stories where **the printing process tells the story**. Risograph has six native powers — use at least four:--| Native power | Story use |-|---|---|-| **One plate at a time** | **Plates as narrative**: the world starts in one ink and gains a plate at each turning point (dawn, arrival, falling in love). Design every character and set so the one-ink version is *complete* and each extra plate adds meaning. |-| **Overprint mixing** | Transitions made of ink: a big shape of one colour grows over the frame, turning everything beneath it into the mix colour, then shrinks into the next scene's key shape (in the demo a pink disc swallows the park and becomes the river sun). |-| **Misregistration** | Rhythm and emotion: plates **jump** on musical accents; they **drift apart** in a held silence and **snap back** on the downbeat. Nervousness, dizziness, memory and "breathing" are all registration. |-| **Reflections = separated plates** | Water, glass or heat haze rendered as each plate wobbling on its own phase — the ripple *is* the misregistration. |-| **Halftone and grain** | Every frame is "a new print"; the grain can boil a little, like a flipbook of prints. |-| **It is a sheet of paper** | Scale reveal: pull back to show the film was a print sliding out of the machine onto a stack of earlier prints. |--Adapting any topic: decide what the **first plate** is (the "before" state), what each **added plate** means, and what the **full overprint** moment is. A product launch → monochrome problem, the product arrives as a new ink. A city history → one ink per era. A love story → two people are two inks; where they overlap, a third colour appears.--**Emotional arc for 35–45 s:** quiet one-ink opening (hook within 3 s: show the ink being laid down) → each location adds a plate and an instrument → a small turn → the full-overprint climax with a held silence → a warm resolution → scale reveal of the paper.--## 3. Visual language--**Pipeline (the important part):** draw each frame into **one RGB canvas where R = Blue density, G = Yellow density, B = Pink density** (0 = no ink, 1 = solid). Normal `source-over` painting then gives natural **knockouts** (a later shape covers all three plates); drawing with `globalCompositeOperation = 'lighter'` adds ink to only the channels you set — a true **overprint**. A WebGL2 shader "prints" that canvas:--- per plate: offset (px) + tiny rotation (±0.0005 rad) → misregistration; sample that plate's density-- halftone: cosine spot function on a rotated grid, **period 7 px at 1080p**, threshold with a ±0.07 smoothstep so dots are anti-aliased; densities ≥0.9 print solid-- grain: per-dot noise on the threshold (±0.08); pinholes where noise > 0.93 in solid areas (×0.75)-- ink density `k = 0.80 + 0.14·streak + 0.08·blot` (streak = noise stretched ×10 along the feed direction)-- composite: `paper × Π mix(1, ink_i, coverage_i)`; paper gets a faint fibre noise (±1.5 %)-- dots are anchored to the **paper** (screen), not to the objects: when the camera pans, the image slides under a fixed screen, exactly like printing each frame-- a per-plate **gate** and a **roller sweep** (a moving x edge with a slightly heavier ink band) let a plate "arrive" mid-shot--**Composition rules (learned the hard way):**-- Every area uses **at most two plates, and at most one of them as a tint**. Three halftones on top of each other turn to brown mud.-- Big flat shapes, lots of solid paper and solid ink; halftone for sky gradients (stepped bands of 20 / 38 / 62 / 100 %), shadows and distant layers.-- Characters get a **paper-white knockout halo** (4–5 px): draw them into a transparent layer, stamp the layer 12 times in a ring with `filter: brightness(0)` (= zero ink = paper), then draw it. The plates misregister around it, so the halo gets coloured fringes like a real trap.-- Haugomat framing: one horizon, one huge sun, one small figure. Put the character's head against the flattest colour in the frame (the sun disc works beautifully).-- Skin: **Yellow 26 %** (reads as cream; becomes paper in a one-ink scene). Pink dots on skin look like measles — avoid.-- Every colour on the character should contain some Blue so the one-ink version is a complete silhouette: sweater Blue 40 + Pink 100 (light blue dots → berry purple), trousers Blue 75 + Yellow 100 (→ olive green), hair Blue 100 + Pink 22, shoes Blue 100. A deliberate exception can be a mystery: the scarf is Yellow + Pink only, so it is **blank paper** until the yellow plate arrives and is the first thing to light up.--**Typography is printed too:** titles and subtitles live on one plate (Blue), so they misregister and grain with it. End titles are printed twice on two plates with a 10 px offset — the classic riso double-hit. Fonts: Bricolage Grotesque 800 (titles), Jost 500–700 (captions). Preload every weight (`document.fonts.load`) before `READY`.--## 4. Motion language--- **Character acting on twos** (12 fps pose steps); **camera pans on ones** (24 fps) — stepped camera moves look like judder.-- **Registration is not jittered every frame.** Each shot gets one fixed set of plate offsets (±1–3 px). Plates move only on purpose: an accent **kick** (8–14 px, decays in ~0.25 s with a little ringing) on title hits, plate arrivals and big actions; a **drift** of up to ~25 px during a musical break, and a snap back on the downbeat. Continuous jitter reads as flicker and doubles the bitrate.-- Grain boil is subtle (35 % of the grain re-rolls each print); paper-level streaks and blots change only at cuts.-- Pedalling: crank angle from wheel travel (`crank = distance / wheelRadius / 2.2`), legs by 2-bone IK to the pedals, scarf as a travelling sine wave.-- Pigeons: round chest, tiny steps with a head bob, head tilts for "thinking", a **4-frame flap cycle** (up / half / down / tuck) on twos; flocks mix sizes 1.2–2.4× and stagger take-off by up to 0.35 s.--## 5. Camera language--| Beat | Camera |-|---|---|-| Opening (0–2 s) | Extreme close-up of one object while the first plate is **rolled on** left→right; the action (a bell flick) lands on the first beat |-| Sleepy city | Wide lateral tracking shot: the figure small, the sky big and empty for the title |-| First plate added | Cut to a medium tracking shot as the new ink sweeps across; stage the gag (Tati's no-slowdown hand-off) at the rider's reach height, ahead of him, above the basket so nothing covers it |-| New location | Static wide: let the character cross the frame (Tati) |-| Set-piece | Ground-level low angle with foreground subjects big (pigeons), then the burst fills the sky |-| Reaction | Medium close on character + co-star for a two-beat look |-| Climax | Overprint transition → Haugomat composition, locked off; the only moment the character stops |-| Resolution | Medium side shot, the sun behind him, sharing |-| Ending | Straight top-down with long shadows → pull back to the paper coming out of the machine onto a stack of earlier prints |--## 6. Sound--- **Music**: light **bossa nova**, 120 BPM (1 bar = 2 s, so cuts land on even seconds). **The music is layered like the plates**: one ink = nylon guitar alone; + yellow = shaker, rim clave, soft brushes (and the bicycle bell as percussion); + pink = upright bass and a whistled melody; full overprint = + vibraphone. Pull the instruments out one by one during the final pull-back. A fully silent bar (reverb tails cut) under the climax's drift, full band back on the snap.-- **Foley follows the materials**: the riso machine is the signature sound (paper feed "shhk" + drum "ka-chunk" at every plate arrival; motor and paper rub at the end; a soft paper landing). Metal: bicycle bell (two inharmonic partials ~2.1/3.4 kHz, 5 fast strikes per ring), brake squeal. Bread crust crunch (dense tiny band-passed clicks). Pigeon wings (short band-passed noise bursts), coo (gliding 300–400 Hz tone). Water lapping, distant church bell (it is Sunday) in the silent bar.-- **Voice**: relaxed male narrator (Kokoro `am_adam`, speed 0.95), 5 short lines, each verified with whisper. Music ducks −8 dB under voice.-- Mix loudness −14 LUFS; no film grain added in `mux.sh` (the grain is in the print).--## 7. Subtitles & titles--- Subtitles: a **paper-white knockout strip** (zero ink on all plates, 6 px corner radius) centred 1000 px down, text in **Blue only**, Jost 500 42 px, 0.5 px tracking. Because the strip is defined by the absence of the other plates, its edges pick up coloured misregistration fringes.-- Title card: "SUNDAY RIDE" Bricolage 800 190 px printed on the Blue plate in the sky, revealed by a left→right wipe on the first chord, removed on a beat (prints don't fade — they cut).-- End card: blank paper, title double-hit in Pink + Blue, "RISOGRAPH PRINT", credits, registration crosshairs in the corners, and a tiny rider crossing the baseline while the bell rings.--## 8. Pitfalls we hit--- Three halftoned plates in one area = mud. Keep to the two-plate / one-tint rule.-- Hash noise `fract(p*vec2(233.34,851.73))` produced **vertical stripes** across solids at 1080p. Use a well-mixed hash (the `fract(vec3(p.xyx)*.1031)` family).-- Per-frame registration jitter + per-frame paper streaks made the frame flicker and pushed x264 to 900 MB. Fix: fixed offsets per shot, kicks only on beats, sheet-level noise changes only at cuts, grain boil at 35 %.-- JPEG screenshots (4:2:0) smear the pink/blue dots. Render **PNG frames** into a lossless (qp 0, yuv444) intermediate, then encode once (crf 16 `-tune grain`). Even so a 40 s halftone film is ~280 MB; crf 20 without `-tune grain` is ~120 MB and still clean at 1080p and at 50 %.-- The paper-halo layer must copy the current canvas transform, or zoomed shots draw the character at the wrong scale.-- `over()` (additive) inside a transparent layer loses its meaning; do overprints on the plate canvas.-- Staging a hand-off in 2D: the giver's arm is in the background plane and disappears behind the rider — put the exchange ahead of and above the rider.-- Bridge arches with `evenodd` filled solid; trace the underside with `arc(..., true)` instead.-- A character in stripes + round glasses + lanky reads as a famous picture-book character. Use solid knitwear and a different signature (a chunky scarf).-- The sweater/trouser colours must include Blue, or the one-ink opening shows a floating head.--## 9. Production recipe (this repo)--```-styles/risograph/demo/- riso.js WebGL2 print shader (plates, halftone, grain, registration, sweeps, water reflection)- draw.js plate-canvas helpers: ink(b,y,p), over() overprint, layer() paper-halo, IK, limbs- rider.js rider, bike, pigeon, baguette (all colours as plate densities)- scenes.js river, street + bakery scenes2.js park, top-down quay, printer, bell ECU- film.js timeline (120 BPM), shots, registration kicks/drift, plate gates, subtitles, sound events- sheet.js model sheet (?sheet=1) lines.json narration- music/score.py original bossa nova (numpy) music/bell.py bicycle bell- mix.py foley + ambience + ducked voice + score → mix.wav- tools/ video_png.mjs (PNG frames, lossless intermediate), mux.sh (crf16 -tune grain), subs.py-```--1. Design the plates first: what does the one-ink frame look like, what does each plate add? Render the model sheet (`?sheet=1`) with a "plates = story" row (the same character with 1, 2, 3 plates via `S.mask`).-2. `sh styles/risograph/demo/build.sh` rebuilds everything: TTS → whisper → score → events → mix → SRT → render (960 frames, ~2–4 min with 3 workers) → mux.-3. Review: `node core/render/still.mjs styles/risograph/demo --range 0:40:1.5` + `core/render/sheet.py`; check key actions at 0.2 s steps; check the encoded film at 100 % and 50 % for moiré.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/risograph/TREATMENT.md b/styles/risograph/TREATMENT.mddeleted file mode 100644index a6ed7a1..0000000--- a/styles/risograph/TREATMENT.md+++ /dev/null@@ -1,120 +0,0 @@-# Risograph Print · 导演方案(Treatment)--**片名** *Sunday Ride*-**时长** 40.0 秒(20 小节 × 2 秒,120 BPM)| **画幅** 1920×1080 | **帧率** 24fps 输出;角色表演、墨粒、套色抖动按 12fps(on twos)步进 = "每两帧印一张";横移镜头每帧平滑(镜头步进会被看成卡顿,brick-toy 的教训)-**一句话** 一个高瘦的眼镜男周日一早骑车穿城去河边吃早饭:城市一开始只印了一块蓝版,他每经过一个地方,印刷机就多上一块专色版——面包店上黄,公园上荧光粉,到河边三版叠印成最丰富的画面;最后镜头拉远,原来这是刚从 riso 印刷机里出来的一张纸。-**主题** 同一条路,每个周日都一样;同一块版,每一张都印得不一样。"Same ride every Sunday. Never quite the same print."-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么 | 刻意不学 |-|---|---|---|-| **Tom Haugomat 的 riso 插画** | 大色块 + 剪影,人物很小、环境很大;极简构图(一条地平线、一个太阳、一个人);用两三种专色的叠印做出第四、第五种颜色;长影子与低角度阳光 | 不照搬任何具体画面、人物造型、他的配色方案;他的人物多数没有五官,我们的主角要演喜剧,所以给了圆眼镜、大鼻子和简单表情 |-| **雅克·塔蒂《Jour de fête》骑车邮差** | 喜剧调度:角色在大全景里小小地完成一个动作(不剪近景也看得懂);"不减速的交接"(邮差骑车递信 → 我们骑车接法棍);城市节奏感:日常声响组成音乐;身体是细长而僵直的,靠姿态搞笑 | 不用他的角色形象(风衣、帽子、烟斗、邮差制服),不复刻任何具体桥段;我们的喜剧更轻,只有两个小笑点(接法棍、鸽子搭车) |-| **真实 riso 印刷的物理特性** | 专色是半透明的、multiply 叠印;每块版单独上机,所以一定有套色错位;网点、墨粒、实地里的漏白、沿走纸方向的墨色不均;荧光粉是 riso 最标志的颜色 | 不做"数码干净版"的扁平插画再加一层噪点——所有质感都在"分版"这一层模拟,颜色只能来自三块版 |-------## 二、为什么这个媒介讲这个故事(原生能力 → 故事用法)--| Riso 的原生能力 | 故事里怎么用 |-|---|---|-| **分版:一次只能印一种颜色** | **分版即叙事**:开场只有蓝版(清晨未醒的城市是单色的),面包店一开灯 → 上黄版,公园 → 上荧光粉版。角色本身也是按版设计的:只开蓝版时他是一个完整的蓝色剪影,加黄版多了围巾和法棍,加粉版多了脸颊和紫色的车 |-| **专色叠印混色**(粉 + 蓝 = 紫,黄 + 蓝 = 绿,黄 + 粉 = 橙) | **叠印转场(情绪高点)**:一轮荧光粉的太阳从公园的画面里长出来,盖满整个画面——它经过的蓝色全部变成紫色——再缩回去,变成河上的太阳,而底下已经换成了河边 |-| **套色错位** | 套色随节拍"跳一下"(片名、每次上新版、鸽子起飞、每个重拍);**音乐停顿的一小节里,三块版慢慢漂开**(画面在"呼吸"),下一个重拍"咔"地套准,全乐队回来 |-| **倒影 = 错位** | 河面倒影里三块版各自摆动、互相错开——水波就是套不准的版 |-| **网点半调 + 墨粒** | 天空、草地、阴影全部用网点做中间调;墨粒每两帧重新"印"一次(12fps 沸腾),像一本逐张印出来的翻页书 |-| **它是一张纸** | 结尾尺度揭示:俯拍河边的长影子,镜头一路拉远,这张画从印刷机出纸口滑出,落在一叠纸上——底下几张露出前面的场景(只有蓝版的街、面包店、公园) |--**情绪弧**:困倦(单色、安静)→ 苏醒(上黄)→ 欢快(上粉、鸽子)→ 小小的转折(一只鸽子搭车抢了他的早饭位置)→ 高点(河边,全版叠印,音乐停一拍再回来)→ 温暖(他把法棍掰一半分给鸽子)→ 回响(尺度揭示 + "每一张都不一样")。-一个角色、一个目标(带着法棍去河边吃早饭)、一次转折(多了一个不请自来的同伴,独自的早饭变成了分享)。-------## 三、角色--> **关卡 1 后的修改(协调者意见)**:原设计"高瘦 + 圆眼镜 + 横条纹毛衣"容易联想到一个著名的找人绘本角色 → 去掉条纹,改成纯色毛衣(蓝 40% + 粉 100%,单蓝版时是浅蓝网点、全开时是莓紫),标志换成一条粗针织大围巾(黄 + 粉:单蓝版时是纸白挖空,加黄版时第一个被点亮,全开时是橙红),裤子改成蓝 + 黄(全开变绿)。鸽子放大到约为他头部的 1.2 倍,给了圆胸、小碎步点头、歪头的性格和 4 帧扑翅循环。设定表 v2:`demo/stills/modelsheet_v2.jpg`。以下为原方案文字(配色以 v2 为准)。---**骑车的人**(无名):三十来岁,8 头身的高瘦个子(塔蒂式的细长僵直身体)、圆框眼镜、大鼻子、一头蓬松的"拖把"短发、蓝白条纹毛衣、深蓝裤子、露出一截袜子、长长的黄色围巾(运动方向的指示器:骑车时向后飘)。骑一辆老式城市车:前筐、挡泥板、链罩、车铃。-**鸽子**:灰蓝身体、颈部一点粉色(加粉版后才"亮起来"),配角兼转折。-**面包师**:只出现一只从门里伸出来的手。--按版配色(颜色 = 三版浓度 蓝/黄/粉):头发蓝 100 + 粉 22(全版时发紫),皮肤黄 26(只开蓝版时是纸白),脸颊粉 62,条纹 蓝 100 / 纸白,裤子蓝 100 + 粉 18,围巾黄 100,车架蓝 72 + 粉 100(只开蓝版时是蓝网点,全版时是紫色)。-------## 四、分镜节拍表(按秒;120 BPM,1 小节 = 2 秒,拍点 = 0.5 秒)--| # | 时间 | 小节 | 版 | 镜头 | 画面 / 表演 | 机位意图 |-|---|---|---|---|---|---|---|-| 1 | 0.0–2.0 | 1 | 蓝 | **车铃大特写** | 纸白画面,印刷滚筒从左往右"刷"出蓝版:车把和车铃。1.0s 拇指拨铃 | 开场 3 秒抓人:先让观众看到"印刷"这个动作本身,车铃是全片的打击乐器 |-| 2 | 2.0–8.0 | 2–4 | 蓝 | **大全景横移跟拍** | 清晨沉睡的蓝色街道,百叶窗关着、路灯还亮(路灯的光在黄版上 → 此刻只是纸白),猫在窗台。人物小,天空大。片名 SUNDAY RIDE 2.0–5.4 印在天上;旁白 1 在 5.6 | 横移 = 自行车天然的镜头;小人物 + 大空间(Haugomat);天空留给片名 |-| 3 | 8.0–16.0 | 5–8 | 蓝 + 黄 | **中景横移** | 8.0 黄版刷墨(从左往右扫过画面)同时面包店灯亮、屋顶后太阳露头;11.3 面包师的手从店门伸出法棍,**12.0 他不减速一把接住**(塔蒂式交接);13.0 回头按铃道谢;14–16 法棍插进前筐,像一面旗 | 中景让交接看得清;镜头速度 = 车速,交接时机位略微放慢半拍("时间变慢"),接住后恢复 |-| 4 | 16.0–19.0 | 9–10 前半 | 蓝 + 黄 + 粉 | **公园大全景** | 16.0 粉版刷墨:樱花树、草地(黄 + 蓝 = 绿)、小径,车变成紫色 | 新地点先交代空间 |-| 5 | 19.0–21.5 | 10 后半–11 | 全 | **地面低角度** | 前景一群鸽子在啄食,车从背景驶近;19.5 按铃;**20.0 鸽群炸开起飞**,翅膀的粉与蓝叠印成紫,套色猛跳一下 | 全片第一个"记得住"的镜头:低机位 + 前景占满,是公园段的高潮 |-| 6 | 21.5–24.0 | 11 后半–12 | 全 | **中景跟拍(贴近车筐)** | 一只鸽子落在筐里的法棍上搭车;他低头,鸽子回头看他;他耸肩笑。旁白 3 | 喜剧"反应镜头":两人对视一拍 |-| 7 | 24.0–26.0 | 13 | 全 | **叠印转场 → 河边大全景** | 24.0 粉色圆从车筐方向长大,吞没整个画面(下面的蓝全变紫);25.0 缩回去成为河上低悬的巨大太阳;河、桥的剪影、对岸天际线,他小小地沿着河堤骑进来 | **原生招式 1**:叠印转场。Haugomat 式极简构图:一条地平线、一个太阳、一个人 |-| 8 | 26.0–29.0 | 14–15 前半 | 全 | **固定大全景** | 26.0 刹车停下,单脚撑地,望着河。**音乐停一小节**:只有水声和远处一声教堂钟;三块版慢慢漂开,倒影里的颜色各自摆动;**28.0 重拍"咔"地套准**,全乐队回来;旁白 4 | **原生招式 2**:套色的"呼吸"。停车看水 = 片子唯一的静止时刻,放在情绪最高点 |-| 9 | 29.0–32.0 | 15 后半–16 | 全 | **中景侧面** | 坐在河堤墙上,29.5 掰开法棍(脆响),30.5 递一半给鸽子,鸽子跳近啄食,他自己咬一口,表情 DELIGHTED | 回到人物近处,情绪落地 |-| 10 | 32.0–36.0 | 17–18 | 全 | **俯拍 → 一路拉远** | 正上方俯拍:河堤、倚墙的车、长长的影子、人和鸽子。镜头拉远,画面边缘出现纸边、出纸口,这张画从 riso 出纸口滑出落在一叠纸上,底下几张露出前面的场景;旁白 5 | **尺度揭示**:整部片是一张刚印出来的纸 |-| 11 | 36.0–40.0 | 19–20 | 全 | **片尾卡** | 三版错位叠印的 SUNDAY RIDE、"Risograph Print"、"LemoLab × Claude Opus 5.5";38.0 最后一声车铃 | 首尾呼应:车铃开场、车铃收尾 |--**旁白(Kokoro `am_adam`,轻松男声,speed ≈ 0.95)**--| # | 时间 | 文本 |-|---|---|---|-| 1 | 5.6 | Sunday morning. The whole city is still blue. |-| 2 | 9.0 | Then the bakery opens, and the day gets its first color. |-| 3 | 21.7 | The park adds pink. And, apparently, a passenger. |-| 4 | 28.3 | By the river, every color overlaps. |-| 5 | 32.8 | Same ride every Sunday. Never quite the same print. |--字幕停留:每句 ≥ 语音 + 0.6s 且 ≥ 1.8s;片名与字幕错开(片名 2.0–5.4,第一句字幕 5.6 起)。-------## 五、Cue map(音乐先行;120 BPM,D 大调,轻快 bossa nova,4/4 感觉按 2 拍走)--**"音乐也叠版"**:每上一块专色版,配乐多一件乐器;拉远到印刷机时再一件件撤掉。--| 小节 | 时间 | 画面 | 配器 | 情绪 | 卡点 |-|---|---|---|---|---|---|-| 1 | 0–2 | 车铃特写 | 无音乐:纸张进纸声、滚筒"咔嚓"、车铃 | 安静、好奇 | 0.05 滚筒;1.0 车铃;1.5 吉他弱起 |-| 2–4 | 2–8 | 蓝色街道 | **版 1 = 尼龙弦吉他**独奏 bossa 伴奏型(Dmaj9 – Em9 A13 …) | 慵懒 | 2.0 第一个和弦 = 片名 |-| 5–8 | 8–16 | 面包店 | **版 2 = + 轻打击**:沙锤 16 分、边击 bossa clave、车铃当打击乐 | 苏醒、轻快 | 8.0 滚筒刷黄 + 沙锤进;12.0 接住法棍 = 重拍 + 边击重音;13.0 车铃 |-| 9–12 | 16–24 | 公园 | **版 3 = + 低音提琴 + 口哨旋律** | 欢快 | 16.0 滚筒刷粉 + 贝斯进;20.0 鸽群起飞 = 口哨颤音 + 振翅;23.5 刷镲渐强 |-| 13 | 24–26 | 叠印转场 | **全版 = + 颤音琴(vibraphone)**,全乐队 | 盛开 | 24.0 转场重拍 |-| 14 | 26–28 | 停车看水 | **全停**(bossa break):只剩水声、鸟、26.3 远处一声教堂钟 | 屏息 | 26.0 刹车 + 音乐切断;28.0 重拍全乐队回来 + 套色咔一声对准 |-| 15–16 | 28–32 | 河边 / 分面包 | 全乐队,旋律高点(口哨 + 颤音琴三度和声) | 温暖 | 29.5 面包脆响落在拍上;30.5 递面包 |-| 17–18 | 32–36 | 俯拍拉远 | 逐件撤:颤音琴 → 口哨 → 贝斯 → 打击 | 回落 | 每撤一件对应画面上拉远一级 |-| 19–20 | 36–40 | 片尾卡 | 只剩吉他 + 最后一个 Dmaj9 延音 | 余韵 | 36.0 片尾卡;38.0 车铃;39.5 纸张落下 |-------## 六、声音设计(拟音跟材质走:纸 / 金属车铃 / 城市)--- **印刷机**(全片的标志音效):每次上新版 = 进纸"唰" + 滚筒低沉的"咔嚓—咚";结尾出纸 + 纸张落在纸堆上的轻"啪"。-- **自行车**:飞轮棘轮的滴答(滑行时响、蹬车时停)、链条轻微沙沙、轮胎压过石板路的低频颗粒、车铃(金属钟,两个非谐和分音 + 快速连击 = "叮铃铃")、刹车的短促金属尖音。-- **地点环境**:蓝色街道 = 远处鸟叫、几乎无声;面包店 = 门铃、烤箱暖气般的低频嗡声;公园 = 鸽子咕咕、鸽群起飞的振翅(大量短促带通噪声);河边 = 水拍岸、远处教堂钟(周日)。-- **法棍**:面包皮碎裂的"咔嚓"(高频颗粒噪声 + 短共振)。-- 混音:旁白压缩后置前,音乐在旁白下闪避约 −8 dB;拟音不做混响堆叠,保持"纸感"的干、近。最终 −14 LUFS,mux grain = 0(颗粒已在画面里)。-------## 七、字幕与标题设计(也是 riso 印出来的)--- **字幕**:底部居中一条"纸白贴纸"——三块版上都挖空的圆角条(因为三块版各自错位,挖空的边缘会有一点彩色毛边,像真的套印),文字只印在**蓝版**上(Jost 500,44px,字距 0.5),跟着蓝版一起错位、一起有墨粒。-- **片名**:SUNDAY RIDE,Bricolage Grotesque 800 大写,只用蓝版印在天空里;上场时从左往右被"刷"出来,节拍上跳一下。-- **片尾卡**:同一个片名用三块版分别印(粉、黄、蓝各偏移几像素 = 经典 riso 三色错位字),下面是 "Risograph Print" 和 "LemoLab × Claude Opus 5.5",角落有套准十字线。-------## 八、对风格说明的调整(及理由)--- **配乐**:风格说明里 STYLES.md 写 Lo-fi 爵士,批次说明写 bossa nova —— 采用 **bossa nova**(尼龙弦吉他 + 轻打击),并把"每加一版多一件乐器"扩展成"拉远时逐件撤掉",让音乐的叠版和画面的叠版在结尾一起"卸版"。-- **第四件乐器**:只有三块版,但河边需要"比公园更满",所以河边加的是颤音琴,对应的画面变化不是新颜色,而是**叠印最多**(太阳、倒影、紫色的影子)。-- **结尾**:两个建议(俯拍影子 / 印刷机尺度揭示)合成一个镜头:先俯拍影子,再一路拉远到出纸口。-- **转折**:加了一只"搭车"的鸽子,把纯风景片变成有一个小转折的故事(独自吃早饭 → 分享)。diff --git a/styles/risograph/style.json b/styles/risograph/style.jsonnew file mode 100644index 0000000..6f6ad24--- /dev/null+++ b/styles/risograph/style.json@@ -0,0 +1,18 @@+{+ "slug": "risograph",+ "num": "12",+ "en": "Risograph Print",+ "cn": "Risograph 丝网印刷",+ "category_en": "Print & Printmaking",+ "category_cn": "印刷与版画",+ "film": "Sunday Ride",+ "line": "A Sunday-morning bike ride through the city — bakery, park, riverside — in two misregistered inks.",+ "line_cn": "周日早晨骑车穿过城市:面包店、公园、河边。",+ "uses": [+ "Indie brands",+ "Zines",+ "Lifestyle"+ ],+ "frame_sec": 28.8,+ "dur": 40.0+}diff --git a/styles/rubber-hose/DEMO.md b/styles/rubber-hose/DEMO.mdnew file mode 100644index 0000000..920047a--- /dev/null+++ b/styles/rubber-hose/DEMO.md@@ -0,0 +1,100 @@+# 1930s Rubber Hose Cartoon — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Coffee Cup Chase* (50 s) · `rubber-hose.mp4` · source in [`demo/`](demo/)+++## Story & structure++A just-woken diner mug tastes itself: bitter! It chases a runaway sugar cube around the kitchen (counter, china cabinet, sink). When the cube is about to be sucked down the drain, the mug stretches its rubber-hose arm around the whirlpool and fishes it out, then sadly lets it go; the cube jumps into the mug by itself. The coffee turns sweet and the whole kitchen dances with the band. A 1930s radio sports announcer calls the chase like a horse race ("And they're off!").++Arc (40–55 s): hook on frame 1 (bouncing title letters, band hit) → a small want → a chase in 3 escalating set pieces, one visual gag each → danger → the stretch → dead silence → a quiet, kind turn → release: the whole world dances → iris out with a gag. One hero, one goal, one turn.++The old guide asked for at least three of the four native powers with the strongest at the peak, and suggested adapting any topic as **a chase or a performance inside one lively location** (a kitchen, an office, a toy shop, a factory) with a supporting cast of 5–8 living objects. That was this demo's shape, not a rule of the style.++Native moves spent:+- **Everything breathes on the beat**: the kitchen is a character; at the climax the whole world dances in sync, walls included (the payoff shot).+- **Mickey-mousing**: a stair of plates is a xylophone; the small character climbs it on rising xylophone eighths, the big one on tuba quarters.+- **Rubber-hose stretch**: the turning point; the mug's arm stretches around a whirlpool and down a drain in one unbroken shot.+- **The film is a physical object**: the title card rolls up like a window shade; a character's glove pulls the iris shut.++## Shots++| Beat | Camera |+|---|---|+| Opening | Title card with rotating sunburst; letters hop in a wave each beat; the card rolls up like a window shade to reveal the set |+| Establishing | **Stage-wide, locked off**, eye level. The set reads like a proscenium; props lined along the counter |+| Reaction gag | Hard cut to a close-up of the face (the only big face shot early on) |+| Chase | **Trucking pan** alongside the runners, eased start and stop; the destination prop enters frame before the gag |+| Vertical set piece | Not the whole set piece far away: each climber followed in a **medium shot** (character ≈ 1/4–1/3 of frame height) so each musical step and the plate's bounce reads; cut between climbers; then tilt down with the fall |+| Danger | Slightly high angle so the hazard reads at a glance; **one unbroken shot** through the big stretch |+| Quiet turn | Medium two-shot, then the hero's **back** walking away small in the background while the other character is big in the foreground (on a foreground counter piece) |+| Climax | Pull back from a close-up to a **medium-full** shot (not a far wide: faces must read): hero in the middle, living props on the counter behind, and a **foreground row of bigger dancers** on a nearer counter piece. 2–3 steps by bar (sway → kicks → group squat-and-spring), then **everyone freezes in a ta-da pose on the last beat** and holds into the iris |+| Ending | Iris closes on the heroes; a character's glove pulls it shut |++The hesitation beat before the leap, as held-frame acting: crouch (hold) → eyes to the other character's back (hold) → eyes up to the goal (hold) → back → up + grin → small hop → leap. Each glance on an eighth note, with a woodblock tick, while the camera slowly pushes in. The music stops for a "lock eyes" beat and everything freezes, background breathing included.++## Score structure++Original big-band score (`demo/music/score.py`, VSCO 2 CE / VCSL samples via `core/audio/sampler.py`, banjo via `pluck.py`). **144 BPM, 4/4 → 1 beat = 10 frames**, 1 bar = 1.667 s, 28 bars. One original 4-bar syncopated theme, stated for the title, the chase, a slow solo-clarinet version for the tender beat, and a key-change full-band out-chorus for the climax.++Stops (hard silence including reverb tails) on the lock-eyes beat, on the suspense before a gag, and a full 2 beats of silence right after the stretch; stingers on every gag; slide whistle for every stretch / slide / fall; the xylophone *is* the plates. The projector clatter is the only sound inside the silence.++Foley specific to this film (all synthesised): porcelain = hard inharmonic partials (~2.7 / 4.2 / 6.3 kHz) + tiny transient; thick mug = lower, duller partials; sugar = high woodblock + sparse crunch; clock = 18 Hz hammer on two bells; toaster = click, eighth-note ticks, bell + spring "boing"; water = filtered noise + rising blips, drain slurp, bubble bed; rubber = sawtooth creak through a band-pass.++Voice: an old radio announcer calling the action like a horse race (Kokoro `bm_lewis`, speed 1.0), 7 short lines ("Seven a.m., folks!" … "Good night, folks!"). Chain: HP 260 Hz / LP 4.6 kHz, tanh saturation, a short room, compression. Music ducked ~8 dB under the voice. Optical pass: band-limit 110 Hz–6.2 kHz, wow 0.6 Hz, flutter 7 Hz.++## Palette & props++- Grey ramp: paper `#F1EEE6` · light `#C8C5BC` · mid `#9A978F` · dark-mid `#6B6963` · dark `#3B3A37` · ink `#0E0D0C` · character white `#FCFBF7`.+- Contrast fix (the first style frame was too flat): walls `#8C8981`, tiles `#A29F97`, cabinets `#66635D`–`#7C7972`; `contrast(1.14)` in the final composite.+- Ink outline 6 px in screen space; limbs 13 px on a 280 px character; film damage: gate weave ±1.2 px with a rare 3–6 px jump, vignette 0 → 62 % black at the corners, 3 px vertical jump on every cut, 0.55 px blur; walk bob 10 px (sad walk: steps 34, bob 4), run lean 0.24 rad.+- **The Mug** (hero): a squat diner mug, white porcelain, two thin black rings at the rim, full of black coffee (black ellipse + a white crescent highlight); face on the body, pie eyes, small black nose, big mouth; handle at the back like a little tail. Its **steam** carries the mood: lazy waves / bitter zigzag / straight-up alarm / wilted droop / heart.+- **The Sugar Cube**: a real projected 3D cube with a slight top-down view (elevation ≈ 0.26 rad), face mapped onto the front face with an affine transform.+- **Kitchen cast** (living props, all taking a breath phase): pots, a clock, a toaster, plates, curtains. Background motifs: striped wallpaper with small diamonds, square tiles, panelled cabinets, black-and-white checker floor, hanging lamp. Two cached backgrounds: kitchen; cupboard + sink.+- Deliberately not learnt from the references: no existing character (cat, girl, clown), no title-card or theme copy, no period racial caricature; the mug's whole body is the mug (no human torso, no straw, no shorts), unlike *Cuphead*'s design.++## Titles & subtitles++- Subtitles: "the announcer's title card": plate `rgba(12,11,10,.92)`, white double-rule border, dot-and-ring corner ornaments and a tiny 1930s ribbon-microphone icon; IM Fell English SC 36 px, paper white; bottom at y ≈ 986 by default, top when the action is low. Each card ≥ speech + 0.6 s.+- Title: Shrikhand, white face, 14 % ink outline, ink drop shadow down-right, letters hopping in a travelling wave on the beat over a rotating sunburst; sub-line in Limelight caps.++## End card++Same sunburst, a wavy-edged sign with "The End", the style name, `LemoLab × Claude Opus 5.5`, small credit lines at the bottom; it opens with an iris from black. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/rubber-hose/demo/+ toon.js constant-width ink + line boil + affine stack film.js 4:3 gate, weave, flicker, scratches, vignette+ chars.js mug & cube rigs, pie eyes, gloves, shoes, steam cast.js living kitchen props (all take a breath phase)+ bg.js cached watercolor backgrounds (kitchen, cupboard+sink)+ story.js 144 BPM bar grid, VO times, subtitle cards, shots, key moments, music cues (single source of truth)+ scenes.js every shot: camera, props, acting events.js foley event list → events.json+ ui.js title lettering, announcer title card sheet.js model sheets (?mode=sheet / ?mode=kitchen)+ music/score.py original big-band score (VSCO 2 CE / VCSL samples via core/audio/sampler.py, banjo via pluck.py)+ mix.py foley synthesis + radio-voice chain + ducking + optical-track aging+ build.sh one-command rebuild (≈9 min, mostly TTS/whisper/sample loading; frames render in ~50 s)+```++1. Write the bar grid first (`story.js`), then the cue map; score to it (a forked sub-agent can write `music/score.py` in parallel from `story.js` + the cue list).+2. Model sheets: `node demo/tools/still.mjs demo 0 --q 'mode=sheet&w=2880&h=1620' --w 2880 --h 1620`.+3. `core/tts/tts.py lines.json voices` → `core/tts/asr_check.py`.+4. Review: `core/render/still.mjs demo --range a:b:1` + `core/render/sheet.py` (two full passes), and frame strips at 1/12 s on key acting beats.+5. `node core/render/events.mjs demo` → `python music/score.py` → `python mix.py`.+6. `node core/render/video.mjs demo --fps 24 --workers 3` → `sh core/render/mux.sh out/video24.mp4 mix.wav rubber-hose.mp4 24 3` → `python demo/tools/final_asr.py rubber-hose.mp4`.++Or simply `sh styles/rubber-hose/demo/build.sh`.++Pitfalls tied to this demo:+- **Kokoro heard "bitter" as "better"** after an ellipsis (`is... bitter!`). "And boy, is this coffee bitter!" passes. Check every line with whisper; also check the final mp4 (whisper writes "7am" / "they're": normalise before comparing).+- The cube read as a tall box in pure front view: elevation ~0.26 and a slight 3/4 turn for expressions.+- A far shot of the plate-xylophone and of the dance climax (reviewer note) killed both gags; both were reshot as medium / medium-full.+- A kicking leg drawn behind the mug body was hidden by the handle: kick outward past the silhouette.+- A pot "grew" out of the mug's head at one camera position: check every shot's final frame.+- A leap arc that was too high left the frame; keep arcs inside the gate at the camera's zoom.+- `sfx`-style clips of different lengths → numpy broadcast errors. Place clips into a fixed-length buffer (`seq()` in `mix.py`).+- zsh: `echo =====` fails (`=word` expansion) and `timeout` doesn't exist on macOS.+- JS: `-x ** 6` is a syntax error; write `-(x ** 6)`.diff --git a/styles/rubber-hose/STYLE.md b/styles/rubber-hose/STYLE.mdindex 87601a6..7e4212f 100644--- a/styles/rubber-hose/STYLE.md+++ b/styles/rubber-hose/STYLE.md@@ -1,123 +1,110 @@# 1930s Rubber Hose Cartoon — Style Prompt> Black-and-white hand-inked cartoons where every object is alive and swings to a hot jazz band.-> Demo: *Coffee Cup Chase* (50s) · `rubber-hose.mp4` · source in `demo/`+> References (grammar only): early Fleischer Studios shorts (c. 1930–33) for "the whole world dances", surreal transformation, the bouncing-ball singalong and ink-and-pen framing devices; *Cuphead* for how a modern team finishes the look and scores it with a big band. Never use an existing cartoon character, name or silhouette, and never copy designs, melodies or logos. **Avoid the "cup-head on a human body with a straw" design**: if your hero is an object, the *whole object is the body*.-You are directing a 30–60 second film in the **1930s Rubber Hose** style. The user gives you a topic. You decide everything else — story, shots, timing, music, sound — and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not-Reference lineage (learn the grammar, never copy characters, designs, melodies or logos): early Fleischer Studios shorts (c. 1930–33) for "the whole world dances"; *Cuphead* for how a modern team finishes the look and scores it with a big band. Never use an existing cartoon character, name or silhouette. **Avoid the "cup-head on a human body with a straw" design** — if your hero is an object, the *whole object is the body*.+Hand-inked black-and-white animation from the early sound era: characters with **rubber-hose limbs** (equal-width tubes, no elbows, no knees), **white four-finger gloves**, **pie eyes** (black oval pupils with a wedge cut out), huge round shoes, and bodies that squash and stretch like balloons. The backgrounds are soft grey watercolour paintings; the characters are flat white, grey and ink. Everything (furniture, machines, plants, the walls) **breathes in time with the music**. The film looks like a worn 35 mm print projected in a 4:3 gate: flicker, scratches, dust, gate weave, vignette.----+Not a 1950s flat cartoon (no limited animation, no colour, no graphic backgrounds), not a silent film (the synchronised music is the engine), not a "retro filter" over modern animation (no joints, no rendered shading).-## 1. What this style is+## 2. Materials & rendering-Hand-inked black-and-white animation from the early sound era: characters with **rubber-hose limbs** (equal-width tubes, no elbows, no knees), **white four-finger gloves**, **pie eyes** (black oval pupils with a wedge cut out), huge round shoes, and bodies that squash and stretch like balloons. The backgrounds are soft gray watercolor paintings; the characters are flat white, gray and ink. Everything — furniture, pots, clocks, curtains, the walls — **breathes in time with the music**. The film looks like a worn 35 mm print projected in a 4:3 gate: flicker, scratches, dust, gate weave, vignette.+- **Frame**: 1920×1080 output with a **4:3 gate** (1440×1080 centred, black pillarbox), gate corners rounded (r ≈ 28 px), soft inner shadow on the gate edge.+- **Characters**: flat fills, one hard-edged form-shadow band (light grey) on the side away from an upper-left light, ink outline **constant in screen space** at any zoom (transform points first, then stroke; ~6 px at 1080p), light **line boil** (±1.2 px, 3 drawings cycling at 12 fps).+- **Anatomy kit**:+ - Limbs: noodle tubes of constant width (about 1/20 of the character's height), one smooth bend, round caps.+ - Gloves: palm + 3 fat fingers + thumb, flared cuff with a fold line, 3 stitch lines on the back. Outline the union only (stroke all parts thick first, then fill all).+ - Pie eyes: white oval, big black pupil (≈ 64 % × 74 % of the eye) with a wedge cut toward the upper right; blink with an eyelid in body colour and a lid line.+ - Mouths: smile with cheek ticks, open grin, "O", wavy (scared), pucker, tongue-out. Shoes: big black ovals with a white toe glint.+- **Object characters**: the face sits on the body; a **secondary feature carries the mood** (steam, a flame, a lampshade tilt, a spring). A box-shaped object is a real projected 3D shape seen slightly from above, the face mapped onto its front.+- **Backgrounds**: painted once into a cached canvas at 1.25–1.5× (push-ins stay crisp): flat wash + soft blotches (±5 %) + inner edge darkening + a thin dark-grey outline + paper grain. They never boil. Period motifs: patterned wallpaper, panelled furniture, checker floors, brick, clapboard.+- **Film damage** (composite pass, not the scene): low-frequency gate weave (±1.2 px) with a rare jump; flicker ±4 %; 0–3 drifting vertical scratches; 3–8 dust specks per frame; an occasional hair; strong vignette; a small jump on every cut; slight blur. Grain in ffmpeg (`mux.sh` grain **3**), not in the page.++## 3. Colour logic++- **Strictly greyscale**: about 6 grey steps plus a separate character white. No hue anywhere, not even in the film damage.+- **Characters own the extremes**: character whites and ink blacks are brighter and darker than anything in the background. Backgrounds live in the middle greys (walls around mid grey, furniture one or two steps darker). Add a mild contrast boost (≈ 1.1–1.15) in the final composite: 1930s prints are rich black and bright white, never flat grey.+- Form shadow is one light-grey band, never a gradient.+- Examples of the grey ramp's temperature: warm paper greys (our demo); cool silver-nitrate greys; a faint sepia print. Pick one and keep it for the whole film.++## 4. Type & subtitles++- **Subtitles are a period title card**: a small near-black plate with a white double-rule border and dot-and-ring corner ornaments; text in **IM Fell English SC** (~36 px), paper white. Drawn in the scene layer so it weaves and flickers with the film; pops on and off with no fades. Bottom by default, top when the action is low. One card may span two short voice clips; hold ≥ max(1.8 s, speech + 0.6 s).+- **Titles**: **Shrikhand** fat retro script, white face, heavy ink outline (~14 % of the cap height), ink drop shadow down-right; letters can hop in a travelling wave on the beat. Sub-lines in **Limelight** caps.++## 5. Motion quality++- **Characters on twos** (12 fps); camera moves on ones (24 fps). A stepped camera reads as judder.+- **Tempo grid**: choose a tempo where one beat is an **even whole number of frames** at 24 fps (8, 10, 12, 16 or 20 frames), so every beat lands on a drawing of the twos.+- **Breathing**: every idle object squashes and stretches with `cos(2π·beats)`: an extreme on every beat (stretch on the beat, squash on the off-beat), sampled on twos, amplitude ~5–7 %, all props in phase. A peak of joy can raise the amplitude ×3 and squash the whole background painting around the floor line (~2.5 %).+- **Walk**: one step per beat with a body bob (sad = smaller steps, limp arms). **Run**: legs as a windmill (feet orbit a circle), lean forward, speed lines.+- **Anticipation–hold–action**: before every big move, crouch (squash to ~0.8), hold (let the band stop), then snap. Impacts get a squash with an exponential spring-back.+- **Held frames are acting**: a chain of holds, each glance on an eighth note with a woodblock tick, reads as thinking.+- **Freeze on a band stop**: when the music stops, freeze everything, background breathing included.++## 6. Camera grammar++A theatre camera: mostly locked, moving only to follow a runner or to land a gag. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Stage-wide, locked, eye level | A proscenium: the set is a stage and everyone on it performs | introducing a place; a group number; a routine |+| Hard cut to a face close-up | The reaction is the joke | a surprise; a taste; a realisation |+| Trucking pan beside a runner, eased start and stop | Pursuit, momentum | a chase; a race; a delivery |+| Medium follow shot (character ≈ 1/4–1/3 of the frame height) | Every step is a note | Mickey-moused climbing, dancing, working |+| Tilt with a fall or a rise | Gravity as rhythm | a tumble; a rocket; a lift |+| Slightly high angle, one unbroken shot | The hazard and the answer in one frame | a danger; a stretch; a rescue |+| Tabletop pan (flat characters in front of a model set turning in depth) | The world is a real place | a street; a carousel; a factory floor |+| Pull-back from a close-up to a packed medium-full | One feeling spreads to everyone | a celebration; a crowd joining in |+| Iris in / iris out (grabbable by a character) | The film is an object | a beginning; an ending; a scene change with a gag |++Framing: faces must read, so no far-wide shot for a gag or a musical moment. The destination prop enters frame before the gag lands. Arcs and leaps stay inside the gate at the current zoom. Transitions: iris, a hard cut on a beat, a title card rolling up like a window shade; no dissolves.++## 7. Sound palette++- **1930s hot dance band / ragtime**: stride piano, clarinet, trumpet (open + plunger-mute "wah-wah"), trombone (smears), tuba oom-pah, banjo on 2 & 4, snare with brushes and rolls, xylophone, woodblocks, slide whistle, cymbal, kazoo, washboard, a pit organ. **No string pads, no modern synths.** One short original syncopated theme can be restated in different arrangements.+- **Mickey-mouse the score, as options**: a band member "answering" a character (trombone raspberry, trumpet laugh); a stop (hard silence, reverb tails too) before a gag or on a stare; a stinger per gag; slide whistle for every stretch or fall; a prop that *is* an instrument; a solo for tenderness; a key change for a lift.+- **Foley by material** (synthesised): porcelain and glass = hard inharmonic partials + a tiny transient; wood = woodblock; metal = bells and clanks; springs = "boing"; water = filtered noise + rising blips and bubbles; rubber = sawtooth creak through a band-pass.+- **Voice**: a period character (a radio announcer calling the action, a vaudeville MC, a crooner), few short lines. Radio chain: HP ~260 Hz / LP ~4.6 kHz, tanh saturation, a short room, compression. Duck the music ~8 dB.+- **Optical soundtrack pass** over music + foley: band-limit ~110 Hz–6.2 kHz, slight wow (~0.6 Hz) and flutter (~7 Hz), soft saturation; then a bed of hiss, crackle and a 24 Hz projector gate clatter, the *only* sound allowed inside a silence.+- Loudness −14 LUFS (two-pass loudnorm in `core/render/mux.sh`).-## 2. Story: what fits this style+## 8. Native moves-Pick stories where **music and motion are the story**. Rubber hose has four native powers — use at least three, and put the strongest at the emotional peak:+A menu: use the ones your story needs.-| Native power | Story use |-|---|---|-| **Everything breathes on the beat** | The setting is a character. At the climax the *whole world* dances in sync — every prop, even the walls. This is the payoff shot. |-| **Mickey-mousing** | Every step is a note. Turn a prop into an instrument (in the demo: a stair of plates is a xylophone — the small character climbs it on rising xylophone eighths, the big one on tuba quarters). |-| **Rubber-hose stretch** | Limbs reach any length. Use it for the turning point (the demo's arm stretches around a whirlpool and down a drain in one unbroken shot). |-| **The film is a physical object** | Title cards roll up like window shades; the iris can be grabbed and pulled shut by a character; intertitles can be bumped. Great for openings and endings. |+- **Everything breathes on the beat.** The setting is a character; at the peak the *whole world* can dance in sync, walls included. *Fits content like:* a factory at shift change; a garden after rain; a city waking up.+- **Mickey-mousing.** Every step is a note; a prop becomes an instrument. *Fits content like:* stairs as a piano; a typewriter as a drum kit; fence posts as a xylophone.+- **Rubber-hose stretch.** Limbs reach any length in one unbroken shot. *Fits content like:* reaching a top shelf; a long-distance handshake; catching a falling baby bird.+- **Transformation.** Anything becomes something else mid-motion (a tail into a question mark, a hose into a saxophone). *Fits content like:* an idea turning into a product; a problem into a tool; a word into an object.+- **The bouncing-ball singalong.** Lyrics on a title card, a ball hopping from word to word on the beat. *Fits content like:* a jingle; a safety rhyme; a slogan to remember.+- **The film is a physical object.** Title cards roll up like window shades; the iris is grabbed and pulled shut; intertitles get bumped; the frame line slips. *Fits content like:* a brand reveal; a "the end?" twist; a character escaping the cartoon.+- **The ink bottle.** An artist's pen draws the hero, who then argues with it. *Fits content like:* a making-of; a mascot introduction; a lesson about drawing.-Adapting any topic: make the topic a **chase or a performance inside one lively location** (a kitchen, an office, a toy shop, a factory). Give the location a supporting cast of 5–8 living objects.+## 9. Pitfalls of the medium-**Emotional arc (40–55 s):** hook on frame 1 (bouncing title letters, band hit) → a small want → a chase in 3 escalating set pieces, one visual gag each → danger → the stretch → dead silence → a quiet, kind turn → release: the whole world dances → iris out with a gag. Keep one hero, one goal, one turn.+- **Flat grey frames.** Push backgrounds to mid grey, keep pure white and ink for characters, add a contrast boost.+- **Wide shots kill gags**: a far shot makes characters tiny and Mickey-mousing unreadable. Use medium shots, and a packed medium-full for crowds.+- "Sad" brows drawn as "angry": define brows by inner / outer end (inner = near the nose), not by left / right.+- A limb drawn behind a body gets hidden by the silhouette (a handle, a tail): kick and reach outward past it.+- Painted characters collide with background props at some camera positions: check every shot's last frame.+- Smoke puffs in a row read as thought bubbles: scatter and grow them.+- Short voice clips make subtitles flash: merge consecutive lines into one card.-## 3. Visual language+## 10. Engine-- **Frame**: 1920×1080 output with a **4:3 gate** (1440×1080 centered, black pillarbox), gate corners rounded r≈28 px, soft inner shadow on the gate edge.-- **Palette** — strictly grayscale, 6 steps + character white:- paper `#F1EEE6` · light `#C8C5BC` · mid `#9A978F` · dark-mid `#6B6963` · dark `#3B3A37` · ink `#0E0D0C` · character white `#FCFBF7`.-- **Contrast rule** (important — our first style frame was too flat): characters own the extremes. Character whites and ink blacks must be brighter/darker than anything in the background. Walls sit in **mid gray** (`#8C8981`), tiles `#A29F97`, cabinets `#66635D`–`#7C7972`. Add `contrast(1.14)` in the final composite.-- **Characters**: flat fills, one hard-edged form-shadow band (light gray) on the side away from an upper-left light, ink outline **6 px constant in screen space** at any zoom (transform points first, then stroke), light **line boil** (±1.2 px, 3 drawings cycling at 12 fps).-- **Anatomy kit**:- - Limbs: noodle tubes of constant width (13 px on a 280 px character), one smooth bend, round caps.- - Gloves: palm + 3 fat fingers + thumb, flared cuff with a fold line, 3 stitch lines on the back. Outline the union only (stroke all parts thick first, then fill all).- - Pie eyes: white oval, big black pupil (64% × 74% of the eye) with a wedge cut toward the upper right; blink with an eyelid in body color and a lid line.- - Mouths: smile with cheek ticks, open grin with gray tongue, "O", wavy (scared), pucker (disgust), "bleh" tongue-out, beam.- - Shoes: big black ovals with a white toe glint.-- **Object characters**: face on the body; a secondary feature carries the mood (the demo mug's **steam**: lazy waves / bitter zigzag / straight-up alarm / wilted droop / heart). For a cube or box, project a real 3D cube with a slight top-down view (elevation ≈0.26 rad) and map the face onto the front face with an affine transform.-- **Backgrounds**: painted once into a cached canvas at 1.25–1.5× resolution (so camera push-ins stay crisp): flat wash + soft blurred blotches (±5% light/dark) + an inner edge-darkening stroke + thin dark-gray outline (3 px) + paper grain. Backgrounds never boil. Classic motifs: striped wallpaper with small diamonds, square tiles, paneled cabinets, black-and-white checker floor, hanging lamp.-- **Film damage** (drawn in the composite pass, not in the scene): gate weave ±1.2 px low-frequency plus a rare 3–6 px jump; per-frame brightness flicker ±4%; 0–3 vertical scratches drifting over a few frames; 3–8 dust specks per frame; an occasional hair; strong vignette (0 → 62% black at the corners); a 3 px vertical jump on every cut; 0.55 px blur. Grain goes in ffmpeg (`mux.sh` grain **3**), not in the page.--## 4. Motion language--- **Characters on twos** (12 fps); camera moves on ones (24 fps). Stepped cameras read as judder.-- **Tempo grid**: choose a BPM where one beat is an integer number of frames. **144 BPM → 1 beat = 10 frames**, so every beat lands on an even frame and twos-animation can hit it exactly.-- **Breathing**: every idle object squashes/stretches with `cos(2π·beats)` — **an extreme on every beat** (stretch on the beat, squash on the off-beat), sampled on twos, amplitude ~5–7%. All props in phase. At the climax raise amplitude ×3 and also squash the whole background painting around the floor line (~2.5%).-- **Walk**: one step per beat, body bob 10 px; sad walk = smaller steps (34), bob 4, limp arms. **Run**: legs as a windmill (feet orbit a circle), lean forward 0.24 rad, speed lines, steam blown back.-- **Anticipation–hold–action**: before every big move, crouch (squash to 0.8), hold (let the band stop), then snap. Impacts get a squash with an exponential spring-back.-- **Held frames are acting**: the demo's hesitation beat = crouch (hold) → eyes to the other character's back (hold) → eyes up to the goal (hold) → back → up + grin → small hop → leap. Each glance on an eighth note, with a woodblock tick, while the camera slowly pushes in.-- **Freeze on a band stop**: when the music stops for a "lock eyes" beat, freeze everything, background breathing included.--## 5. Camera language--| Beat | Camera |-|---|---|-| Opening | Title card with rotating sunburst; letters hop in a wave each beat; the card rolls up like a window shade to reveal the set |-| Establishing | **Stage-wide, locked off**, eye level. The set reads like a proscenium; props lined along the counter |-| Reaction gag | Hard cut to a close-up of the face (the only big face shot early on) |-| Chase | **Trucking pan** alongside the runners, eased start and stop; the destination prop enters frame before the gag |-| Vertical set piece | Don't frame the whole set piece far away — follow each climber in a **medium shot** (character ≈1/4–1/3 of frame height) so each musical step and the plate's bounce reads; cut between climbers; then tilt down with the fall |-| Danger | Slightly high angle so the hazard reads at a glance; **hold one unbroken shot** through the big stretch |-| Quiet turn | Medium two-shot, then the hero's **back** walking away small in the background while the other character is big in the foreground (on a foreground counter piece) |-| Climax | Pull back from a close-up to a **medium-full** shot (not a far wide — faces must read): hero in the middle, living props on the counter behind, and a **foreground row of bigger dancers** on a nearer counter piece. 2–3 steps by bar (sway → kicks → group squat-and-spring), then **everyone freezes in a ta-da pose on the last beat** and holds into the iris |-| Ending | Iris closes on the heroes; a character's glove pulls it shut |--## 6. Sound--- **Music**: 1930s hot dance band / ragtime — stride piano, clarinet, trumpet (open + plunger-mute "wah-wah"), trombone, tuba oom-pah, banjo on 2 & 4, snare with brushes and rolls, xylophone, woodblocks, slide whistle, cymbal. **No string pads, no modern synths.** One original 4-bar syncopated theme, stated for the title, the chase, a slow solo-clarinet version for the tender beat, and a key-change full-band out-chorus for the climax.-- **Mickey-mouse the score**: stops (hard silence including reverb tails) on the lock-eyes beat, on the suspense before a gag, and a full 2 beats of silence right after the stretch; stingers on every gag; slide whistle for every stretch/slide/fall; the xylophone *is* the plates.-- **Foley by material** (all synthesized): porcelain = hard inharmonic partials (~2.7/4.2/6.3 kHz) + tiny transient; thick mug = lower, duller partials; sugar = high woodblock + sparse crunch; clock = 18 Hz hammer on two bells; toaster = click, eighth-note ticks, bell + spring "boing"; water = filtered noise + rising blips, drain slurp, bubble bed; rubber = sawtooth creak through a band-pass.-- **Voice**: an old radio announcer calling the action like a horse race (Kokoro `bm_lewis`, speed 1.0), 5–7 short lines. Chain: HP 260 Hz / LP 4.6 kHz, tanh saturation, a short room, compression. Duck the music ~8 dB under the voice.-- **Optical soundtrack pass** over music + foley: band-limit 110 Hz–6.2 kHz, slight wow (0.6 Hz) and flutter (7 Hz), soft saturation; then add a bed of hiss, crackle and a 24 Hz projector gate clatter that is the *only* sound during the silence.-- Loudness −14 LUFS (two-pass loudnorm in `core/render/mux.sh`).+In `demo/`: `toon.js` (constant-width ink, line boil, affine stack), `film.js` (gate and film damage, reusable as is), `chars.js` (rigs, pie eyes, gloves, shoes), `cast.js` (breathing props), `bg.js` (cached watercolour backgrounds), `ui.js` (title lettering, title-card subtitles), `mix.py` (foley, radio chain, optical ageing), `music/score.py` (big band via `core/audio/sampler.py`). File map and commands: [DEMO.md](DEMO.md#build-notes).++## 11. Variation space++You decide the location (or several), the cast, the structure, the opening, the ending, the camera path, the tempo and the band's line-up. All far from our demo:++- Structures: **a singalong** (verse and chorus, the bouncing ball carrying the message while the set acts out each line); **a talent show** (objects take turns on a stage, the smallest wins); **a relay** (a thing passed hand to hand across a town, each hand-off a new instrument on the melody).+- Openings: **out of the inkwell** (a pen draws the hero, who hops onto the set); **a curtain rise** (the band tuning up; a baton starts the film); **an iris on one eye** (it blinks, the iris widens to show whose eye it is).+- Endings: **the card pulled over** (a character drags "The End" in front of itself mid-gag); **the film snaps** (the frame burns, a gloved hand splices it for one last bow); **the band packs up** (instruments leave until one note remains).++----## 7. Subtitles & titles--- **Subtitles are "the announcer's title card"**: a small black plate (rgba(12,11,10,.92)) with a white double-rule border, dot-and-ring corner ornaments and a tiny 1930s ribbon-microphone icon; text in **IM Fell English SC** 36 px, paper white. Drawn in the scene layer so it weaves and flickers with the film. Pops on/off with no fades. Bottom (y≈986) by default, top when the action is low in frame. One card may span two voice clips; each card ≥ speech + 0.6 s.-- **Title**: **Shrikhand** fat retro script, white face, 14% ink outline, ink drop shadow offset down-right; each letter hops in a traveling wave on the beat. Sub-line in **Limelight** caps.-- **End card**: same sunburst, a wavy-edged sign with "The End", style name, `LemoLab × Claude Opus 5.5`, small credit lines at the bottom. Opens with an iris from black.--## 8. Pitfalls we hit--- **Flat, gray first style frame.** Push walls to mid gray, keep pure white/ink for characters, add a contrast filter. 30s prints are rich black + bright white.-- **Kokoro heard "bitter" as "better"** after an ellipsis (`is... bitter!`). "And boy, is this coffee bitter!" passes. Check every line with whisper; also check the final mp4 (whisper writes "7am"/"they're" — normalize before comparing).-- Short announcer clips → subtitles too short. Merge consecutive lines into one card.-- **Cube read as a tall box** in pure front view — use elevation ~0.26 and prefer a slight 3/4 turn for expressions.-- "Sad" brows drawn as "angry": define brows by inner/outer end (inner = near the nose), not by left/right.-- Wide shots made characters tiny (reviewer note): a far shot of the plate-xylophone and of the dance climax killed both gags. Mickey-mousing needs medium shots; the climax needs a medium-full shot packed with dancers, not a room-wide view.-- A kicking leg drawn behind a mug body gets hidden by the handle — kick outward past the silhouette.-- Painted characters can collide with background props at certain camera positions (a pot "grew" out of the mug's head). Check every shot's final frame.-- Smoke puffs laid out in a row read as "thought bubbles" — scatter and grow them.-- A leap arc that's too high leaves the frame; keep arcs inside the gate at the camera's zoom.-- `sfx`-style clips of different lengths → numpy broadcast errors. Place clips into a fixed-length buffer (`seq()` in `mix.py`).-- zsh: `echo =====` fails (`=word` expansion) and `timeout` doesn't exist on macOS.-- JS: `-x ** 6` is a syntax error; write `-(x ** 6)`.--## 9. Production recipe (this repo)--```-styles/rubber-hose/demo/- toon.js constant-width ink + line boil + affine stack film.js 4:3 gate, weave, flicker, scratches, vignette- chars.js mug & cube rigs, pie eyes, gloves, shoes, steam cast.js living kitchen props (all take a breath phase)- bg.js cached watercolor backgrounds (kitchen, cupboard+sink)- story.js 144 BPM bar grid, VO times, subtitle cards, shots, key moments, music cues (single source of truth)- scenes.js every shot: camera, props, acting events.js foley event list → events.json- ui.js title lettering, announcer title card sheet.js model sheets (?mode=sheet / ?mode=kitchen)- music/score.py original big-band score (VSCO 2 CE / VCSL samples via core/audio/sampler.py, banjo via pluck.py)- mix.py foley synthesis + radio-voice chain + ducking + optical-track aging- build.sh one-command rebuild (≈9 min, mostly TTS/whisper/sample loading; frames render in ~50 s)-```--1. Write the bar grid first (`story.js`), then the cue map; score to it (a forked sub-agent can write `music/score.py` in parallel from `story.js` + the cue list).-2. Model sheets: `node demo/tools/still.mjs demo 0 --q 'mode=sheet&w=2880&h=1620' --w 2880 --h 1620`.-3. `core/tts/tts.py lines.json voices` → `core/tts/asr_check.py`.-4. Review: `core/render/still.mjs demo --range a:b:1` + `core/render/sheet.py` (two full passes), and frame strips at 1/12 s on key acting beats.-5. `node core/render/events.mjs demo` → `python music/score.py` → `python mix.py`.-6. `node core/render/video.mjs demo --fps 24 --workers 3` → `sh core/render/mux.sh out/video24.mp4 mix.wav rubber-hose.mp4 24 3` → `python demo/tools/final_asr.py rubber-hose.mp4`.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/rubber-hose/TREATMENT.md b/styles/rubber-hose/TREATMENT.mddeleted file mode 100644index d6625f6..0000000--- a/styles/rubber-hose/TREATMENT.md+++ /dev/null@@ -1,175 +0,0 @@-# 1930s Rubber Hose Cartoon · 导演方案(Treatment)--**片名** *Coffee Cup Chase*-**时长** 约 47 秒(风格说明建议 40 秒;多出的 7 秒给片名卡和结尾卡留够阅读时间,并让"静音 + 回心转意"那一拍能呼吸——见第九节)-**画幅** 1920×1080 输出,画面内是 **4:3 片门**(1440×1080 居中,两侧黑边,圆角片门)| **帧率** 24fps 输出;角色 12fps(拍两格)步进,镜头横移每帧平滑-**速度网格** **144 BPM,4/4**:1 拍 = 0.4167 s = 10 帧(整数帧!每个拍点都落在偶数帧上,拍两格的角色也能正好踩在拍上),1 小节 = 1.667 s,全片 28 小节-**一句话** 一只刚睡醒的马克杯尝了自己一口——苦!它满厨房追一块逃跑的方糖:台面、橱柜、水槽。方糖快被下水道吸走时,杯子把橡皮管胳膊伸得老长把它捞了回来,然后失落地放它走——方糖却自己跳进了杯子。咖啡变甜,整个厨房跟着乐队一起跳起来。-**一句话主题** 追不来的甜,被放手之后自己来了。-**叙述框架** 一位 1930 年代的**电台体育播音员**把这场追逐当赛马实况来解说("And they're off!")——既满足"英文旁白"的要求,又是那个年代的声音;台词很少(6 句),让音乐和动作说话。-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么(语法) | 刻意不学 |-|---|---|---|-| **Fleischer Studios 早期短片**(1930–33 前后的黑白橡皮管卡通) | ① **万物有灵且随音乐摇摆**:背景里的锅、钟、窗帘都在同一个拍子上"呼吸";② 橡皮管四肢——没有关节的等粗软管、白手套、派饼眼(黑椭圆瞳孔切一块三角高光)、大圆头鞋;③ 舞台式固定机位 + 少量横移;④ 绘制背景是灰阶水彩、角色是平涂黑白灰;⑤ 结尾 iris(圆形遮罩收尾);⑥ 超现实笑点:物体随时变成别的东西(盘子变木琴、胳膊变绳子) | 不用任何现有角色(猫、女郎、小丑)的造型、名字、标志性动作;不抄片头卡、字体设计、主题旋律;不做那个年代的种族/刻板印象笑料 |-| **《Cuphead》** | 现代人做 30 年代风格的**完成度**:胶片瑕疵(划痕、闪烁、片门抖动、晕影)做得克制而统一;**大乐队配乐的能量**;动作一律落在拍上;夸张的预备动作和拉伸 | **杯子造型**:原作是"人身 + 杯子脑袋 + 吸管 + 短裤"。本片的杯子是**整只马克杯就是身体**(面孔画在杯身上,四肢从杯身伸出,杯把在背后当"尾巴"),没有吸管、没有人类躯干;不用它的彩色(本片纯黑白)、不做 Boss 战/游戏 UI、不仿其片名字体 |-------## 二、角色(全部原创)--| 角色 | 造型 | 表演 |-|---|---|---|-| **The Mug(马克杯)** 主角 | 矮胖的餐馆马克杯,白瓷杯身、杯口两道黑色细环纹;杯里是满满的黑咖啡(杯口椭圆内黑色 + 一道白色月牙高光);**脸画在杯身正面**:大派饼眼、黑色小圆鼻、大嘴;**蒸汽是它的"头发"兼情绪指示器**(懒=软塌的波浪、苦=锯齿、惊=笔直竖起、甜=卷成心形);橡皮管胳膊从杯身两侧伸出,白手套;两条橡皮管腿 + 黑色大圆头鞋;**杯把在背后**,转身时像一截小尾巴 | 早上迷糊、尝一口被苦得全身打颤;追逐时双腿抡成风车;救方糖时胳膊能伸满整个画面;最后甜到五官都往外开花 |-| **The Cube(方糖)** | 一块小方糖,3/4 视角看得到正面/顶面/侧面三块面,表面有细小的糖晶点;正面有小派饼眼、小嘴、灰色腮红;细细的橡皮管手脚、小白手套、小黑鞋 | 胆小、机灵:眼珠弹出、冒汗、蹦跳逃跑;被救后先愣住,再看看杯子的背影,最后自己跳进去——在咖啡里冒出头,顶着一条小毛巾像泡热水澡(交代"它没事,它很享受",避免"溶化 = 死亡"的暗示) |-| **厨房群演**(随节拍呼吸) | 闹钟(钟面就是脸,两根指针是胡子)、烤面包机(两道吐司槽,镀铬高光)、水龙头(龙头是鼻子,两个阀门是眼睛)、盐瓶和胡椒瓶(一对跳舞搭档)、一摞盘子(=木琴)、挂着的锅和勺(像钟一样摆)、窗帘、水壶 | 平时只做循环"呼吸"(每拍一次压扁拉伸)和小动作;高潮时全部同时起舞 |-------## 三、原生招式("只有橡皮管卡通能做到")--| 招式 | 落在哪 | 为什么是这个媒介独有 |-|---|---|---|-| **① 万物随节拍呼吸** | 全片底色;**情绪最高点(0:35–0:40)全厨房同步起舞**:锅、钟、烤面包机、水龙头、盐和胡椒、窗帘、连橱柜门和台面都在同一拍上压扁拉伸 | 实拍和 3D 里"背景"是死的;30 年代卡通里整个世界都是演员,而且都在跟乐队打拍子 |-| **② Mickey-mousing** | 每一步都是一个音:方糖逃跑 = 木鱼高音,杯子追 = 低音大号;**橱柜里的一摞盘子就是木琴**,方糖往上跑每一步一个音阶上行,杯子踩上去每一步是大号的低音 | 画面即乐谱,声画一一对应,只有手绘动画能这么"作弊" |-| **③ 橡皮管拉伸** | 转折点:方糖被卷向下水道,杯子的胳膊**伸长、再伸长、绕着漩涡钻进下水口**——全片最长的一个动作,配一条长长下行的滑哨,然后**全静** | 没有骨头的四肢,是这个风格的名字本身 |-| **④ iris 是一个"东西"** | 结尾 iris 收到只剩一个小圆洞时,方糖的小手从洞里伸出来,**抓住 iris 的边一把拉上** | 30 年代卡通常把片子的装置(字卡、iris、画框)当成可以被角色摸到的物体 |-------## 四、结构与情绪弧--| 段 | 小节 | 时间 | 情绪 | 发生什么 |-|---|---|---|---|---|-| A 片名 | 1–3 | 0:00–0:05.0 | 热闹、抓人 | 黑底上放射状光芒旋转,片名字母**每拍蹦一下**;小号齐奏开场。第 3 小节最后一拍,片名卡像**百叶窗帘一样"唰"地卷上去**(滑哨上行),露出厨房 |-| B 起床·苦 | 4–7 | 0:05.0–0:11.7 | 迷糊 → 苦 → 发现 → 对视 | 闹钟跳起来响铃,杯子惊醒;用手指蘸自己一口尝——**苦!**(切近景:五官皱成一团、全身打颤、蒸汽变锯齿,弱音小号"哇-哇-哇——");环顾,看到糖罐,盖子掀起,方糖探头;**两人对视,乐队停住**(定格一拍);方糖眼珠弹出,拔腿就跑 |-| C 台面追逐 | 8–10 | 0:11.7–0:16.7 | 追! | 镜头沿台面向右横移;方糖从盐和胡椒中间钻过(两人被转成陀螺);方糖一头扎进烤面包机的槽;杯子急刹、凑过去往里看——拉杆自己按下,"嘀嗒嘀嗒"——**叮!** 方糖像吐司一样被弹上天,杯子的脸被烤黑,眨两下白眼。**笑点 1** |-| D 橱柜 | 11–14 | 0:16.7–0:23.3 | 攀爬、炫技 | 镜头上摇到敞开的橱柜;方糖落在一摞斜放的盘子上往上跑,**每一步一个木琴音(上行音阶)**;杯子橡皮管胳膊一甩把自己拽上来,也踩盘子上行——每一步是**大号的"嘭"**,盘子被踩得乱晃;方糖从顶上跳到挂着的长柄汤勺上,**顺着勺柄滑下去**(滑哨下行)飞进水槽;盘子塌了,杯子踩着一只盘子像雪橇一样冲下去。**笑点 2** |-| E 水槽·危机 | 15–17 | 0:23.3–0:28.3 | 紧张 | 水槽里放着水,水龙头在滴;下水口一个漩涡。方糖被卷着转圈,越转越小;乐队转 d 小调"危急快板"。杯子落在水槽边,犹豫一拍,然后**胳膊伸长、再伸长,绕着漩涡钻进下水口**。**笑点 3 + 转折** |-| F 静音 | 18 | 0:28.3–0:30.0 | 屏息 | **全静**两拍(只有放映机的嗒嗒声)。然后"啵嘤——",胳膊像卷尺一样收回,湿淋淋的方糖落在手套上 |-| G 放手 | 19–20 | 0:30.0–0:33.3 | 温柔、失落 | 两人对视。杯子把方糖轻轻放在台面上,拍拍它,转身走开,蒸汽垂下去,叹一口气(单簧管独奏主题的慢版)。方糖看看杯子的背影,看看自己,笑了——跑、蹦、**跳进杯子**。"扑通" |-| H 甜! | 21–24 | 0:33.3–0:40.0 | 狂欢(**情绪最高点**) | 杯子愣住,咂嘴——"叮!"——五官像花一样绽开,蒸汽卷成一颗心;方糖从咖啡里冒出头,头顶小毛巾。镜头拉远到最宽的厨房全景:**整个厨房同步起舞**(原生招式①),全乐队升调重奏主题 |-| I iris | 25–26 | 0:40.0–0:43.3 | 回响 | iris 慢慢收拢到杯子和方糖身上;收到最小时,方糖的小手伸出来把 iris 一把拉上(原生招式④),最后一个和弦 |-| J 结尾卡 | 27–28 | 0:43.3–0:47.0 | — | 片尾卡:放射光芒、"THE END" 手写体标牌、风格名、`LemoLab × Claude Opus 5.5`;配乐尾声 + 放映机片尾噪声 |--**开场 3 秒抓人**:第一帧就是旋转的放射光芒 + 蹦跳的字母 + 小号齐奏(不是黑场淡入)。-**首尾呼应**:开场是片名卡"卷上去"揭开世界,结尾是 iris"被角色拉上"关上世界;开场蒸汽是苦的锯齿,结尾蒸汽是心形。-------## 五、分镜节拍表(144 BPM;表内"b小节.拍",时间 = 秒)--| # | 小节.拍 | 时间 | 景别 / 机位(意图) | 画面 | 声音 / 卡点 |-|---|---|---|---|---|---|-| 1 | 1.1 | 0.00 | 片名卡,正面平视 | 放射光芒旋转、字母每拍蹦 | 小号+单簧管齐奏;字母蹦 = 每拍军鼓 |-| 2 | 3.4→4.1 | 4.58→5.00 | 同上 | 片名卡像窗帘"唰"地卷上 | 滑哨上行,4.1 钹 |-| 3 | 4.1 | 5.00 | **全景舞台**(固定机位:交代整个台面和"活着的"厨房) | 闹钟跳起来响铃,杯子惊醒、蒸汽竖起 | 铃声 4.1–4.3 |-| 4 | 4.4–5.2 | 6.25–7.08 | 全景 | 杯子伸手指蘸一口咖啡,舔 | VO1 起(6.25) |-| 5 | 5.3–6.4 | 7.50–9.58 | **近景**(切进来看清"苦"的表情——全片唯一的大脸特写) | 五官皱成一团、全身打颤、蒸汽变锯齿 | 弱音小号"哇-哇-哇——"7.50 / 7.92 / 8.33(长音) |-| 6 | 7.1 | 10.00 | 全景 | 转头看见糖罐,盖子掀起、方糖探头;**对视定格** | 乐队停,只剩一记钹闷音 |-| 7 | 7.3–7.4 | 10.83–11.25 | 全景 | 方糖眼珠弹出、原地空转双腿、蹿出;杯子双腿抡成风车蓄力 | 7.3 "啵嘤",7.4 军鼓滚奏 |-| 8 | 8.1 | 11.67 | **横移跟拍**(镜头与角色同速向右,台面前景快、墙面慢——视差) | 追逐开始 | VO2 "And they're off!";全乐队进 |-| 9 | 8.1–9.2 | 11.67–13.75 | 横移 | 方糖从盐胡椒中间穿过,两者被转成陀螺 | 每步木鱼/大号;陀螺 = 滑哨颤音 |-| 10 | 9.3 | 14.17 | 横移停 | 方糖扎进烤面包机 | "嗖" |-| 11 | 10.1–10.2 | 15.00–15.42 | 中景(停下来看烤面包机——让观众预判笑点) | 杯子急刹凑近看;拉杆自己按下 | **乐队停**,只有"嘀嗒嘀嗒" |-| 12 | 10.3 | 15.83 | 中景 | **叮!** 方糖弹上天;杯子脸被烤黑,眨两下白眼 | 叮 + 弹簧 + 乐队齐奏重音 |-| 13 | 11.1 | 16.67 | **上摇**到橱柜(跟着方糖的抛物线) | 方糖落到最底下的盘子上 | 大号落地音 |-| 14 | 11.2–12.4 | 17.08–20.00 | 橱柜全景(固定:盘子楼梯一眼看全,"乐谱"要看得清) | 方糖跑上盘子,每步一个木琴音 | **木琴上行音阶,八分音符**;VO3 17.1 |-| 15 | 12.1–13.2 | 18.33–20.42 | 同上 | 杯子甩胳膊把自己拽上来,踩盘子上行,盘子乱晃 | 每步一个大号低音(四分音符) |-| 16 | 13.3–14.1 | 20.83–21.67 | 同上 | 方糖跳上挂勺,顺勺柄滑下去 | 滑哨下行 |-| 17 | 14.1–14.4 | 21.67–23.33 | **下摇**到水槽(跟着坠落) | 盘子塌,杯子踩盘子"滑雪"冲下 | 14.1 镲 + 鼓过门 |-| 18 | 15.1 | 23.33 | **水槽俯视斜角**(稍高机位:看清漩涡和下水口,危险要一眼可读) | 方糖落水,被卷着转圈 | d 小调危急快板;VO4 23.5 |-| 19 | 16.1–16.4 | 25.00–26.25 | 同上 | 杯子落在槽边,看、犹豫、下决心 | 大号固定低音型 + 单簧管颤音 |-| 20 | 17.1–17.4 | 26.67–28.33 | 同上,**这一镜不切**(一个镜头里看完伸长的全过程) | 胳膊伸长、再伸长、绕漩涡钻进下水口 | 一条长长的滑哨下行 |-| 21 | 18.1–18.2 | 28.33–29.17 | 同上 | 画面里只有静止的胳膊和漩涡 | **全静**(只有放映机嗒嗒) |-| 22 | 18.3 | 29.17 | 同上 | 胳膊像卷尺一样"嗖"地收回,方糖落进手套 | "啵嘤"+ 水花 |-| 23 | 19.1–20.2 | 30.00–32.08 | **中景双人**(平视、稍低:安静下来,两人的关系是这一段的全部) | 对视;放下、拍拍、转身、叹气;方糖看着背影 | 单簧管独奏主题慢版 + 轻钢琴 |-| 24 | 20.3–20.4 | 32.50–32.92 | 同上 | 方糖笑了,跑两步、蹦起 | 木鱼两下上行 |-| 25 | 21.1 | 33.33 | 同上 | **扑通**,跳进杯子 | 水花 + 一拍静 |-| 26 | 21.3 | 34.17 | **近景**杯子 | 咂嘴 → "叮!" → 五官绽开、蒸汽卷成心;方糖冒头顶毛巾 | 木琴"叮"+ 钹;VO5 34.2 |-| 27 | 22.1–24.4 | 35.00–40.00 | **拉远到最宽的厨房全景**(全片唯一的大运动镜头 = 尺度揭示:原来整个厨房都在跳) | 全厨房同步起舞(每拍一次压扁拉伸,反拍甩手甩脚) | 全乐队升调重奏主题;每拍一个重音 |-| 28 | 25.1–26.3 | 40.00–42.92 | iris 收向杯子和方糖 | 收到最小,方糖的小手伸出来把 iris 拉上 | VO6 40.4;26.3 结束和弦 + 大号低音 |-| 29 | 27.1–28.4 | 43.33–47.0 | 结尾卡 | "THE END"、风格名、署名 | 乐队尾声短句 + 放映机片尾噪声 |-------## 六、旁白(Kokoro `bm_lewis`,1930 年代电台体育播音腔)--| id | 小节.拍 | 时间 | 台词 | 设计 |-|---|---|---|---|---|-| v1 | 4.4 | 6.25 | "Seven a.m., folks... and this coffee is *bitter!*" | 开场定调;"bitter" 落在弱音小号"哇-哇"之前 |-| v2 | 8.1 | 11.67 | "And they're off!" | 赛马实况的起跑口号,卡追逐第一拍 |-| v3 | 11.2 | 17.08 | "Up the china cabinet... what a climber!" | 在木琴上行上方,句子短、给音阶留空 |-| v4 | 15.2 | 23.75 | "Look out, folks... the drain!" | 危机的唯一一句 |-| v5 | 21.3 | 34.17 | "Well, I'll be... sweet as pie!" | 转折后第一句,情绪释放 |-| v6 | 25.2 | 40.42 | "Good night, folks!" | 电台节目的收尾套话,配 iris |--- 处理:语速 ~1.0;过"电台话筒"链(带通 250–4500 Hz + 轻度饱和 + 很短的房间混响),整片再过一次"光学声轨"老化。-- 每句 whisper 校对到 OK;字幕每句 ≥ 1.8 s 且不短于语音 + 0.6 s。-------## 七、音乐 cue map(原创,30 年代大乐队 / ragtime)--**配器**:跨步钢琴(左手低音-和弦交替)、单簧管、小号(开放 + 弱音"哇哇")、大号(oom-pah 低音)、班卓(二、四拍扫弦)、军鼓(刷子 + 鼓边 + 滚奏)、木琴(盘子)、木鱼 / 寺庙木鱼、滑哨、钹。**不用弦乐垫、不用现代合成器**。-**主题**:一个 4 小节的切分音主题(F 大调,跨步节奏),在片名、追逐、单簧管慢版、高潮升调(G 大调)四次出现。-**整体音色**:最后整条配乐过"1930 年代光学声轨":带宽 ~120 Hz–6 kHz、轻度磁带式饱和、底噪 + 爆豆噪声,和画面的胶片瑕疵统一。--| cue | 小节 | 时间 | 速度/调 | 配器与情绪 | 卡点 |-|---|---|---|---|---|---|-| C1 片名进行曲 | 1–3 | 0.00–5.00 | 144,F | 小号+单簧管齐奏主题,大号 oom-pah,军鼓;热闹 | 每拍军鼓重音 = 字母蹦;3.4 滑哨上行;4.1 钹 |-| C2 晨间慢拉格 | 4–7 | 5.00–11.67 | 144(慢半拍感),F | 班卓 + 大号二拍子 + 钢琴轻声,懒洋洋;闹钟铃 | 5.3/5.4/6.1 弱音小号"哇-哇-哇——";**7.1 全乐队停一拍**(钹闷音);7.3 "啵嘤";7.4 军鼓滚奏 |-| C3 追逐快步舞 | 8–10 | 11.67–16.67 | 144,F | 全乐队,跨步钢琴 + 单簧管快速跑句 + 小号领奏 | 步点木鱼/大号;**10.1–10.2 乐队停**,只剩嘀嗒;**10.3 "叮" + 齐奏重音** |-| C4 盘子木琴 | 11–14 | 16.67–23.33 | 144,F→B♭ | 编制变薄:钢琴 + 班卓 + 木琴,给"盘子音阶"让位 | 木琴八分音符上行(方糖脚步);大号四分音符(杯子脚步);13.3 滑哨下行;**14.1 镲 + 鼓过门** |-| C5 危急快板 | 15–17 | 23.33–28.33 | 144,d 小调 | 大号固定低音型、单簧管低音颤音与半音爬升、小号短刺、通鼓滚奏 | 17.1–17.4 长滑哨下行(胳膊伸长);**18.1 硬切到全静** |-| — 静音 | 18.1–18.2 | 28.33–29.17 | — | 只有放映机嗒嗒声 | — |-| C6 回弹 | 18.3–18.4 | 29.17–30.00 | — | 弹簧"啵嘤"+ 钢琴一个小和弦 | 18.3 收回 |-| C7 单簧管慢版 | 19–20 | 30.00–33.33 | 144(二分音符感),F | 单簧管独奏主题慢版 + 钢琴柱式和弦;温柔、有点落寞 | 20.3/20.4 木鱼两声(方糖起跑);**21.1 扑通后停一拍** |-| C8 甜蜜重奏 | 21–24 | 33.33–40.00 | 144,**G(升调)** | 21.3 木琴"叮"+ 钹 → 全乐队升调重奏主题,最满最响 | 每拍一个重音 = 全厨房压扁拉伸;反拍班卓 |-| C9 iris 尾句 | 25–26 | 40.00–43.33 | 144,G | 主题尾句,渐收 | **26.3 结束和弦 + 大号低音**(手把 iris 拉上) |-| C10 片尾 | 27–28 | 43.33–47.0 | 144,G | 钢琴 + 单簧管短尾声,最后一个长和弦 | 片尾卡出现在 27.1 |-------## 八、声音设计(拟音跟材质走)--| 声音 | 材质 / 做法 |-|---|---|-| 杯子的脚步 | 陶瓷 = 低音寺庙木鱼 + 一点瓷器"叮"的泛音;追逐时由大号音符代替 |-| 方糖的脚步 | 高音木鱼短促"嗒",外加极轻的沙沙(糖粒) |-| 苦 | 弱音小号"哇-哇-哇——"(乐队演奏,不是拟音)+ 杯身陶瓷打颤的"咯咯咯" |-| 烤面包机 | 拉杆"咔哒"、计时器"嘀嗒嘀嗒"、铃"叮"、弹簧"嘣" |-| 盘子 | 木琴(乐音);塌下来 = 一串瓷器碰撞 + 镲 |-| 汤勺滑梯 / 伸胳膊 | 滑哨(上行 / 下行 / 长下行) |-| 水 | 滴水"嘀"、漩涡"咕噜噜"低频循环、下水口"嘶溜"、跳进杯子"扑通" |-| 收回胳膊 | 弹簧"啵嘤"+ 卷尺"嗖" |-| 放映机 | 全片底下一层 24 Hz 的片门"嗒嗒"和电机嗡声(很轻);静音那一拍它是唯一的声音 |-| 全局 | 所有声音(除旁白外)最后一起过"光学声轨"老化;旁白单独过"电台话筒"链后再进总线 |-------## 九、画面与字幕设计--- **黑白灰阶**,只用 6 级灰:纸白 `#F1EEE6`、浅灰 `#C8C5BC`、中灰 `#9A978F`、深中灰 `#6B6963`、深灰 `#3B3A37`、墨黑 `#141312`。角色 = 平涂白/黑 + 一级灰阴影;背景 = 灰阶"水彩"(带纸纹噪声、边缘渐变),比角色低一档对比,保证角色永远跳出来。-- **线条**:墨黑,屏幕空间恒定 6 px;12fps 轻微 line boil(±1.2 px),像手工描线。-- **胶片后期**:4:3 圆角片门(1440×1080,圆角 28 px),片门抖动(低频 ±1.5 px + 偶尔跳一下),逐帧亮度闪烁 ±4%,竖直划痕 1–3 条、灰尘斑点、偶尔一根毛发,四角晕影;mux 颗粒 3。-- **动作**:角色拍两格;所有待机都是"每拍一次"的弹跳呼吸(压扁 5%);走路是弹跳走(每步一拍,身体上下 12 px);跑步双腿抡成圆圈 + 速度线;每个大动作都有反向预备和拉伸。-- **片名卡**:放射光芒(中灰/浅灰相间的 24 道光芒,缓慢旋转)+ 圆角双线边框 + 片名 "Coffee Cup Chase" 用胖的复古手写体 Shrikhand(墨色外描边 + 右下投影),每个字母每拍依次蹦跳;副标题 "A RUBBER HOSE CARTOON" 用装饰艺术体 Limelight。-- **字幕 = "播音员字卡"**:片门底部一块小黑牌,白色双线边框 + 四角小花饰,左侧一个 30 年代丝带话筒小图标,文字白色 IM Fell English SC(旧式铅字小型大写),像默片字卡缩小嵌进画面;进出场用 2 帧"跳帧"而不是淡入淡出(那个年代没有软淡入)。字卡位置避开角色的脸(按镜头单独设定:底部或顶部)。-- **结尾卡**:同片名卡的放射光芒,"THE END" 写在一块波浪形标牌上,下面两行小字:`RUBBER HOSE · 1930s CARTOON STYLE` 和 `LemoLab × Claude Opus 5.5`。--**时长说明**:风格说明建议 40 s。按"节奏以观众为准",片名卡(5 s)和结尾卡(3.7 s)需要读完,转折段"全静 + 放手 + 跳进去"需要 5 s 的呼吸,否则情绪转折会被吞掉;因此定为约 47 s(28 小节),仍在 30–60 s 范围内。-------## 十、制作后记:最终值与方案的差异--- **时长 50.0 s(30 小节)**:关卡 1 批准时要求"放手/犹豫两处宁可多给半小节",所以 G 段从 2 小节扩到 4 小节(19–22):19 放下拍拍转身、20 背影走开(慢、小起伏、蒸汽耷拉)、21 停步叹气 + 方糖看自己、22 停顿式犹豫(蹲—停—看背影—看杯口—再来一次—笑—小跳—纵身)。后面各段整体顺延一小节:扑通 23.1、甜 23.3、全厨房起舞 24–26、iris 27–28、片尾 29–30。-- **第一句旁白拆成两条**:v1a "Seven a.m., folks!"(闹钟响铃时)+ v1b "And boy, is this coffee bitter!"——原句 "is... bitter" 被 whisper 听成 "better";v1b 的 "bitter" 精确对齐切近景 6.1。两条合用一张字卡。-- **对比度**(关卡 1 反馈):墙面改中灰 `#8C8981`,角色白 `#FCFBF7`、墨 `#0E0D0C`,合成时 contrast(1.14)。-- **背景呼吸同相**:所有群演 `cos(2π·拍)`,每拍一个极端;高潮幅度 ×3,并整面背景绕地板线压扁拉伸。-- **位置调整**:烤面包机从 2250 挪到 1900(追逐横移更紧凑);舞蹈全景 z 0.58→0.78(角色太小)。-- **配乐**:fork 子 agent 用 VSCO 2 CE / VCSL 采样 + pluck 班卓完成,卡点全部按 story.js 计算。diff --git a/styles/rubber-hose/style.json b/styles/rubber-hose/style.jsonnew file mode 100644index 0000000..ac8e096--- /dev/null+++ b/styles/rubber-hose/style.json@@ -0,0 +1,18 @@+{+ "slug": "rubber-hose",+ "num": "26",+ "en": "1930s Rubber Hose Cartoon",+ "cn": "1930s 橡皮管卡通",+ "category_en": "Cartoon & Anime",+ "category_cn": "卡通与动画",+ "film": "Coffee Cup Chase",+ "line": "A coffee cup chases a runaway sugar cube around the kitchen, 1930s-cartoon style.",+ "line_cn": "一只咖啡杯满厨房追一块逃跑的方糖。",+ "uses": [+ "Food & drink",+ "Retro ads",+ "Kids"+ ],+ "frame_sec": 30.0,+ "dur": 50.0+}diff --git a/styles/scifi-toon/DEMO.md b/styles/scifi-toon/DEMO.mdnew file mode 100644index 0000000..5db9f7d--- /dev/null+++ b/styles/scifi-toon/DEMO.md@@ -0,0 +1,94 @@+# Sci-Fi Sitcom Toon — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Coffee Run* (57.5 s) · `scifi-toon.mp4` · source in [`demo/`](demo/)+++The original brief: a 30–60 second film in this style; the director decides premise, jokes, cast, shots, timing, music and sound and delivers without asking for approval.++## Story & structure++The lab is out of coffee. A jaded genius in a bathrobe crosses universes for a refill with his nervous sidekick, Gary; every universe has a worse coffee; the one they bring back is decaf. Tiny, mundane goal + absurdly large sci-fi means.++Ways we sketched to turn other topics into an errand (for reference only):+- Product launch → the genius crosses dimensions looking for a working version of the product; every universe has a worse one; the one they bring back has a twist.+- A lesson / explainer → the sidekick asks a simple question; each universe is a wrong answer taken literally; the last one is right but has a cost.+- A holiday / event → "we're out of X for the party" → universes of increasingly wrong X.++**Beat sheet of the demo (57.5 s):**+1. **Cold open (8–12 s)**: the mundane problem, shown not told (an empty pot, one last drip). The sidekick over-explains, the genius cuts him off with one word. No music, no title yet.+2. **Portal + title slam (2–3 s)** on a musical downbeat.+3. **Jump 1 (6–8 s)**, jelly world: slow: arrive, try, reveal the wrongness in an insert close-up, **cut the music**, reaction shot, one-word rejection.+4. **Jump 2 (6–8 s)**, mug world: faster and worse; the sidekick loses it; same rejection word.+5. **Montage (3 × 1 s)**: teeth, pigeon and clone worlds; one second per universe, same word each time, cuts on the beat.+6. **The break (4–5 s)**: a universe that is *suspiciously normal*. The pattern breaks; the calm is the joke.+7. **Home (12–16 s)**: relief → the reversal (it's decaf) → **2+ seconds of dead silence** → the genius reveals his value system in one line → button.+8. **Button**: callback to the opening line so the story loops.+9. **End card (4–5 s).**++## Shots++| Beat | Camera |+|---|---|+| Cold open | Static insert close-up of the empty coffee pot, a slow push |+| Dialogue | Medium two-shot; **hard cut to a close-up on an interruption** |+| Reveal of the absurd | Insert extreme close-up, then cut to a reaction close-up |+| Panic | Tight close-up with a short camera shake on the key word |+| Jumps | "Rush" zoom into the portal → full-screen swirl wipe → next world opens from a swirl |+| Montage | Same framing in every world (duo left, creature right) so only the world changes |+| Cold silence | Two-shot of the standoff, very slow push-in, nothing moves but the boil |+| Button / ending | Wide shot so the portal and both characters are in frame; the end card follows |++## Score structure++- 120 BPM so cuts snap to half-second beats. Theremin lead over analog bass, 16th-note square arpeggio and a retro drum machine. Main theme in D minor, a chromatic descent D–A–B♭–A–E–F–E–E♭–D.+- **One motif per universe**, each a separate cue whose **first beat is the cut**: bouncy tuba + wobbly lead + slide whistle (jelly), brushed swing jazz with vibes (mug), 1-second stingers over a four-on-the-floor pulse (montage), elevator bossa with Karplus–Strong nylon guitar (the "normal" world), warm Rhodes + theremin "aah" (relief), rising tremolo strings (panic).+- Silences: music (and reverb tails) hard-cut on the jelly reveal insert and for the 2+ s cold pause after "decaf"; only fluorescent hum + clock ticks remain.+- Foley used: portal open/hum/close, swirl whoosh per wipe, pop/boing on spit-out and landing, glorp/squish/blink for the slime creature, straw slurp, teeth chomp, pigeon coo, shop bell, bubble bloops, blink "blip", remote click-beep.+- Voices: deadpan genius = Kokoro `am_onyx`, speed 0.82–0.9, light saturation + 180 Hz bump; sidekick = Kokoro `am_eric`, speed 1.1–1.15, presence boost; a tiny creature = Kokoro `af_sky` pitched +7 semitones for one or two words. Cast by generating test lines and measuring median f0 / pitch variance. Music ducked ~−7 dB under dialogue; master −14 LUFS.+- The final bass note sits on D2: a sustained D1 (37 Hz) was only rumble on laptop speakers.++## Palette & props++- Line: `#1b1422`, 7 px characters and props.+- Home lab: sage green `#a7c3b1`, olive floor, warm wood, one orange accent.+- Jelly world: magenta sky bands `#ff4f9a→#ff9bcb`, lime jelly `#b8f03c`, cyan `#52e0e0`.+- Mug world: orange sky `#ff7a2f→#ffb862`, teal hills `#2b9c98`, cream.+- Teeth world: red `#c3122f`, gum pink `#ff8fa6`, tooth white. Pigeon world: slate blue `#5f78a8`, grays. Clone world: inverted purple `#3b1f66` + yellow `#e8d84a`.+- "Normal" world: deliberately bland beige `#f1e3c6` and brown.+- Cast: the genius in a bathrobe + fuzzy slippers + goggles; the sidekick Gary in a bike helmet + giant round glasses.+- The portal: a vertical oval (x-scale ~0.74), lumpy goo rim `#3fd93a` with a 7–8 px outline, 5 spiral arms alternating `#b8ff5a`/`#21b33c` rotating **on ones**, a pale core, orbiting sparks, drips off the bottom, a flat green wash over the scene while open; ~12 % overshoot, back-ease 0.32 s. Opened with a remote.+- The universe readout: VT323 tag top-left, typed in, coloured per world.+- Coffee: a latte-art heart, drips over the rim and steam (a plain brown blob read as a potato).++## Titles & end card++- Title: a 1950s atomic-age TV title: chunky block letters (Bungee) in cream with a hard magenta offset shadow and thick ink outline, wrapped by a tilted cyan orbit ring with a coffee bean flying around it and a few twinkling four-point stars; popped in on 12 fps steps on the music downbeat.+- End card: dark purple, a slow dimmed portal, title, style name in the terminal font, "LemoLab × Claude Opus 5.5", credits; a tiny post-credits gag in the portal. This sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/scifi-toon/demo/+ toon.js vector engine: matrix stack, screen-space boil, constant line width, flat shading+ chars.js the cast (parametric eyes, mouths, hands, noodle limbs) + props+ worlds.js one function per universe + creatures + the portal+ story.js single source of truth: VO start times, shots, wipes, tags, key beats, music cues+ main.js acting per shot, cameras, wipes, tags, subtitles, title, end card, window.EV+ lines.json script (tts text, subtitle text, speaker, voice, pitch, cut)+ voice.py per-character processing + lip-sync envelopes asr.py padded whisper check+ music/score.py synthesized score from the cue list mix.py foley + voices + ducking + ambience+ srt.mjs build.sh sheet.sh (contact sheets) strip.sh (consecutive-frame strips) levels.py (stem meters)+```++1. Write the treatment. Cast voices by generating test lines and measuring median f0 / pitch variance.+2. `core/tts/tts.py lines.json out/raw` → `voice.py` → `asr.py` until every line passes.+3. Put VO times, shots and cues in `story.js`; block shots in `main.js`; review with `sheet.sh` (1 frame/s) and `strip.sh` (consecutive frames), at least two rounds.+4. `core/render/events.mjs` → `music/score.py` → `mix.py` (check `levels.py` and a spectrogram).+5. `sh demo/build.sh` reproduces everything: TTS → voices → events → score → mix → SRT → render (1380 frames ≈ 15 s with 4 workers) → mux at −14 LUFS. Full rebuild ≈ 1 minute on an M-series Mac.++Pitfalls tied to this demo:+- Kokoro + whisper: the name "Pim" in a deep voice read as "Pam"; "Gary" worked. "b-broken" was read as "be broken"; "buh, buh-broken", "Wh, wh, why" worked. "decaf" came out "D-cuff"; "dee-caf" was reliable.+- A springy portal (lib `spring`) overshot to ~135 % and swallowed the actors.+- Creatures placed behind the shop counter vanished; they were moved so face and upper body show.diff --git a/styles/scifi-toon/STYLE.md b/styles/scifi-toon/STYLE.mdindex 8b9ffc0..39b2a41 100644--- a/styles/scifi-toon/STYLE.md+++ b/styles/scifi-toon/STYLE.md@@ -1,136 +1,119 @@# Sci-Fi Sitcom Toon — Style Prompt-> Adult-animation sci-fi sitcom: thick boiling outlines, flat color, a jaded genius and a nervous sidekick, a glowing green portal, and one color palette per parallel universe.-> Demo: *Coffee Run* (57.5 s) · `scifi-toon.mp4` · source in `demo/`-> Inspired by adult-swim-era sci-fi sitcom cartoons. Borrow the *grammar*, never the characters.+> Adult-animation sci-fi sitcom: thick boiling outlines, flat colour, a duo whose reactions don't match, a glowing portal, and one palette per world.+> References (grammar only): adult-swim-era sci-fi sitcom cartoons (dialogue-driven comedy, reaction close-ups, boiling line, sci-fi hardware as household junk). Borrow the *grammar*, never the characters.-You are directing a 30–60 second film in the **Sci-Fi Sitcom Toon** style. The user gives you a topic (and maybe a story). You decide everything else — premise, jokes, cast, shots, timing, music, sound — and deliver a finished film without asking for approval. Follow this guide.+## 1. Essence, and what it is not------## 1. What this style is+Hand-drawn-looking 2D TV animation for adults: **uniform thick dark outlines that boil**, **flat fills with hard-edged shadow shapes (no gradients)**, **big white eyes with tiny pupils**, **elastic mouths**, grotesque-but-cute creatures, and sci-fi hardware treated like household junk. The comedy is **dialogue-driven**: improvised-feeling talk, interruptions, awkward pauses, reaction shots, escalation, and a last-second reversal. The genre's engine is **a tiny, mundane goal pursued with absurdly large sci-fi means**: whoever could solve anything uses it for something petty, and someone else pays the emotional price.-Hand-drawn-looking 2D TV animation for adults: **uniform thick black outlines that boil**, **flat fills with hard-edged shadow shapes (no gradients)**, **big white eyes with tiny pupils**, **elastic mouths**, grotesque-but-cute aliens, and sci-fi hardware treated like household junk. The comedy is **dialogue-driven**: improvised-feeling talk, interruptions, awkward pauses, reaction shots, escalation, and a last-second reversal.+Not a kids' cartoon (dry humour, long pauses), not anime (no sparkly eyes), not a vector explainer (lines boil).**Copyright red lines (non-negotiable):**-- Never reproduce any existing show's characters, silhouettes or color combos (e.g. a spiky-blue-haired old man in a lab coat + a kid in a yellow shirt), names, catchphrases, burp gags, logos, or the look of any existing portal gun.+- Never reproduce any existing show's characters, silhouettes or colour combos (e.g. a spiky-blue-haired old man in a lab coat + a kid in a yellow shirt), names, catchphrases, burp gags, logos, or the look of any existing portal gun.- Invent your own cast, props and portal device. Never write the source show's name in the film or docs; one line "inspired by adult-swim-era sci-fi sitcom cartoons" is enough.-## 2. Story: what fits this style--The engine of the genre is **a tiny, mundane goal + absurdly large sci-fi means**. The genius could solve anything and uses it for something petty; the sidekick pays the emotional price.--| Native power | Story use |-|---|---|-| **Parallel universes** | Each jump = new palette, new music motif, new creature. The audience reads "we jumped" from color and sound alone. |-| **Gross-cute creatures** | Every world gets one creature that is disgusting *and* adorable. Keep it non-verbal (sound effects), so the film stays a two-hander. |-| **Duo contrast** | Deadpan, low-energy genius vs. panicking sidekick. The joke is in the *difference* between their reactions. |-| **Portal as grammar** | The glowing portal is the only thing that glows, and every scene change goes through it. |-| **Dialogue comedy** | Interruptions, stutters, overlaps, flat one-word answers, silence. |--**Adapting any topic** — turn it into an errand:-- Product launch → the genius crosses dimensions looking for a working version of the product; every universe has a worse one; the one they bring back has a twist.-- A lesson / explainer → the sidekick asks a simple question; each universe is a wrong answer taken literally; the last one is right but has a cost.-- A holiday / event → "we're out of X for the party" → universes of increasingly wrong X.--**Beat sheet for 45–60 s** (proven in the demo):-1. **Cold open (8–12 s)** — the mundane problem, shown not told (an empty pot, one last drip). Sidekick over-explains, genius cuts him off with one word. No music, no title yet.-2. **Portal + title slam (2–3 s)** on a musical downbeat.-3. **Jump 1 (6–8 s)** — slow: arrive, try, reveal the wrongness in an insert close-up, **cut the music**, reaction shot, one-word rejection.-4. **Jump 2 (6–8 s)** — faster and worse; the sidekick loses it; same rejection word.-5. **Montage (3 × 1 s)** — rule of three becomes machine-gun: one second per universe, same word each time, cuts on the beat.-6. **The break (4–5 s)** — a universe that is *suspiciously normal*. The pattern breaks; the calm is the joke.-7. **Home (12–16 s)** — relief → the reversal (what they brought back is wrong) → **2+ seconds of dead silence** → the genius reveals his value system in one line → button.-8. **Button** — call back the opening line so the story loops.-9. **End card (4–5 s).**--Rule of thumb: every absurd image must be followed by a **reaction close-up**. The laugh lives on the face, not on the monster.--## 3. Visual language--- **Line**: near-black `#1b1422`, **7 px** for characters and props, 4–6 px for background detail, round joins. **Line width is constant in screen space** — close-ups are "redrawn" at the same weight, never scaled up. (Implementation: transform points to screen, then stroke with an identity transform.)-- **Line boil**: resample every outline in screen space (~7 px steps) and displace along the normal with low-frequency noise, amplitude ~1.7 px; cycle **3 boil drawings at 12 fps**. Everything boils, including held poses and backgrounds — a still frame is never dead.-- **Fill**: flat colors only. Shadows are hard-edged darker shapes clipped inside the fill (one per form, on the side away from the light). Glows are 1–2 flat translucent rings, not gradients. Skies are **flat color bands**, not gradients.-- **Faces**: big white eyes (touching or overlapping in 3/4 view), pupils 4–5 px dots, heavy upper lids for the deadpan character, eye bags, stubble dots. Mouths are parametric (open, width, corner curl, skew) with dark interior, teeth strip and tongue. Brows carry most of the emotion.-- **Cast design**: silhouettes must read in black. Give each lead one absurd costume idea (demo: genius in a bathrobe + fuzzy slippers + goggles; sidekick in a bike helmet + giant round glasses). Avoid white lab coat + spiky hair.-- **Palettes — one per universe**, 3–5 colors each, maximally different from the previous world:- - Home lab: sage green `#a7c3b1`, olive floor, warm wood, one orange accent.- - Jelly world: magenta sky bands `#ff4f9a→#ff9bcb`, lime jelly `#b8f03c`, cyan `#52e0e0`.- - Mug world: orange sky `#ff7a2f→#ffb862`, teal hills `#2b9c98`, cream.- - Teeth world: red `#c3122f`, gum pink `#ff8fa6`, tooth white. Pigeon world: slate blue `#5f78a8`, grays. Clone world: inverted purple `#3b1f66` + yellow `#e8d84a`.- - "Normal" world: deliberately bland beige `#f1e3c6` and brown.-- **The portal**: a vertical oval (x-scale ~0.74), lumpy goo rim `#3fd93a` with a 7–8 px outline, 5 spiral arms alternating `#b8ff5a`/`#21b33c` rotating **on ones**, a pale core, orbiting sparks, drips off the bottom, a flat green wash over the scene while it's open. Open with a ~12 % overshoot (back-ease 0.32 s) — springier overshoot covers the actors.-- **Screen graphics**: a retro-terminal "universe readout" tag top-left (VT323, typed in, colored per world, faster typing for 1-second shots); title in a fat rounded display font with goo drips.--## 4. Motion language--- **Characters on twos (12 fps)**: poses, mouths, blinks, walk cycles and boil all step at 12 fps. **Camera moves, portal swirl, flying props and screen wipes on ones (24 fps)**.-- **Acting over moving**: most comedy is held poses with small changes — an eye twitch, pupils sliding without the head moving, a gulp, sweat drops. Add idle life: breathing (±1 % vertical squash) and a head nod driven by speech loudness.-- **Anticipation → action**: dip before raising the remote; wind the arm back before the toss.-- **Squash & stretch** on landings (decaying cosine squash ~22 %), stretch while flying out of portals, "sucked in" = scale toward the portal center while stretching.-- **Lip-sync from audio**: per line, compute RMS (open) and spectral centroid (wide vs. round) at 24 Hz; sample at the 12 fps drawing time. Exaggerate for screams (scale the mouth up 1.5–1.9×).-- **Nervous character jitter**: 12 fps random offset of 3–6 px plus trembling pupils; escalate amplitude with panic.--## 5. Camera language--| Beat | Camera |-|---|---|-| Cold open | Static insert close-up of the problem object, a slow push |-| Dialogue | Medium two-shot; **hard cut to a close-up on an interruption** |-| Reveal of the absurd | Insert extreme close-up, then cut to a reaction close-up |-| Panic | Tight close-up with a short camera shake on the key word |-| Jumps | "Rush" zoom into the portal → full-screen swirl wipe → next world opens from a swirl |-| Montage | Same framing in every world (duo left, creature right) so only the world changes |-| Cold silence | Two-shot of the standoff, very slow push-in, nothing moves but the boil |-| Button | Wide shot so the portal and both characters are in frame |--Keep faces out of the subtitle band (bottom 170 px). Keep the universe tag clear of faces.--## 6. Sound--- **Score** (synthesized; no samples needed): 120 BPM so cuts snap to half-second beats. A **theremin** lead (sine + a little 2nd/3rd harmonic, legato portamento ~70 ms, vibrato fading in 150 ms after each note onset, spring reverb) over analog bass, 16th-note square arpeggio and a retro drum machine. Minor key for the main theme (demo: chromatic descent D–A–B♭–A–E–F–E–E♭–D).-- **One motif per universe**, written as separate cues whose **first beat is the cut**: bouncy tuba + wobbly lead + slide whistle (jelly), brushed swing jazz with vibes (mug), 1-second stingers over a four-on-the-floor pulse (montage), elevator bossa with Karplus–Strong nylon guitar (the "normal" world), warm Rhodes + theremin "aah" (relief), rising tremolo strings (panic).-- **Silence is the punchline**: hard-cut the music (including reverb tails) on the reveal insert and for the cold pause. Leave only room tone: fluorescent hum + clock ticks.-- **Foley** (synthesized): portal open (sub boom + down-sweeping noise + rising swirl), portal hum, portal close "fwump", swirl whoosh on every wipe, cartoon pop/boing on spit-out and landing, wet glorp/squish/blink for slime creatures, straw slurp, teeth chomp, pigeon coo, shop bell, bubble bloops, cartoon blink "blip", remote click-beep.-- **Voices**: two-hander. Deadpan genius = a low, flat voice (Kokoro `am_onyx`, speed 0.82–0.9, light saturation + 180 Hz bump for gravel). Sidekick = higher, faster (Kokoro `am_eric`, speed 1.1–1.15, presence boost). Creatures non-verbal; a tiny creature can say one or two words (Kokoro `af_sky` pitched +7 semitones). Compress, RMS-match, short early reflections so voices sit in the room. Duck music ~−7 dB under dialogue. Master −14 LUFS.--## 7. Subtitles & titles--- **Subtitles**: bottom center, **Baloo 2 ExtraBold 50 px, white with an 11 px black outline** (they look like the cartoon's own captions), with a small **speaker pill** in the character's color (boiling outline) on the left. Lines over ~1300 px wrap to two lines. Overlapping lines stack; the older one dims to 70 %.-- **Timing**: on screen for `max(audio + 0.35 s, 0.9 s + chars / 17)`; clip at world changes and **before a silent beat** so the silence plays on a clean screen.-- **Title**: a 1950s atomic-age TV title — chunky block letters (Bungee) in cream with a hard magenta offset shadow and thick ink outline, wrapped by a tilted cyan orbit ring with a coffee bean flying around it and a few twinkling four-point stars; popped in on 12 fps steps on the music downbeat. **Avoid acid green, slime drips and wobbly bubble lettering** — that combination reads as a specific show's logo.-- **End card**: dark purple, a slow dimmed portal, title, style name in the terminal font, "LemoLab × Claude Opus 5.5", credits; a tiny post-credits gag in the portal is welcome.--## 8. Pitfalls we hit--- Kokoro + whisper: the name "Pim" in a deep voice reads as "Pam" — pick names that survive a low voice (Gary worked). Hyphen stutters ("b-broken") are read as "be broken"; write stutters as syllables ("buh, buh-broken", "Wh, wh, why"). "decaf" can come out "D-cuff"; "dee-caf" is reliable.-- Whisper mis-hears very short clips unless you pad them with ~0.6 s of silence before transcribing.-- To make an interruption real, generate the interrupted line *longer* than needed and truncate the audio where the other character cuts in.-- A springy portal (lib `spring`) overshoots to ~135 % and swallows the actors; use a gentle back-ease.-- A brown blob in a cup reads as a potato. Coffee needs a latte-art heart, drips over the rim and steam.-- Characters placed behind counters vanish — check that creatures behind furniture still show their face and upper body.-- Synth cymbals made of square waves alias into harsh 8–20 kHz fizz and beep-like lines on a spectrogram; use band-passed noise plus a little FM.-- A sustained bass at D1 (37 Hz) is just rumble on laptop speakers; finish on D2.-- When a music cue is cut, cut the reverb tail too, or the "dead silence" isn't dead.-- Contact sheets from `ffmpeg fps=1` are offset by up to half a second — don't misdiagnose a shot boundary.--## 9. Production recipe (this repo)--```-styles/scifi-toon/demo/- toon.js vector engine: matrix stack, screen-space boil, constant line width, flat shading- chars.js the cast (parametric eyes, mouths, hands, noodle limbs) + props- worlds.js one function per universe + creatures + the portal- story.js single source of truth: VO start times, shots, wipes, tags, key beats, music cues- main.js acting per shot, cameras, wipes, tags, subtitles, title, end card, window.EV- lines.json script (tts text, subtitle text, speaker, voice, pitch, cut)- voice.py per-character processing + lip-sync envelopes asr.py padded whisper check- music/score.py synthesized score from the cue list mix.py foley + voices + ducking + ambience- srt.mjs build.sh sheet.sh (contact sheets) strip.sh (consecutive-frame strips) levels.py (stem meters)-```--1. Write the treatment. Cast voices by generating test lines and measuring median f0 / pitch variance.-2. `core/tts/tts.py lines.json out/raw` → `voice.py` → `asr.py` until every line passes.-3. Put VO times, shots and cues in `story.js`; block shots in `main.js`; review with `sheet.sh` (1 frame/s) and `strip.sh` (consecutive frames) — at least two rounds.-4. `core/render/events.mjs` → `music/score.py` → `mix.py` (check `levels.py` and a spectrogram).-5. `sh demo/build.sh` reproduces everything: TTS → voices → events → score → mix → SRT → render (1380 frames ≈ 15 s with 4 workers) → mux at −14 LUFS. Full rebuild ≈ 1 minute on an M-series Mac.+## 2. Materials & rendering++- **Line**: near-black (a slightly purple black reads best), ~7 px for characters and props, 4–6 px for background detail, round joins. **Line width is constant in screen space**: close-ups are "redrawn" at the same weight, never scaled up (transform points to screen, then stroke with an identity transform).+- **Line boil**: resample every outline in screen space (~7 px steps) and displace along the normal with low-frequency noise, amplitude ~1.7 px; cycle **3 boil drawings at 12 fps**. Everything boils, including held poses and backgrounds: a still frame is never dead.+- **Fill**: flat colours only. Shadows are hard-edged darker shapes clipped inside the fill (one per form, away from the light). Glows are 1–2 flat translucent rings, not gradients. Skies are **flat colour bands**.+- **Faces**: big white eyes (touching in 3/4 view), 4–5 px pupils, heavy lids for deadpan, eye bags. Parametric mouths (open, width, curl, skew) with interior, teeth, tongue. Brows carry the emotion.+- **Cast design**: silhouettes must read in solid black. Give each lead one absurd costume idea. Avoid white lab coat + spiky hair.+- **Creatures**: every world may get one creature that is disgusting *and* adorable; keep it non-verbal (sound effects) so the film stays a dialogue between the leads. Check that anything behind furniture still shows face and upper body.+- **The portal** (or whatever device moves between worlds): the only thing that glows. A lumpy rim with a thick outline, rotating spiral arms, a pale core, orbiting sparks, drips, a flat translucent wash over the scene while it's open. Open with a gentle overshoot (~12 %, back-ease ~0.3 s); a springy overshoot covers the actors.+- **Screen graphics**: a retro-terminal tag (VT323) typed in, coloured per world.++## 3. Colour logic++- **One palette per world**, 3–5 colours, maximally different from the previous world in hue *and* value, so the audience reads "we jumped" from colour alone.+- Line colour and eye white never change between worlds; everything else may.+- Glow colour belongs to the travel device only: nothing else in any world may use it.+- A deliberately bland palette (beige, brown) is itself a joke: use it for the world that is "suspiciously normal".+- Examples of a sequence of worlds: sage lab → magenta and lime jelly → orange and teal; or grey office → ultraviolet and gold → mint and coral → beige. Our demo's values are in DEMO.md.++## 4. Type & subtitles++- **Subtitles**: bottom centre, a rounded heavy sans (Baloo 2 ExtraBold ~50 px), white with a ~11 px black outline, so they look like the cartoon's own captions, with a small **speaker pill** in the character's colour (boiling outline) on the left. Lines over ~1300 px wrap to two lines. Overlapping lines stack; the older one dims to ~70 %.+- **Timing**: hold ≥ max(1.8 s, speech + 0.6 s) for narration; for rapid dialogue, `max(audio + 0.35 s, 0.9 s + chars / 17)`. Clip at world changes and **before a silent beat**, so the silence plays on a clean screen.+- **Title**: chunky display lettering popped in on 12 fps steps on a musical hit. Choose a period look that is not the source genre's logo: **avoid acid green, slime drips and wobbly bubble lettering** together, which reads as a specific show.+- Keep faces out of the subtitle band (bottom ~170 px) and the world tag clear of faces.++## 5. Motion quality++- **Characters on twos (12 fps)**: poses, mouths, blinks, walk cycles and boil step at 12 fps. **Camera moves, portal swirl, flying props and wipes on ones (24 fps)**.+- **Acting over moving**: held poses with small changes (eye twitch, pupils sliding, a gulp, sweat drops). Idle life: breathing (±1 % squash), a nod driven by speech loudness.+- **Anticipation → action** before every gesture.+- **Squash & stretch** on landings (decaying cosine squash ~22 %), stretch while flying out of a portal; "sucked in" = scale toward the portal centre while stretching.+- **Lip-sync from audio**: per line, RMS (open) and spectral centroid (wide vs round) at 24 Hz, sampled at the 12 fps drawing time. Exaggerate for screams (mouth ×1.5–1.9).+- **Nervous jitter**: a 12 fps random offset of 3–6 px plus trembling pupils; amplitude grows with panic.+- What never moves in a cold pause: everything but the boil.++## 6. Camera grammar++A vocabulary, not a route. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Medium two-shot | the relationship; who reacts how | dialogue; a standoff; a deal |+| Hard cut to a close-up | an interruption, a face breaking | the cut-off line; the realisation; a lie |+| Insert extreme close-up of an object | the absurd detail | a reveal; the problem itself; the wrong result |+| Reaction close-up | the laugh lives on the face | after every absurd image |+| Tight close-up + short shake on one word | panic | the key word; an alarm; a scream |+| Rush zoom into the portal → swirl wipe | leaving a world | any jump between places, times or versions |+| Same framing repeated across worlds | only the world changes | a montage; a comparison; a list |+| Very slow push-in on a still two-shot | a cold silence | the pause after a reversal; a confession |+| Wide with the device and both leads in frame | the whole situation at once | a callback; a trap; a fresh start |+| Over-the-shoulder onto a screen | reading bad news | a message; a readout |+| Whip pan between two faces | overlapping argument | a fight; a bet; a double take |++Rule: every absurd image is followed by a **reaction close-up**. Transitions go through the travel device (swirl wipes) or hard cuts; no dissolves.++## 7. Sound palette++- **Synthesized score, no samples needed.** A **theremin**-like lead (sine + a little 2nd/3rd harmonic, legato portamento ~70 ms, vibrato fading in ~150 ms after each onset, spring reverb) over analog bass, a square-wave arpeggio and a retro drum machine. Minor modes and chromatic lines suit the main theme.+- **Genre cues per world** (options): surf guitar; polka accordion; toy-piano lullaby; elevator bossa (Karplus–Strong nylon guitar); brushed swing with vibes; tuba + slide whistle; warm Rhodes + a vocal "aah"; tremolo strings for panic.+- **Techniques (options)**: a cue's first beat is the cut; a tempo that snaps cuts to a grid; rule of three becoming machine-gun (same stinger, shorter each time).+- **Silence is the punchline**: hard-cut the music, reverb tails included, on a reveal and for a cold pause. Leave only room tone (fluorescent hum, a clock tick, a fridge).+- **Foley (synthesized)**: portal open (sub boom + down-swept noise + rising swirl), hum, close "fwump", swirl whoosh per wipe, pop/boing, wet glorp/squish, slurp, chomp, blink "blip", click-beep, kazoo sting, squeaky toy.+- **Voices**: a two-hander with contrasting voices: low, flat and slow for the deadpan lead (light saturation + a ~180 Hz bump for gravel); higher and faster for the nervous one (presence boost). A tiny creature may say one or two words, pitched up. Compress, RMS-match, add short early reflections so voices sit in the room. Duck music ~−7 dB under dialogue. Master −14 LUFS.++## 8. Native moves++A menu: use the ones your story needs.++- **Parallel worlds.** Each jump = new palette, new cue, new creature. *Fits content like:* versions of a product; careers you could have had; the same city in five eras.+- **Duo contrast.** Deadpan vs panic: the joke is in the difference between reactions. *Fits content like:* a veteran and a new hire; a parent and a teenager; an AI and its user.+- **Rule of three → machine-gun.** Two slow wrong answers, then one-second worlds cut on the beat with the same rejection word. *Fits content like:* failed prototypes; bad date ideas; tax forms.+- **The suspiciously normal world.** The pattern breaks; the calm is the joke. *Fits content like:* the one boring answer that works; a quiet office after chaos; the real customer.+- **Dead-air reversal.** A long silence after the twist, then one line revealing a character's values. *Fits content like:* a price reveal; a fine print clause; a gift that wasn't wanted.+- **Hardware as junk.** World-bending tech used for a petty chore. *Fits content like:* a quantum computer used for a grocery list; a rocket to deliver a sandwich; a time machine to fix a typo.+- **Callback button.** The last line repeats the first so the story loops. *Fits content like:* a catchphrase of a brand; a morning routine; a running complaint.++## 9. Pitfalls of the medium++- TTS reads hyphen stutters as words: write syllables ("buh, buh-broken"); respell words it mangles; pick names that survive a low voice.+- Whisper mis-hears very short clips unless padded with ~0.6 s of silence.+- A real interruption: generate the interrupted line *longer* than needed and truncate the audio where the other voice cuts in.+- A springy overshoot swallows the actors: gentle back-ease.+- Food and liquids need cues (surface detail, drips, steam) or they read as other objects.+- Square-wave synth cymbals alias into harsh 8–20 kHz fizz: band-passed noise plus a little FM.+- A sustained bass below ~40 Hz is rumble on laptop speakers: end an octave higher.+- A cut music cue without its reverb tail cut is not dead silence.+- `ffmpeg fps=1` contact sheets are offset up to 0.5 s: don't misdiagnose a shot boundary.++## 10. Engine++In `demo/`: `toon.js` (vector engine: matrix stack, screen-space boil, constant line width, flat shading), `chars.js` (parametric eyes, mouths, hands, noodle limbs), `worlds.js` (one function per world, creatures, the portal), `voice.py` (per-character processing + lip-sync envelopes), `asr.py` (padded whisper check), `music/score.py` (synthesized score from a cue list), `levels.py` (stem meters), `sheet.sh` / `strip.sh` (contact sheets, consecutive-frame strips). New shapes: build them with `toon.js` in world space; the stroke goes through the screen-space boil at constant weight.++## 11. Variation space++You decide the premise, the cast, the worlds, the jokes, the opening, the ending, the camera path, the pacing and the palettes. All far from our demo:++- Structures: **one world, many clocks** (the duo stays home and a device skips them through times of day, each time worse); **the job interview** (a panel interviews candidates from other worlds, each a different genre cue); **the tech-support call** (split screen between two worlds, one voice guiding the other through a disaster).+- Openings: **mid-disaster** (the portal is already open and something is coming through); **the instruction manual** (a terminal readout explains the device before we see anyone); **the wrong world** (we start in the absurd world and only later see home).+- Endings: **stuck elsewhere** (the device breaks and they settle in, happily); **the audience** (a creature from one world watches the whole film on a screen and rates it); **the cost** (a quiet final shot of what the errand cost someone, no joke).++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/scifi-toon/TREATMENT.md b/styles/scifi-toon/TREATMENT.mddeleted file mode 100644index a78614e..0000000--- a/styles/scifi-toon/TREATMENT.md+++ /dev/null@@ -1,154 +0,0 @@-# Sci-Fi Sitcom Toon · 导演方案(Treatment)--**片名** *Coffee Run*-**时长** 约 56 秒 | **画幅** 1920×1080 | **帧率** 24fps 输出;角色按 12fps(拍两格)步进,镜头、传送门漩涡、特效每帧平滑-**一句话** 早上 6:58,咖啡机坏了。厌世天才科学家 Vask 用一个改装的车库遥控器打开传送门,带着紧张的助手 Gary 穿过一个比一个离谱的平行宇宙,只为一杯咖啡——终于在一个"完全正常"的宇宙买到了,回家喝了一口,咖啡跟他打招呼。-**主题** 一个天才为了最小的需求(一杯咖啡)动用最大的科技,最后在意的也不是"咖啡是活的",而是"它是低因的"。-**风格出处** inspired by adult-swim-era sci-fi sitcom cartoons(只借画风与喜剧语言,角色、道具、台词全部原创)-------## 一、为什么选这个内容--风格 demo 要讲**只有这种风格才讲得好的故事**。成人向科幻情景喜剧卡通有五个天生的能力,这个故事每一个都用上:--| 风格的天生能力 | 故事里怎么用 |-|---|---|-| **平行宇宙 = 一宇宙一套配色** | 每跳一次门,整个画面的调色板、音乐动机、拟音全换:果冻宇宙(洋红/荧光绿)、马克杯宇宙(橙/青)、牙齿、鸽子、全是 Vask 的宇宙,最后是米色的"正常"宇宙 |-| **荒诞又恶心又可爱的外星生物** | 独眼果冻店员、端着吸管喝小人的马克杯、会说 "Hi!" 的咖啡 |-| **厌世天才 + 紧张搭档的双人喜剧** | Vask 永远半睁眼、平声;Gary 结巴、尖叫、被打断。笑点来自两人的反差 |-| **即兴感对白与反应镜头** | 打断("Gary.")、抢话("Nope!" 叠在 "Nope." 上)、尴尬停顿、反应特写 |-| **粗黑描边 + 线条抖动 + 发光传送门** | 全片所有线条都在 12fps 下 boil;传送门是唯一"发光"的东西,是每一场的转场装置 |--这个主题天然是**三次法则 + 荒诞升级 + 反转**的结构:Nope(慢)→ Nope(快)→ Nope-Nope-Nope(机关枪蒙太奇)→ 终于"正常"(打破模式)→ 回家的反转 → 用开场台词收尾(循环)。-------## 二、角色(全部原创)--| 角色 | 造型 | 声线 |-|---|---|---|-| **Dr. Vask** 厌世天才 | 高个、驼背、蛋形大光头只剩一根卷毛;浓一字眉、永远半睁的大眼(小瞳孔)、黑眼圈、胡茬点;**早上穿着青绿色浴袍和条纹睡裤、粉色毛拖鞋**,额头顶着护目镜;手里是写着 GENIUS 的空马克杯和一个**改装车库门遥控器**(传送门装置:灰盒子 + 大红按钮 + 弯天线 + 胶带贴的 "DO NOT" 标签) | Kokoro `am_onyx`,压低、慢、平;混音里加轻度饱和做出沙哑感 |-| **Gary** 紧张搭档 | 矮、圆、棕色皮肤;**巨大的圆眼镜**(把眼睛放得很大,瞳孔发抖)、**随时戴着的橙红色自行车头盔**、淡紫色毛背心、口袋里插满笔;紧张时出汗滴、身体抖 | Kokoro `am_eric`,语速快,微升调 |-| **The Coffee**(片尾字幕写作 "Decaf") | 纸杯里的一坨棕色咖啡,冒出两只大眼睛和一张小嘴,会挥两只小细手 | Kokoro `af_sky`,升调 7 个半音,像很小的生物 |-| 客串外星人 | 独眼果冻店员(粉色、眼柄、会滴)、马克杯族(杯身上长脸,用吸管喝杯里的小人)、会嚼的大臼齿、打领带的鸽子店员、一整家店的 Vask、"正常"宇宙里笑容过于标准的店员阿姨 | 只发声效,不说台词(保证是双人对白) |--**版权红线**:不使用原作任何角色造型(蓝色尖刺头发 + 白大褂老头、黄衣少年)、名字、口头禅、打嗝梗、传送枪造型与原作标志;片中与文档不出现原作名。-------## 三、结构(冷开场 + 三次法则 + 反转 + 循环收尾)--| 段 | 时间 | 情绪 | 发生什么 |-|---|---|---|---|-| 冷开场 | 0:00–0:12 | 冷场 → 决心 | 空咖啡壶滴下最后一滴;Gary 结巴解释,被 Vask 一个字打断;按下遥控器,传送门炸开,片名砸下 |-| 第一跳 | 0:12–0:20 | 荒诞 | 果冻宇宙:点单,咖啡是一块眨眼的果冻。"Nope." "Nope!" |-| 第二跳 | 0:20–0:27 | 更荒诞 | 马克杯宇宙:杯子在用吸管喝人。Gary 尖叫,Vask "Nope." |-| 蒙太奇 | 0:27–0:30 | 机关枪 | 三个宇宙各 1 秒:牙齿、鸽子、全是 Vask。"Nope. Nope. Nope." |-| 转折 | 0:30–0:36 | 可疑的平静 | "完全正常"的米色咖啡店,电梯音乐。"Oh, thank god. It's... normal." |-| 回家 | 0:36–0:52 | 满足 → 反转 → 冷场 → 收尾 | 喝一口,"Finally." 咖啡睁眼说 "Hi!";Gary 崩溃;长停顿;"Are you decaf?" "Yep!" 反手扔进传送门:"Gary. Get your shoes." |-| 片尾卡 | 0:52–0:56 | — | 片名、风格名、署名 |-------## 四、分镜--音乐 120 BPM(1 小节 = 2 秒),连续段落的剪辑点都落在下拍上;表格时间为方案值,最终值见后记。--| # | 时间 | 景别 / 机位 | 画面 | 声音 |-|---|---|---|---|---|-| 1 | 0:00–0:02.5 | 特写,静止 | 实验室台面:空咖啡壶。咖啡机的小屏幕是一张哭脸 + 闪烁的 "NO"。最后一滴 **plip** | 无音乐。日光灯嗡嗡、挂钟滴答、一滴水 |-| 2 | 0:02.5–0:06 | 中景双人 | Vask 端着空杯,半睁眼,眼皮抽搐;Gary 从左边溜进来,手指绞在一起 | **P1** "So, um— the machine's b-broken, and the café's closed, and—" |-| 3 | 0:06–0:07.5 | 近景 Vask,硬切 | 打断。Vask 连眼都没抬 | **V1** "Gary." ——然后一拍停顿 |-| 4 | 0:07.5–0:09 | 近景 Gary 反应 | Gary 吞口水,汗滴 | (停顿里只有挂钟) |-| 5 | 0:09–0:10 | 近景 Vask | 举起车库遥控器 | **V2** "Get your shoes." · 按钮 **click** |-| 6 | 0:10–0:12.5 | 全景 | 传送门在实验室中央炸开:绿色漩涡、黏液溅射、两人被照绿;**片名 COFFEE RUN 在下拍砸下**,带滴落的黏液 | 特雷门琴主题第一次响起;传送门轰鸣 |-| 7 | 0:12.5–0:13 | 推进 | 两人跳进门,镜头冲进漩涡(传送门转场) | whoosh |-| 8 | 0:13–0:15 | 全景 | **果冻宇宙**:洋红天空,荧光绿果冻楼群在晃;两人被吐出来落地,Q 弹压扁。左下角出现宇宙标签 "DIMENSION J-9 · EVERYTHING IS JELLY" | 果冻动机:摇摆大号 + 滑哨;**boing** |-| 9 | 0:15–0:17 | 中景,吧台 | 独眼果冻店员滴着黏液 | **V3** "One coffee. Black." · 店员 **glorp** |-| 10 | 0:17–0:18 | 大特写插入 | 杯子里是一块绿色果冻,里面一只眼球……**眨了一下** | **音乐切断**;湿润的眨眼声 |-| 11 | 0:18–0:20 | 双人反应 | Vask 面无表情,Gary 惊恐;两人同步后退进传送门 | **V4** "...Nope." **P2** "Nope!"(叠着说) |-| 12 | 0:20–0:22 | 全景 | **马克杯宇宙**:橙色天空、青色地面、露天咖啡座,巨型马克杯坐着用吸管喝杯里的小人。标签 "DIMENSION M-2 · COFFEE DRINKS YOU" | 慵懒爵士动机(刷子鼓 + 颤音琴) |-| 13 | 0:22–0:23.5 | 特写 | 杯里的小人在看报纸,边被吸边淡定地翻页;马克杯转头,盯着两人舔嘴 | 吸管 **slurp** |-| 14 | 0:23.5–0:25.5 | 近景 Gary | 眼镜后的眼睛放大到极限,头盔都在抖 | **P3** "Wh-why is the mug drinking a GUY?!" |-| 15 | 0:25.5–0:27 | 近景 Vask | 一眨眼 | **V5** "Nope." |-| 16 | 0:27–0:30 | 三个快切,每个 1 秒(2 拍) | 牙齿宇宙(红/粉/白,一颗大臼齿咬过来)→ 鸽子宇宙(蓝灰,打领带的鸽子店员)→ 全是 Vask 的咖啡店(反相配色,所有 Vask 齐刷刷转头) | 每个宇宙一个 stinger 和弦 · **V6a/b/c** "Nope." ×3,卡在拍上 |-| 17 | 0:30–0:32.5 | 全景 | **"正常"宇宙**:米色、盆栽、木头吧台,店员阿姨笑得过于标准,递上一杯普通咖啡。标签 "DIMENSION 1-A · COMPLETELY NORMAL" | 电梯音乐(电钢琴 bossa) |-| 18 | 0:32.5–0:35.5 | 双人 | Gary 松一口气又起疑 | **P4** "Oh, thank god. It's... normal." |-| 19 | 0:35.5–0:37 | 全景 | 回到实验室,传送门把两人吐出来,收缩消失 | 传送门收合 **fwump** |-| 20 | 0:37–0:40 | 近景 Vask | 喝一口,闭眼,长长的满足 | **V7** "Mmm. Finally." · 主题温柔版 |-| 21 | 0:40–0:41.5 | 大特写 杯子 | 咖啡表面冒泡,睁开两只大眼睛 | **C1** "Hi!" · 可爱的 **bloop** |-| 22 | 0:41.5–0:43.5 | 近景 Gary | 全身发抖,指着杯子 | **P5** "It's alive! It has a face!" |-| 23 | 0:43.5–0:46 | 中景双人(Vask 与杯子对视) | **冷场:两秒什么都不发生**。咖啡眨眼,Vask 不眨 | **音乐全停**,只剩挂钟和日光灯 |-| 24 | 0:46–0:47.5 | 近景 Vask | | **V8** "...Are you decaf?" |-| 25 | 0:47.5–0:48.5 | 大特写 杯子 | 开心地点头 | **C2** "Yep!" |-| 26 | 0:48.5–0:52 | 全景 | Vask 看都不看,反手把杯子扔到身后;再按遥控器,身后开出新传送门,咖啡 "wheee" 飞进去;Vask 转头 | **V9** "Gary. Get your shoes." |-| 27 | 0:52–0:56 | 片尾卡 | 片名 + Sci-Fi Sitcom Toon + LemoLab × Claude Opus 5.5 + 署名 | 主题 stinger 收尾 |--**配音全文**(双人对白 + 咖啡两个字)-- P1 Gary: So, um— the machine's b-broken, and the café's closed, and—-- V1 Vask: Gary.-- V2 Vask: Get your shoes.-- V3 Vask: One coffee. Black.-- V4 Vask: …Nope.-- P2 Gary: Nope!-- P3 Gary: Wh-why is the mug drinking a GUY?!-- V5 Vask: Nope.-- V6 Vask: Nope. / Nope. / Nope.-- P4 Gary: Oh, thank god. It's… normal.-- V7 Vask: Mmm. Finally.-- C1 Coffee: Hi!-- P5 Gary: It's alive! It has a face!-- V8 Vask: …Are you decaf?-- C2 Coffee: Yep!-- V9 Vask: Gary. Get your shoes.-------## 五、导演手法清单(这支 demo 要展示的能力)--1. **冷开场**:不给片名、不给音乐,先用一滴咖啡和一个抽搐的眼皮把"问题"交代完,片名在传送门炸开时才砸下。-2. **打断制造人物**:Gary 一口气说不完的长句被 Vask 一个字 "Gary." 切断——一刀就交代了两人的权力关系。-3. **三次法则 + 升级 + 打破**:Nope(慢、有停顿)→ Nope(快)→ Nope×3(每秒一个宇宙)→ 第四次终于"正常",打破预期;观众开始期待"这次一定也不行"时给他们一个米色的平静,平静本身就可疑。-4. **反应镜头**:每个荒诞画面后都切到角色脸上。笑点在反应里,不在怪物本身。-5. **一宇宙一套配色 + 一个音乐动机**:观众靠颜色和声音就知道"又跳了",不需要任何解释。-6. **用静默做笑点**:眼球眨眼时音乐切断;"It has a face!" 之后整整两秒全静,只有挂钟——冷场是这个类型的核心笑点。-7. **价值观反转收尾**:咖啡是活的不重要,低因才重要。最后的笑点来自角色,而不是情节。-8. **首尾呼应成循环**:"Get your shoes." 出现两次,第二次意味着这一切要再来一遍。-9. **传送门是唯一的转场语法**:所有宇宙切换都是"冲进漩涡 → 从漩涡里被吐出来",风格一致就是导演的品味。-10. **尊重媒介的规矩**:角色 12fps 拍两格、全片线条按 12fps boil、平涂无渐变、恒定粗描边(特写不变细)。-------## 六、声音设计--- **配乐**:全部用 numpy 原创合成,120 BPM,D 小调。主题是特雷门琴(带颤音与滑音的正弦 + 轻微锯齿泛音)+ 模拟贝斯 + 复古鼓机 + 16 分音符方波琶音 + 弹簧混响。按段落写成不同的 cue,每个 cue 的起点就是剪辑点:- - 主题(传送门开启、片名)→ 果冻动机(摇摆大号 + 滑哨,大调)→ 眼球眨眼时切断 → 马克杯动机(慵懒爵士,刷子鼓 + 颤音琴)→ 三个宇宙 stinger(牙齿:尖锐的失谐铜管;鸽子:木琴 + 咕咕;Vask 们:主题倒放和弦)→ 电梯音乐(电钢琴 bossa)→ 主题温柔版 → 全静 → 片尾主题 stinger。-- **拟音**(代码合成):传送门开启(下扫噪声 + 低频冲击 + 上升漩涡音)、传送门持续嗡鸣、跳门 whoosh、落地 boing、黏液 glorp/splat、眼球眨眼(湿)、吸管 slurp、臼齿咬合、鸽子咕咕、按钮 click、滴水 plip、咖啡 bloop、日光灯嗡嗡、挂钟滴答。-- **人声**:Vask 压缩 + 轻饱和(沙哑);Gary 略提高、干;咖啡升调。对白时音乐闪避约 −7 dB。响度 −14 LUFS。-------## 七、画面规格--- **Canvas 2D 自写矢量引擎**:所有形状先变换到屏幕坐标再描边,所以**线宽在任何景别都恒定**(这个风格的特写不会变成细线);线条沿弧长做低频法向位移,12fps 下在 3 张"抖动图"之间循环,即 line boil。-- 描边近黑 `#1b1422`,角色线宽 7px、背景 5px;填充全部平涂,阴影用硬边的深色块。-- 眼睛:大白眼 + 极小瞳孔;嘴型参数化(张合、宽窄、嘴角),由配音振幅和频谱亮度驱动,12fps 步进。-- 字幕:屏幕下方白色粗圆体 + 厚黑描边(像卡通片自己的字幕),左侧一个说话人颜色的小胶囊写名字(VASK 青绿 / PIM 橙红 / COFFEE 棕),胶囊也有线条抖动。-- 宇宙标签:左上角复古终端字体的扫描读数,每个宇宙换色。-- 片名:粗圆体大字 + 绿色黏液滴落,按 12fps 弹出。-- 片尾:片名、Sci-Fi Sitcom Toon、LemoLab × Claude Opus 5.5、字体与配音署名(配乐与拟音为原创合成)。-------## 制作后记(与方案的差异)--- **搭档改名 Pim → Gary**:whisper 把低沉声线说的 "Pim." 听成 "Pam",观众也会听错。换成一个土气的普通名字 Gary,反而更有情景喜剧味("Gary. Get your shoes.")。-- **对白文本为 TTS 做了拼写适配**:结巴写成 "buh, buh-broken"、"Wh, wh, why"(原 "b-broken" 会被读成 "be broken");"decaf" 写成 "dee-caf" 才读得准。字幕仍显示正常拼写。Gary 的第一句故意多生成半句("and the, uh, the"),在 2.9s 处截断——真的被 Vask 打断,而不是说完了再接。-- **最终时间线**(story.js):冷开场 0–12.85s(片名在 10.0s 下拍砸下);果冻 12.85–20.9;马克杯 20.9–28.4;蒙太奇 28.4/29.4/30.4 各 1 秒(为了让三个 stinger 落在 120 BPM 的 2 拍网格上,第一个宇宙从 28.3 挪到 28.4);正常宇宙 31.4–36.05;回家 36.05–53.0;片尾卡 53.0–57.5。总长 57.5s。-- **片尾卡落点**:配乐 finale cue 以 51.0s 为第一拍,片尾卡重音在 53.0s(第 2 小节下拍),V9 "Gary. Get your shoes." 正好压在主题回归的第一小节上。-- **冷场加长到 5.3 秒无音乐**:44.0–49.3s 只有挂钟、日光灯和咖啡眨眼的 "blip",中间是 "…Are you decaf?" / "Yep!"。"It has a face!" 的字幕在 44.0s 强制收掉,让冷场画面是干净的。-- **传送门弹开**:方案里用弹簧,第一版过冲到 135% 会盖住角色,改成约 12% 的 back 缓动。-- **咖啡生物加了拉花爱心、漫出杯沿的咖啡滴和热气**:第一版看起来像一颗土豆,看不出是咖啡。-- **片尾彩蛋**:被扔掉的 Decaf 在片尾卡的漩涡里打转挥手(方案里没有)。-- 蒙太奇的全是 Vask 宇宙:原计划坐满桌子的远景太碎,改成一排 Vask 齐刷刷转头。diff --git a/styles/scifi-toon/demo/fonts/baloo2.woff2 b/styles/scifi-toon/demo/fonts/baloo2.woff2deleted file mode 100644index 85022a7..0000000Binary files a/styles/scifi-toon/demo/fonts/baloo2.woff2 and /dev/null differdiff --git a/styles/scifi-toon/demo/fonts/bungee.woff2 b/styles/scifi-toon/demo/fonts/bungee.woff2deleted file mode 100644index 5dcc5f1..0000000Binary files a/styles/scifi-toon/demo/fonts/bungee.woff2 and /dev/null differdiff --git a/styles/scifi-toon/demo/fonts/titanone.woff2 b/styles/scifi-toon/demo/fonts/titanone.woff2deleted file mode 100644index d6d09aa..0000000Binary files a/styles/scifi-toon/demo/fonts/titanone.woff2 and /dev/null differdiff --git a/styles/scifi-toon/demo/fonts/vt323.woff2 b/styles/scifi-toon/demo/fonts/vt323.woff2deleted file mode 100644index efd2d4c..0000000Binary files a/styles/scifi-toon/demo/fonts/vt323.woff2 and /dev/null differdiff --git a/styles/scifi-toon/style.json b/styles/scifi-toon/style.jsonnew file mode 100644index 0000000..ce52872--- /dev/null+++ b/styles/scifi-toon/style.json@@ -0,0 +1,18 @@+{+ "slug": "scifi-toon",+ "num": "28",+ "en": "Sci-Fi Sitcom Toon",+ "cn": "科幻情景喜剧卡通",+ "category_en": "Cartoon & Anime",+ "category_cn": "卡通与动画",+ "film": "Coffee Run",+ "line": "A jaded genius opens a portal just to buy coffee and tumbles through ever-stranger universes.",+ "line_cn": "厌世天才开传送门只想买杯咖啡,却穿过越来越离谱的平行宇宙。",+ "uses": [+ "Comedy",+ "Tech brands",+ "Social shorts"+ ],+ "frame_sec": 11.5,+ "dur": 57.5+}diff --git a/styles/shadow-puppet/DEMO.md b/styles/shadow-puppet/DEMO.mdnew file mode 100644index 0000000..8346bff--- /dev/null+++ b/styles/shadow-puppet/DEMO.md@@ -0,0 +1,97 @@+# Shadow Puppetry — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Hou Yi Shoots the Suns* (54 s) · `shadow-puppet.mp4` · source in [`demo/`](demo/)+++## Story & structure++Ten oil lamps burn as ten suns; each time the archer Hou Yi shoots one down, a lamp behind the screen goes out, until only the last lamp is left, and that lamp is the one lighting the play. One character, one goal (shoot down the suns that scorch the land), one turn (the tenth arrow is already nocked and he stops, leaving one sun).++The core idea: *each sun is a lamp* and each arrow puts one out, so the frame literally steps darker. One lamp at the start (the show begins); at "ten suns" nine more light behind the cloth, the screen whitens, overexposes and the colours bleach; every sun shot down snuffs a lamp and the colour steps back to warm gold. The end goes behind the screen: the "sun" was a lamp and the "sky" a cloth a metre wide, so the story's ending (one sun is enough) and the medium's truth (a shadow play needs one lamp) close in the same shot. Echoes: 1 lamp → 10 → 1; clapper at the start ↔ clapper at the end; title plaque ↔ end-card plaque.++How the demo adapted its topic: the lamp was the sun, and what went off the screen was each golden crow as it died. (The same question works for any topic: a product launch → the product is the lamp that finally lights the screen; a memory → figures lift off the cloth and blur as they are forgotten.)++Arc (54 s): a lamp lights in the dark → a world appears on the cloth → trouble arrives (ten lamps: the light changes) → the hero's entrance and freeze pose → the shooting, set to percussion → a silent choice → the world restored → go behind the screen → end card on the cloth.++Native moves spent: the light is the world (lamp count = sun count), off the screen (the crows tumble off and dissolve into light), carved and translucent (Hou Yi's open-cut face), hand-held (plumes and legs on pendulums), go behind the screen (after the climax, as the echo).++## Shots++| Beat | Camera |+|---|---|+| Opening | Audience seat: full stage frame with children's heads. Black until a match flares behind the cloth. Very slow push. |+| Into the story | Push through the frame until the cloth fills the screen. |+| Disaster | 1.5× lateral pan across the burning land (give the disaster area). |+| Hero entrance | 1.15× follow; on the freeze-pose gong, a 5-frame **crash zoom** (the percussion accent becomes a camera move). |+| First action | Close on hands/bow/face, then a whip pan along the arrow to the target. |+| Repetition | **Locked wide** so the audience sees every step of the change (nine lamp-steps of darkening). |+| The choice | Medium-close with the target at the far edge: the hero at left, empty sky, the last sun at right. Music stops. |+| Echo | Pull back to reveal the stage frame again, **truck right as a blurred foreground pillar wipes the frame**, and come out behind the screen. Slow push, then a fast dive into the flame that flashes to warm white before the end card. |++Why this route, for this story: the audience seat made it a told legend; the locked wide let nine darkening steps be counted; the silent medium-close held the refusal; the backstage truck paid off "the sun is a lamp". Each is one choice from STYLE.md §6, not the style's default opening or ending.++Timeline highlights (`story.js`): title plaque in at 2.4 s, set 3.6 s, out 6.6 s; 1306 frames at 24 fps.++## Score structure++Original gong-and-drum score (`demo/music/score.py`). Patterns map to the drama in this order: opening roll → one hit per lamp, accelerating → heartbeat drum under the disaster → *jijifeng* roll accelerating into the entrance → big gong on the freeze → fast strokes with one gong per hit → **hard stop** (≤ 30 ms, reverb tails included) for the silent choice → one tiny small-gong tap for the decision → gentle fiddle theme → gong scrape to go backstage → a final big gong tail.++Fiddle: **ku-yin** for the disaster, **huan-yin** for heroism and healing. The suona-like reed only at the climax.++Foley specific to this film: wooden clapper to open and close the show, match strike, lamp ignition, rod taps, leather flaps when a crow lifts off, leather footsteps, bow creak (rising pitch with draw), string twang, arrow whoosh, leather thwack on hit, lamp snuff ("pfft" + sizzle), wing flaps, crackle, heat drone (hard-cut at the silence), water, a quiet backstage room tone and one breath.++Voice: a storyteller, Kokoro `am_michael`, speed 0.86–0.88, 5–6 short lines, compressed, plus small-theatre reverb. Music ducked ~12 dB, foley ~4 dB. A line that passed whisper alone blurred under music ("shadow play still" became "shadow place"): rewrite the line rather than fight the mix.++## Palette & props++- **Rendering constants**: lamp lobe σ ≈ 700 px + hotspot σ ≈ 120 px; flicker ≈ ±6 % value noise at 7 Hz plus a small 23 Hz sine; light colour `(1, .77, .46)`; exposure `1.75 / √(lamps lit)` (ten lamps ≈ 3× one lamp); cloth weave at ~2.6 rad/px; bloom from a 3-level pyramid, threshold 0.72, tint `(1,.82,.6)`; warm vignette toward `(.7,.47,.25)`; saturation ×1.1; hide texture tileable 512²; film grain 2 in ffmpeg.+- **Dyes**: vermilion `#b8211a`, flame `#d9541c`, ochre `#dc9d1e`, gold `#c98a26`, malachite `#236e3a`, jade `#2f8a5c`, indigo `#22647e`, raw hide `#e2bd80`, ink `#1a100a` (outlines, hair, boots).+- **Hou Yi** (11 pieces): head+helmet, chest, skirt, two upper arms, two forearms, two hands, two legs, plus quiver, bow, pheasant plumes. Head ~1.2× natural, helmet about a quarter of the figure. Armour = rows of thick crescent holes ("open fish-scale"), trousers = diamond lattice, belt = coin holes, four-lobed cloud collar with cloud-scroll cuts, sleeves in a different colour from the torso. Court boots: tall black shaft with cut cloud scrolls, upturned toe, thick white sole carved as one piece (grooves + a row of oval holes). Open-cut face.+- **The bow** is drawn procedurally: limbs bend with draw, the string goes to the nocking hand, and **the nock sits on the aim line**: grip = shoulder + u·118, nock = grip − u·(40 + 72·pull). Arrow shaft dark `#4a2612`, 3 px.+- **Suns**: a carved round piece: flame-tongue rim (alternating curl, teardrop holes between tongues, tongues ~40 px long × 0.78 of the arc spacing), bead ring, translucent orange-red disc, with a separate dark three-legged crow on top so it can drop out.+- **Scenery**: mountains one piece each with wide strata cuts following the ridge and cloud holes near the peaks; the tree = a trunk piece plus a single lace canopy full of leaf-shaped holes; the ground is a narrow carved strip (meander band + coin holes), with cracks cut as tapered slits that widen and lengthen as the land burns through. Water is a separate indigo wave strip that can be lifted off. Fire is a carved piece of S-curling flame tongues (red → orange → yellow bands, spiral hooks at the tips) on a rod, swapped and shaken at 12 fps. A hut.+- **Stage**: red-and-black lacquer frame, carved lintel with gold cloud curls, pillars; blurred children's heads along the bottom in the opening and end-card wides.+- **Backstage**: lamps as dish + cords, one lit, the other nine just snuffed and trailing smoke.+- **Motion numbers**: tremor ≈ 3 px / 0.018 rad, ×1.8 under tension; pendulums pre-simulated at 120 Hz; arrivals scale 2.6 → 1, blur 34 → 0 over 0.55 s; exits scale ×1.9, blur +30 px, fade over ~0.9 s; lamp flare overshoot to 1.5×, snuff over 0.35 s; freeze pose on the big gong held ~1 s.+- **Subtitle placard**: dark brown gradient at 0.93 alpha, thin gold inner line, a small vermilion seal with 说 ("tell", Ma Shan Zheng) on the left, Cormorant Garamond 600, 46 px, cream `#f3e2bf`, centred 58 px above the bottom; slides up 18 px in 0.22 s; shown from line start until speech + 0.8 s (≥ 1.8 s), cut 0.3 s before the next.+- **Title plaque**: "HOU YI / SHOOTS THE SUNS / a shadow puppet tale" cut out of dark hide, red border with a meander band, green cloud-scroll corner roundels, a red seal with carved characters, carried up on two rods and lifted off the cloth to exit.++## End card++A cut-letter plaque on the cloth: "SHADOW PUPPETRY" / "Hou Yi Shoots the Suns" / "LemoLab × Claude Opus 5.5" (`stage.js` `buildStage().end`), after the dive into the backstage flame flashes to warm white; the poster frame carries the same credit line (`main.js`). The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++Rights (see [`demo/CREDITS`](demo/CREDITS)): the Hou Yi legend is public-domain folklore; puppets, scenery, carving patterns, staging and melodies are original and generated by code; traditional motifs (fish-scale armour, cloud scrolls, meander, coin and lattice patterns, flame tongues) are used generically and no historical puppet is copied. Fonts Cormorant Garamond and Ma Shan Zheng (OFL 1.1); voice Kokoro TTS (Apache-2.0); music samples CC0 (Karoryfer erhu, Versilian Studios libraries); sound effects synthesized.++## Build notes++```+styles/shadow-puppet/demo/+ carve.js cutting toolkit: piece sprites, cut/cutLine/cutTaper, pattern library, hide texture, rivets+ gl.js WebGL2 screen compositor (lamp field × transmission × cloth, mirror, bloom, haze, warm fade)+ houyi.js jointed puppet (11 pieces, IK arms, bow, plumes, rods) poses.js key poses+ suns.js carved suns + crow scenery.js mountains, ground strip, river, tree, hut, fire pieces+ stage.js lacquer frame, audience, pillar wipe, cut-letter plaques+ backstage.js rim-lit silhouettes (hands, lamps), lamp flame, smoke+ story.js timeline (single source of truth) main.js shots, acting, lamps, events+ hud.js subtitle placard test.js ?test=model | frame | hands | (main) poster+ lines.json narration mix.py foley + voice + music ducking music/score.py original gong-and-drum score+ tools/ cues.py (SRT), mux.sh (CRF 22), probe.mjs (render timing)+```++1. `node core/render/still.mjs styles/shadow-puppet/demo 0 --q test=model`: model sheet first (character risk comes first). Then `--q test=frame&f=ten|one` style frames and `--q test=hands`.+2. `.venv/bin/python core/tts/tts.py lines.json voices` → `core/tts/asr_check.py` (use `asr` fields for homophones).+3. Timeline in `story.js`. Review with `still.mjs --range 0.5:54:1.5` + `core/render/sheet.py` (two rounds, offset by half a step), then frame strips from the mp4 for key actions.+4. `node core/render/events.mjs` → `music/score.py` → `mix.py`.+5. `node core/render/video.mjs … --fps 24 --workers 3` (1306 frames ≈ 80 s on an M-series Mac, 3 workers).+6. `sh demo/tools/mux.sh out/video24.mp4 mix.wav shadow-puppet.mp4 24 2`. Or just `sh demo/build.sh`.++Pitfalls tied to this demo's props:+- Hou Yi first read with stilt legs, an egg torso and arms lost in the torso → enlarged head, longer skirt, wider trousers, cloud collar, sleeves in a different colour from the chest.+- Sun rays looked like a saw blade, then like flower petals → fat-based, hooked flame tongues at the sizes above.+- The raw-hide arrow disappeared on the ten-lamp screen → dark shaft; the arrow pointed sideways until the nock sat on the aim line.+- The backstage mirror helper built the rotation from `C[0]` for both axes and flipped pieces upside down → `C[0]` for x terms, `C[3]` for y terms.+- The push-in on the backstage lamp at the top edge shoved the hands out of frame → push on frame centre, fixed point moved to the flame only for the final dive.+- Heat drone and crackle leaked into the silent choice → hard-cut at the stop.+- Headless Chrome screenshots occasionally timed out while 14 other renders shared the GPU → retry.diff --git a/styles/shadow-puppet/STYLE.md b/styles/shadow-puppet/STYLE.mdindex ae1bc0c..75b626f 100644--- a/styles/shadow-puppet/STYLE.md+++ b/styles/shadow-puppet/STYLE.md@@ -1,132 +1,122 @@# Shadow Puppetry — Style Prompt> Chinese shadow theatre: translucent dyed-hide puppets, carved like lace, pressed against a cotton screen and lit from behind by oil lamps.-> Demo: *Hou Yi Shoots the Suns* (54s) · `shadow-puppet.mp4` · source in `demo/`+> References (grammar only): Lotte Reiniger's *The Adventures of Prince Achmed* (1926) for profile acting and lace-like scenery; Shaanxi / Huayin shadow theatre for carving, colour and gong-and-drum rhythm. Never reproduce a specific historical puppet, melody or recording, and never name them in the film.-You are directing a 30–60 second film in the **Shadow Puppetry** style. The user gives you a topic. You decide everything else (story, shots, timing, sound) and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not----+A white cloth screen; behind it, flat puppets cut from **translucent dyed hide**, lit by an **oil lamp**. Colour arrives *by transmitted light*: dyes glow like stained glass, carved holes shine brightest, overlaps go darker. Puppets are jointed with **visible thread rivets** and moved by **thin rods** (neck and hands) that show as soft grey lines just off the screen. It is live theatre, not stop-motion: the screen **flickers with the lamp**, puppets **tremble in the hand**, loose parts **swing on their rivets**.-## 1. What this style is+Not a black silhouette film (colour is the second protagonist), not paper-cut (the light comes *through*), not stained glass (no lead lines; pieces move and overlap), not flat vector cut-out animation.-A small stage with a white cloth screen. Behind it, a puppeteer holds flat puppets cut from **translucent, dyed donkey hide** against the cloth, and an **oil lamp** lights them from behind. The audience sees colour *by transmitted light*: red, green and ochre glow like stained glass, the carved holes shine brightest, and anywhere two pieces overlap is darker. Puppets are jointed with **visible thread rivets** and moved by **three thin rods** (one at the neck, one at each hand) that show as soft grey lines because they sit just off the screen.+## 2. Materials & rendering-It is live theatre, not stop-motion. The screen **flickers with the lamp**, puppets **tremble slightly in the hand**, legs and plumes **swing freely on their rivets**.+**Rendering model.** Per pixel: `image = tonemap( lampLight × hideTransmission × clothTexture )`.+- `hideTransmission`: a 2D canvas that starts **white**; every piece is drawn with `multiply`. Holes stay white, overlaps darken by themselves.+- `lampLight`: per lamp a broad lobe plus a tight hotspot (~6 : 1), each flickering independently (a few % of ~7 Hz value noise plus a faster sine). Warm light, never white.+- `tonemap = 1 − exp(−hdr)`, exposure ∝ `1/√(lamps lit)`: more lamps bleach the frame but keep it readable. Lamp count is a dial the story can turn.+- **Cloth**: procedural weave (sin × sin, noise-warped), fibre speckle, low-frequency density blotches, darker edges at the frame. **Post**: warm-tinted bloom, a **warm vignette** (toward brown, never grey), slight saturation, soft S-curve, light grain; heat haze only when the story burns.-Reference grammar (learn from, don't copy): Lotte Reiniger's *The Adventures of Prince Achmed* (1926) for profile acting and lace-like scenery; Shaanxi / Huayin shadow theatre for carving, colour and gong-and-drum rhythm. Never reproduce a specific historical puppet, melody or recording.+**Hide and carving.** Multiply a tileable hide texture (mottling, fibres, specks) into each piece and restore its alpha with `destination-in` so holes survive. **Carving is density**: leave thin strips, cut out most of the area. Cut vocabulary: crescent rows (scales, tiles), diamond lattice, coin holes (round hole, square of hide inside), cloud collars and scrolls, tapered slits (cracks, rain, fur), strata along a ridge, leaf holes in a canopy. A dark carved outline (1.5–2.4 px) on every region. With `destination-out`, set `fillStyle = '#000'` first: fill alpha decides how much is cut.-## 2. Story: what fits this style+**Figures are jointed puppets**: 8–12 pieces, head ~1.2× natural with large headwear, sleeves in a different dye from the torso, round joint lobes with a rivet (dark ring + pale knot), arms by 2-bone IK from hand targets, held objects as separate pieces on the hand line. Sympathetic figures have *open-cut faces* (features as thin strips around a hole); antagonists solid faces.-Pick stories where **the medium itself tells the story**. Shadow puppetry has five native powers. Use at least three, and put the strongest one at the emotional peak:+**Scenery** is carved set pieces on mostly empty lit cloth: one lace piece per element, a narrow carved ground strip, separate liftable strips for water or sky. Fire, smoke and moving water are carved pieces on rods, swapped and shaken, never particles.-| Native power | Story use |-|---|---|-| **The light is the world** | The only light source is a lamp behind the cloth. Make the lamp part of the plot: more lamps = more heat/danger (the image overexposes, colours bleach); fewer lamps = calm, rich colour. In the demo, *each sun is a lamp* and each arrow puts one out, so the frame literally steps darker. |-| **Off the screen = big and blurry** | A puppet pulled away from the cloth toward the lamp grows and blurs. Use it for arrivals (a giant soft glow presses onto the screen and snaps sharp), deaths and exits (the golden crow tumbles off the screen and dissolves into light), magic and dreams. |-| **Go behind the screen** | The ultimate scale reveal: cut or truck around to the back and show the lamp, the puppeteer's hands and the rods. The "sky" was a cloth a metre wide, and the "sun" was a lamp. Put it after the climax as the echo. |-| **Carved and translucent** | Heroes have *open-cut faces* (the face is a hole, with only brow, eye, nose and mouth left as thin strips of hide), so the light shines through them. Villains have solid faces. Overlaps darken, holes glow, and scenery is lace. |-| **Hand-held, not animated** | Motion is continuous with a living tremor. Legs swing like pendulums, plumes lag behind the head, fire is a carved flame piece jiggled on a rod. |+**Stage and backstage.** A lacquered frame (lintel, pillars, warm spill on its inner edges), optional blurred audience heads. Backstage = the same transmission canvas with the camera mirrored (`x → −x`), dark wood around, hanging lamps (additive flame glow; snuffed ones trailing dark smoke), hands and sleeves as **silhouettes with a warm rim** (mask minus mask shifted away from the light), rods sharp.-Adapting any topic: find **what the lamp is** in your story (a sun, a hearth, an idea, a lighthouse) and **what goes off the screen** (what leaves, dies, or is only imagined). A product launch → the product is the lamp that finally lights the screen. A memory → figures lift off the cloth and blur as they are forgotten.+## 3. Colour logic-**Arc for 45–60s:** a lamp lights in the dark → a world appears on the cloth → trouble arrives (light changes) → the hero's entrance and freeze-pose → the action, set to percussion → a silent choice → the world restored → go behind the screen → end card on the cloth.+- All colour is **transmitted**: a dye filters warm lamplight, so nothing is brighter than the lamp and every hue leans warm.+- 3–5 saturated dyes + **raw hide** (the neutral) + **ink** (outlines, hair, boots). Holes are the brightest value.+- Overlap is darkness: plan which pieces cross.+- Brightness comes from the number of lamps, not grading. Night is fewer lamps, never added blue.+- Thin things that must read (strings, shafts, text) are dark: pale pieces vanish on a bright cloth.+- Example sets: *court* (vermilion, ochre, malachite); *river* (indigo, jade, one ochre); *harvest* (flame orange, gold, one green).-## 3. Visual language+## 4. Type & subtitles-**Rendering model (the heart of the style).** Composite per pixel:-`image = tonemap( lampLight(x,y) × hideTransmission(x,y) × clothTexture(x,y) )`-- `hideTransmission` is a 2D canvas that starts **white**; every puppet piece is drawn onto it with `globalCompositeOperation = 'multiply'`. Carved holes are transparent (stay white), so overlaps darken automatically.-- `lampLight` = for each lamp, a broad lobe (σ ≈ 700 px) plus a tight hotspot (σ ≈ 120 px), flickering independently (≈ ±6% value noise at 7 Hz plus a small 23 Hz sine). Warm light colour `(1, .77, .46)`.-- `tonemap`: `1 − exp(−hdr)`. Exposure is `1.75 / √(lamps lit)`, so ten lamps ≈ 3× one lamp: overexposed, hot and bleached, but still readable.-- Cloth: fine weave (sin × sin at ~2.6 rad/px with noise warp), fibre speckle, large low-frequency density blotches, edges darkened where the cloth meets the frame.-- Post: bloom from a 3-level blur pyramid (threshold 0.72, warm tint `(1,.82,.6)`), a **warm vignette** (darken toward `(.7,.47,.25)`, never neutral grey, or an overexposed frame turns grey), saturation ×1.1, gentle S-curve. Heat haze (UV warp drifting upward) only while the world burns. Film grain 2 in ffmpeg.+- Subtitles belong to the theatre: a **storyteller's placard** (narrow dark-lacquer board, thin gold line, small carved seal), a label on a rod, or letters carved into hide. Classical OFL serif (e.g. Cormorant Garamond 600), 40–50 px, cream on dark, short slide in. Hold ≥ max(1.8 s, speech + 0.6 s).+- **Titles are puppets**: dark hide plaques with letters cut out (`fillText` + `destination-out`, so words glow), a carved border, carried on rods, pressed on to enter, lifted off to exit.-**Dyes (transmission colours).** Vermilion `#b8211a`, flame `#d9541c`, ochre `#dc9d1e`, gold `#c98a26`, malachite `#236e3a`, jade `#2f8a5c`, indigo `#22647e`, raw hide `#e2bd80`, ink `#1a100a` (outlines, hair, boots). Every piece gets a **hide texture** multiplied in (mottled translucency + fibres + specks, tileable 512² noise) and its alpha restored with `destination-in`, so the holes survive.+## 5. Motion quality-**Carving is density.** Leave thin strips of leather and cut out most of the area:-- armour = rows of thick crescent holes ("open fish-scale"), trousers = diamond lattice, belts = coin holes (circle hole with a square of hide left in the middle), collars = four-lobed cloud collar with cloud-scroll cuts, sleeves in a different colour from the torso so arms read in silhouette;-- every coloured region gets a dark carved outline (1.5–2.4 px at 1×);-- court boots: tall black shaft with cut cloud scrolls, upturned toe, thick white sole carved as a single piece (grooves + a row of oval holes).-- **Cut with an opaque fill.** With `destination-out`, the fill alpha decides how much is removed; always set `fillStyle = '#000'` first.+- **24 fps continuous** for puppets and camera; only swapped effect pieces (fire, water) step at 12 fps.+- **Hand tremor** on every puppet (a few px, ~0.02 rad, low-frequency), stronger under tension.+- Body glides with the main rod; **legs, plumes, tassels are simulated** (damped pendulums / spring chains driven by body acceleration, pre-simulated at a fixed rate for determinism).+- Operatic phrasing: shuffling run → hop → crouch → **freeze pose on a percussion accent** (~1 s, only loose parts quiver) → head turn.+- Faces never change; attitude = head angle + body tilt (up = resolve, down = sorrow).+- **Press on / lift off**: arrivals come large and blurred onto the cloth and snap sharp (~0.5 s); exits grow, blur and fade (~1 s).+- A new lamp flares with overshoot; a snuffed lamp gutters with fast flicker.+- Never moves: the cloth, the frame. Nothing morphs: pieces rotate on rivets, slide on rods, or are swapped.-**Character build (a jointed puppet).** 11 pieces: head+helmet, chest, skirt, two upper arms, two forearms, two hands, two legs (+ quiver, bow, pheasant plumes). The head is ~1.2× "natural" and the helmet takes about a quarter of the figure. Joints have round lobes and a visible rivet (dark ring + pale knot). Arms are posed by 2-bone IK from hand targets; the bow is drawn procedurally (limbs bend with draw, the string goes to the nocking hand, and **the nock sits on the aim line**, grip = shoulder + u·118 and nock = grip − u·(40 + 72·pull)).+## 6. Camera grammar-**Scenery = carved set pieces on an empty cloth.** Most of the screen is just lit cloth. Mountains are one piece each with wide strata cuts following the ridge and cloud holes near the peaks; the tree = a trunk piece plus a single lace canopy full of leaf-shaped holes; the ground is a narrow carved strip (meander band + coin holes) along the bottom, with cracks cut as tapered slits that widen and lengthen as the land burns through. Water is a separate indigo wave strip that can be lifted off. **Fire** is a carved piece of S-curling flame tongues (red → orange → yellow bands, spiral hooks at the tips) on a rod, swapped and shaken at 12 fps. No cartoon flames.+A vocabulary, not a route. Opening and ending come from the topic.-**Suns / emblems.** A carved round piece: flame-tongue rim (alternating curl direction, teardrop holes between tongues), bead ring, translucent orange-red disc, with a separate dark silhouette (e.g. three-legged crow) on top so it can drop out.+| Move | Expresses | Can serve |+|---|---|---|+| Audience seat (whole stage, heads below) | "This is a show" | a legend; a lesson; a framed memory |+| Push through the frame onto the cloth | Entering the tale | a story within a story; focus |+| Lateral pan across a wide cloth | Extent, a place laid out | a journey; a disaster's reach; a procession |+| Follow a puppet, slight zoom | Being with one figure | a pursuit; a working day |+| **Crash zoom** of a few frames on a percussion hit | The drum becomes the camera | an entrance; a pose; a reveal |+| Whip pan along a moving piece | Cause to effect | a message sent; a strike |+| **Locked wide** | Every step of a change is seen | counting; repetition; stages |+| Medium-close, empty cloth between two pieces | Distance, hesitation | a choice; a parting |+| Close on a carved detail | Craft as meaning | a vow; a tool; a clue |+| Tilt from ground strip to top of cloth | Height, hierarchy | a tower; heaven and earth |+| Truck round to the back (mirror view) | The trick revealed | behind the scenes; who pulls the strings |+| Pull back from cloth into the dark room | The tale becomes an object | aftermath; a story ending for the night |-**Stage.** Red-and-black lacquer frame, carved lintel with gold cloud curls, pillars, and warm spill from the cloth on the inner edges; a few blurred children's heads along the bottom in the opening and end-card wides.+Puppets in profile; most of the cloth stays empty. When zoomed in, clamp the camera to the screen rectangle (no black bars); push on frame centre unless diving into a lamp. Transitions: lamps dimming, a blurred foreground pillar wipe, a piece lifting off in light, a flash to warm white; never a generic crossfade or digital wipe.-**Backstage (mirror view).** Render the same transmission canvas with the camera mirrored (`x → −x`). Surround the screen with dark wood; hang lamps (dish + cords) in front of it, one lit (flame with additive glow) and the rest just snuffed, trailing smoke (dark wisps against the cloth that turn warm-white near the lit lamp). Hands and sleeves are **silhouettes with a warm rim** (mask minus mask shifted away from the light), rods sharp.+## 7. Sound palette-## 4. Motion language+- **Percussion first, not piano and strings** (gong-and-drum pattern thinking, 锣鼓经): low barrel drum, hard high clapper drum (woodblock), cymbals, small gong with rising pitch ("tai"), big gong with falling pitch ("kuang"); also a bamboo clapper board, pellet drum, sanxian pluck, a bamboo flute for quiet.+- **Bowed and reed voices**: a bright nasal fiddle (erhu-like: pitched up, nasal formant, pitch-curve resampling for slides and vibrato), plain pentatonic (**huan-yin**) or sorrowful microtonal (**ku-yin**: raised 4th, lowered 7th); a shrill suona-like reed (oboe + 1.2–3 kHz formant + saturation) at most once.+- **Techniques, as options**: a single tap inside a silence; one big gong per decisive hit; a heartbeat drum under dread; accelerating rolls into an entrance; one hit per visual step; a gong scrape to change space; a hard stop (≤ 30 ms, tails included).+- **Silence**: hard-cut the whole bed; at most one sound inside (a breath, a tap, a sizzle).+- **Foley follows the materials**: wooden clapper (醒木), match strike, lamp "fwoomp" and "pfft" + sizzle, rod taps on cloth, dry leather flaps on lift-off, leather steps, creaks of hide and wood props, leather thwacks, cloth rustle, backstage room tone.+- **Voice**: a storyteller, few short lines, small-theatre reverb; music ducked ~12 dB, foley ~4 dB, voice ≥ 12 dB above the bed; −14 LUFS; check each line with whisper alone and on the final mix.-- **24 fps continuous** for puppets and camera. Add a hand tremor to every puppet (≈ 3 px / 0.018 rad low-frequency noise; ×1.8 when the puppeteer is "holding tension"). Only the fire pieces step at 12 fps.-- Body glides with the main rod; **legs and plumes are simulated** (damped pendulum / spring chain driven by the body's acceleration and head rotation, pre-simulated at 120 Hz so renders are deterministic).-- Operatic phrasing: quick shuffling run → small hop → crouch → **freeze pose on the big gong** (hold ~1 s while only the plumes quiver) → head turns up.-- Heads never change expression; attitude = head angle + body tilt (up = resolve, down = mercy/sorrow).-- Arrivals press onto the cloth (scale 2.6 → 1, blur 34 → 0 over 0.55 s). Exits lift off (scale ×1.9, blur +30 px, fade over ~0.9 s).-- Lamps: a new lamp flares (overshoot to 1.5×) before settling. A snuffed lamp gutters out over 0.35 s with a fast flicker.+## 8. Native moves-## 5. Camera language+A menu: use the ones your story needs; put the strongest at the peak.-| Beat | Camera |-|---|---|-| Opening | Audience seat: full stage frame with children's heads. Black until a match flares behind the cloth. Very slow push. |-| Into the story | Push through the frame until the cloth fills the screen. |-| Disaster | 1.5× lateral pan across the burning land (give the disaster area). |-| Hero entrance | 1.15× follow; on the freeze-pose gong, a 5-frame **crash zoom** (the percussion accent becomes a camera move). |-| First action | Close on hands/bow/face, then a whip pan along the arrow to the target. |-| Repetition | **Locked wide** so the audience sees every step of the change (here: nine lamp-steps of darkening). |-| The choice | Medium-close with the target at the far edge: the hero at left, empty sky, the last sun at right. Music stops. |-| Echo | Pull back to reveal the stage frame again, **truck right as a blurred foreground pillar wipes the frame**, and come out behind the screen. Slow push, then a fast dive into the flame that flashes to warm white before the end card. |+- **The light is the world.** Lamp count drives heat and colour. *Fits content like:* city lights spreading at night; a fever rising and falling; servers switching on one by one.+- **Off the screen = big and blurry.** A piece pulled toward the lamp grows and blurs. *Fits content like:* a rumour growing; a memory fading; a deadline pressing onto the cloth and snapping sharp.+- **Go behind the screen.** Lamp, hands, rods. *Fits content like:* how a product is really made; who controls a market; a teacher revealing the method.+- **Carved and translucent.** Holes glow, overlaps darken, open faces vs solid. *Fits content like:* an x-ray of a system; good and bad actors in a fable; layers of a city.+- **Hand-held.** Tremor and swinging parts. *Fits content like:* a nervous interview; a tightrope; a toddler's first steps.+- **Piece swap.** One carved piece on a rod replaced by another. *Fits content like:* seasons; a machine's states; weather over a harvest.+- **Strip lift-off.** A band of scenery lifted to reveal another. *Fits content like:* geological layers; before/after a flood; an old town under a new one.-When z ≥ 1, clamp the camera so it never leaves the screen rectangle (otherwise black bars appear).+## 9. Pitfalls of the medium-## 6. Sound+- Flat clip-art look → hide texture, denser openwork, deeper dyes, carved outlines everywhere.+- Figures unreadable in profile → bigger head, fuller lower body, collar piece, contrasting sleeves.+- Radiating shapes read as saw blades or petals → flame tongues with a fat base, belly and hooked tip, alternating curl.+- Grey corners when overexposed → warm vignette.+- Thin pale pieces vanish → make them dark.+- Mirror view flips pieces when rotation uses the x scale for both axes → x scale for x, y scale for y.+- Smoke with `lighter` is invisible on bright cloth → dark wisps, warm additive only near a lamp.+- Push-in centred on an edge lamp shoves figures out → push on frame centre.+- Beds leaking into a silence → hard-cut them.+- Headless screenshots time out under GPU load → retry.-- **Music = gong-and-drum patterns (锣鼓经), not generic piano + strings.** Big gong with a falling pitch after the strike ("kuang"), small gong with a rising pitch ("tai"), cymbals, a hard high clapper drum (woodblock), low barrel drum. A bright nasal bowed fiddle (erhu sample, pitched up, high-shelf + nasal formant, pitch-curve resampling for big slides and vibrato) in two modes: **ku-yin** (sorrowful, microtonal raised 4th / lowered 7th) for disaster, **huan-yin** (plain pentatonic) for heroism and healing. A suona-like shrill reed (oboe + 1.2–3 kHz formant + saturation) only for the climax.-- Patterns map to the drama: opening roll → one hit per lamp, accelerating → heartbeat drum under the disaster → *jijifeng* roll accelerating into the entrance → big gong on the freeze → fast strokes with one gong per hit → **hard stop** (≤ 30 ms, reverb tails included) for the silent choice → one tiny small-gong tap for the decision → gentle fiddle theme → gong scrape to go backstage → a final big gong tail.-- **Foley follows the materials**: wooden clapper (醒木) to open and close the show, a match strike, lamp ignition "fwoomp", bamboo rod taps on cloth, dry leather flaps when a piece lifts off, leather footsteps, bow creak (rising pitch with draw), string twang, arrow whoosh, leather thwack on hit, lamp snuff ("pfft" + sizzle), wing flaps, crackle, heat drone (hard-cut at the silence), water, a quiet backstage room tone and one breath.-- **Voice**: a storyteller (Kokoro `am_michael`, speed 0.86–0.88), 5–6 short lines, compressed, plus a little small-theatre reverb. Duck music ~12 dB and foley ~4 dB under the voice; keep the voice ≥ 12 dB above the bed. Verify every line with whisper *and* re-check the final mix (words that pass alone can blur under music: "shadow play still" became "shadow place"; rewrite rather than fight it).+## 10. Engine-## 7. Subtitles & titles+In `demo/`: `carve.js` (piece sprites, `cut` / `cutLine` / `cutTaper`, pattern library, hide texture, rivets), `gl.js` (WebGL2 compositor: lamp field × transmission × cloth, mirror, bloom, haze, warm fade), `stage.js` (frame, audience, pillar wipe, cut-letter plaques), `backstage.js` (rim-lit silhouettes, flame, smoke), `hud.js` (placard), `scenery.js` (landscape pieces, ground strip, fire), plus the jointed rig with IK and pendulum parts; `?test=model|frame|hands` draws sheets from the real engine. A first test unlike the demo: carve a lantern-seller with a lattice basket, press it onto one lamp, light three more and watch the frame bleach.-- Subtitles are a **storyteller's placard**: a narrow black-lacquer board (dark brown gradient, 0.93 alpha), a thin gold inner line, a small vermilion seal with the character 说 ("tell", Ma Shan Zheng) on the left, text in Cormorant Garamond 600, 46 px, cream `#f3e2bf`, centred 58 px above the bottom. It slides up 18 px in 0.22 s. Show each line from its start until speech + 0.8 s (≥ 1.8 s), cut 0.3 s before the next.-- Title and end card are **puppets too**: dark hide plaques with the letters cut out (`fillText` with `destination-out`, so the words glow with lamp light), red border with a meander band, green cloud-scroll corner roundels, a red seal with carved characters, carried up on two rods and lifted off the cloth to exit.+## 11. Variation space-## 8. Pitfalls we hit+You decide the story, the figures (or none), what the lamp means, what leaves the screen, the opening, the ending, the camera path, the dyes and the pacing. All far from our demo:-- **Flat vector look.** Uniform fills and sparse carving read as clip-art. Fix with the hide texture, much denser openwork, deeper dyes and a dark carved outline on every region.-- **Stilt legs / egg torso / arms lost in the torso.** Enlarge the head, lengthen the skirt, widen the trousers, add a cloud collar, and colour the sleeves differently from the chest.-- **Sun rays like a saw blade or flower petals.** Flame tongues need a fat base, a bulging belly and a hook at the tip, with alternating curl, about 40 px long × 0.78 of the arc spacing.-- **Grey corners on an overexposed frame** from a neutral vignette. Darken warm instead.-- **Arrow invisible.** Raw-hide colour disappears on a bright screen. Use a dark shaft (`#4a2612`, 3 px). The nock must be on the aim line or the arrow points sideways.-- **Mirroring flips pieces upside down** if a helper builds the rotation from `C[0]` for both axes. Use `C[0]` for x terms and `C[3]` for y terms.-- **Smoke drawn with `lighter` is invisible** against a bright cloth. Draw dark wisps normally and add a warm additive pass near the lamp only.-- **Push-in centred on a lamp at the top edge** shoves the hands out of frame. Push on the frame centre, and move the fixed point to the flame only for the final dive.-- **Heat/crackle beds leaking into the silence.** Hard-cut them at the stop.-- Headless Chrome screenshots occasionally time out while 14 other renders share the GPU. Just retry.+- Structures: **a procession** (one long pan; each figure adds a dye until the cloth is a full street); **two puppeteers** (rival hands argue through their puppets; backstage shows who is winning); **a workshop** (a puppet is carved, dyed and riveted on the cloth, then performs its own making).+- Openings: **backstage first** (rim-lit hands and rods before the front); **one hole of light** (the screen all dark hide; one carved hole glows and widens); **mid-show** (the camera finds a performance already in full percussion).+- Endings: **the lamp is carried away** (the cloth darkens from one side); **the puppets rest** (lifted off one by one, laid flat on a dim table); **the audience leaves** (the heads stand and go, the cloth still glowing).-## 9. Production recipe (this repo)+----```-styles/shadow-puppet/demo/- carve.js cutting toolkit: piece sprites, cut/cutLine/cutTaper, pattern library, hide texture, rivets- gl.js WebGL2 screen compositor (lamp field × transmission × cloth, mirror, bloom, haze, warm fade)- houyi.js jointed puppet (11 pieces, IK arms, bow, plumes, rods) poses.js key poses- suns.js carved suns + crow scenery.js mountains, ground strip, river, tree, hut, fire pieces- stage.js lacquer frame, audience, pillar wipe, cut-letter plaques- backstage.js rim-lit silhouettes (hands, lamps), lamp flame, smoke- story.js timeline (single source of truth) main.js shots, acting, lamps, events- hud.js subtitle placard test.js ?test=model | frame | hands | (main) poster- lines.json narration mix.py foley + voice + music ducking music/score.py original gong-and-drum score- tools/ cues.py (SRT), mux.sh (CRF 22), probe.mjs (render timing)-```--1. `node core/render/still.mjs styles/shadow-puppet/demo 0 --q test=model`: model sheet first (character risk comes first). Then `--q test=frame&f=ten|one` style frames and `--q test=hands`.-2. `.venv/bin/python core/tts/tts.py lines.json voices` → `core/tts/asr_check.py` (use `asr` fields for homophones).-3. Timeline in `story.js`. Review with `still.mjs --range 0.5:54:1.5` + `core/render/sheet.py` (two rounds, offset by half a step), then frame strips from the mp4 for key actions.-4. `node core/render/events.mjs` → `music/score.py` → `mix.py`.-5. `node core/render/video.mjs … --fps 24 --workers 3` (1306 frames ≈ 80 s on an M-series Mac, 3 workers).-6. `sh demo/tools/mux.sh out/video24.mp4 mix.wav shadow-puppet.mp4 24 2`. Or just `sh demo/build.sh`.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/shadow-puppet/TREATMENT.md b/styles/shadow-puppet/TREATMENT.mddeleted file mode 100644index 20f01fc..0000000--- a/styles/shadow-puppet/TREATMENT.md+++ /dev/null@@ -1,152 +0,0 @@-# TREATMENT · 16 Shadow Puppetry ·《Hou Yi Shoots the Suns》--> 2D | 目标时长 ~54 s(说明里建议 50 s,理由见第 9 节)| 1920×1080 · 24 fps | 旁白 Kokoro `am_michael`(说书人)| grain 2-------## 1. 一句话故事--**十盏油灯烧成了十个太阳;弓箭手后羿每射落一个,幕后就熄一盏灯——直到只剩最后一盏,而那一盏,正是照亮这出戏的灯。**--核心构思:**太阳 = 幕后的油灯**。开场只点亮一盏灯(戏开演),旁白一说"十个太阳",幕后又接连亮起九盏,幕布亮到发白、过曝、颜色被烧褪;每射落一个太阳就熄一盏,画面暗一档、颜色一档档回到正常的暖金色。最后留下的那个太阳,就是开场第一盏灯。结尾绕到幕后,观众亲眼看见"太阳"原来就是一盏油灯——故事的结局(只需要一个太阳)和媒介的真相(皮影戏只需要一盏灯)在同一个镜头里合上。--情绪弧:-- 角色:后羿(唯一角色)。-- 目标:射落烤焦大地的太阳。-- 转折:第十支箭已经搭上,他停手了——留下一个太阳。-- 回响:1 盏灯 → 10 盏 → 1 盏;开场醒木 ↔ 结尾醒木;开场片名皮影牌 ↔ 结尾片尾皮影牌。-------## 2. 对标:学什么 / 刻意不学什么--### Lotte Reiniger《阿基米德王子历险记》(1926)-| 学 | 不学 |-|---|---|-| **全部用侧面表演**:剪影只有侧面最可读,姿势要在轮廓里一眼读出(拉弓、亮相、低头) | 纯黑剪影——我们用陕西皮影的**半透明彩色驴皮**,颜色是这个风格的第二主角 |-| **关节铰接的动作质感**:肢体绕铆钉转,腿和饰物有自然的惯性摆动 | 她的欧洲童话造型、人物、装饰纹样 |-| **布景是"透光的蕾丝"**:精细镂空的树、云,靠多层半透明分出远近 | 她逐格拍摄的步进感(见第 4 节:皮影是现场表演,动作走 24 fps 连续) |-| 大量留白,画面主体少而清楚 | 任何具体镜头构图 |--### 华阴老腔 / 陕西皮影的锣鼓与唱腔-| 学 | 不学 |-|---|---|-| **锣鼓经的结构**:起板(开场锣鼓)→ 急急风(急促板鼓催场)→ 亮相的一锤大锣 → 快长锤连击 → 收板 | 不采样任何录音,不用任何现成曲牌旋律 |-| 板胡高亢的鼻音与大滑音;**苦音**(悲,偏音 fa↑ si↓ 突出)与**欢音**(喜,纯五声)两种调式换色 | 不模仿任何唱段;本片没有唱,只有说书人念白 |-| 老腔"拍板凳"式的木头重击 → 化成开场/收场的**醒木**一拍 | |-| 锣鼓为动作"打点":每个动作都落在锣鼓上,静场时锣鼓全停 | |-------## 3. 原生招式(只有皮影能做)--| 招式 | 在片中的位置 | 为什么只有皮影能做 |-|---|---|---|-| **① 绕到幕后:太阳原来是一盏油灯**(主招式,放在情绪最高点之后的回响处) | 43–50 s | 皮影戏的"舞台"是一块被灯照亮的布。镜头横移,舞台立柱在前景一闪而过(遮挡转场),出来已在幕后:幕布从背面发光,艺人的手(剪影)捏着三根操纵杆把后羿按在布上,面前只剩一盏点着的油灯,身旁九盏刚熄的灯还冒着细烟。故事的"太阳"和戏的"光源"在同一画面里对上。 |-| **② 光就是剧情:一箭一灯,画面暗一档** | 27–34 s | 皮影的画面亮度直接由幕后油灯决定。十盏灯时画面过曝发白、驴皮颜色被烧褪(热、刺眼);每熄一盏,整块幕布的曝光和色温都实打实地降一档,最后一盏时颜色最饱满——"救世"在画面上就是"曝光恢复正常"。连射段用**固定机位全景**让观众看清这 9 档台阶。 |-| **③ 离布即虚:影子离开幕布就变大、变虚** | 太阳登场 / 太阳坠落 / 片名牌退场 | 真实皮影里,影人离开幕布靠近灯,影子会放大并虚化。太阳从"巨大模糊的光团"压到布上变清晰 = 登场;被射中后,里面的三足金乌(神话里太阳就是乌鸦)跌落并离开幕布,越掉越大越虚,化进光里 = 死亡。 |-| **④ 透光的彩色驴皮 + 镂空** | 全片 | 颜色是"透过"来的:重叠的两片皮更暗;镂空处漏出最亮的光;英雄是"空脸"(脸部镂空,只剩眉眼鼻口的细皮线)。 |-------## 4. 视觉语言--- **幕布**:米白棉布,细密经纬纹 + 大尺度的疏密不匀 + 边缘被木框压暗。只有背后的灯把它照亮。-- **渲染模型**(WebGL2 合成):`画面 = 色调映射( 灯光场(x,y) × 驴皮透射率(x,y) × 布纹 )`。- - 灯光场 = 每盏灯一个宽光斑(σ≈650 px)+ 太阳位置一个窄核(σ≈110 px),各自独立闪烁;十盏灯时总亮度约为一盏的 4–5 倍 → 高光溢出、颜色褪成橙白。- - 透射率画在 2D 画布上:底色白,影人各片以 `multiply` 叠上去——**重叠处自然更暗**,镂空处是白(全透)。- - 辉光(亮部金字塔模糊)、热浪扭曲(十日段)、暗角、灯焰闪烁都在着色器里。-- **驴皮色(透射色)**:朱红 `#c3261a`(后羿铠甲)、焰橙 `#e0561c`、姜黄 `#e6a91e`、石绿 `#2b7b3f`、靛青 `#2a6c86`(河)、本色皮 `#e7c68c`、墨 `#1a100a`(轮廓线、头发、靴)。-- **灯光色**:一盏灯 = 暖金 `#ffdca0`;十盏 = 近白 `#fff6d8`(过曝)。-- **影人结构**:后羿 11 片 + 道具(弓、箭、箭壶),铆钉可见(深色小圈 + 浅色线结),三根操纵杆(颈杆 1、手杆 2)以离布的虚影出现。-- **镂空纹样库**:鱼鳞甲、云头卷、回纹边、联珠、梅花、水波、火焰——都是代码生成的通用纹样,不复刻任何具体传统影人。-- **舞台**:开场和结尾能看到红黑漆木框、雕花横楣、两根立柱、前排几个小观众的后脑剪影。-- **幕后**:深褐暗场,唯一光源是一盏油灯;幕布从背面发光;艺人的手和袖子是剪影带暖色轮廓光;九盏熄灭的灯冒细烟。--## 5. 动作语言--- **皮影是现场表演,不是定格** → 影人动作走 24 fps 连续(不做 on twos),加上**手持的微颤**(2–3 px 低频噪声)和**油灯闪烁**,这两样才是皮影的"活气"。-- 主杆带动身体平移,**腿不受控、靠惯性像钟摆一样甩**(预模拟的摆锤),翎子(两根雉尾)同样是弹簧链。-- 动作语汇:碎步急上 → 一个小跳 → **亮相**(大锣一锤,全身定住 0.6 s,只有翎子还在颤)→ 转头望日 → 开弓(慢、弓身逐渐弯)→ 放箭(快,一帧到位)→ 收弓低头。-- 火焰 = 三块镂空火焰皮片 12 fps 轮换抖动(皮影做火的土办法)。-- 太阳:缓慢自转 + 上下浮动;被射中时光芒散片、金乌翻滚坠落并离布虚化。--## 6. 分镜节拍表(100 BPM:1 拍 = 0.6 s,1 小节 = 2.4 s;时间为暂定,配音定稿后微调)--| # | 时间 (s) | 画面 | 机位意图 | 声音 |-|---|---|---|---|---|-| S1 | 0.0–7.2 | 全黑。0.4 醒木一拍。1.0 幕后擦火柴,一团暖光在布上亮起;**舞台全景**:漆木框、雕花楣、前排小观众后脑剪影。2.4 片名皮影牌(黑皮镂空字 *HOU YI SHOOTS THE SUNS* + 红印"后羿射日")由两根杆托上来,3.6 落定;7.0 离布虚化退场。 | 观众席视角,交代"这是一场戏";极慢推近 | 醒木、火柴、灯芯引燃;开场锣鼓"起板" |-| S2 | 7.2–12.0 | 推过木框进入幕布。**九盏灯接连亮起**,每亮一盏落下一个太阳:巨大虚光团 → 压到布上变清晰。画面越来越亮、发白。 | 推入 = 进入故事;木框出画 | 每灯一击小锣/钹,越打越密;L1 |-| S3 | 12.0–18.0 | 焦土:沿地面横移——河床龟裂、田地裂开(裂缝镂空透出刺眼白光)、树叶变橙掉落、火焰皮片跳动;全画面热浪扭曲。 | 1.6× 横移扫过大地,让"灾难"有面积 | 低堂鼓心跳 + 板胡苦音;L2 |-| S4 | 18.0–21.6 | 后羿碎步从左急上,腿甩、翎子飘;一个小跳落定。 | 1.2× 跟摇 | "急急风"板鼓催场 |-| S5 | 21.6–25.2 | **亮相**:大锣一锤,4 帧急推到中景,全身定住,翎子还在颤;随后转头望日。 | 急推 = 戏曲的"锣鼓点"变成镜头 | 大锣"哐" + 钹;静 0.6 s;L3 |-| S6 | 25.2–30.0 | 开弓特写(手、弓、侧脸空脸)→ 放箭 → 镜头甩向第一个太阳,击中:光芒散片、金乌坠落离布;**幕后熄一盏,画面暗一档**。第二箭中景完成。 | 特写蓄力 → 甩摇释放 | 弓弦吱呀、箭啸、唢呐一声;锣 + 灯芯"噗" |-| S7 | 30.0–34.8 | **固定全景**:第 3–9 箭越射越快,太阳一个个坠落,幕布一档档变暗、颜色一档档变饱满。 | 固定机位,让观众看清 9 档台阶——本片最想让人记住的画面之一 | 唢呐 + 快长锤,每箭一锣 |-| S8 | 34.8–37.2 | **静场**:第十支箭搭上,瞄准最后一个太阳。侧脸 + 箭头特写,太阳在远处柔虚。……他慢慢放下弓。 | 近景,时间被拉长 | **音乐全停**,只剩灯芯噼啪、弓弦松开;36.9 一声极轻的小锣 |-| S9 | 37.2–43.2 | 暖金色、正常曝光的全景:河水(靛青皮条)流回来,嫩芽冒出,树长出绿叶。后羿低头收弓。镜头慢慢拉出,木框重新入画。 | 拉出 = 从故事回到戏台,为幕后揭示铺路 | 板胡欢音主题;L5 |-| S10 | 43.2–44.2 | 镜头向右横移,舞台立柱在前景(大虚)扫过整个画面。 | 遮挡转场:一次"绕到幕后"的连续运动 | 布帘擦过、风声 |-| S11 | 44.2–50.4 | **幕后**:过肩视角,幕布从背面发光;艺人两只手(剪影)捏着三根杆,把后羿按在布上;前景一盏点着的油灯,旁边九盏熄灯冒着细烟。镜头缓推向那盏灯。48.5 艺人让后羿对着灯(太阳)微微一躬。 | 尺度揭示:刚才的"天空"只有这么大,"太阳"就是一盏灯 | 室内底噪、灯芯噼啪、竹杆轻碰;板胡长音;L6 |-| S12 | 50.4–54.0 | 50.4 **醒木一拍**(呼应开场)。推进灯焰 → 化到正面幕布:片尾皮影牌 *SHADOW PUPPETRY* · *LemoLab × Claude Opus 5.5*,由一盏灯照亮。 | 首尾呼应 | 醒木 + 收板一锣长尾 |--旁白(am_michael,速度 0.86–0.88,说书人口吻,句间留足呼吸):--| id | 起点 | 文本 | 实测长 |-|---|---|---|---|-| L1 | 7.4 | Long ago, ten suns climbed the sky at once. | 3.06 s |-| L2 | 12.6 | The rivers boiled. The fields cracked. The whole earth began to burn. | 4.98 s |-| L3 | 22.4 | Then came Hou Yi, the archer. | 1.99 s |-| L4 | 25.2 | One arrow for every burning sun. | 2.18 s |-| L5 | 37.8 | But the last one, he spared. So the world would have light, and not fire. | 4.57 s |-| L6 | 45.2 | One light is enough. Even now, every shadow play burns just one. | 4.83 s |--## 7. Cue map(原创配乐,numpy 合成,不用通用钢琴弦乐)--乐器(全部合成):**大锣**(低频、击后音高下滑的"哐")、**小锣**(音高上扬的"台")、**铙钹**(带通噪声 + 金属分音)、**板鼓**(高而硬的"哒")、**堂鼓**(低鼓心跳)、**梆子/醒木**(硬木击)、**板胡**(锯齿波 + 共鸣峰 + 大滑音 + 揉弦)、**唢呐**(双簧:方波/脉冲 + 强鼻音共振峰 + 颤音)。--| Cue | 时间 | 速度 | 配器 | 情绪 | 卡点 |-|---|---|---|---|---|---|-| C0 醒木 | 0–2.4 | 自由 | 醒木、火柴、灯芯 | 屏息 | 0.40 醒木;1.25 灯燃 |-| C1 起板 | 2.4–7.2 | 100 | 小锣 + 板鼓"台 台 七台 仓",板胡开场句(苦音) | 开戏 | 3.6 片名落定"仓" |-| C2 十日 | 7.2–12.0 | 100→加密 | 小锣/钹逐灯一击(四分→八分→十六分) | 灼热、失控 | 9 次灯亮;12.0 大钹 |-| C3 焦土 | 12.0–18.0 | 100 | 堂鼓心跳、板胡苦音颤弓、热嗡鸣 | 窒息 | "cracked""burn" 上各一次重音 |-| C4 急急风 | 18.0–21.6 | 100→140 | 板鼓滚奏越来越密 + 铙钹 | 催场 | 步点对鼓点;21.6 大锣 |-| C5 亮相 | 21.6–25.2 | 100 | 大锣一锤 → 0.6 s 静 → 板胡英雄动机(欢音) | 英雄登场 | 21.6 |-| C6 开弓 | 25.2–30.0 | 100 | 板胡上滑 + 鼓滚渐强 → 唢呐一声 | 蓄力、释放 | 27.6 放箭、27.9 中日;29.4/29.7 |-| C7 连射 | 30.0–34.8 | 100(半拍连击) | 唢呐旋律 + 快长锤,每箭一锣 | 高潮 | 7 次中日;34.8 **全停** |-| C8 静场 | 34.8–37.2 | — | 无音乐(灯芯、弓弦) | 抉择 | 36.9 极轻小锣 |-| C9 回春 | 37.2–43.2 | 88 | 板胡欢音主题 + 木鱼轻点 + 低音持续 | 释然、温暖 | |-| C10 幕后 | 43.2–50.4 | 自由 | 板胡长音 + 低持续音,渐稀 | 揭示、回味 | 43.2 转场风声 |-| C11 收板 | 50.4–54.0 | — | 醒木 + 大锣长尾 | 落幕 | 50.4 |--旁白期间音乐闪避约 −8 dB;锣鼓重击避开旁白词头。--## 8. 声音设计(拟音跟材质走:布、皮、竹、木、火)--- **醒木**:硬木拍桌(短促瞬态 + 1.1 kHz/2.3 kHz 木共鸣 + 小房间反射)。-- **火柴 / 灯芯**:擦划噪声 + 火苗"呼"地燃起;全片底层有轻微灯芯噼啪。-- **影人**:竹杆碰布的"嗒"、驴皮片翻动的干脆"啪"(高频短噪声)、影人贴上幕布的轻响。-- **弓箭**:竹木弓身吱呀(creak)、弦震"嗡"、箭啸(带通扫频 whoosh)。-- **太阳坠落**:锣击 + 金乌扑翅(一次) + 灯芯被捏灭的"噗—嘶"。-- **焦土**:低频热嗡、木头爆裂噼啪。**回春**:细水流声。-- **幕后**:室内底噪、竹杆轻碰、艺人一声很轻的呼吸。--## 9. 字幕设计--"说书人的题板":一块窄长的黑漆木牌(深褐 `#1e0e09`,内勾一圈细金线 `#a8813f`),左端一枚朱红小方印(马善政体"说"),英文字幕用 Cormorant Garamond SemiBold 46 px、米色 `#f3e2bf`;牌子居中贴底 64 px。出现时 0.2 s 从下方滑上并伴一声极轻的木板"嗒",消失时淡出。片名/片尾是**镂空字的皮影牌**(字是透光的洞)。字幕每句停留 ≥ 语音 + 0.8 s 且 ≥ 1.8 s;相邻两句之间留 ≥ 0.3 s 空白。--## 10. 与风格说明的差异及理由--1. **时长 ~54 s(说明写 50 s)**:静场(S8,2.4 s 完全无乐)和幕后揭示(S11,6 s)是本片的两个情绪支点,压掉任何一个都会伤害结构;字幕停留按观众阅读时间留足。仍在 30–60 s 规格内。-2. **"太阳 = 幕后的灯"**:说明是"射一个太阳,幕后熄一盏灯",我把它推进一步——开场只点一盏灯,旁白一说"十个太阳"再亮九盏,最后留下的那一个就是开场第一盏。这样幕后揭示不是附加彩蛋,而是故事的答案。-3. **动作不做 on twos**:皮影是现场操纵的,连续运动 + 手颤 + 灯闪才是它的质感;只有火焰皮片用 12 fps 轮换(这是皮影里真实的做法)。-4. **"表情"改为"头部姿态 + 身段"**:传统皮影的头茬是刻死的,不会变表情。设定表里用 4 种头部角度/身段(平视、仰望、低头、亮相)代替表情。-5. **金乌**:太阳被射中后跌落的是一只三足乌(后羿神话中太阳的本体),让"射落太阳"有一个可见的、非血腥的结果。-------## 11. 制作后记(成片与方案的差异)--- **L6 改词**:原句 "Every shadow play still burns just one." 单独校对通过,但混进配乐后 whisper 听成 "shadow place"(play still 连读)。改成 "Even now, every shadow play burns just one.",成片复核通过。-- **关卡 1 返修**(协调者意见):后羿加密刀刻(开口鱼鳞、菱格锦纹、古钱孔)、鞋改为厚底朝靴;景片改成雕刻驴皮件(山纹地层 + 云头孔的整片山、蕾丝叶冠、镂空茅屋),幕布大部分留白;裂纹改为逐渐烧穿的锥形刻缝;太阳改为火焰纹镂空圆皮件 + 单独的金乌剪影;火焰改为传统火焰纹皮件插杆 12 fps 抖动。-- **幕后镜头**:艺人双手用剪影 + 暖色轮廓光(掩膜减去背光方向偏移的掩膜),先单独做了手的试画页(`demo/stills/hands_test_v1.jpg`)自审;十盏灯改为挂在幕前一排(亮的那盏正在最后一个太阳后面),九盏熄灯冒细烟,烟靠近亮灯时被照成暖白。缓推以画面中部为中心(保证手一直在画内),最后 0.7 s 才向灯焰俯冲、闪成暖白转片尾。-- **配乐**:core/audio 采样库已就绪,锣鼓用 gong2 / sus_cymbal / crash / woodblock / frame_drum,板胡感用 erhu 采样变调 + 共振峰 + 可变速重采样滑音,唢呐感用 oboe + 共振峰 + 饱和(由 fork 子 agent 按本 cue map 写成,`demo/music/score.py`)。diff --git a/styles/shadow-puppet/style.json b/styles/shadow-puppet/style.jsonnew file mode 100644index 0000000..ec0e070--- /dev/null+++ b/styles/shadow-puppet/style.json@@ -0,0 +1,18 @@+{+ "slug": "shadow-puppet",+ "num": "07",+ "en": "Shadow Puppetry",+ "cn": "皮影戏",+ "category_en": "East Asian Traditions",+ "category_cn": "东方传统",+ "film": "Hou Yi Shoots the Suns",+ "line": "Ten suns scorch the earth until the archer Hou Yi draws his bow, told with leather puppets on a lit screen.",+ "line_cn": "十日炙烤大地,后羿张弓射日。",+ "uses": [+ "Myths & folklore",+ "Heritage",+ "Festivals"+ ],+ "frame_sec": 21.76,+ "dur": 54.4+}diff --git a/styles/silent-film/DEMO.md b/styles/silent-film/DEMO.mdnew file mode 100644index 0000000..644650d--- /dev/null+++ b/styles/silent-film/DEMO.md@@ -0,0 +1,134 @@+# 1920s Silent Film — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *The Runaway Loaf* (54.2 s) · `silent-film.mp4` · source in [`demo/`](demo/)+++A 40–60 second one-reel comedy: a baker's perfect round loaf escapes and ends up with a hungry girl. The references it leaned on hardest: Keaton's locked-off chain gag and Lloyd's near-miss; the score follows a photoplay cue sheet (Maestoso / Andante / Hurry / Misterioso / Agitato / Tenderly).++## Story & structure++A short one-reel comedy as it would look *projected*: the frame is a 4:3 print in a gate, between theatre curtains; the image is an ink drawing with washed greys and hatching, printed on silver stock that flickers, weaves, scratches and burns at the edges. Nobody speaks. Story beats are told by **action in wide shots** and by **intertitle cards**. The only sound is a cinema piano (and the projector in the booth).++The comic engine is Keaton's: an ordinary person with one small goal, a physical world that misbehaves, a face that does not react — and one gag built as a chain of cause and effect that the audience watches happen in a single frame.++How the demo used the medium:++| Native power | Story use |+|---|---|+| **Locked-off wide shot** | A mechanical gag: A triggers B, B leaves the frame, the audience waits, B comes back and hits C. The waiting is the joke. |+| **Intertitles** | Three to five cards carry what the action can't: the premise twist ("The loaf had other plans."), a shout ("STOP THAT BAKER!"), one line of dialogue ("Is it yours, mister?"). Keep each card to a few words. |+| **Projection speed** | Undercrank the chase (motion sampled at 18 fps, 1.3× speed, faster flicker); return to 16 fps and a calmer print for tender scenes. Speed is an emotion. |+| **The iris** | Open on the object of the story, close on the last glance. An iris that stops half-way lets a character look at the audience (a wink). |+| **Ageing as mood** | More damage when things go wrong, a warmer sepia and a cleaner print when the film turns tender. |++**Story shape (proven in the demo):** pride (a baker lifts his perfect round loaf high) → the object escapes (it wobbles on the sill, rolls off and away down the hill — a *round* loaf, so it can really roll) → the chase with one near-miss (he grabs, it hops over his hand, he stares into his empty fist) → the chain gag in one take (see-saw → a melon flies out of frame → the constable strolls in → the melon lands on his helmet) → it stops at the feet of someone who needs it more (a hungry girl) → silence → a small act (he breaks the loaf in two) → echo (she lifts her half high, as he did) → the iris closes on her wink. **Cut rather than add**: an earlier version with a tram, a fog chase, a rooftop hang and an eight-step market chain was unreadable in thumbnails. One legible chain beats three busy ones.++Adapting any topic: find the object that escapes, the person it should end up with, one mechanical chain that can happen in a single wide frame, and a gesture that can be repeated at the end with a new meaning.++## Shots++| Beat | Camera |+|---|---|+| Opening | Curtains part on a dark screen while the projector spins up; the title card; an **iris opens** on the lifted loaf. |+| Setup | A locked full shot: the whole premise (pride → sill → the roll → double take) plays in one frame. |+| Chase | A **tracking shot**: the town scrolls at 0.8, lamp posts sweep past in front at 1.35, the hero and the object stay in frame. |+| The chain gag (signature) | A locked-off extreme wide, **no cut**: see-saw → melon out of the top of frame → 2.5 s of waiting → constable walks in and stops on his mark → melon lands. |+| Breath | A locked full shot, then true silence. |+| Tender | A slow **push-in** that is motivated: the camera comes down to the child's level as the hero kneels (zoom 1.6 → 2.1). |+| Ending | The **iris closes** on the child, stops, she winks at the audience, it shuts; "The End"; the curtains close. |++- **Hand-cranked sampling**: character and camera motion is sampled at 16 fps (18 in the chase); the print's flicker, weave, grain and scratches change every output frame (24 fps). That mix is what makes it look projected rather than simply low-frame-rate.+- **Deadpan performance**: the hero's face barely changes; the body does the acting — the crouch before the lift, the lift held proud, the two-frame snap of the double take with a little jump, the bend-and-swipe, the look into the empty fist while still running, hands on knees, the kneel.+- **Objects act too**: the loaf wobbles on the sill before it goes, hops over a cobble at exactly the wrong moment, decelerates with the music (ritardando) and rocks to rest against a shoe.+- **Raise arms away from the face.** On this rig forward flexion carries a raised arm across the face; raise celebratory arms by abduction (sideways, jumping-jack style) or turn the character toward the camera first.++## Score structure++- **No foley, no voice.** The piano *is* the sound design, as in a 1920s picture house: a nervous trill for the wobble, a descending glissando for the fall, a low "boing" for the bounce, a diminished sforzando for the double take, a high stab and an upward run for the grab, "plink … plonk" for the empty fist, a forearm cluster for the see-saw, an upward glissando for the melon, a swelling diminished tremolo for the wait, a falling glissando into a crash chord for the landing, a crisp minor second when the bread breaks, a grace note for the wink.+- **Score**: original photoplay music on a period **upright piano** (VSCO 2 CE, CC0), stride left hand, following a cue sheet: Maestoso title → Andante "Loaf theme" (F major) → comic "uh-oh" + accelerando run → Hurry (A minor, 16th-note runs, 144 BPM) → stop-time suspense + Misterioso walk → Agitato tremolo → ritardando (88) → silence → **reed organ** (FreePats accordion, CC0) enters pp → Tenderly (the Loaf theme at 72 BPM) → finale. The theme is heard proud at the start and tender at the end.+- **The projector is the ambience**: a lamp click and motor spin-up before the curtain, a soft claw-and-motor purr under the reel, pushed forward as the *only* sound in the silence, and the tail of the film flapping on the take-up reel at the end.+- **Silences**: (1) the stop-time in the chain gag, while the melon is out of frame (only a faint tremolo swelling); (2) the loaf stops, the projector alone for two seconds — the next sound is the reed organ.+- Tame the piano's hammer transients with light compression before loudness normalisation (−14 LUFS). Put the grain in the picture; mux grain 1.++## Palette & props++- **House style = tonal painting + Redraw.** Scenes are painted in grey values only (print densities: ink 0.07, dark cloth 0.15–0.3, mid wood 0.45–0.6, skin 0.8, shirts and aprons 0.9–0.95), with soft light gradients and a thin separation line. The **Redraw** pass (WebGL2) then inks the whole frame: difference-of-Gaussians contours on the dark side of every edge, the luminance posterised into five soft wash steps, and 45° hatching (then crossed) in the darks that is re-drawn every two frames like hand-redrawn animation. Real video frames go through the same pass ("redraw mode", see `stills/redraw_v1.jpg`), so footage and drawing share one hand.+- **Print** (`FilmPost`): silver tone with 0.10–0.36 sepia, print black 0.055 / white 0.93, S-curve, halation on highlights, uneven density, flicker, gate weave with the occasional perforation jump, broken vertical scratches (white = scraped emulsion, dark = dirt on the negative), brown burn creeping from the edges, vignette, two-octave silver grain. Then `damage()` adds dust, a hair in the gate and the rare blotch.+- **Frame**: 1440×1080 in the centre of 1920×1080, rounded 22 px aperture with a soft dark rim; the sides are the theatre — velvet drapes lit by the screen's spill and by footlights. The curtains part at the start and close at the end.+- **Characters**: realistic 7.5-head adults and a 5-head child on a 2.5D rig (joints solved in 3D, projected with a yaw), silent-era make-up (pale skin, dark lids and lips). Silhouette marks of the demo hero: a pleated baker's cap, a dark waistcoat over a white shirt, a long white apron.+- **Intertitles**: a black painted card with a deco border whose ornament follows the emotion — one heavy rule for a shout (text shakes), a double rule with stepped corners and fans for narration, vines and small flowers for tenderness. Playfair Display SC for titles and shouts, Old Standard TT Italic for narration and dialogue.++## Titles, intertitles & end card++- The intertitles *are* the subtitles; the `.srt` lists their text. Each card holds 2.5–3.75 s.+- Title: THE RUNAWAY LOAF / *a photoplay in one reel*.+- End card (tender border): The End · title and style name · LEMO-OPUSCAR · LemoLab × Claude Opus 5.5 · asset credits; the curtains close over it. The LemoLab sign-off belongs to this library's demo only: a user's film carries no LemoLab credit and no copy of this card.++## Pitfalls we hit (demo record)++- **Puppet arms** (first cut): each arm was a separate tube with its full outline over the shirt, the shoulder pivot never moved, and abduction was applied after flexion — so a "spread" overhead arm actually swung inward and the lift became an X. Fixes in `engine/figure.js`: abduction first, then flexion; the shoulder joint rises and swings forward as the arm goes up (clavicle); the torso's shoulder corner slims on the raised side; arms carry a deltoid and a biceps/forearm profile; the arm's contour is hidden where it lies over the torso near the shoulder.+- **Pose pops**: switching poses in `if` branches makes figures jump. Every character is driven by keyframe lists (`poseAt`, `numAt` in `shots.js`) so poses, position and facing are always eased; only deliberate gags (the double take) snap.+- **Floating props**: a prop "held" at the average of the hands drawn on top of everything floats. Hold it *between* the palms at the depth between the two arms (`props.between`), size it to the gap between the palms, and hand it over by interpolating between the giver's and the receiver's palm positions (`palmsAt`). A long loaf can't roll along its length — use a round one, and tie its rotation to distance (angle = distance / radius).++- **Too much content kills a silent film.** An eight-step chain gag at 64 px per head is noise in a thumbnail; the first version never reached its first review. One chain, with a pause in the middle, reads.+- The rig's faces look like mannequins in big close-ups: stay in wide and medium shots (which is Keaton's grammar anyway) and keep the only close-up inside the iris.+- A raised arm crossed the girl's face and hid the wink: turn her toward the camera and raise the arm by abduction.+- Brow angles flip with the facing direction: "worried" (inner brows up) read as angry on the girl facing left; check expressions in a crop at final size.+- The iris centre must track the face in *film* coordinates after the camera zoom (`girlFace()` maps world → film).+- In the chase the hero first never got within arm's reach of the loaf, so the grab didn't read: put the hand exactly where the object is at the beat, bend the body down, make the hop big (210 px).+- Closed curtains lit only by the dark screen are pure black (blackdetect): add footlights.+- Heavy grain makes big files (170 MB at CRF 19); re-encode with `-tune grain -crf 25` (≈ 77 MB).++## Build notes++```+styles/silent-film/demo/+ timeline.js cue-sheet sections (bpm, beats) + named hits — the single source of truth → tools/dump_timeline.mjs → timeline.json+ engine/ ink.js (tonal forms, ink line, wash, hatch, drawShape) · redraw.js (Redraw: frame → ink drawing, WebGL2)+ film.js (FilmPost print + damage) · cards.js (intertitles, deco borders, iris, theatre) · figure.js + heads.js (2.5D rig)+ chars.js poses.js sets.js the cast, key poses, town set pieces+ shots.js one function per section: bakery · chase · market · roll · sil · tender · irisShot (tonal paintings)+ film.js assembly: shot → Redraw → iris → FilmPost → gate + curtains; per-section look (damage, sepia, sampling fps, crank)+ cardspecs.js the intertitles frames.js model sheet, card sheet, redraw sample, one-colour example+ music/score.py photoplay score from timeline.json mix.py score + projector+ tools/ cuecheck.py · subs.py · dump_timeline.mjs+```+1. Write the cue sheet (`timeline.js`) first: sections, tempi, and every gag beat as a named hit. The score is generated from the same file, so every hit lands (0 ms).+2. Paint each shot in greys (`?scene=` stills for review), then look at it through the whole pipeline — the Redraw pass changes what reads.+3. `sh demo/build.sh`: timeline → score → cue check → mix → srt → render (≈ 55 s with 2 workers for 1301 frames) → mux (−14 LUFS) → grain re-encode → stills. About 2.5 minutes.+4. Review 1 frame per second, then frame strips for every gag at 0.1–0.2 s.++## Engine reference++Four modules, usable on their own:++| Module | Main API |+|---|---|+| `engine/ink.js` (tonal drawing) | `setFrame(t, {boil})` · `form(g, pts, {v, line, grad, shade, cyl})` (a filled, shaded, outlined shape in grey value `v`) · `stroke(g, pts, w)` · `drawShape(g, shape, style)` (**any path in this style**; `style.color` draws it in a hue for the colour mask) · `sparkPts(cx, cy, r, tail)` · `catmull`, `ellipsePts`, `rectPts`, `mottle`, `shade`, `grey(v)` |+| `engine/redraw.js` | `new Redraw(w, h).render(canvasOrImageOrVideo, {frame, lines, tone, hatch, levels, gap, sigma, p, eps, phi, bilateral, src})` → canvas. Turns the tonal painting *or a real video frame* into the ink drawing (redraw mode: `bilateral: 3, p: 34, eps: .24` for photos). |+| `engine/film.js` | `new FilmPost(w, h).render(src, {frame, strength, sepia, crank, grain, flicker, weave, scratches, burn, vignette, halation, exposure, jump}, colorMask?)` → canvas · `damage(g, x, y, w, h, frame, strength)` (dust, hair, blotch). Stack it on **any** 2D canvas. |+| `engine/cards.js` | `intertitle(g, W, H, {level, lines:[{text, font, size, italic, weight, spacing}], shake}, t)` · `decoBorder(g, x, y, w, h, level)` · `iris(g, W, H, cx, cy, r)` · `theatre(g, W, H, gate, spill, curtainOpen)` |+| `engine/figure.js` + `heads.js` | `drawFigure(g, character, {x, ground, scale, yaw, pose, t, props})` · `P0()`, `mixPose`, `runPose(ph)`, `walkPose(ph)`, `runBob` · characters in `chars.js`, poses in `poses.js` |++**The one colour.** The print is monochrome; to keep one element in its own hue, draw it into a separate mask canvas (colour + alpha) and pass that to `FilmPost.render`: it keeps the hue where the mask has alpha, but still gets the grain, flicker and vignette.++```js+import { drawShape, sparkPts, grey, setFrame } from './engine/ink.js';+import { Redraw } from './engine/redraw.js';+import { FilmPost, damage } from './engine/film.js';++setFrame(t);+const W = 1440, H = 1080, mk = () => Object.assign(document.createElement('canvas'), { width: W, height: H });+const frame = mk(), f = frame.getContext('2d'), mask = mk(), m = mask.getContext('2d');+f.fillStyle = grey(.9); f.fillRect(0, 0, W, H);+const sp = sparkPts(720, 460, 220, 260); // a four-point light with a short tail+drawShape(f, sp.star, { v: .6, shade: 12 }); // tonal version (gets inked + hatched)+drawShape(f, { pts: sp.tail, closed: false }, { line: 10 });+drawShape(m, sp.star, { color: '#D97757' }); // the one colour+const inked = new Redraw(W, H).render(frame, { frame: Math.round(t * 24) });+const print = new FilmPost(W, H).render(inked, { frame: Math.round(t * 24), strength: .6, sepia: .15 }, mask);+g.drawImage(print, 240, 0); damage(g, 240, 0, W, H, Math.round(t * 24), .6);+```+(`?scene=frames.oneColour` renders this example.)diff --git a/styles/silent-film/STYLE.md b/styles/silent-film/STYLE.mdindex 58caaf9..144cf0e 100644--- a/styles/silent-film/STYLE.md+++ b/styles/silent-film/STYLE.md@@ -1,137 +1,107 @@# 1920s Silent Film — Style Prompt-> An engraved-illustration silent comedy projected in a picture house: ink line and silver wash, a 4:3 print that flickers and weaves between velvet curtains, intertitles instead of voices, and a cinema pianist who plays every gag.-> Demo: *The Runaway Loaf* (54.2 s) · `silent-film.mp4` · source in `demo/`-> References (grammar only): **Buster Keaton**, *The General* (1926) and *Sherlock Jr.* (1924) — the whole gag in one locked-off wide shot, a deadpan face, a hero who never stops running; **Harold Lloyd**, *Safety Last!* (1923) — the near-miss; **Georges Méliès** — the iris; **The Artist** (2011) — how few intertitles a modern audience needs; **1920s photoplay piano cue sheets** — music by section (Maestoso / Andante / Hurry / Misterioso / Agitato / Tenderly), with the piano doing the sound effects. Never use the Tramp look (bowler, toothbrush moustache, cane), any real film's gags, or any published melody.+> An engraved-illustration silent film projected in a picture house: ink line and silver wash, a 4:3 print that flickers and weaves between velvet curtains, intertitles instead of voices, and a cinema pianist who plays every beat.+> References (grammar only): **Buster Keaton**, *The General* (1926) and *Sherlock Jr.* (1924) — the whole gag in one locked-off wide shot, a deadpan face, a body that does the acting; **Harold Lloyd**, *Safety Last!* (1923) — the near-miss; **Georges Méliès** — the iris and the trick shot; **The Artist** (2011) — how few intertitles a modern audience needs; **1920s photoplay piano cue sheets** — music by mood section, the piano doing the sound effects. Never use the Tramp look (bowler, toothbrush moustache, cane), any real film's gags, or any published melody.-You are directing a 40–60 second film in the **1920s Silent Film** style. The user gives you a topic. You decide everything else (story, gags, shots, score, intertitles) and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not----+A one-reel film as it would look *projected*:+- **A 4:3 print in a gate between theatre curtains**; the sides of the 16:9 frame are the picture house.+- **An ink drawing with washed greys and hatching**, printed on silver stock that flickers, weaves, scratches and burns at the edges.+- **Nobody speaks.** Beats are told by **action in wide shots** and by **intertitle cards**.+- **The only sound is a cinema instrument** (piano, organ) and the projector in the booth.++Not a noir (no hard shadows as mood, no voice-over), not a sepia photo filter on modern animation (the drawing itself is engraved and inked), not a Chaplin pastiche.++## 2. Materials & rendering++- **Tonal painting + Redraw.** Scenes are painted in grey values only (print densities roughly: ink 0.07, dark cloth 0.15–0.3, mid wood 0.45–0.6, skin 0.8, white linen 0.9–0.95), with soft light gradients and a thin separation line. A **Redraw** pass (WebGL2) inks the whole frame: difference-of-Gaussians contours on the dark side of every edge, luminance posterised into ~5 soft wash steps, and 45° hatching (then crossed) in the darks, re-drawn every two frames like hand-redrawn animation. Real video frames can go through the same pass so footage and drawing share one hand.+- **Print pass**: silver tone with a sepia amount between ~0.1 and ~0.36, print black ~0.055 and white ~0.93, S-curve, halation on highlights, uneven density, flicker, gate weave with occasional perforation jumps, broken vertical scratches (white = scraped emulsion, dark = dirt on the negative), brown burn creeping from the edges, vignette, two-octave silver grain; then dust, a hair in the gate, a rare blotch.+- **Frame**: 1440×1080 in the centre of 1920×1080, a rounded aperture with a soft dark rim; velvet drapes at the sides lit by the screen's spill and by footlights. Curtains can part and close.+- **Figures**: realistic proportions (7.5-head adults, ~5-head children) on a 2.5D rig (joints solved in 3D, projected with a yaw), silent-era make-up (pale skin, dark lids and lips); identity by silhouette marks (a hat, a garment, a tool).++## 3. Colour logic++- **Monochrome silver**, tinted only by the print: colder and harsher (more damage, less sepia) when things go wrong, warmer and cleaner when the film turns tender. Tint and damage are mood controls, set per section.+- Values carry everything: dark clothes against pale walls, pale faces against dark interiors; check every shot as a thumbnail.+- **One colour, at most**: an element drawn into a separate colour mask keeps its hue through the print (still getting grain, flicker, vignette). Use it for the single thing the film is about, or not at all.+- Period tinting of whole scenes (amber for day interiors, blue for night, rose for romance) is a valid alternative to sepia; one tint per section.++## 4. Type & subtitles++- **The intertitles are the subtitles**; the `.srt` lists their text. A card holds 2.5–3.75 s (≥ max(1.8 s, reading time + 0.6 s)).+- A black painted card with a deco border whose ornament follows the emotion: one heavy rule for a shout (the text shakes), a double rule with stepped corners and fans for narration, vines and small flowers for tenderness.+- Period faces (OFL): a small-caps display serif (e.g. Playfair Display SC) for titles and shouts, an italic old-style serif (e.g. Old Standard TT Italic) for narration and dialogue.+- A few words per card; three to five cards in a short film. A card never explains what the picture already shows.++## 5. Motion quality++- **Hand-cranked sampling**: character and camera motion sampled at 16 fps (18 or more to undercrank a fast scene); flicker, weave, grain and scratches change every output frame (24 fps). That mix makes it look projected rather than merely low-frame-rate.+- **Speed is an emotion**: undercrank chases and panic (faster motion, faster flicker); return to 16 fps and a calmer print for tender scenes.+- **Deadpan performance**: the face barely changes; the body acts (crouch before effort, held poses, the two-frame snap of a double take, hands on knees). Objects act too (a wobble before a fall, a ritardando to rest).+- **Keyframed, eased poses**; only deliberate gags snap.++## 6. Camera grammar++A vocabulary, not a route. The period camera is heavy: most shots are locked. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Locked-off extreme wide | cause and effect seen whole; the wait is the joke | a mechanical gag; a crowd; an elaborate process |+| Locked full shot | the premise in one frame | a character's routine; a confrontation |+| Tracking shot with foreground passing | pursuit; momentum | a chase; a race; a delivery against the clock |+| Iris in / out | attention on one thing; a beginning or end of a thought | an object; a face; a memory |+| Half-open iris, held | a character sharing a look with the audience | a wink; a secret; complicity |+| Slow motivated push-in | tenderness; realisation | a kneel; a letter read; a decision |+| Masked shot (keyhole, binoculars) | point of view; spying | a detective; curiosity; romance |+| Split screen / double exposure | trickery; dream; two places at once | a phone call; a ghost; a daydream |++Framing: wide and medium shots; big close-ups of rigged faces look like mannequins, so keep any close-up small or inside an iris. Transitions: iris, fade to black, straight cuts, the curtain. No dissolves between shots of the same scene, no modern whip pans.-## 1. What this style is+## 7. Sound palette++- **The instrument is the sound design**, as in a picture house: an upright piano (optionally a reed organ, theatre organ, violin or small ensemble) plays every event. Mickey-mousing vocabulary (options): chromatic creep in the bass (sneaking), grace note (a wink), forearm cluster (a crash), swelling diminished tremolo (a wait), low rumbling tremolo (a storm, a machine), "plink … plonk" (emptiness), diminished sforzando (a shock), rolled chord (a door, a reveal), descending glissando (a fall), low "boing" (a bounce), nervous trill (hesitation), minor second (something breaking).+- **Photoplay idiom**: stride left hand, music by mood section in the manner of cue sheets (Hurry, Misterioso, Agitato, Tenderly, Maestoso), a theme that returns changed. Original music only.+- **No foley, no voice.** **The projector is the ambience**: lamp click, motor spin-up, claw-and-motor purr, film flapping on the take-up reel.+- **Silence**: the music stops and the projector alone remains; it frames a held moment.+- **Mix**: tame piano hammer transients with light compression before loudness normalisation (−14 LUFS). Grain goes in the picture (mux grain 1).++## 8. Native moves++A menu: use the ones your story needs.++- **The chain in one take.** A triggers B, B leaves the frame, the audience waits, B returns and hits C. *Fits content like:* a supply chain gone wrong; how a rumour spreads; a Rube Goldberg invention.+- **The near-miss.** A hand closes exactly where the object was a frame ago. *Fits content like:* catching a bus; a startup missing a deal; a goalkeeper.+- **The intertitle twist.** A card reframes the next shot in a few words. *Fits content like:* "Meanwhile, in the lab…"; "The machine had other ideas."; a statistic as a punchline.+- **Undercranked chaos.** Speed and damage rise together. *Fits content like:* rush hour; a kitchen at dinner service; a stock crash.+- **Iris on the look.** An iris stops half-way so a character can glance at the audience. *Fits content like:* a product winking; a cat that knows; a scientist's secret.+- **Redrawn footage.** Real video pushed through the ink pass becomes a period drawing. *Fits content like:* a company's archive; a family film; a sports clip.+- **The echo gesture.** A gesture from the start repeated by someone else with a new meaning. *Fits content like:* a teacher and a pupil; a handover; a tradition.++## 9. Pitfalls of the medium++- **Too much content kills a silent film**: a many-step chain at small figure scale is noise in a thumbnail. One legible chain with a pause in the middle beats three busy ones.+- **Puppet arms**: apply abduction before flexion, let the shoulder rise and swing forward as the arm goes up, slim the torso's shoulder corner on the raised side, hide the arm's contour where it lies over the torso. Raise arms sideways (or turn the figure) so they don't cross the face.+- **Pose pops**: drive every figure by eased keyframe lists, never by `if` branches.+- **Floating props**: hold a prop between the palms at the depth between the arms; tie a rolling object's rotation to distance (angle = distance / radius).+- Brow angles flip with facing direction: check expressions in a crop at final size.+- An iris must track its target in film coordinates after any camera zoom.+- A grab must put the hand exactly where the object is at the beat, or it doesn't read.+- Closed curtains lit only by a dark screen go pure black: add footlights.+- Heavy grain makes huge files → re-encode with `-tune grain` at a higher CRF.++## 10. Engine++In `demo/engine/`: `ink.js` (tonal forms, ink line, wash, hatch; `drawShape()` draws any path in this style), `redraw.js` (`Redraw`: tonal painting or real footage → ink drawing, WebGL2), `film.js` (`FilmPost` print pass + `damage()`, stackable on any 2D canvas, with an optional colour mask), `cards.js` (intertitles, deco borders, iris, theatre), `figure.js` + `heads.js` (2.5D rig). `demo/timeline.js` is a cue sheet that drives both picture and score. API table and a minimal example (a one-colour shape through the whole pipeline): [DEMO.md](DEMO.md) "Engine reference".++## 11. Variation space++You decide the genre (comedy, melodrama, adventure, newsreel), the characters, the gag or the drama, the cards, the tint plan, the opening and the ending. All far from our demo:++- Structures: **a newsreel** (a sequence of "reports" with headline cards and a narrator card between them); **a melodrama in three reels** (each reel a tint: amber, blue, rose; a villain card, a rescue); **a trick film** (Méliès-style: one stage, a magician, objects appearing and transforming by substitution cuts).+- Openings: **mid-chase**, the film already running and scratched, no title yet; **a single intertitle question** before any image; **the projectionist's view**: the beam from the booth, then the screen.+- Endings: **the film breaks** (the print burns through and the lamp shows white); **a final card that addresses the audience** directly; **fade to black on a locked wide** with the piano holding one chord.++----A short one-reel comedy as it would look *projected*: the frame is a 4:3 print in a gate, between theatre curtains; the image is an ink drawing with washed greys and hatching, printed on silver stock that flickers, weaves, scratches and burns at the edges. Nobody speaks. Story beats are told by **action in wide shots** and by **intertitle cards**. The only sound is a cinema piano (and the projector in the booth).--The comic engine is Keaton's: an ordinary person with one small goal, a physical world that misbehaves, a face that does not react — and one gag built as a chain of cause and effect that the audience watches happen in a single frame.--## 2. Story: what fits this style--| Native power | Story use |-|---|---|-| **Locked-off wide shot** | A mechanical gag: A triggers B, B leaves the frame, the audience waits, B comes back and hits C. The waiting is the joke. |-| **Intertitles** | Three to five cards carry what the action can't: the premise twist ("The loaf had other plans."), a shout ("STOP THAT BAKER!"), one line of dialogue ("Is it yours, mister?"). Keep each card to a few words. |-| **Projection speed** | Undercrank the chase (motion sampled at 18 fps, 1.3× speed, faster flicker); return to 16 fps and a calmer print for tender scenes. Speed is an emotion. |-| **The iris** | Open on the object of the story, close on the last glance. An iris that stops half-way lets a character look at the audience (a wink). |-| **Ageing as mood** | More damage when things go wrong, a warmer sepia and a cleaner print when the film turns tender. |--**Story shape (proven in the demo):** pride (a baker lifts his perfect round loaf high) → the object escapes (it wobbles on the sill, rolls off and away down the hill — a *round* loaf, so it can really roll) → the chase with one near-miss (he grabs, it hops over his hand, he stares into his empty fist) → the chain gag in one take (see-saw → a melon flies out of frame → the constable strolls in → the melon lands on his helmet) → it stops at the feet of someone who needs it more (a hungry girl) → silence → a small act (he breaks the loaf in two) → echo (she lifts her half high, as he did) → the iris closes on her wink. **Cut rather than add**: an earlier version with a tram, a fog chase, a rooftop hang and an eight-step market chain was unreadable in thumbnails. One legible chain beats three busy ones.--Adapting any topic: find the object that escapes, the person it should end up with, one mechanical chain that can happen in a single wide frame, and a gesture that can be repeated at the end with a new meaning.--## 3. Visual language--- **House style = tonal painting + Redraw.** Scenes are painted in grey values only (print densities: ink 0.07, dark cloth 0.15–0.3, mid wood 0.45–0.6, skin 0.8, shirts and aprons 0.9–0.95), with soft light gradients and a thin separation line. The **Redraw** pass (WebGL2) then inks the whole frame: difference-of-Gaussians contours on the dark side of every edge, the luminance posterised into five soft wash steps, and 45° hatching (then crossed) in the darks that is re-drawn every two frames like hand-redrawn animation. Real video frames go through the same pass ("redraw mode", see `stills/redraw_v1.jpg`), so footage and drawing share one hand.-- **Print** (`FilmPost`): silver tone with 0.10–0.36 sepia, print black 0.055 / white 0.93, S-curve, halation on highlights, uneven density, flicker, gate weave with the occasional perforation jump, broken vertical scratches (white = scraped emulsion, dark = dirt on the negative), brown burn creeping from the edges, vignette, two-octave silver grain. Then `damage()` adds dust, a hair in the gate and the rare blotch.-- **Frame**: 1440×1080 in the centre of 1920×1080, rounded 22 px aperture with a soft dark rim; the sides are the theatre — velvet drapes lit by the screen's spill and by footlights. The curtains part at the start and close at the end.-- **Characters**: realistic 7.5-head adults and a 5-head child on a 2.5D rig (joints solved in 3D, projected with a yaw), silent-era make-up (pale skin, dark lids and lips). Silhouette marks of the demo hero: a pleated baker's cap, a dark waistcoat over a white shirt, a long white apron.-- **Intertitles**: a black painted card with a deco border whose ornament follows the emotion — one heavy rule for a shout (text shakes), a double rule with stepped corners and fans for narration, vines and small flowers for tenderness. Playfair Display SC for titles and shouts, Old Standard TT Italic for narration and dialogue.--## 4. Motion language--- **Hand-cranked sampling**: character and camera motion is sampled at 16 fps (18 in the chase); the print's flicker, weave, grain and scratches change every output frame (24 fps). That mix is what makes it look projected rather than simply low-frame-rate.-- **Deadpan performance**: the hero's face barely changes; the body does the acting — the crouch before the lift, the lift held proud, the two-frame snap of the double take with a little jump, the bend-and-swipe, the look into the empty fist while still running, hands on knees, the kneel.-- **Objects act too**: the loaf wobbles on the sill before it goes, hops over a cobble at exactly the wrong moment, decelerates with the music (ritardando) and rocks to rest against a shoe.-- **Raise arms away from the face.** On this rig forward flexion carries a raised arm across the face; raise celebratory arms by abduction (sideways, jumping-jack style) or turn the character toward the camera first.--## 5. Camera language--| Beat | Camera |-|---|---|-| Opening | Curtains part on a dark screen while the projector spins up; the title card; an **iris opens** on the lifted loaf. |-| Setup | A locked full shot: the whole premise (pride → sill → the roll → double take) plays in one frame. |-| Chase | A **tracking shot**: the town scrolls at 0.8, lamp posts sweep past in front at 1.35, the hero and the object stay in frame. |-| The chain gag (signature) | A locked-off extreme wide, **no cut**: see-saw → melon out of the top of frame → 2.5 s of waiting → constable walks in and stops on his mark → melon lands. |-| Breath | A locked full shot, then true silence. |-| Tender | A slow **push-in** that is motivated: the camera comes down to the child's level as the hero kneels (zoom 1.6 → 2.1). |-| Ending | The **iris closes** on the child, stops, she winks at the audience, it shuts; "The End"; the curtains close. |--## 6. Sound--- **No foley, no voice.** The piano *is* the sound design, as in a 1920s picture house: a nervous trill for the wobble, a descending glissando for the fall, a low "boing" for the bounce, a diminished sforzando for the double take, a high stab and an upward run for the grab, "plink … plonk" for the empty fist, a forearm cluster for the see-saw, an upward glissando for the melon, a swelling diminished tremolo for the wait, a falling glissando into a crash chord for the landing, a crisp minor second when the bread breaks, a grace note for the wink.-- **Score**: original photoplay music on a period **upright piano** (VSCO 2 CE, CC0), stride left hand, following a cue sheet: Maestoso title → Andante "Loaf theme" (F major) → comic "uh-oh" + accelerando run → Hurry (A minor, 16th-note runs, 144 BPM) → stop-time suspense + Misterioso walk → Agitato tremolo → ritardando (88) → silence → **reed organ** (FreePats accordion, CC0) enters pp → Tenderly (the Loaf theme at 72 BPM) → finale. The theme is heard proud at the start and tender at the end.-- **The projector is the ambience**: a lamp click and motor spin-up before the curtain, a soft claw-and-motor purr under the reel, pushed forward as the *only* sound in the silence, and the tail of the film flapping on the take-up reel at the end.-- **Silences**: (1) the stop-time in the chain gag, while the melon is out of frame (only a faint tremolo swelling); (2) the loaf stops, the projector alone for two seconds — the next sound is the reed organ.-- Tame the piano's hammer transients with light compression before loudness normalisation (−14 LUFS). Put the grain in the picture; mux grain 1.--## 7. Subtitles & titles--- The intertitles *are* the subtitles; the `.srt` lists their text. Each card holds 2.5–3.75 s.-- Title: THE RUNAWAY LOAF / *a photoplay in one reel*.-- End card (tender border): The End · title and style name · LEMO-OPUSCAR · LemoLab × Claude Opus 5.5 · asset credits; the curtains close over it.--## 8. Pitfalls we hit--- **Puppet arms** (first cut): each arm was a separate tube with its full outline over the shirt, the shoulder pivot never moved, and abduction was applied after flexion — so a "spread" overhead arm actually swung inward and the lift became an X. Fixes in `engine/figure.js`: abduction first, then flexion; the shoulder joint rises and swings forward as the arm goes up (clavicle); the torso's shoulder corner slims on the raised side; arms carry a deltoid and a biceps/forearm profile; the arm's contour is hidden where it lies over the torso near the shoulder.-- **Pose pops**: switching poses in `if` branches makes figures jump. Every character is driven by keyframe lists (`poseAt`, `numAt` in `shots.js`) so poses, position and facing are always eased; only deliberate gags (the double take) snap.-- **Floating props**: a prop "held" at the average of the hands drawn on top of everything floats. Hold it *between* the palms at the depth between the two arms (`props.between`), size it to the gap between the palms, and hand it over by interpolating between the giver's and the receiver's palm positions (`palmsAt`). A long loaf can't roll along its length — use a round one, and tie its rotation to distance (angle = distance / radius).--- **Too much content kills a silent film.** An eight-step chain gag at 64 px per head is noise in a thumbnail; the first version never reached its first review. One chain, with a pause in the middle, reads.-- The rig's faces look like mannequins in big close-ups: stay in wide and medium shots (which is Keaton's grammar anyway) and keep the only close-up inside the iris.-- A raised arm crossed the girl's face and hid the wink: turn her toward the camera and raise the arm by abduction.-- Brow angles flip with the facing direction: "worried" (inner brows up) read as angry on the girl facing left; check expressions in a crop at final size.-- The iris centre must track the face in *film* coordinates after the camera zoom (`girlFace()` maps world → film).-- In the chase the hero first never got within arm's reach of the loaf, so the grab didn't read: put the hand exactly where the object is at the beat, bend the body down, make the hop big (210 px).-- Closed curtains lit only by the dark screen are pure black (blackdetect): add footlights.-- Heavy grain makes big files (170 MB at CRF 19); re-encode with `-tune grain -crf 25` (≈ 77 MB).--## 9. Production recipe (this repo)--```-styles/silent-film/demo/- timeline.js cue-sheet sections (bpm, beats) + named hits — the single source of truth → tools/dump_timeline.mjs → timeline.json- engine/ ink.js (tonal forms, ink line, wash, hatch, drawShape) · redraw.js (Redraw: frame → ink drawing, WebGL2)- film.js (FilmPost print + damage) · cards.js (intertitles, deco borders, iris, theatre) · figure.js + heads.js (2.5D rig)- chars.js poses.js sets.js the cast, key poses, town set pieces- shots.js one function per section: bakery · chase · market · roll · sil · tender · irisShot (tonal paintings)- film.js assembly: shot → Redraw → iris → FilmPost → gate + curtains; per-section look (damage, sepia, sampling fps, crank)- cardspecs.js the intertitles frames.js model sheet, card sheet, redraw sample, one-colour example- music/score.py photoplay score from timeline.json mix.py score + projector- tools/ cuecheck.py · subs.py · dump_timeline.mjs-```-1. Write the cue sheet (`timeline.js`) first: sections, tempi, and every gag beat as a named hit. The score is generated from the same file, so every hit lands (0 ms).-2. Paint each shot in greys (`?scene=` stills for review), then look at it through the whole pipeline — the Redraw pass changes what reads.-3. `sh demo/build.sh`: timeline → score → cue check → mix → srt → render (≈ 55 s with 2 workers for 1301 frames) → mux (−14 LUFS) → grain re-encode → stills. About 2.5 minutes.-4. Review 1 frame per second, then frame strips for every gag at 0.1–0.2 s.--## 10. Engine usage--Four modules, usable on their own:--| Module | Main API |-|---|---|-| `engine/ink.js` (tonal drawing) | `setFrame(t, {boil})` · `form(g, pts, {v, line, grad, shade, cyl})` (a filled, shaded, outlined shape in grey value `v`) · `stroke(g, pts, w)` · `drawShape(g, shape, style)` (**any path in this style**; `style.color` draws it in a hue for the colour mask) · `sparkPts(cx, cy, r, tail)` · `catmull`, `ellipsePts`, `rectPts`, `mottle`, `shade`, `grey(v)` |-| `engine/redraw.js` | `new Redraw(w, h).render(canvasOrImageOrVideo, {frame, lines, tone, hatch, levels, gap, sigma, p, eps, phi, bilateral, src})` → canvas. Turns the tonal painting *or a real video frame* into the ink drawing (redraw mode: `bilateral: 3, p: 34, eps: .24` for photos). |-| `engine/film.js` | `new FilmPost(w, h).render(src, {frame, strength, sepia, crank, grain, flicker, weave, scratches, burn, vignette, halation, exposure, jump}, colorMask?)` → canvas · `damage(g, x, y, w, h, frame, strength)` (dust, hair, blotch). Stack it on **any** 2D canvas. |-| `engine/cards.js` | `intertitle(g, W, H, {level, lines:[{text, font, size, italic, weight, spacing}], shake}, t)` · `decoBorder(g, x, y, w, h, level)` · `iris(g, W, H, cx, cy, r)` · `theatre(g, W, H, gate, spill, curtainOpen)` |-| `engine/figure.js` + `heads.js` | `drawFigure(g, character, {x, ground, scale, yaw, pose, t, props})` · `P0()`, `mixPose`, `runPose(ph)`, `walkPose(ph)`, `runBob` · characters in `chars.js`, poses in `poses.js` |--**The one colour.** The print is monochrome; to keep one element in its own hue, draw it into a separate mask canvas (colour + alpha) and pass that to `FilmPost.render`: it keeps the hue where the mask has alpha, but still gets the grain, flicker and vignette.--```js-import { drawShape, sparkPts, grey, setFrame } from './engine/ink.js';-import { Redraw } from './engine/redraw.js';-import { FilmPost, damage } from './engine/film.js';--setFrame(t);-const W = 1440, H = 1080, mk = () => Object.assign(document.createElement('canvas'), { width: W, height: H });-const frame = mk(), f = frame.getContext('2d'), mask = mk(), m = mask.getContext('2d');-f.fillStyle = grey(.9); f.fillRect(0, 0, W, H);-const sp = sparkPts(720, 460, 220, 260); // a four-point light with a short tail-drawShape(f, sp.star, { v: .6, shade: 12 }); // tonal version (gets inked + hatched)-drawShape(f, { pts: sp.tail, closed: false }, { line: 10 });-drawShape(m, sp.star, { color: '#D97757' }); // the one colour-const inked = new Redraw(W, H).render(frame, { frame: Math.round(t * 24) });-const print = new FilmPost(W, H).render(inked, { frame: Math.round(t * 24), strength: .6, sepia: .15 }, mask);-g.drawImage(print, 240, 0); damage(g, 240, 0, W, H, Math.round(t * 24), .6);-```-(`?scene=frames.oneColour` renders this example.)+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/silent-film/TREATMENT.md b/styles/silent-film/TREATMENT.mddeleted file mode 100644index ff10599..0000000--- a/styles/silent-film/TREATMENT.md+++ /dev/null@@ -1,98 +0,0 @@-# TREATMENT · 34 1920s Silent Film ·《The Runaway Loaf》(v2 精简版)--> 2D | 54.2 s | 1920×1080 · 24 fps 输出;画面 4:3 放在剧院幕布之间;动作按 16 fps 采样(手摇放映感),追逐段 18 fps + 1.3× 速;闪烁、片门抖动、划痕每帧变化 | 无旁白,字幕卡叙事 | 配乐:原创默片影院钢琴(立式钢琴)+ 簧风琴->-> v1 方案(`TREATMENT_v1.md`,16 段、集市连锁机关 + 电车 + 警察雾中追捕)因内容太满、关卡 1 迟迟交不出而被叫停。v2 由主会话接手:保留 v1 的引擎(胶片老化后期、重画模式、字幕卡、人物骨骼),故事砍到**一条主线、一个连锁笑料**。--## 1. 一句话故事与情绪弧--**面包店学徒 Otto 烤出一个完美的圆面包(乡村大圆包),高高举起向全世界炫耀;他把面包放在窗台上晾,拍了拍它,一转身,圆面包晃了晃、滚下了山。他一路追,伸手一抓扑了空,踩翻跷跷板,把一颗西瓜送上天——西瓜落在刚走进画面的警察头上。面包最后停在一个坐在台阶上的小女孩脚边。她捧起面包:"Is it yours, mister?" 他跪下来,把面包掰成两半,递给她一半。她也把面包高高举起——然后对着镜头眨了一下眼。**--- **情绪弧**:得意(举起面包)→ 狼狈(双重反应、扑空、闯祸)→ 静(面包停下,全场只剩放映机声)→ 温柔(掰面包)→ 会心(眨眼)。-- **回响**:开场 Otto 把整个圆面包举过头顶,结尾女孩把半个面包举起来——同一个动作,从炫耀变成了分享。开场光圈从面包张开,结尾光圈收在女孩脸上。开场幕布拉开,结尾幕布合上。--## 2. 对标:学什么 / 刻意不学什么--| 对标 | 学什么(语法) | 刻意不学 |-|---|---|---|-| Buster Keaton《将军号》(1926)、《福尔摩斯二世》(1924) | **固定机位全景里完整发生的机关笑料**;面无表情反而更好笑;主角永远在跑 | 不复刻任何具体桥段、造型 |-| Harold Lloyd《安全至下》(1923) | 追逐里的"差一点":扑空、回头看空拳头 | 不做高楼悬挂(v1 有,v2 删) |-| Georges Méliès | 光圈(iris)转场、舞台感 | 不做魔术特效 |-| 《艺术家》(2011) | 现代观众可读的默片情感节奏:字幕卡少而准,情绪段放慢 | 不用它的配乐与角色 |-| 默片影院钢琴伴奏(photoplay cue sheet) | 按段落换曲式:Maestoso / Andante / Hurry / Misterioso / Agitato / Tenderly;**钢琴本身模拟音效**(滑音 = 坠落,簇音 = 跷跷板,震音 = 悬念,砸和弦 = 西瓜) | 不用任何公版曲;旋律全部原创 |--**刻意不学**:卓别林流浪汉造型(圆顶礼帽、小胡子、手杖)一律不出现;不做 30 年代橡皮管卡通(那是 rubber-hose)。这里是真人比例的"版画式默片":人物 7.5 头身、写实街景,只是黑白、帧率抖动。--## 3. 原生招式--| 招式 | 位置 | 做法 |-|---|---|---|-| **光圈开合** | 开场 5.3 s、结尾 45.9–49.2 s | 光圈是摄影机里的遮罩,所以在胶片后期**之前**画上,跟画面一起被做旧。开场从举起的面包张开;结尾收拢到女孩的脸,停住,她眨眼,再合上。 |-| **手摇放映速度** | 追逐 / 集市 | 动作采样 16 fps(平时)→ 18 fps + 1.3× 速度(追逐),放映机闪烁同时加快(`crank`)。温柔段回到 16 fps、老化减弱、棕褐加深。 |-| **胶片老化随情绪变化** | 全片 | `strength`:追逐 0.85 → 温柔 0.3;`sepia`:0.1 → 0.36。划痕、灰尘、烧边、片门跳动都跟着这个值走。 |-| **剧院幕布** | 开场 / 片尾 | 丝绒幕布在脚灯下拉开,放映机先响;片尾幕布合上,片尾甩片声。 |-| **钢琴当音效** | 全片 | 没有任何拟音:面包掉落 = 下行滑音,弹地 = 低音"嘣",跷跷板 = 前臂砸簇音,西瓜上天 = 上行滑音,悬念 = 减七和弦震音,西瓜落下 = 高→中滑音 + 砸和弦,掰面包 = 一个清脆的高音小二度。 |--## 4. 镜头表--| # | 时间 (s) | 景别 / 机位 | 运动 | 为什么 |-|---|---|---|---|---|-| 0 | 0–1.6 | 剧院 | 幕布拉开 | 放映仪式:观众先进影院 |-| 1 | 1.6–5.3 | 字幕卡 | — | 片名 |-| 2 | 5.3–11.6 | 全景,固定 | **光圈张开** | Keaton 的全景:举面包、放窗台、转身、面包滚走、双重反应,都在一个画面里 |-| 3 | 11.6–14.4 | 字幕卡 | — | "The loaf had other plans." |-| 4 | 14.4–19.4 | 全景 | **横移跟拍**(背景视差 0.8、前景路灯 1.35) | 速度感;扑空的笑料在跟拍里发生 |-| 5 | 19.4–26.0 | 大全景,固定 | 无(一镜到底) | **签名镜头**:跷跷板 → 西瓜出画 → 等待 2.5 s → 警察入画 → 西瓜落头,全在一个固定画面里 |-| 6 | 26.0–28.5 | 字幕卡(抖动) | — | "STOP THAT BAKER!" |-| 7 | 28.5–34.6 | 全景,固定 | 无 | 呼吸:面包减速停在女孩脚边;静音;Otto 跑进来喘气 |-| 8 | 34.6–37.6 | 字幕卡(藤蔓边框) | — | "Is it yours, mister?" |-| 9 | 37.6–45.9 | 中景双人 | **推镜**(1.6 → 2.1,随他跪下而下降) | 摄影机跟他一起降到女孩的高度 |-| 10 | 45.9–49.2 | 近景 | **光圈收拢** | 眨眼 |-| 11 | 49.2–54.2 | 字幕卡 | 幕布合上 | 片尾卡 |--镜头运动:光圈开 / 合、横移跟拍、推镜、幕布开合、固定一镜到底;景别从大全景到近景。--## 5. 节拍表 / Cue map(`demo/timeline.js` 为唯一真值)--| 段 | 时间 (s) | 速度 | 画面 | 音乐 |-|---|---|---|---|---|-| PRE | 0–1.56 | — | 幕布拉开 | 放映机开机(灯泡"咔"、马达升速),无音乐 |-| TITLE | 1.56–5.31 | 96 | 片名卡 | Maestoso:F 大调全和弦 → B♭ → C → 上行滑音 → 属和弦 |-| BAKERY | 5.31–11.56 | 96 | 光圈开(b0–1.5);举起(b1);放窗台(b5);拍拍(b6);晃(b7);滚落(b8);弹地(b8.5);双重反应(b9) | Andante:面包主题(F 大调,跨步低音);b7 颤音越来越快;b8 下行滑音;b8.5 低音"嘣";b9 减七砸和弦 + 震音 |-| CARD1 | 11.56–14.38 | 96 | 字幕卡 | "哦—哦"两音下沉 → 加速半音阶跑句进追逐 |-| CHASE | 14.38–19.38 | 144 | 跟拍;b6 扑空;b7 看空拳头 | Hurry(A 小调,16 分音符跑动,跨步低音);b6 高音砸 + 上行滑音;b7 "叮…咚" |-| MARKET | 19.38–26.04 | 144 | b5 踩跷跷板;b8 警察入画;b10 张望;b12 西瓜落头;b13.2 挥拳 | Hurry → b5 簇音 + 上行滑音 → **停拍悬念**(减七震音渐强)+ 警察的 Misterioso 低音脚步 → b11.3 下行滑音 → b12 砸和弦 → 八度挥拳 |-| CARD2 | 26.04–28.54 | 144 | 抖动字幕卡 | Agitato 震音 |-| ROLL | 28.54–32.63 | 88 | 面包减速,b5 停在鞋边 | 主题四个音越来越慢(ritardando),b5 轻和弦 |-| SIL | 32.63–34.63 | — | 她低头、捧起面包;他跑进来喘气 | **静音**:只剩放映机 |-| CARD3 | 34.63–37.55 | 72 | 藤蔓字幕卡 | 簧风琴 pp 进入(静音后的第一个声音) |-| TENDER | 37.55–45.88 | 72 | b3 跪下;b5 掰开;b6 递给她;b7 她举起;b8 他举起 | Tenderly:面包主题慢板 + 簧风琴 + 分解和弦;b5 高音小二度(掰开) |-| IRIS | 45.88–49.22 | 72 | 光圈收到她脸上,b2.5 眨眼 | 主题收束;眨眼 = 最高音的装饰音"叮" |-| END | 49.22–54.22 | 72 | 片尾卡,幕布合上 | F 大调终止和弦 + 簧风琴;放映机甩片 |--`tools/cuecheck.py`:34 个画面卡点里 27 个带音乐 cue,偏差 0.0 ms(配乐直接从 timeline.json 生成)。--## 6. 声音设计表--| 段落 | 环境底 | "拟音"(由钢琴承担) | 音乐状态 |-|---|---|---|---|-| PRE | 放映机:灯泡点亮"咔"、马达从 0 升到 18 格/秒、片爪声 | — | 无 |-| 全片 | 放映机低音量底噪(片爪 + 60 Hz 马达 + 风扇) | — | — |-| BAKERY | 同上 | 颤音 = 晃;下行滑音 = 滚落;低音 = 弹地;砸和弦 = 双重反应 | Andante |-| CHASE / MARKET | 同上 | 高音砸 = 扑;"叮…咚" = 空拳;簇音 = 跷跷板;上行滑音 = 西瓜上天;下行滑音 + 砸和弦 = 落头 | Hurry / 停拍 |-| SIL | **放映机推到前景** | — | 静音 |-| TENDER | 放映机退后 | 高音小二度 = 面包掰开 | Tenderly + 簧风琴 |-| END | 放映机回到前景,片尾甩片声,马达减速 | — | 终止和弦 |--**静音**:① SIL(32.6–34.6 s)只剩放映机,之后第一个声音是簧风琴进入;② 集市里西瓜出画后的 2.5 s 是"停拍"——只有极弱的震音在涨,第一个重音是西瓜落头的砸和弦。**J-cut**:CARD1 结尾的加速跑句提前把追逐的速度带进来;簧风琴在字幕卡上就进入,延续进温柔段。**L-cut**:ROLL 的停止和弦余音延续进静音段后才消失。--## 7. 字幕设计--默片没有字幕条:**字幕卡就是字幕**。黑底卡片 + 装饰艺术边框,边框繁简随情绪变:`level 0` = 一道粗框(喊叫,文字抖动),`level 1` = 双线 + 阶梯角 + 扇形(叙述),`level 2` = 再加藤蔓和小花(温柔)。字体 OFL:Playfair Display SC(片名、喊叫)、Old Standard TT Italic(叙述、对白)。每张卡停 2.5–3.75 s。`.srt` 列出卡片文字。--## 8. 与风格说明的差异--1. **砍掉**电车、警察雾中追捕、悬挂在栏杆上的高处惊险(v1 的 16 段 → v2 的 13 段、一个连锁笑料)。理由:v1 就是因为内容太满被叫停;一个读得懂的机关笑料好过三个读不懂的。-2. **集市连锁机关简化**:v1 是跷跷板 → 西瓜 → 遮阳篷倾倒 → 橙子滚落 → 摊主踩橙子风车转 → 推车翻 → 箱子飞上路灯 → 砸警察,缩略图上完全看不清。v2 只保留"跷跷板 → 西瓜出画 → 等待 → 砸警察",中间留 2.5 s 空白让观众等。-3. **片尾卡同时承担署名**:"The End" 下面直接排片名、风格名、Lemo-Opuscar、LemoLab × Claude Opus 5.5 和素材署名,不另加一张卡。-4. **角色不用大特写**:引擎画的脸在大特写里像木偶,所以全片用全景和中景(这也正是 Keaton 的镜头语法),唯一的近景是光圈里的眨眼。diff --git a/styles/silent-film/demo/assets/redraw_src.jpg b/styles/silent-film/demo/assets/redraw_src.jpgdeleted file mode 100644index 959feb3..0000000Binary files a/styles/silent-film/demo/assets/redraw_src.jpg and /dev/null differdiff --git a/styles/silent-film/demo/frames.js b/styles/silent-film/demo/frames.jsindex cb6c483..d1ba3f7 100644--- a/styles/silent-film/demo/frames.js+++ b/styles/silent-film/demo/frames.js@@ -146,7 +146,7 @@ export function cardSheet(g, t, q) {});}-// STYLE.md §10 minimal example — any shape in the silent-film manner, with "the one colour" kept through the print+// DEMO.md "Engine reference" minimal example — any shape in the silent-film manner, with "the one colour" kept through the printimport { drawShape, sparkPts, setFrame as setF } from './engine/ink.js';export function oneColour(g, t) {setF(t, { boil: 1 });diff --git a/styles/silent-film/style.json b/styles/silent-film/style.jsonnew file mode 100644index 0000000..7f5349f--- /dev/null+++ b/styles/silent-film/style.json@@ -0,0 +1,18 @@+{+ "slug": "silent-film",+ "num": "34",+ "en": "1920s Silent Film",+ "cn": "1920s 默片",+ "category_en": "Cinema & Eras",+ "category_cn": "电影与时代",+ "film": "The Runaway Loaf",+ "line": "A baker's boy chases a runaway loaf downhill, then breaks it in half for a hungry girl.",+ "line_cn": "面包店学徒追一个滚走的面包,最后掰成两半分给饿肚子的小女孩。",+ "uses": [+ "Comedy",+ "Retro brands",+ "Silent storytelling"+ ],+ "frame_sec": 39.02,+ "dur": 54.2+}diff --git a/styles/silkscreen-poster/DEMO.md b/styles/silkscreen-poster/DEMO.mdnew file mode 100644index 0000000..9af3e25--- /dev/null+++ b/styles/silkscreen-poster/DEMO.md@@ -0,0 +1,176 @@+# Silkscreen Travel Poster — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Three Trails* (38.4 s) · `silkscreen-poster.mp4` · source in [`demo/`](demo/)+++## Story & structure++A trail guide for a fictional park: three trail posters are printed, one faster than the last, the third is climbed in one long take, and all three end up on a visitor-center wall. No narration.++This is the first use case of STYLE.md §11 (trail / attraction guide). Shot structure: title banner pull → poster 1 printed layer by layer → poster 2 printed on eighth notes → last poster climbed in one take → pull back to the wall. Information order: park title → scene → trail name → difficulty → distance → time → climb → footer. Holds: title 3.2 s; name ≥ chars/12+1 s; stat row ≥ 2.2–3.0 s after its last item; 30–40 s for 3 trails.++The other use cases in STYLE.md §11 use the same engine: a scene is just a list of planes, the band template takes any 1–4 facts, and `swap` re-inks a whole poster in another palette.++**How the native moves serve information** (not story):+- *One ink, one beat*: each pull is one musical hit, so the eye is led through the layers in order and the facts are printed last, which is exactly when they are read.+- *Split fountain*: several inks in one pull. It opens the film, because one stroke fills the frame with colour.+- *Palette re-ink*: the whole poster pulled again in the next time-of-day palette. In the demo this is the data point "7 h": the day passes while the camera climbs.+- *Registration slip → snap*: during the climb the layers hang loose (white gaps, paper-thickness shadows), then clamp into register with one hit. This is the only time the film pauses before the most important facts.+- *Paper as a colour*: the waterfall is simply unprinted paper, the brightest thing on the sheet.+- *The trail as a printed layer*: the route is a dashed line in the sun ink, stamped segment by segment as the camera follows it.++## Shots++| Move | Use | Demo |+|---|---|---|+| Truck with the squeegee, slight roll (−1.7°), frame edge and handle ends in view | hook: the squeegee holds its place in frame while the bands stream past | 0–1.0 s |+| Fast pull-back (ease-out 0.65 s) | reveal the whole print as the screen lifts | 1.0–1.65 s |+| Tilt across the print table | from one sheet to the next | 4.8 s |+| Locked top-down full shot | watching layers stack | 5.4–7.8 s |+| Push + tilt to the info band | reading | 7.8–9.0 s |+| Truck through a foreground tree (screen-space silhouette in the previous poster's `near` ink, covers the frame for about 1 frame) | poster-to-poster transition | 13.2 s, 19.2 s |+| Pull-back from a detail to the whole sheet | "the white is the waterfall" | 14.4 s |+| **Crane up the trail, multi-plane parallax** (signature) | the hardest trail, one take | 19.2–23.4 s |+| Tilt down from summit to band | the climb ends in the data | 24.0 s |+| Log-zoom pull-back to the wall | final lockup, hold ≥ 3 s | 29.4–30.6 s |++Unified transition grammar: layers change by squeegee; posters change through foreground trees; the film ends with a squeegee pulling the end-card ink. No dissolves and no bare cuts.++Demo motion numbers: info band items 0.18 s each on eighth notes; accent inks `sub: 1` (half a beat late); screen lift 0.4 s; palette swap blade at −12° over 0.35 s; climb parallax `(camTopY − camY) × (depth − 1) × 0.42`, each spur slides sideways (Gaussian bump, 190 u × depth); paper gaps 3 u and thickness shadows 9 u at 28 %, scaled by "looseness", zero on the registration snap. Hook truck roll −1.7°.++## Score structure++- **Music**: American outdoor folk, 100 BPM, D major, open-D guitar strums (physical model), slide guitar (numpy), VCSL harmonica, cajon kick, brushes, upright bass. **Each pull is one strum**, and the chords climb D – D/F# – G – A as the layers come nearer. Poster 2 doubles to eighth notes (acceleration). The climb builds instrument by instrument. The registration snap is the loudest downbeat in the film.+- **Foley by material**: squeegee on mesh (band-passed noise with a 220–280 Hz amplitude grain from the mesh; faster pull = brighter), wet ink "squelch" (falling sine plus sticky noise), aluminium screen clack plus hinge creak, paper stamps for stats, 16th-note ticks for trail dashes, a paper hiss for sliding layers, and a wood-and-metal registration clamp.+- **Ambience**: studio room tone; the lake inside poster 1 fades in when the screen lifts (the print "wakes up"); waterfall (J-cut 0.9 s early); mountain wind (J-cut into the silence, L-cut out onto the wall); visitor-center murmur, a door, footsteps.+- **Silences**: 18.0–19.2 s (music off; the waterfall tail fades to about −59 dBFS; the first sound after it is a long slide up) and 23.4–24.0 s (wind only; the first sound after it is the clamp plus the full band).+- Music ducks 2.5 dB under foley. Master: −14 LUFS.++## Palette & props++- **Palette discipline**: one palette per poster, 6 inks: `sky1` (light sky), `sky2` (deep sky / bands), `far`, `mid`, `near` (darkest, also the info band), `sun` (the one bright accent: sun, trail, difficulty, climb). An optional `glow` is the lit face of mountains. A given poster should use ≤ 6 of these. The demo palettes are:+ - dawn `#F6CD98 #EE9A73 #9A7FA8 #3E7079 #1E3B3F #FBE6B4`+ - noon `#E4EEDC #86BCD0 #C2AE92 #4C8753 #1D4331 #F2C14A`+ - golden `#F7D787 #E9A94F #A57C68 #5E7A45 #2B3A28 #FFF1C4`+ - dusk `#F4B461 #D8613F #7C3E5F #43325A #1B1B2F #FBE3A6`+ - Paper `#F2E8D2`. Title banner `#F7C66B #E4683F #2F6F73 #1C2A33`.+- **Contrast is automatic**: text inks are picked by WCAG contrast against the ink underneath (`pickInk`). A night palette will not make the header vanish.+- **Shapes**: mountains are midpoint-displaced ridges with a jagged lit facet; pines are one outline of drooping tiers plus a short trunk; water is a flat body with horizontal glint bars; forests are rows of pines on a solid base. Everything is drawn with hard edges.+- **Poster template** (units 1000×1500): paper border 26 u; art area to y = 1140; the scene is shifted up 50 u, so a little sky is cropped to make room for the info band. The band (y 1148–1474, `near` ink) holds the trail name (Big Shoulders Display 900, up to 122 u, auto-fit), the number `01`–`04` in `sun`, a 6 u `sun` rule, and a row of stats: labels 34–38 u (Outfit 600, letter-spaced), values 48–68 u (Big Shoulders 800). Columns are sized by content. On a wall at 0.49 scale, labels are about 18 px and values about 31 px.+- **Header**: park name tracked out at 62 u, printed in the sky.+- **Texture budget**: paper tile at 0.6 u per texel, mottle multiply at 55 %, pinholes at 75 %, then ffmpeg grain 3. More than this starts to read as risograph.++## Titles & text++No narration and no subtitles: the poster text *is* the information. The title card is a printed 4:1 banner (1800×440 u, title split into two balanced lines), framed to fill the width (≈5 % margins, ≈40 % of frame height), which becomes the header of the final wall (hung at 1150 px wide so the posters keep ≥30 px values). Reading rule used in the demo: each text stays ≥ chars/12 + 1 s (min 1.5 s) after its **last** item lands. The timeline computes this from `content.json` and rounds up to the beat.++## End card++The end card is printed as a last landscape mini-poster in two pulls: a split-fountain pull for the art (sky bands, sun ring, ridge, trail dashes, title), then a `near` pull for the info band (style name, `Lemo-Opuscar`, `LemoLab × Claude Opus 5.5`, font and sample credits). The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++`sh styles/silkscreen-poster/demo/build.sh` rebuilds everything:+1. `tools/timeline.mjs` prints the timeline derived from `content.json`.+2. `core/render/events.mjs` → `events.json` (every pull, lift, band, name, item, wipe, swap, part, silence, clack).+3. `music/compose.py` reads `events.json` → `score.wav` plus stems.+4. `mix.py` → `mix.wav` (ambience, foley, ducking, silence windows).+5. `tools/cuecheck.py` checks the mix onsets against the events: median error 4 ms; 30/33 within 1 frame. The rest are overlapping events and slow harmonica attacks.+6. Render (`--workers 2`, through a render limiter if your machine has one) → `mux.sh … 24 3`.++Files: `engine/silk.js` (print engine), `engine/scenes.js` (5 built-in scenes), `engine/poster.js` (template, banner, contrast), `film.js` (timeline and shots), `mix.py`, `music/compose.py`. Roughly 0.1 s per frame; a full render takes under a minute.++### Pitfalls we hit++- **Stroke-based edge effects draw internal lines on unioned paths.** A forest drawn as a union of pines showed every tree outline. Do sheen and trap with fills only: fill the shape, then fill it again shifted, inside a clip.+- **Screen shadow darkened the whole print.** The frame's drop shadow must be a ring (even-odd), not a full rectangle, or everything under the mesh looks muddy.+- **Blue shadow facets on granite read as water.** Keep shadow planes in `near` and put them on the inside faces next to the waterfall.+- **A thick squeegee across a close-up splits the frame into "two pictures".** Tilt the blade, hide most of the handle, and keep the geometry continuous across it.+- **Jagged-triangle ink beads read as paper edges.** The bead needs roundness: lit half, dark underside, highlight and strands.+- **Parallax alone reads as "the mountains are moving".** Show paper gaps and thickness shadows while layers are loose, and snap them to zero with a sound.+- **Night palettes hid the header and labels.** Choose text inks by contrast (`pickInk`), never by a fixed key.+- **Wet-sheen gradient stuck at the end of the pull** (condition `p < 1.02` stays true forever). Fade it out by time.+- **Tree-wipe covered the frame for 0.4 s** (a dark blank). Centre the silhouette on the switch time so full cover lasts about 1 frame.+- Four trails at these reading times run to about 45 s. See "Four trails in 40 s" below for how to compress.+- **A 7:1 title banner is a sliver in a 16:9 frame** (about 1/5 of the height, lots of empty table). Make the banner about 4:1 so it can fill the width and about 40 % of the height.+- **Random coloured dots on the table read as confetti or placeholders.** Build a real workbench: planks, grain, knots, a few large muted ink stains and torn tape.+- **Close-ups on an info band must keep the whole band in frame** with ≥5 % side margins (z ≤ 1.75 for a 1000 u poster). Close-ups on a sheet being printed must keep the sheet's edge in frame, or the viewer sees only a flat colour.++## Engine reference++`engine/silk.js` prints **any shape** in this style: it only needs a `Path2D` in whatever units the current transform uses.++| Function | What it does |+|---|---|+| `makeTextures(paperHex, seed)` | paper, mottle and pinhole tiles (once) |+| `paperSheet(ctx, T, x, y, w, h)` | paper stock |+| `ink(ctx, part, o)` | one ink layer. `part = { path, knock?, paint? }` (`knock` = knocked-out holes, `paint(ctx)` = custom fill such as text). `o = { color, reg:[dx,dy], clip, sheen, trap }` |+| `wipeRegion(box, dir, p, seed)` / `wipeFront(...)` | the ragged squeegee front as a clip path, and where the blade is |+| `squeegee(ctx, a, b, lead, o)` | blade from `a` to `b` moving along `lead`; `o.beads=[{t0,t1,color}]` (split fountain), `roll`, `handle` 0–1, `scale` |+| `screenFrame(ctx, box, o)` | hinged screen with mesh, emulsion and tape; `lift` 0–1 |+| `inkFinish(ctx, T, x, y, w, h)` | mottle and pinholes over the sheet |+| `bandSteps(x, w, y0, y1, n)` | stepped colour bands (the gradient substitute) |+| `ridgeLine`, `polyPath`, `circlePath`, `ringPath` | shape helpers |++`engine/poster.js`: `buildPoster(content, trail, i, n)`, `drawPoster(ctx, P, { pal, T, prog, off, reg, sep, swap, items, … })`, `drawBanner`, `pickInk`. `engine/scenes.js`: `buildScene('lake'|'waterfall'|'ridge'|'forest'|'coast')` returns planes you can reorder or extend.++Minimal example: a warm-orange `#D97757` four-point spark with a cursor tail, printed in two inks and knocked out of a sky, then pulled in by the squeegee:+```js+import { makeTextures, paperSheet, ink, wipeRegion, wipeFront, squeegee, inkFinish, polyPath, rectPath, circlePath } from './engine/silk.js';+const T = makeTextures('#F2E8D2');+paperSheet(ctx, T, 0, 0, 800, 600);+const spark = polyPath([[400,180],[430,270],[520,300],[430,330],[400,420],[370,330],[280,300],[370,270]]);+const tail = rectPath(540, 285, 160, 30);+const p = 0.7; // 70 % of the pull done+const clip = wipeRegion([0, 0, 800, 600], 'right', p, 3);+ink(ctx, { path: rectPath(0, 0, 800, 600), knock: circlePath(400, 300, 150) }, { color: '#1C2A33', clip, sheen: 1 }); // sky with a knocked-out halo+ink(ctx, { path: spark }, { color: '#D97757', reg: [2, -1], clip, sheen: 1, trap: 1 });+ink(ctx, { path: tail }, { color: '#D97757', reg: [2, -1], clip, sheen: 1 });+const x = wipeFront([0, 0, 800, 600], 'right', p);+squeegee(ctx, [x + 10, -20], [x + 10, 620], [1, 0], { color: '#D97757', roll: x / 30 });+inkFinish(ctx, T, 0, 0, 800, 600);+```+Single-colour posters: keep one palette key (usually `sun`) as the only colour and set the other inks to tints of one hue. `pickInk` keeps the text legible.++## content.json fields++All text, data and colour come from `demo/content.json`; `film.js` has no copy in it.++| Field | Type | Range | If out of range |+|---|---|---|---|+| `park` | string | ≤ 22 chars | header is letter-spaced at 62 u; longer names overflow the sky width (shorten or reduce tracking) |+| `title` | string | ≤ 34 chars | auto-fits 132 → 60 u on the banner; under 60 u it gets too small to read |+| `footer` | string | ≤ 45 chars | one line in the banner strip; the wall hold grows with its reading time |+| `trails[]` | array | **1–4** | 1 = press only (no climb); 2 = press + climb; 3 = press, quick, climb; 4 = press, quick, quick, climb (about 45 s, see below). Above 4, the wall posters become too small to read |+| `trails[].name` | string | ≤ 22 chars | auto-fits 122 → 60 u |+| `trails[].difficulty` | `easy` \| `moderate` \| `hard` \| `expert` | — | unknown values show 1 filled triangle |+| `trails[].distance` | number | any | printed as `3.2 KM` (unit from `units.distance`) |+| `trails[].time` | string | ≤ 7 chars (`1 h`, `45 min`) | the column widens and all values shrink together (min 48 u) |+| `trails[].elevation` | number \| null | null hides the CLIMB column | shown in `sun` ink as `↑1,100 M` |+| `trails[].scene` | `lake` \| `waterfall` \| `ridge` \| `forest` \| `coast` | built in | unknown → `lake` |+| `trails[].time_of_day` | key into `palette` | `dawn`, `noon`, `golden`, `dusk`, `night` | missing → `noon`. The climb re-inks from the previous trail's palette through `golden` to this one |+| `palette.<time>` | `{sky1, sky2, far, mid, near, sun, glow?}` | hex | text contrast is checked automatically |+| `palette.paper`, `palette.wall`, `banner_time` | hex / object / key | — | — |++**Steps**: edit `content.json` → `sh demo/build.sh`. There is no TTS; the music and mix re-time themselves from `events.json`. To preview another file without overwriting: `node core/render/still.mjs styles/silkscreen-poster/demo 30 --q content=content_alt.json`.++**Four trails in 40 s**: the reading rule makes each middle poster about 6 s long. Options, in order of preference:+1. Print the two middle posters **side by side on one table in the same pulls** (one quick section, two bands, read together).+2. Drop the per-item stamp spacing from an eighth note to a sixteenth for middle posters.+3. Skip the band close-up on middle posters and let them be read on the final wall (extend the wall hold by 2 s).++`content_alt.json` (4 walks, dawn/golden/noon/night, a new park, wall and banner palette) is the tested example. Its stills are in `demo/stills/alt_*.jpg`.++Minimal content:+```json+{ "park": "Pine Lake", "title": "One Walk at Pine Lake", "footer": "Open dawn to dusk",+ "units": { "distance": "km", "elevation": "m" }, "banner_time": "dawn",+ "trails": [ { "name": "Shore Path", "difficulty": "easy", "distance": 2, "time": "40 min",+ "elevation": null, "scene": "lake", "time_of_day": "dawn" } ],+ "palette": { "paper": "#F2E8D2",+ "dawn": { "sky1": "#F6CD98", "sky2": "#EE9A73", "far": "#9A7FA8", "mid": "#3E7079", "near": "#1E3B3F", "sun": "#FBE6B4" } } }+```++Swapping this file and running `build.sh` checks that the engine re-flows; it is not how a user's film is made.diff --git a/styles/silkscreen-poster/STYLE.md b/styles/silkscreen-poster/STYLE.mdindex 3869efc..d743ffd 100644--- a/styles/silkscreen-poster/STYLE.md+++ b/styles/silkscreen-poster/STYLE.md@@ -1,199 +1,138 @@# Silkscreen Travel Poster — Style Prompt> Opaque, hard-edged flat inks pulled one colour at a time through a screen: 4–6 inks per poster, stepped colour bands instead of gradients, thin paper-white gaps where the registration slips. Information is revealed the way the print is made: one layer, one beat.-> Demo: *Three Trails* (38.4 s) · `silkscreen-poster.mp4` · source in `demo/`. A trail guide for a fictional park: three trail posters are printed, one faster than the last, the third is climbed in one long take, and all three end up on a visitor-center wall. No narration.> References (grammar only):-> - **1930s–40s WPA national-park screen prints**: 4–6 flat inks, a lit face and a shade face per mountain, skies built from stepped bands, a dark information band at the foot of the poster, concentric sun rings.-> - **Fifty-Nine Parks (contemporary)**: restraint in modern screen printing, paper as a colour, a series built on one template with a new palette per poster.-> - **The physical process of screen printing**: hinged screen, squeegee pushing an ink bead across mesh, split-fountain pulls, drag streaks, pinholes, a raised edge of ink, off-register white slivers.+> - **1930s–40s WPA national-park screen prints**: 4–6 flat inks, lit and shade faces, stepped-band skies, a dark information band, concentric sun rings.+> - **Fifty-Nine Parks (contemporary)**: restraint, paper as a colour, a series on one template with a new palette per poster.+> - **The physical process**: hinged screen, squeegee pushing an ink bead across mesh, split-fountain pulls, drag streaks, pinholes, off-register slivers.>> Never copy a real poster's composition, park name, lettering or logo, and never name a real agency.-## 1. What this style is+A **scene style**: it does a practical job (a guide, an event poster, a destination series) for any place, event or product with a few facts. See §11 for the jobs.-A travel poster being **printed on camera**. Every colour is an opaque ink laid by its own pull of the squeegee; the later ink covers the earlier one completely. There is no halftone, no fluorescent ink and no line work: a shape exists only because its edge is where one flat ink stops. Gradients are forbidden. Skies and haze are built from **stepped bands**: a flat colour, then five stripes that get thinner, then the next colour.+## 1. Essence, and what it is not-What makes it read as silkscreen and not as "flat vector art":-- **Registration.** Every layer is offset by 1–3 px at 1080p. Where a shape is *knocked out* of the layer below (sun, sun rings, a waterfall), the slip leaves a crescent of bare paper on one side.-- **Overprint edge.** Each layer is printed twice: a faint multiply ghost 2 u off, then the real ink. This leaves a darker sliver where the ink laps over the colour underneath.-- **Ink thickness.** A thin light rim on the top-left edge of every ink shape and a dark rim bottom-right, drawn with fills only. Fresh ink behind the squeegee has a wet sheen that fades within a second.-- **Paper.** Cream stock with fibres. The mottle and pinholes are drawn over the whole sheet in paper colour, so they only show on inked areas.+A poster being **printed on camera**. Every colour is an opaque ink laid by its own pull; later ink covers earlier ink completely. No halftone, no fluorescent ink, no line work: a shape's edge is where one flat ink stops. **Gradients are forbidden**: skies and haze are **stepped bands** (a flat colour, thinning stripes, the next colour).-How it differs from its neighbours in this library: **risograph** is translucent fluorescent overprint with halftone grain; **ukiyoe** is key-block line work with bokashi; **woodcut** is carved line; **lowpoly** is 3D facets. This style is opaque, line-free, flat and banded.+What makes it read as silkscreen and not as flat vector art:+- **Registration**: every layer offset 1–3 px at 1080p; a knocked-out shape leaves a crescent of bare paper.+- **Overprint edge**: a faint multiply ghost ~2 u off under each ink, leaving a darker sliver where ink laps over ink.+- **Ink thickness**: a light rim top-left, a dark rim bottom-right, fills only; fresh ink has a wet sheen that fades within a second.+- **Paper**: cream stock with fibres; mottle and pinholes in paper colour, visible only on ink.-## 2. Use cases: what this style is for+Not risograph (translucent fluorescent overprint with halftone grain), not ukiyo-e (key-block line work with bokashi), not woodcut (carved line), not low-poly (3D facets). This style is opaque, line-free, flat and banded.-Silkscreen posters are information design: a place, a name and three or four facts. The style is strongest when the film *is* the poster. The order of printing becomes the order of reading.+## 2. Materials & rendering-| Use case | Shot structure | Information layers (in order) | Hold per layer | Length |-|---|---|---|---|---|-| **Trail / attraction guide** (the demo: park, resort, visitor-center screen) | Title banner pull → poster 1 printed layer by layer → poster 2 printed on eighth notes → last poster climbed in one take → pull back to the wall | park title → scene → trail name → difficulty → distance → time → climb → footer | title 3.2 s; name ≥ chars/12+1 s; stat row ≥ 2.2–3.0 s after its last item | 30–40 s for 3 trails |-| **Event / festival poster** (outdoor concert, market, race) | One poster; squeegee hook → 4 scene pulls → headline pull → date/venue band → wall or shop-window pull-back | headline → date → venue → one line of call to action | headline 2.5 s, date+venue 3 s, final hold 3 s | 15–20 s |-| **Destination series / tourism board** (one city, four neighbourhoods) | Same template, one palette per place; poster-to-poster transitions through the foreground (tree, lamp post, sail) | place name → one fact → series wall | 2.5 s per poster + 4 s wall | 20–30 s |-| **Product or outdoor-brand drop** (a tent, a jacket, a bike) | Product as the "summit": layers printed around a flat product silhouette, then a palette swap per colourway (one poster re-inked 3 times) | name → colourway ×3 → price / date | 1.8 s per colourway | 12–18 s |-| **Seasonal / opening-hours notice** | One poster re-printed in four palettes (spring → winter) with the same squeegee sweep | season name + hours per swap | 2 s per swap | 10–15 s |+- **One `Path2D` per ink layer**, filled in the current transform's units; knock-outs are holes in the path. Any shape can be printed.+- **Pull reveal**: a ragged squeegee front as a clip (a ~30 u drag tail); blade, bead and a sliver of handle ride on it.+- **Ink bead**: a round tube with lit half, dark underside, rolling glints and viscous strands; a split fountain puts several colours in one bead.+- **Screen**: a hinged frame with mesh, emulsion and tape; its shadow is a ring (even-odd), never a full rectangle.+- **Shapes**: ridges with a jagged lit facet, pines as one outline of drooping tiers, water as a flat body with glint bars. Hard edges everywhere.+- **Poster template** (1000×1500 u): paper border, art area, a dark **info band** at the foot holding a name, a number, a rule and a row of stats; columns sized by content.+- **Texture budget**: fine paper tile, mottle multiply ~55 %, pinholes ~75 %, light encode grain. More reads as risograph.-The demo is the first row. The others use the same engine: a scene is just a list of planes, the band template takes any 1–4 facts, and `swap` re-inks a whole poster in another palette.+## 3. Colour logic-**How the native moves serve information** (not story):-- *One ink, one beat*: each pull is one musical hit, so the eye is led through the layers in order and the facts are printed last, which is exactly when they are read.-- *Split fountain*: several inks in one pull. It opens the film, because one stroke fills the frame with colour.-- *Palette re-ink*: the whole poster pulled again in the next time-of-day palette. In the demo this is the data point "7 h": the day passes while the camera climbs.-- *Registration slip → snap*: during the climb the layers hang loose (white gaps, paper-thickness shadows), then clamp into register with one hit. This is the only time the film pauses before the most important facts.-- *Paper as a colour*: the waterfall is simply unprinted paper, the brightest thing on the sheet.-- *The trail as a printed layer*: the route is a dashed line in the sun ink, stamped segment by segment as the camera follows it.+- **One palette per poster, ≤ 6 inks**, assigned by role: light sky, deep sky / bands, far, mid, near (darkest; also the info band), and **one bright accent** (sun, route, highlights, key number). An optional lit-face ink.+- **Values step from far (light) to near (dark)**; depth is value, never blur.+- **The accent is rare**: the sun or light source, the one route or product, the most important number.+- **Paper is a colour**: an unprinted area is the brightest thing on the sheet (water, snow, a beam of light).+- **A series = one template, a new palette per item** (time of day, season, colourway, neighbourhood). Re-inking the same geometry in another palette is a statement.+- **Text inks are chosen by contrast** against the ink underneath (WCAG), never by a fixed key; a night palette must not swallow a header.+- Examples (sky1 → near, accent): dawn `#F6CD98 #EE9A73 #9A7FA8 #3E7079 #1E3B3F #FBE6B4`; harbour noon `#E8F0F2 #7FB3C8 #D9C7A3 #2F6E8E #173247 #E8553D`; winter `#EEF1F4 #B8C9D9 #8B9BB0 #4A5D78 #1F2A3C #F2B134`.-## 3. Visual language+## 4. Type & subtitles-- **Palette discipline**: one palette per poster, 6 inks: `sky1` (light sky), `sky2` (deep sky / bands), `far`, `mid`, `near` (darkest, also the info band), `sun` (the one bright accent: sun, trail, difficulty, climb). An optional `glow` is the lit face of mountains. A given poster should use ≤ 6 of these. The demo palettes are:- - dawn `#F6CD98 #EE9A73 #9A7FA8 #3E7079 #1E3B3F #FBE6B4`- - noon `#E4EEDC #86BCD0 #C2AE92 #4C8753 #1D4331 #F2C14A`- - golden `#F7D787 #E9A94F #A57C68 #5E7A45 #2B3A28 #FFF1C4`- - dusk `#F4B461 #D8613F #7C3E5F #43325A #1B1B2F #FBE3A6`- - Paper `#F2E8D2`. Title banner `#F7C66B #E4683F #2F6F73 #1C2A33`.-- **Contrast is automatic**: text inks are picked by WCAG contrast against the ink underneath (`pickInk`). A night palette will not make the header vanish.-- **Shapes**: mountains are midpoint-displaced ridges with a jagged lit facet; pines are one outline of drooping tiers plus a short trunk; water is a flat body with horizontal glint bars; forests are rows of pines on a solid base. Everything is drawn with hard edges.-- **Poster template** (units 1000×1500): paper border 26 u; art area to y = 1140; the scene is shifted up 50 u, so a little sky is cropped to make room for the info band. The band (y 1148–1474, `near` ink) holds the trail name (Big Shoulders Display 900, up to 122 u, auto-fit), the number `01`–`04` in `sun`, a 6 u `sun` rule, and a row of stats: labels 34–38 u (Outfit 600, letter-spaced), values 48–68 u (Big Shoulders 800). Columns are sized by content. On a wall at 0.49 scale, labels are about 18 px and values about 31 px.-- **Header**: park name tracked out at 62 u, printed in the sky.-- **Texture budget**: paper tile at 0.6 u per texel, mottle multiply at 55 %, pinholes at 75 %, then ffmpeg grain 3. More than this starts to read as risograph.+- **Condensed display** for names and values (e.g. Big Shoulders Display, League Gothic), auto-fit; a geometric sans for letter-spaced labels (e.g. Outfit 600).+- Headers are **printed into the sky**, tracked out; the info band is printed last.+- **The poster text is the subtitle.** No narration is needed; if there is a voice, subtitles are a printed strip (a band pull), never a floating caption.+- **Reading rule**: each text stays ≥ chars/12 + 1 s (min 1.5 s) after its **last** item lands, and ≥ max(1.8 s, speech + 0.6 s) with a voice. Compute it from the content, round up to the beat.+- On a wall shot, labels stay ≥ ~18 px and values ≥ ~30 px at 1080p; close-ups on a band keep the whole band in frame with ≥ 5 % side margins.-## 4. Motion language+## 5. Motion quality-- **Pulls** are linear and steady (a real squeegee does not ease). The front is ragged: an unevenly filled drag tail about 30 u long. Accent inks start half a beat after the main ink of the same layer (`sub: 1`).-- **Info band** items print left to right, 0.18 s each, on eighth notes. There is no fade anywhere.-- **Screen lift**: the frame hinges up (vertical squash plus a growing shadow) over 0.4 s.-- **Palette swap**: a wide squeegee travels diagonally (−12°) over the sheet in 0.35 s. Geometry is identical on both sides of the blade; only the inks change. Show only the blade, the bead and a sliver of handle.-- **Layer parallax** (the climb): a plane's vertical offset is `(camTopY − camY) × (depth − 1) × 0.42`. Each spur slides sideways (Gaussian bump, 190 u × depth) as the camera passes it. Paper gaps (3 u) and thickness shadows (9 u, 28 %) scale with "looseness" and drop to zero on the registration snap.-- **Ink bead**: a round, thick tube with a lit half, a dark underside, a continuous highlight, glints that roll with the squeegee's travel, and short viscous strands with a drop at the tip.+- **Pulls are linear and steady** (a squeegee does not ease). Accent inks start half a beat after the main ink of their layer.+- **Info items** print left to right on subdivisions of the beat. **There is no fade anywhere.**+- **Screen lift**: the frame hinges up (vertical squash + growing shadow) in ~0.4 s.+- **Palette re-ink**: a wide squeegee travels diagonally over the sheet in ~0.35 s; geometry identical on both sides of the blade, only the inks change. Show only the blade, bead and a sliver of handle.+- **Loose layers**: in a multi-plane move, planes parallax by depth with paper gaps and thickness shadows, then **snap into register** on one hit.-## 5. Camera language+## 6. Camera grammar-| Move | Use | Demo |+A vocabulary, not a route. Opening and ending come from the topic.++| Move | Expresses | Can serve ||---|---|---|-| Truck with the squeegee, slight roll (−1.7°), frame edge and handle ends in view | hook: the squeegee holds its place in frame while the bands stream past | 0–1.0 s |-| Fast pull-back (ease-out 0.65 s) | reveal the whole print as the screen lifts | 1.0–1.65 s |-| Tilt across the print table | from one sheet to the next | 4.8 s |-| Locked top-down full shot | watching layers stack | 5.4–7.8 s |-| Push + tilt to the info band | reading | 7.8–9.0 s |-| Truck through a foreground tree (screen-space silhouette in the previous poster's `near` ink, covers the frame for about 1 frame) | poster-to-poster transition | 13.2 s, 19.2 s |-| Pull-back from a detail to the whole sheet | "the white is the waterfall" | 14.4 s |-| **Crane up the trail, multi-plane parallax** (signature) | the hardest trail, one take | 19.2–23.4 s |-| Tilt down from summit to band | the climb ends in the data | 24.0 s |-| Log-zoom pull-back to the wall | final lockup, hold ≥ 3 s | 29.4–30.6 s |--Unified transition grammar: layers change by squeegee; posters change through foreground trees; the film ends with a squeegee pulling the end-card ink. No dissolves and no bare cuts.--## 6. Sound--- **Music**: American outdoor folk, 100 BPM, D major, open-D guitar strums (physical model), slide guitar (numpy), VCSL harmonica, cajon kick, brushes, upright bass. **Each pull is one strum**, and the chords climb D – D/F# – G – A as the layers come nearer. Poster 2 doubles to eighth notes (acceleration). The climb builds instrument by instrument. The registration snap is the loudest downbeat in the film.-- **Foley by material**: squeegee on mesh (band-passed noise with a 220–280 Hz amplitude grain from the mesh; faster pull = brighter), wet ink "squelch" (falling sine plus sticky noise), aluminium screen clack plus hinge creak, paper stamps for stats, 16th-note ticks for trail dashes, a paper hiss for sliding layers, and a wood-and-metal registration clamp.-- **Ambience**: studio room tone; the lake inside poster 1 fades in when the screen lifts (the print "wakes up"); waterfall (J-cut 0.9 s early); mountain wind (J-cut into the silence, L-cut out onto the wall); visitor-center murmur, a door, footsteps.-- **Silences**: 18.0–19.2 s (music off; the waterfall tail fades to about −59 dBFS; the first sound after it is a long slide up) and 23.4–24.0 s (wind only; the first sound after it is the clamp plus the full band).-- Music ducks 2.5 dB under foley. Master: −14 LUFS.--## 7. Titles & text--No narration and no subtitles: the poster text *is* the information. The title card is a printed 4:1 banner (1800×440 u, title split into two balanced lines), framed to fill the width (≈5 % margins, ≈40 % of frame height), which becomes the header of the final wall (hung at 1150 px wide so the posters keep ≥30 px values). Reading rule for this batch: each text stays ≥ chars/12 + 1 s (min 1.5 s) after its **last** item lands. The timeline computes this from `content.json` and rounds up to the beat. The end card is printed as a last landscape mini-poster in two pulls: a split-fountain pull for the art (sky bands, sun ring, ridge, trail dashes, title), then a `near` pull for the info band (style name, `Lemo-Opuscar`, `LemoLab × Claude Opus 5.5`, font and sample credits).--## 8. Pitfalls we hit--- **Stroke-based edge effects draw internal lines on unioned paths.** A forest drawn as a union of pines showed every tree outline. Do sheen and trap with fills only: fill the shape, then fill it again shifted, inside a clip.-- **Screen shadow darkened the whole print.** The frame's drop shadow must be a ring (even-odd), not a full rectangle, or everything under the mesh looks muddy.-- **Blue shadow facets on granite read as water.** Keep shadow planes in `near` and put them on the inside faces next to the waterfall.-- **A thick squeegee across a close-up splits the frame into "two pictures".** Tilt the blade, hide most of the handle, and keep the geometry continuous across it.-- **Jagged-triangle ink beads read as paper edges.** The bead needs roundness: lit half, dark underside, highlight and strands.-- **Parallax alone reads as "the mountains are moving".** Show paper gaps and thickness shadows while layers are loose, and snap them to zero with a sound.-- **Night palettes hid the header and labels.** Choose text inks by contrast (`pickInk`), never by a fixed key.-- **Wet-sheen gradient stuck at the end of the pull** (condition `p < 1.02` stays true forever). Fade it out by time.-- **Tree-wipe covered the frame for 0.4 s** (a dark blank). Centre the silhouette on the switch time so full cover lasts about 1 frame.-- Four trails at these reading times run to about 45 s. See §11 for how to compress.-- **A 7:1 title banner is a sliver in a 16:9 frame** (about 1/5 of the height, lots of empty table). Make the banner about 4:1 so it can fill the width and about 40 % of the height.-- **Random coloured dots on the table read as confetti or placeholders.** Build a real workbench: planks, grain, knots, a few large muted ink stains and torn tape.-- **Close-ups on an info band must keep the whole band in frame** with ≥5 % side margins (z ≤ 1.75 for a 1000 u poster). Close-ups on a sheet being printed must keep the sheet's edge in frame, or the viewer sees only a flat colour.--## 9. Production recipe (this repo)--`sh styles/silkscreen-poster/demo/build.sh` rebuilds everything:-1. `tools/timeline.mjs` prints the timeline derived from `content.json`.-2. `core/render/events.mjs` → `events.json` (every pull, lift, band, name, item, wipe, swap, part, silence, clack).-3. `music/compose.py` reads `events.json` → `score.wav` plus stems.-4. `mix.py` → `mix.wav` (ambience, foley, ducking, silence windows).-5. `tools/cuecheck.py` checks the mix onsets against the events: median error 4 ms; 30/33 within 1 frame. The rest are overlapping events and slow harmonica attacks.-6. Render (`--workers 2`, through the batch render limiter when present) → `mux.sh … 24 3`.--Files: `engine/silk.js` (print engine), `engine/scenes.js` (5 built-in scenes), `engine/poster.js` (template, banner, contrast), `film.js` (timeline and shots), `mix.py`, `music/compose.py`. Roughly 0.1 s per frame; a full render takes under a minute.--## 10. Engine usage--`engine/silk.js` prints **any shape** in this style: it only needs a `Path2D` in whatever units the current transform uses.--| Function | What it does |-|---|---|-| `makeTextures(paperHex, seed)` | paper, mottle and pinhole tiles (once) |-| `paperSheet(ctx, T, x, y, w, h)` | paper stock |-| `ink(ctx, part, o)` | one ink layer. `part = { path, knock?, paint? }` (`knock` = knocked-out holes, `paint(ctx)` = custom fill such as text). `o = { color, reg:[dx,dy], clip, sheen, trap }` |-| `wipeRegion(box, dir, p, seed)` / `wipeFront(...)` | the ragged squeegee front as a clip path, and where the blade is |-| `squeegee(ctx, a, b, lead, o)` | blade from `a` to `b` moving along `lead`; `o.beads=[{t0,t1,color}]` (split fountain), `roll`, `handle` 0–1, `scale` |-| `screenFrame(ctx, box, o)` | hinged screen with mesh, emulsion and tape; `lift` 0–1 |-| `inkFinish(ctx, T, x, y, w, h)` | mottle and pinholes over the sheet |-| `bandSteps(x, w, y0, y1, n)` | stepped colour bands (the gradient substitute) |-| `ridgeLine`, `polyPath`, `circlePath`, `ringPath` | shape helpers |--`engine/poster.js`: `buildPoster(content, trail, i, n)`, `drawPoster(ctx, P, { pal, T, prog, off, reg, sep, swap, items, … })`, `drawBanner`, `pickInk`. `engine/scenes.js`: `buildScene('lake'|'waterfall'|'ridge'|'forest'|'coast')` returns planes you can reorder or extend.--Minimal example: a warm-orange `#D97757` four-point spark with a cursor tail, printed in two inks and knocked out of a sky, then pulled in by the squeegee:-```js-import { makeTextures, paperSheet, ink, wipeRegion, wipeFront, squeegee, inkFinish, polyPath, rectPath, circlePath } from './engine/silk.js';-const T = makeTextures('#F2E8D2');-paperSheet(ctx, T, 0, 0, 800, 600);-const spark = polyPath([[400,180],[430,270],[520,300],[430,330],[400,420],[370,330],[280,300],[370,270]]);-const tail = rectPath(540, 285, 160, 30);-const p = 0.7; // 70 % of the pull done-const clip = wipeRegion([0, 0, 800, 600], 'right', p, 3);-ink(ctx, { path: rectPath(0, 0, 800, 600), knock: circlePath(400, 300, 150) }, { color: '#1C2A33', clip, sheen: 1 }); // sky with a knocked-out halo-ink(ctx, { path: spark }, { color: '#D97757', reg: [2, -1], clip, sheen: 1, trap: 1 });-ink(ctx, { path: tail }, { color: '#D97757', reg: [2, -1], clip, sheen: 1 });-const x = wipeFront([0, 0, 800, 600], 'right', p);-squeegee(ctx, [x + 10, -20], [x + 10, 620], [1, 0], { color: '#D97757', roll: x / 30 });-inkFinish(ctx, T, 0, 0, 800, 600);-```-Single-colour posters: keep one palette key (usually `sun`) as the only colour and set the other inks to tints of one hue. `pickInk` keeps the text legible.--## 11. Swap in your content--All text, data and colour come from `demo/content.json`; `film.js` has no copy in it.--| Field | Type | Range | If out of range |+| Truck with the squeegee, slight roll, frame edge in view | the act of printing; colour arriving | a hook; a split-fountain sky |+| Locked top-down full sheet | layers stacking into a picture | watching a poster build; a comparison |+| Fast pull-back as the screen lifts | the reveal of a finished layer | a scene complete; a title |+| Push + tilt to the info band | reading | facts; a date; a price |+| Truck through a foreground silhouette (tree, lamp post, sail) in screen space | passing into the next poster | poster-to-poster transitions |+| Crane through loose planes (multi-plane parallax) | depth, a journey inside the print | a route; a climb; a street |+| Slow lateral dolly along a row of prints | a set, a range | a series wall; colourways |+| Push into the mesh until the weave shows | the craft, the grain of the medium | an intimate beat; a detail |+| Log-zoom pull-back to the wall or window | the poster in the world | a final lockup (hold ≥ 3 s) |++Close-ups on a sheet keep its edge in frame; a squeegee across a close-up is tilted with the handle hidden, so it doesn't split the frame. Layers change by squeegee, posters through foreground silhouettes or a table move. No dissolves, no bare cuts.++## 7. Sound palette++- **Acoustic, hand-played instruments**: strummed guitar, slide guitar, harmonica, upright bass, cajon or brushes, banjo, fiddle, accordion, harmonium, ukulele. Choose the family from the place: folk, surf, bossa or brass band all fit.+- **One pull, one hit**: each ink lands on a musical event (a strum, a hit, a chord change); accelerate by subdividing, not by changing tempo. A registration snap is a loud downbeat.+- **Foley by material**: squeegee on mesh (band-passed noise with a ~220–280 Hz mesh grain; faster = brighter), wet ink squelch, screen clack and hinge creak, paper stamps, ticks for dashed routes, paper hiss, a wood-and-metal clamp, drying-rack clips.+- **Ambience from inside the print**: a finished scene may "wake up" (surf, street, crowd), J-cut in and L-cut out. Room tone under the table.+- **Silence as a tool**: the music drops out for a beat before the key facts; what remains is one ambience, and the first sound after is a decisive gesture (a clamp, a long slide up).+- Music ducks a few dB under foley. −14 LUFS.++## 8. Native moves++Each serves information order. A menu: use the ones your film needs.++- **One ink, one beat.** Facts print last, when they are read. *Fits content like:* museum hours; a ferry timetable; tasting notes.+- **Split fountain.** Several inks in one pull fill the frame with colour. *Fits content like:* a festival's night sky; a sunset beach bar; a rainbow of colourways.+- **Palette re-ink.** Same poster, another palette = time passing, a season, a variant. *Fits content like:* summer vs winter hours; three jacket colourways; day and night at a market.+- **Registration slip → snap.** Loose layers clamp into register with one hit, before the key facts. *Fits content like:* the date of a race; a launch price; a ticket sale opening.+- **Paper as a colour.** The unprinted sheet is the brightest element. *Fits content like:* a ski slope; a lighthouse beam; fresh snow on a roof.+- **The route as a printed layer.** A dashed accent line stamped segment by segment. *Fits content like:* a bus line; a marathon course; a delivery path.+- **The series wall.** Every print ends up hung together as the final lockup. *Fits content like:* a city's four districts; a band's tour dates; a product family.++## 9. Pitfalls of the medium++- Stroke edge effects draw internal lines on unioned paths → fills only (fill, then fill shifted inside a clip).+- A full-rectangle screen shadow muddies the print → ring shadow.+- Cool shadow facets next to water read as water → shadows in the near ink.+- Jagged ink beads read as paper edges → a round bead.+- Parallax alone reads as "the mountains are moving" → paper gaps and thickness while loose, snapped to zero with a sound.+- Silhouette wipes hold a dark blank → centre on the switch so full cover lasts ~1 frame.+- Very wide banners are slivers in 16:9 → about 4:1.+- Random coloured dots on the table read as confetti → a real workbench (planks, grain, muted stains, tape).+- Too many items at honest reading times overrun the length → print items side by side in the same pulls, or let secondary ones be read on the final wall.++## 10. Engine++`demo/engine/silk.js` prints **any shape** in this style from a `Path2D`: `makeTextures`, `paperSheet`, `ink(ctx, {path, knock, paint}, {color, reg, clip, sheen, trap})`, `wipeRegion`/`wipeFront` (ragged pull), `squeegee` (blade, beads, split fountain), `screenFrame`, `inkFinish`, `bandSteps` (the gradient substitute), shape helpers. `demo/engine/poster.js` (template, banner, `pickInk` contrast), `demo/engine/scenes.js` (planes you can reorder or extend), `demo/film.js` (timeline and shots). API table and a minimal example that prints a new shape: [DEMO.md](DEMO.md#engine-reference).++## 11. Variation space++You decide the subject, the scenes and their planes, the palettes within the colour logic, the number of posters, the camera path, the opening, the ending, the instrument family and the length. Use cases are **grammar for the order and duration of information**; build your own timeline from the user's facts.++| Use case | Information order (print order) | Hold per layer | Length ||---|---|---|---|-| `park` | string | ≤ 22 chars | header is letter-spaced at 62 u; longer names overflow the sky width (shorten or reduce tracking) |-| `title` | string | ≤ 34 chars | auto-fits 132 → 60 u on the banner; under 60 u it gets too small to read |-| `footer` | string | ≤ 45 chars | one line in the banner strip; the wall hold grows with its reading time |-| `trails[]` | array | **1–4** | 1 = press only (no climb); 2 = press + climb; 3 = press, quick, climb; 4 = press, quick, quick, climb (about 45 s, see below). Above 4, the wall posters become too small to read |-| `trails[].name` | string | ≤ 22 chars | auto-fits 122 → 60 u |-| `trails[].difficulty` | `easy` \| `moderate` \| `hard` \| `expert` | — | unknown values show 1 filled triangle |-| `trails[].distance` | number | any | printed as `3.2 KM` (unit from `units.distance`) |-| `trails[].time` | string | ≤ 7 chars (`1 h`, `45 min`) | the column widens and all values shrink together (min 48 u) |-| `trails[].elevation` | number \| null | null hides the CLIMB column | shown in `sun` ink as `↑1,100 M` |-| `trails[].scene` | `lake` \| `waterfall` \| `ridge` \| `forest` \| `coast` | built in | unknown → `lake` |-| `trails[].time_of_day` | key into `palette` | `dawn`, `noon`, `golden`, `dusk`, `night` | missing → `noon`. The climb re-inks from the previous trail's palette through `golden` to this one |-| `palette.<time>` | `{sky1, sky2, far, mid, near, sun, glow?}` | hex | text contrast is checked automatically |-| `palette.paper`, `palette.wall`, `banner_time` | hex / object / key | — | — |--**Steps**: edit `content.json` → `sh demo/build.sh`. There is no TTS; the music and mix re-time themselves from `events.json`. To preview another file without overwriting: `node core/render/still.mjs styles/silkscreen-poster/demo 30 --q content=content_alt.json`.--**Four trails in 40 s**: the reading rule makes each middle poster about 6 s long. Options, in order of preference:-1. Print the two middle posters **side by side on one table in the same pulls** (one quick section, two bands, read together).-2. Drop the per-item stamp spacing from an eighth note to a sixteenth for middle posters.-3. Skip the band close-up on middle posters and let them be read on the final wall (extend the wall hold by 2 s).--`content_alt.json` (4 walks, dawn/golden/noon/night, a new park, wall and banner palette) is the tested example. Its stills are in `demo/stills/alt_*.jpg`.--Minimal content:-```json-{ "park": "Pine Lake", "title": "One Walk at Pine Lake", "footer": "Open dawn to dusk",- "units": { "distance": "km", "elevation": "m" }, "banner_time": "dawn",- "trails": [ { "name": "Shore Path", "difficulty": "easy", "distance": 2, "time": "40 min",- "elevation": null, "scene": "lake", "time_of_day": "dawn" } ],- "palette": { "paper": "#F2E8D2",- "dawn": { "sky1": "#F6CD98", "sky2": "#EE9A73", "far": "#9A7FA8", "mid": "#3E7079", "near": "#1E3B3F", "sun": "#FBE6B4" } } }-```+| **Trail / attraction guide** | place → per item: scene → name → difficulty → distance → time → footer | title ~3 s; name ≥ chars/12 + 1 s; stat row ≥ 2.2–3 s after its last item | 30–40 s, 3 items |+| **Event / festival poster** | scene pulls → headline → date → venue → call to action | headline 2.5 s, date + venue 3 s, final 3 s | 15–20 s |+| **Destination series** | one template, a palette per place: name → one fact → series wall | 2.5 s per poster + 4 s wall | 20–30 s |+| **Product drop** | layers around a flat product silhouette → name → colourway ×3 (re-ink) → price / date | 1.8 s per colourway | 12–18 s |+| **Seasonal / hours notice** | one poster re-inked per season → season + hours | 2 s per swap | 10–15 s |++All far from our demo:++- Structures: **one poster, many runs** (re-inked for each of four nights, the line-up changing in the band); **a street walk** (one multi-plane truck down a street, each shop sign printed as we pass); **a misprint story** (registration drifts until the last pull lands true on the date).+- Openings: **the empty screen** (light through a blank mesh, a stencil being exposed); **the accent first** (a lone product in the bright ink on bare paper); **the finished wall at night**, then back to the table.+- Endings: **the drying rack** (prints clipped in a row, swaying); **the poster in use** (pasted on a bus shelter, rain starting); **the last pull is paper** (the squeegee runs dry, leaving a white silhouette).++Swapping `demo/content.json` and rebuilding is a technical check that the engine re-flows, not a way to make a film.++---++How our demo was made (story, shots, score, end card, build, content fields): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/silkscreen-poster/TREATMENT.md b/styles/silkscreen-poster/TREATMENT.mddeleted file mode 100644index c5665c5..0000000--- a/styles/silkscreen-poster/TREATMENT.md+++ /dev/null@@ -1,204 +0,0 @@-# Silkscreen Travel Poster · 导演方案(Treatment)--**片名** *Three Trails*(画面上的片名来自 content.json:`3 Trails in Granite Valley`)-**场景** 户外步道指南:虚构的 Granite Valley 园区,游客中心墙上的三张步道海报 + 一条横幅,从印刷台一路印到上墙。-**时长** 38.4 s(片尾卡 3.6 s 在内)| **画幅** 1920×1080 | **帧率** 24 fps,刮板、镜头每帧平滑;套色抖动按 12 fps 步进-**节拍** 100 BPM,4/4,一拍 0.6 s,一小节 2.4 s,全片 16 小节-**旁白** 无(按派单)。信息全在海报上,不需要字幕和 `.srt`。-**一句话** 刮板把第一层天空推满画面;三张步道海报按"天空 → 远山 → 中景 → 近景 → 信息带"一层层印出来,一张比一张快;第三张不再重印,镜头沿步道从谷底升到山脊,时间从中午走到黄昏,整张海报被重印了两遍;最后三张海报挂在游客中心的墙上,全部信息同时在场。-**看完能说出** "这个能拿去做景区 / 国家公园 / 户外品牌的路线介绍,游客中心屏也能放。"--> **关卡 1 后的修改(协调者意见,已全部落实)**-> 1. 第 3 张不重演逐层印刷:批准。-> 2. 签名镜头的重印:刮板改成斜着推(−12°),只露刀口、墨珠和一截手柄。刮板两侧几何完全一致,只换墨色,山脊线和步道虚线都跨过刀口接上。-> 3. 视差的"纸版感":爬升时每层上沿多一道 3 u 纸白缝和一道 9 u 纸厚阴影,套色错位放大到约 ±6 px。静一拍后"卡嗒",错位和阴影同时归零。-> 4. 钩子里的墨珠:改成圆润厚实的湿墨条(受光半边、背光下沿、连续高光,亮点随刮板滚动,短粗拉丝挂一滴)。刮过的地方透出网格。镜头拉开到 z≈2.7,让网框的边和刮板木柄入画。-> 5. 信息带加高到 326 u(场景上移 50 u,裁掉一点天空)。上墙后标签约 18 px,数值约 31 px。列宽按内容分配,文字墨色按对比度自动挑。-> 6. 瀑布:岩壁内侧加两块深色切面,把纸白瀑布夹在中间。水潭波纹简化成两道。-> 7. 时长 38.4 s(含片尾卡)。4 条步道怎么压缩写在 STYLE.md §11。--> **关卡 2 后的返修(v2;v1 备份为 `silkscreen-poster_v1.mp4` 和 `demo_v1/`)**-> 1. **片名横幅:选"保留横幅、贴近",不把片名并进第 1 张海报。** 理由有三条:-> - 横幅就是落版墙上的页眉,开头印、结尾挂,首尾呼应;-> - 如果把片名并进第 1 张,三张海报的页眉会不一致,系列感就破了;-> - 分色刮铺天空的钩子也要一张横向的纸才成立。->-> 改法:-> - 横幅从 7:1 改成 4:1(1800×440),片名断成两行;开场拉开后撑满画宽(左右边距约 5%),占画高约 39%。-> - 台面换成旧木工作台:木板、木纹、节疤、干掉的墨渍(颜色压暗)、撕剩的胶带条。随机彩点去掉了。-> - 墙上的横幅缩到 1150 px 宽,居中挂在海报上方,保证上墙后海报数值仍 ≥30 px。-> 2. **第 2 张快印段**:-> - 起始机位 z = 1.25,整张纸宽和上沿一直在画里,海报占画高 100%,不会再出现整屏只有一块浅色平涂;-> - 拉到信息带时 z = 1.5,海报占画高约 78%。-> 3. **信息带完整入画**:第 1 张 z = 1.55(左右边距约 12%),第 2 张 z = 1.5(约 13%),第 3 张下摇到信息带时 z 从 2.06 降到 1.72(约 7%)。CLIMB 一栏和 "01" 都完整。-> 4. **片尾卡改成最后两刮**:第一刮用分色墨珠印出一张横版小海报(天空色带、日圈、山脊、步道虚线、片名),第二刮印深色信息带:风格名、Lemo-Opuscar、LemoLab × Claude Opus 5.5、字体与采样署名。第二刮有自己的刮墨声。-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么(语法) | 刻意不学 |-|---|---|---|-| **1930–40 年代 WPA 国家公园丝网海报** | 4–6 个不透明平涂色;山体用"受光面 + 背光面"两块硬边色;天空用**色带台阶**代替渐变(粗条到细条);底部一条深色信息带、大写粗体园区名;太阳用同心圈 | 不抄任何具体海报的构图、园区名、字体设计;不写 "National Park" 之类的真实机构字样 |-| **当代 Fifty-Nine Parks 系列** | 现代丝印的套色克制;留白(纸色)当第七个颜色用;海报做成系列:同一套版式,每张换一套时间色 | 不学它的具体插画、编号样式和 logo 位置 |-| **丝网印刷的物理过程**(参考工作室拍的印刷过程影像) | 网版铰链抬起落下;刮板把墨珠推过网纱;**分色刮(split fountain)**:刀口前摆几种墨,一刮出一条色带;刮痕、针孔、墨层边缘的厚度光;套色错位露出的细白缝 | 不做真实照片感的网版和刮板,全部按丝印自己的平涂语言画(两色木柄、一色胶条、平涂投影) |-| **Wes Anderson 的俯拍桌面镜头**(只学镜头语法) | 俯拍、正交、物件对齐画框;快速横移接硬停 | 不学他的配色和对称人物调度 |--## 二、和库里相近风格的区别(开工前看过成片和 STYLE.md)--| 库内风格 | 它是什么 | 本风格怎么区分 |-|---|---|---|-| **risograph**(*Sunday Ride*) | 半透明荧光专色叠印出第四、第五色;网点半调、墨粒颗粒;角色喜剧 | **不透明**平涂墨层,后印的完全盖住先印的;**没有网点、没有荧光色、没有叠色混色**(唯一的叠色只在错位的一条细边上);颜色数 4–6 且每张海报独立一套;场景是信息海报,不是故事 |-| **ukiyoe**(浮世绘) | 木版、墨线轮廓、普鲁士蓝、木纹与马连擦痕 | **完全没有线描**:形状只由色块的硬边界定义;纸面无木纹;天空是色带台阶,不是 bokashi 渐变 |-| **lowpoly-island** | 3D 多边形小岛,平面着色的三角面 | 纯 2D 版画:山体切面是手工式的锯齿大块,不是三角网格;有纸、有墨、有套色错位 |-| **woodcut** | 黑白刻线、刀痕 | 彩色、无刻线、无刀痕,靠平涂色面 |-| **swiss-motion**(音乐会海报自排版) | 网格排版、纯字体动态 | 本片的字只是信息带里的一层版,主角是风景插画和印刷过程;排版固定成"旅行海报"模板 |--库里已有的 demo 场景没有"路线 / 景点指南",本片不撞场景。--## 三、信息弧(替代情绪弧)--1. **钩子(0–1.2 s)**:第一帧就是刮板正在推墨:分色墨珠(橙红 / 金黄 / 青绿三段)在刀口前滚动,身后天空色带一刮就铺满整个画面。-2. **分层上场**:- - 片名(横幅)→ 第 1 张:五层逐拍印,每层一个扫弦 → 信息带:名称 → 难度 → 距离 → 用时,一次只亮一个。- - 第 2 张用八分音符快印(加速),信息带同样顺序。- - 第 3 张的信息最重要(最难、最长、唯一有爬升),给它全片唯一的长镜头和高点。-3. **一个高点**:山脊步道。镜头沿步道从谷底升到山顶,近景松林沉下去、三道山梁依次向两侧让开;步道虚线跟着镜头一段段印出来;海报被整张重印两次(中午 → 午后 → 黄昏),告诉观众"这条要走一整天"。到顶后静一拍,各层"卡嗒"一声套准,全乐队进。-4. **落版**:三张海报 + 横幅挂在游客中心的木墙上,全部信息可读,停 4.2 s。这一帧就是可以直接截图的海报 / 封面。--## 四、原生招式(只有丝印能做的)→ 怎么服务信息--| 丝印原生能力 | 本片用法 |-|---|---|-| **一次一色的套印** | 每一层 = 一个节拍 = 一声扫弦;观众的眼睛被一层一层领着走,信息带最后印,所以最后被读到 |-| **分色刮(split fountain)** | 开场钩子:一把刮板刮出三条色带,片名横幅的天空一刮成形 |-| **色带台阶代替渐变** | 所有天空:一块大色 + 五条由粗到细的条纹过渡;横幅同理 |-| **套色错位 → 细白缝 / 叠色边** | 太阳和光圈是从天空版里**镂空**的,错位让一边露出一弯纸白;每块版二次轻压一层 multiply 的边,留下一道深色叠印边;高点之前各层故意松开,"卡嗒"一声套准 |-| **同一张海报整体换色表示时间** | 高点里的两次重印:一把大刮板从下往上推过整张海报,推过的地方从中午色换成黄昏色——"7 h"这条数据被画出来了 |-| **墨层厚度的微弱光泽** | 每块墨的左上边一道亮边、右下边一道暗边;刚刮过的湿墨在刮板后面亮一截,随后变哑 |-| **纸是第七个颜色** | 第 2 张的瀑布不上墨,就是纸本身(从岩壁版里镂空) |--## 五、镜头表--| # | 时间 | 景别 | 角度 | 运动 | 为什么 |-|---|---|---|---|---|---|-| 1 | 0.0–1.0 | 特写(刮板 + 墨珠) | 俯拍,画面滚转 −2.6° | **跟移**:机位随刮板横移,刮板稳在画右三分之一 | 钩子:一开始就在动作中间;横移时色带是水平条纹,画面不晃,只有刮板和山脊在走,读得清 |-| 2 | 1.0–4.8 | 全景(整条横幅) | 俯拍 | **急拉**到全景(0.65 s,ease-out),滚转归零;读片名时缓推 3.5% | 刮完一抬网版就给全貌;片名需要 3.2 s 阅读,镜头只做极慢的推 |-| 3 | 4.8–5.4 | 全景 → 全景 | 俯拍 | **下摇**:从横幅摇到下方的新纸 | 同一张印刷台,空间连续;刮板声提前进(J-cut) |-| 4 | 5.4–7.8 | 全景(整张海报 + 网框) | 俯拍 | 固定 | 四层逐拍印,固定机位才看得清"一层盖一层" |-| 5 | 7.8–13.2 | 近景(信息带) | 俯拍 | **推** + 下摇到信息带;读数时缓推 2% | 网版一抬,镜头去读信息;名称、难度、距离、用时逐个亮 |-| T | 12.9–13.5 | — | — | **穿越横移**:一棵近景松树从右向左擦过镜头 | 转场语法:穿过上一张的近景树影进入下一张(在媒介里:树影就是上一张近景版的墨色) |-| 6 | 13.2–15.0 | 中近景(岩壁与瀑布) | 俯拍 | 缓慢横移 → **拉**到海报下半 | 八分音符快印,镜头往后退给出整幅瀑布;瀑布是纸白,退开才看出"没印的那一块就是水" |-| 7 | 15.0–18.6 | 中景(下半张 + 信息带) | 俯拍 | 固定 | 读信息 |-| T | 18.9–19.5 | — | — | 穿越横移(在静音里) | 同一套转场,第二次 |-| 8 | 19.2–23.4 | 近景 → 中景,**一镜到底** | 平视画面(海报内) | **升**(沿步道从谷底升到山顶)+ 多层视差 + 山梁左右让开 + 轻微拉 | **签名镜头**。起步缓、中段匀速、到顶减速;中途两次整张重印(大刮板自下而上) |-| 9 | 23.4–24.0 | 中景(山顶 + 太阳) | — | 停(各层悬着、微微错位) | 静音一拍,给"卡嗒"留位置 |-| 10 | 24.0–29.4 | 近景(信息带) | — | **下摇**:从山顶一路摇到信息带(0.9 s) | "爬上去再看数据":1,100 m 的爬升最后落在信息带上 |-| 11 | 29.4–34.8 | 近景 → 大全景 | 平视 | **拉**(对数缩放,1.2 s)到整面墙;停 4.2 s,极慢推 1.2% | 尺度揭示:原来这是挂在游客中心墙上的一套海报;落版 |-| 12 | 34.8–38.4 | 全屏 | — | 一把刮板从左到右刮上一层深色墨,就是片尾卡 | 片尾也用印刷语法收 |--镜头运动种类:跟移、急拉、下摇、推、穿越横移、升(带视差)、拉、滚转,共 8 种;景别从特写到大全景。-**签名镜头**:#8 沿步道升到山脊的一镜到底(多层视差 + 两次整张重印)。-**转场语法统一**:层与层之间 = 刮板;海报与海报之间 = 穿过近景树影;最后 = 拉出到墙;片尾 = 刮板。没有淡入淡出和硬切。--## 六、分镜节拍表(按秒;时间线由 content.json 推出来,条目数变了会自动重排)--| 时间 | 小节.拍 | 画面 | 信息层 | 读秒要求 → 实际停留 |-|---|---|---|---|---|-| 0.0 | 1.1 | 刮板已在横幅 30% 处,分色墨珠,湿墨反光 | — | — |-| 1.0 | 1.3− | 刮到头,刮板抬走,网版以上沿为铰链抬起 | — | — |-| 1.2–1.5 | 1.3 | 第二刮(深墨):片名 `3 TRAILS IN GRANITE VALLEY` | 片名 | 26 字 → 3.17 s;实际 1.6–4.8 = 3.2 s |-| 1.35–1.6 | — | 页脚条 + `FREE TRAIL MAPS AT THE VISITOR CENTER`(小字,此刻不求读,落版时读) | — | — |-| 4.8–5.4 | 3.1 | 下摇到印刷台上的新纸,网框已落下 | — | — |-| 5.4 / 6.0 / 6.6 / 7.2 | 3.2 / 3.3 / 3.4 / 4.1 | 第 1 张(湖,清晨):天空(+ 半拍后色带和太阳)/ 远山 / 湖面与对岸林线 / 近景大松与岸石;每刮 0.45 s,刮板从上往下 | 画面 | — |-| 7.8 | 4.2 | 网版抬起(铰链声),镜头推向信息带 | — | — |-| 8.4 | 4.3 | 信息带底色从左往右刮上,步道虚线一段段印出 | — | — |-| 9.0 | 4.4 | 名称 `LAKESHORE LOOP` + 编号 `01` + 页眉园区名 | 名称 | 14 字 → 2.17 s;实际 4.2 s |-| 9.6 / 9.9 / 10.2 | 5.1 / 5.1& / 5.2 | 难度(三个小山形,实心 1 个)/ 距离 / 用时 | 数据 | 15 字 → 2.25 s;最后一项起 3.0 s |-| 12.9–13.5 | 6.2 | 树影转场(13.2 过中点) | — | — |-| 12.9 / 13.5 / 13.8 / 14.1 | 八分音符 | 第 2 张(瀑布,中午):天空(在树影下已刮上)/ 远峰 / 岩壁(瀑布镂空成纸白)/ 近景 | 画面 | — |-| 14.4–15.1 | 7.1 | 拉开,瀑布全貌 | — | — |-| 14.7 / 15.0 | 7.1& / 7.2 | 信息带 / 名称 `CASCADE FALLS TRAIL` `02` | 名称 | 19 字 → 2.58 s;实际 4.2 s |-| 15.3 / 15.6 / 15.9 | — | 难度(实心 2)/ 7 KM / 3 H | 数据 | 17 字 → 2.42 s;实际 2.7 s |-| 18.0 | 8.3 | 音乐停,瀑布声淡出 → **静音 1** | — | — |-| 18.9–19.5 | 8.4 | 树影转场(19.2 过中点)(只有一声很轻的叶子擦过) | — | — |-| 19.2 | 9.1 | 第 3 张(山脊)已印好,镜头在谷底;滑棒吉他一个上滑长音 = 静音后第一个声音 | — | — |-| 19.2–23.4 | 9.1–10.4 | **签名镜头**:升。19.5 近景松林沉出画;20.2 第三道山梁向左让开;20.6 **重印 1**(中午 → 午后);21.0 第二道向右让开;22.0 **重印 2**(午后 → 黄昏);22.4 第一道向左让开;虚线步道随镜头印到山顶 | 画面 | — |-| 23.4–24.0 | 10.4 | 山顶 + 落日,各层悬着微错位,**静音 2**(只有风) | — | — |-| 24.0 | 11.1 | **卡嗒**:所有层一下套准 + 全乐队强拍(全片高点) | — | — |-| 24.0–24.9 | 11.1–11.2 | 下摇到信息带 | — | — |-| 24.6 / 24.9 | 11.2 / 11.2& | 信息带 / 名称 `SUMMIT RIDGE` `03` | 名称 | 12 字 → 2.0 s;实际 4.5 s |-| 25.2 / 25.5 / 25.8 / 26.1 | 11.3–11.4& | 难度(实心 3)/ 14 KM / 7 H / ↑ 1,100 M(爬升用太阳色,全片唯一) | 数据 | 24 字 → 3.0 s;实际 3.3 s |-| 29.4–30.6 | 13.3–13.4 | 拉出到墙 | — | — |-| 30.6–34.8 | 13.4–15.2 | **落版**:横幅 + 三张海报,全部信息在场;30.6 起读页脚 | 页脚 | 37 字 → 4.08 s;实际 4.2 s |-| 34.8–35.3 | 15.3 | 刮板刮上片尾卡底色 | — | — |-| 35.3–38.4 | — | 片尾卡:片名、`Silkscreen Travel Poster`、`Lemo-Opuscar`、`LemoLab × Claude Opus 5.5`、字体与素材署名 | — | 3.1 s |--## 七、Cue map(100 BPM;配乐:美式户外民谣)--配器:开放 D 调弦木吉他(`pluck.py` 物理建模,DADF#AD)、滑棒吉他(numpy:锯齿 + 共鸣体滤波,音高连续滑动)、口琴(numpy:簧片方波 + 呼吸噪声 + 颤音)、轻底鼓(`sfx.thump`)、刷子军鼓、低音拨弦。**每一层印下 = 一声吉他扫弦**,扫弦的和弦沿 D – D/F# – G – A 往上走,层越近和弦越高。--| 段 | 时间 | 小节 | 配器 / 状态 | 卡点 |-|---|---|---|---|---|-| Intro | 0–4.8 | 1–2 | 开场已在进行:开放 D 震音扫弦(持续)+ 口琴长音在 1.5 进 | 1.0 抬网版 = 闷音"chk";1.2 片名刮 = 底鼓 + 下扫弦;1.5 口琴 |-| A(第 1 张) | 4.8–13.2 | 3–5.5 | 四分音符扫弦,每层一声(5.4 D / 6.0 D/F# / 6.6 G / 7.2 A);7.8 底鼓 + 低音进;之后 2、4 拍刷子 | 8.4 信息带 = 长下扫;9.0 名称 = 口琴短句;9.6/9.9/10.2 = 三个空弦单音(D–F#–A);12.6 树影 = 上扫耙弦 |-| B(第 2 张) | 13.2–18.0 | 6–8.2 | **加速**:八分音符扫弦 + 四踩底鼓;滑棒短句穿插 | 12.9/13.5/13.8/14.1 每层一声短扫;15.0 名称 = 滑棒上滑;三个数据 = 单音 |-| 静音 1 | 18.0–19.2 | 8.3–8.4 | 音乐全停,只剩瀑布声淡出和房间底噪 | — |-| C(签名) | 19.2–23.4 | 9–10.3 | 19.2 滑棒上滑长音(静音后第一个声音);19.8 起乐队逐件加入(底鼓 → 低音 → 扫弦 → 口琴和弦),渐强 | 20.6 重印 1 = 刷弦耙音 + 低音上行;22.0 重印 2 = 更大的耙音 + 镲片刷;近景 / 山梁让开 = 每道一声滑棒 |-| 静音 2 | 23.4–24.0 | 10.4 | 一拍全停,只有山顶风 | — |-| 高点 | 24.0 | 11.1 | **卡嗒**(木 + 金属对位夹)+ 全乐队强拍 D 大和弦 | 全片最响的一拍 |-| D(读数) | 24.0–29.4 | 11–13.2 | 全乐队律动一小节后收成吉他 + 口琴 | 24.6 信息带 = 长扫;24.9 名称 = 口琴;4 个数据 = 4 个单音(最后的 1,100 m 用高八度) |-| 尾 | 29.4–34.8 | 13.3–15.2 | 呼吸:只剩吉他分解和弦 + 口琴收句,30.6 落在 D 大和弦上延音 | 30.6 落版 = 和弦落定 |-| 片尾 | 34.8–38.4 | 15.3–16 | 最后一声扫弦的余音 + 口琴一个长音淡出 | 34.8 片尾卡刮板 = 轻扫 |--**快慢变化**:A 段四分音符 → B 段八分音符(加速)→ 静音 → C 段一个 4.2 s 的长镜头(呼吸 + 渐强)→ 静音一拍 → 高点 → 尾段收成两件乐器(减速)。-卡点自检:做片时导出 `EV`,参照 `styles/microgame` 的 cuecheck 核对每个刮板落点、信息亮起和音乐事件的误差(目标 ≤ 1 帧)。--## 八、声音设计表--| 段落 | 环境底 | 主要拟音(材质) | 音乐状态 |-|---|---|---|---|-| 横幅(0–4.8) | 印刷工作室:低频房间底噪、远处窗外鸟叫很轻 | 刮板刮网(橡胶在尼龙网纱上:带颗粒的中频"嘶",亮度随刮速)、墨珠挤压的湿"咕"、刮板离网的"啪"、网版铰链"咔 + 弹簧吱" | Intro 震音扫弦 + 口琴 |-| 第 1 张(4.8–13.2) | 工作室底噪;7.8 网版抬起那一刻,**画里的清晨湖边**(水声、潜鸟一声)淡入,好像海报里的世界醒了 | 每层刮墨(四次,一次比一次短)、回墨刀"刷"、网版抬起、信息带刮墨(更长、更重)、数据块落下(短"嗒"+ 纸面闷响)、步道虚线(每段一个极小的"嗒",量化到十六分音符) | A 段,扫弦逐层上行 |-| 转场 1(12.6–13.2) | **J-cut**:瀑布声从 12.3 开始从底下涨上来 | 松针擦过的沙沙 + 空气"呼" | 上扫耙弦 |-| 第 2 张(13.2–18.0) | 瀑布轰鸣(粉噪 + 低频) | 四次快刮(短促)、信息带、三个数据块 | B 段加速 |-| 静音 1(18.0–19.2) | 瀑布淡出 → 近乎无声;**J-cut**:18.6 山谷的风先进来 | 树影擦过只留一声极轻的叶响 | 全停 |-| 签名(19.2–23.4) | 山风,随高度变强、变亮 | 虚线逐段"嗒"、山梁让开(纸面滑动的"嘶")、两次重印(最长最重的刮墨声) | C 段渐强 |-| 静音 2(23.4–24.0) | 只有山顶的风 | — | 全停 |-| 高点(24.0) | 风 | **卡嗒**:对位夹合上(木 + 金属),全片最重要的一声 | 全乐队强拍 |-| 读数(24.0–29.4) | 风渐小 | 信息带、四个数据块 | D 段 |-| 墙(29.4–34.8) | **L-cut**:山风延续到拉出墙面,再被游客中心的室内声(轻微人声嘈杂、远处门、木地板脚步)接过 | 墙上一枚图钉"嗒"(拉出到位时) | 尾段,和弦落定延音 |-| 片尾(34.8–38.4) | 室内声淡出 | 片尾卡刮墨一声 | **L-cut**:最后扫弦的余音盖过片尾卡 |--三层都在;两处静音(18.0–19.2、23.4–24.0),静音后的第一个声音分别是"滑棒上滑"和"卡嗒 + 全乐队";J-cut 两次(瀑布、山风),L-cut 两次(山风进墙面、扫弦余音进片尾)。混音:拟音优先,音乐在每次刮墨时让 2–3 dB(ducking)。--## 九、字幕 / 文字设计--- 无旁白、无字幕。文字全部是"印出来的一层":Big Shoulders Display 900(大标题、步道名、编号,窄体粗无衬线,接近 WPA 手绘标题字)+ Outfit(数据、标签、页脚,几何无衬线)。两者 OFL。-- 信息带是固定模板:步道名(自动缩字号适配宽度)+ 右侧编号 + 太阳色分隔线 + 2–4 个数据项(难度 / 距离 / 用时 / 爬升,爬升为空就不出现,列宽自动平分)。-- 每个数据项自己一刮(从左往右 0.18 s),不做淡入。--## 十、content.json(本批核心交付,初稿在 `demo/content.json`)--| 字段 | 内容 |-|---|---|-| `park`、`title`、`footer` | 园区名(每张海报页眉)、片名(横幅)、页脚(横幅底条,落版时读) |-| `trails[]`(1–4 条) | `name`、`difficulty`(easy / moderate / hard)、`distance`、`time`、`elevation`(可空)、`scene`(lake / waterfall / ridge / forest / coast,引擎内置)、`time_of_day`(dawn / noon / golden / dusk / night) |-| `palette` | `paper`、`wall`、每个时刻一套 6 色(`sky1 sky2 far mid near sun`,可选 `glow` 受光面色)、横幅色 `banner` |-| `banner_time`、`units` | 横幅用哪套色;距离、爬升单位 |--时间线规则(代码里已实现):第 1 条 = 完整印刷,中间各条 = 快印,最后一条 = 签名爬升;每段的停留按"字数 / 12 + 1 s"自动算,最短 1.5 s,并对齐到拍。1 条时只有完整印刷,没有爬升。--## 十一、风格帧(关卡 1)--- `demo/stills/frame_v1_1_hook.jpg`:开场钩子(t = 0.4 s)。分色刮板,身后天空色带刚铺满,湿墨反光,网纱纹理,刀口前方还是纸。-- `demo/stills/frame_v1_2_signature.jpg`:签名镜头(t = 22.2 s)。爬升中的第二次重印:大刮板自下而上推过,下半张已是黄昏色,上半张还是午后色,虚线步道正印到半山。-- `demo/stills/frame_v1_3_landing.jpg`:落版(t = 34 s)。游客中心木墙、横幅 + 三张海报,全部信息可读。-- 关卡 1 后的新版:`frame_v2_1_hook.jpg`、`frame_v2_2_signature.jpg`、`frame_v2_3_landing.jpg`。--## 十二、已知风险 / 没把握的地方--1. **签名镜头的视差**:海报本来是平的,拆成层做视差时,观众可能读成"山在动"而不是"版在分开"。计划用"卡嗒"套准和到顶前的一拍静止把"它们是版"交代清楚;做片时要再看动态。-2. **第 3 张不重演逐层印刷**:前两张已经教会观众"一层一拍",第三张把时间让给爬升;这张的"印"改成步道虚线逐段印出 + 两次整张重印。这是对派单构思的一个有意改动。-3. 第 2 张(瀑布)的岩壁目前偏平,关卡 2 前再加切面细节。-4. 时长 38.4 s 接近上限:按阅读时间规则,4 条步道会超过 40 s(STYLE.md 会写明 4 条时建议压缩什么)。diff --git a/styles/silkscreen-poster/demo/stills/alt_1_title.jpg b/styles/silkscreen-poster/demo/stills/alt_1_title.jpgnew file mode 100644index 0000000..e615141Binary files /dev/null and b/styles/silkscreen-poster/demo/stills/alt_1_title.jpg differdiff --git a/styles/silkscreen-poster/demo/stills/alt_2_band.jpg b/styles/silkscreen-poster/demo/stills/alt_2_band.jpgnew file mode 100644index 0000000..bfe8156Binary files /dev/null and b/styles/silkscreen-poster/demo/stills/alt_2_band.jpg differdiff --git a/styles/silkscreen-poster/demo/stills/alt_3_ascent_night.jpg b/styles/silkscreen-poster/demo/stills/alt_3_ascent_night.jpgnew file mode 100644index 0000000..71a8db4Binary files /dev/null and b/styles/silkscreen-poster/demo/stills/alt_3_ascent_night.jpg differdiff --git a/styles/silkscreen-poster/demo/stills/alt_4_wall.jpg b/styles/silkscreen-poster/demo/stills/alt_4_wall.jpgnew file mode 100644index 0000000..d03b2bcBinary files /dev/null and b/styles/silkscreen-poster/demo/stills/alt_4_wall.jpg differdiff --git a/styles/silkscreen-poster/demo/stills/styleframe.jpg b/styles/silkscreen-poster/demo/stills/styleframe.jpgnew file mode 100644index 0000000..6f900aaBinary files /dev/null and b/styles/silkscreen-poster/demo/stills/styleframe.jpg differdiff --git a/styles/silkscreen-poster/style.json b/styles/silkscreen-poster/style.jsonnew file mode 100644index 0000000..97955d2--- /dev/null+++ b/styles/silkscreen-poster/style.json@@ -0,0 +1,18 @@+{+ "slug": "silkscreen-poster",+ "num": "54",+ "en": "Silkscreen Travel Poster",+ "cn": "丝印旅行海报",+ "category_en": "Print & Printmaking",+ "category_cn": "印刷与版画",+ "film": "Three Trails",+ "line": "Three trail posters are screen-printed one ink at a time, then climbed in one long take from noon to dusk.",+ "line_cn": "三条步道各一张丝印海报,一色一刮印出来,再沿山脊一镜到底从正午爬到黄昏。",+ "uses": [+ "Trail & destination guides",+ "Tourism promos",+ "Event posters"+ ],+ "frame_sec": 34.0,+ "dur": 38.4+}diff --git a/styles/spy-titles/DEMO.md b/styles/spy-titles/DEMO.mdnew file mode 100644index 0000000..e8b4dbd--- /dev/null+++ b/styles/spy-titles/DEMO.md@@ -0,0 +1,103 @@+# 60s Spy Title Sequence — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *The Velvet Cipher* (44 s) · `spy-titles.mp4` · source in [`demo/`](demo/)+++A 30–60 second film: an agent chases a courier and a stolen key through sets built from the credits, and the key turns out to open the film's title.++## Story & structure++The graphic grammar of late-1950s / 1960s title design (Saul Bass's *North by Northwest*, *Anatomy of a Murder*, *Vertigo*; the 2002 homage by Kuntzel + Deygas for *Catch Me If You Can*): **flat, opaque inks on paper, hand-cut edges, abstraction down to silhouettes, and typography that is part of the picture's structure**. A title sequence is a story in itself: one goal, one chase, a few locations, one reveal — and the reveal is the title.++It is **not** a gun-barrel opening, not a tiptoeing cartoon panther, not a copy of any real title's logo, lettering, characters or shots. The credits contain only fictional roles ("A LEMOLAB PICTURE", "STARRING THE AGENT", "MUSIC BY THE SAMPLER") — never real names.++Pick stories that are **a pursuit of something that turns out to be the film itself**. The demo used all five native powers, the strongest (the diagonal grid assembling the title) at the peak:++| Native power | Story use |+|---|---|+| **Type is the set** | Each location is exactly one line of credits, and that line *is* the architecture: letters as colonnade pillars (the hero hides behind the **I**), words as train carriages (he leaps the gaps between words), the **O** of a name as a roulette wheel, an em-dash as a roof ledge, a letter as a lock. At some moment every line must be fully readable. |+| **Credits are rhythm** | Credits land on beats. Brass stabs = hard cuts. Hold each credit long enough to read it alongside a subtitle. |+| **Graphic match cuts** | Abstraction makes shape rhymes cheap and powerful: wheel → roulette → pupil → moon → keyhole. Cut on the brass, and make the interval shrink (2 bars → 1.5 bars → 2 beats) as the chase accelerates. |+| **The diagonal grid** | The opening splits along a 30° diagonal that multiplies into a grid; at the climax every fragment flies back along the same diagonals to assemble the title; the title closes along the same cut. Opening wound → closing seam. |+| **Silhouette puppets** | Figures are flat cut paper, always in profile, animated on twos. All acting is outline and timing: run, flatten, look back, freeze. |++Adapting any topic: make the topic the **MacGuffin** and the title its destination. A product launch → the product is the stolen object, and its logo is what the fragments assemble into. A lecture → the key idea is chased through four "chapters" set as credits. A birthday → the chase ends with the name assembling.++**Emotional arc (35–45 s):** a cold open on one shape + one line of briefing (hook in 3 s) → the theft → pursuit through 3–4 locations, each shorter than the last → a gag (hero half-hidden; stop-time freeze) → acceleration montage of shape-match cuts → the catch in silhouette against a giant circle → the world shatters along the grid and assembles into the title → a quiet button: one beat of silence, one bongo, one deadpan line.++## Shots++| Beat | Camera |+|---|---|+| Cold open | Locked, centered single shape (the keyhole) on black. It is secretly an extreme close-up of the title's **I**. |+| Every credit-set location | Start **wide enough to read the entire credit line**, then push/truck in to the action. |+| Chase | Lateral tracking (Catch Me grammar): screen direction always left → right, pursued ahead, pursuer behind. |+| Montage | Hard cuts on brass stabs; circles keep the same screen position and size across the cut. |+| Hero moment | Silhouette in front of a giant cream moon. |+| Ending | Push in on the title's lock until the frame matches the cold open exactly, then hard-cut back to the full title on the final bongo. |++- **Puppets on twos** (12 fps): poses *and* positions of figures, hands, letters landing, the plane. **Camera, credit slides, grid growth on ones** (24 fps) — a stepped camera reads as judder.+- Run cycle: 8 drawings, one step per beat (cycle = 2 beats at 132 BPM), lean 0.3 rad, tie flying at ~65°. Walks: 1 step per beat, coat swinging.+- Credits slide in along grid lines and stop dead on the beat (ease-out, 0.2 s), letters land with a paper slap.+- **Stop-time**: at a brass stab the whole picture (background scroll included) freezes for 2 beats while the music is dead silent, then resumes — the big-band device made visual, and a wordless gag.+- The climax: the previous scene is sliced into strips parallel to the cut line that slide off alternately along the diagonal (N×NW), while title glyphs fly in along the same diagonal and land on consecutive 16th notes.++## Score structure++- **Music: 1960s spy big band** (not cool noir jazz, not ragtime), minor key, ~132 BPM. Original motif: a chromatic descent from the fifth, then a leap to the tonic (B–A♯–A–G | E), dotted rhythm. **Avoid** the famous E–F–F♯–F crawl and the Em(maj9) ending chord; end on Em6/9.+- **Brass stabs = edit points**: `trumpet_stac` + `trombone_stac` stacked in octaves + crash, ~0.25 s, placed 8 ms early so the sample peak hits the frame. Surf guitar low-string twang (`electric_guitar`) through a home-made spring reverb (dispersive chirp echoes, ~41 ms round trip, 2 s decay). `jazz_bass` walking. Brushes early (soft snare + egg shaker), sticks for the train (16th "rail" snare). `world_perc` bongos/shakers for the casino. Big chord for the title, then a short button, **one beat of digital silence**, one dry bongo.+- **Silence is a tool**: cold open is only a tape click; stop-time and the last beat are true zero (reverb tails included); the final line plays over nothing but tape hiss.+- **Foley follows the material**: paper (cut "shh", slides, card slaps for every letter landing, blind flips, a tear for the shatter), metal (key jingle, chain snap, key sliding into the lock, the lock click), tape (click, hiss). Environments only hinted: jet pass (panned L→R), train rumble with wheel "ka-chunk" in tempo, roulette ball ticks slowing down, rooftop wind.+- **Voice**: British mission-briefing male (Kokoro `bm_george`, speed 0.9–0.97) through a tape chain: band-pass 220–5200 Hz, soft saturation, 0.9 Hz wow, hiss that rises under the voice. 4–6 very short lines; the last line pays off the first ("Nobody knows what it opens." → "Now you know what it opens."). Music ducks ~−7 dB under the voice. Loudness −14 LUFS.++## Palette & props++- **Four inks, no gradients**: ink black `#1b1714`, paper cream `#efe4c9`, signal red `#d23a22`, mustard `#e2a52a`. Allowed "darker paper" variants only for depth/shadows: `#9a2a18` (dark red), `#b07e1c`, `#3a322b` (distant city). Each scene gets one dominant ground color: black (cold open, rooftop), red (grid, train, casino), cream (velvet, title), mustard (airport).+- **Scissor-cut edges**: every polygon is resampled every ~9–10 px and displaced along its normal by low-frequency noise (amp 1.2–2.2 px, larger for bigger shapes) plus a rare 1–2 px notch. **Cut the edge once in the piece's local space and cache it** — a moving cutout keeps the same edge, exactly like real cutout animation. (Edges computed in screen space "crawl" when pieces move.)+- **Paper layering**: separate pieces are separated by a **2.4 px cut gap in the ground color** and cast a small paper shadow (offset 2.5/3.5 px, blur 5, alpha ~0.3). Whole figures get the gap as an outline, so a black figure still reads in front of a black letter.+- **Paper texture**: one full-frame texture multiplied on top (low-frequency mottling + faint fibers) and a sparse "ink void" speckle screened on (only shows on dark ink), plus faint horizontal squeegee streaks. Film grain in the mux at ~6. No halftone (that belongs to other styles).+- **Silhouette figures** (see `demo/stills/modelsheet_v1.jpg`): 7-head-tall agent with narrow-brim hat (the band is a cut slit), broad-shouldered jacket, pointed shoes, **one red tie as his only color** (it streams back when he runs — the motion indicator). Villain 1.2× taller: wide flat brim, A-line coat with a red lining that only shows when he runs, a mustard key chained to his wrist so the MacGuffin is findable in every shot. Pieces **merge into one outline** inside the figure; only thin (1.7 px) slits at shoulder, elbow, hip/hem and knee. Hands are sharp wedges. No faces except a cream eye slit in close-ups.+- **The MacGuffin** always sits on a black backing (= ink keyline) so it reads on any ground; it is the brightest thing in frame.+- **Type**: credits in League Gothic (OFL), glyph outlines extracted with opentype.js and **re-cut** per letter (edge noise, ±0.8° rotation, ±1.5 px baseline jitter). The film title uses custom geometric cut glyphs (straight cuts + arcs, uneven weights, jaunty staggered baselines) — never a real title's lettering. Subtitles in League Spartan 600.++## Titles, subtitles & end card++- **Subtitles**: a narrow paper strip (scissor-cut ends, tilted −1°) bottom-left at (96, 958), a small red keyhole glyph as the bullet, League Spartan 600 44 px. Cream strip with ink text on dark scenes; ink strip with cream text on cream scenes. Slides in 60 px from the left in 0.18 s. Display ≥ max(1.8 s, voice + 0.6 s).+- **Credits live in the set**, never in the subtitle band. One line per location.+- **Title**: custom cut glyphs; the MacGuffin's slot is a letter (here the I of CIPHER is a black "lock plate" with a red keyhole; the key's outline fills it).+- **End card**: small title, "60s SPY TITLE SEQUENCE" in cut League Gothic, "LemoLab × Claude Opus 5.5" in red Spartan, tiny agent tipping his hat. The LemoLab sign-off (and the "A LEMOLAB PICTURE" credit) belong to this library's demo only: a user's film carries no LemoLab credit and no copy of this card; its fictional credits name the user's own roles.++## Pitfalls we hit (demo record)++- Every internal piece outlined with a gap made the figures look like wooden-mannequin diagrams. Draw each figure into an offscreen layer where pieces merge, cut only joint slits (`destination-out`), then composite with an 8-direction ground-color outline + one shadow.+- `clear()` that resets the transform silently kills the camera → keep the camera matrix across the background fill.+- The hero fully hidden behind the I reads as "nobody there": shift him so hat brim, nose, tie knot and the fluttering tie stick out past the pillar. The tie must wave (multi-segment ribbon with travelling sine + width wobble) or it reads as a tongue.+- A credit that is only ever seen partially ("R R I N") is uncomfortable to read: always open wide on the full line.+- Telegraph poles in black between word-carriages read as the letter I — push background props into a darker version of the ground color.+- A mustard key on a mustard ground vanishes — give it a black backing.+- A roulette wheel dropped into a space character covers neighbouring letters; lay out the two halves of the word around a gap of 2.2 × radius.+- A near-arm drawn on top with the wheel/pupil/moon matches: keep circle centers identical across cuts or the match doesn't register.+- Brass staccato samples need ~8 ms to peak — place them early so the hit lands on the cut.+- A peaky mix (big stabs over quiet brushes) stops at −14.4 LUFS under the −1.2 dBTP ceiling; push ~4 dB into a limiter before loudnorm.++## Build notes++```+styles/spy-titles/demo/+ paper.js four inks, scissor edges (cached), cut gaps, paper shadow, texture, silhouette layer + joint slits+ glyph.js League Gothic → opentype.js outlines → re-cut letters+ chars.js agent / courier rigs (side, front, back), poses, run/walk cycles, key + keyhole+ title.js custom title glyphs, lock-plate I, diagonal split+ scenes.js keyhole, grid, velvet, intro, airport, train, wheel, casino, pupil, rooftop, title background+ film.js timeline, acting, cameras, subtitles, sound events story.js 132-BPM grid (single source of truth)+ sheet.js / frames.js model sheet and gate-1 style frames+ music/score.py original big-band score (sampler) mix.py foley + tape voice + ducking+```++1. `node core/render/still.mjs styles/spy-titles/demo 12 20.8 --q nosub=1` — review stills (`?sheet=1&v=1`, `?frame=airport|train|title`).+2. `core/tts/tts.py lines.json voices` → `core/tts/asr_check.py` (6/6).+3. `python music/score.py` → `node core/render/events.mjs` → `python mix.py`.+4. `node core/render/video.mjs styles/spy-titles/demo --fps 24 --workers 3` (1058 frames ≈ 17 s, Canvas2D).+5. `CRF=24 sh demo/tools/mux.sh out/video24.mp4 mix.wav spy-titles.mp4 24 6` (core mux + a CRF knob: flat inks + grain at crf19 = 270 MB, at crf24 = 18.5 MB with no visible difference). Or just `sh demo/build.sh`.diff --git a/styles/spy-titles/STYLE.md b/styles/spy-titles/STYLE.mdindex 2d3c047..3cef2fc 100644--- a/styles/spy-titles/STYLE.md+++ b/styles/spy-titles/STYLE.md@@ -1,107 +1,114 @@# 60s Spy Title Sequence — Style Prompt-> A cut-paper, four-ink opening title sequence for a spy film that never existed: silhouettes chase through sets built out of the credits themselves, every brass stab is a cut, and the title is the last thing to be assembled.-> Demo: *The Velvet Cipher* (44 s) · `spy-titles.mp4` · source in `demo/`+> A cut-paper, four-ink opening title sequence for a film that never existed: silhouettes move through sets built out of the credits themselves, every brass stab is a cut, and a title is assembled from the pieces.+> References (grammar only): Saul Bass's titles for *North by Northwest*, *Anatomy of a Murder* and *Vertigo* (flat opaque inks, abstraction down to silhouettes, type as structure); the 2002 homage by Kuntzel + Deygas for *Catch Me If You Can* (a cut-paper chase through graphic sets, lateral tracking). Not a gun-barrel opening, not a tiptoeing cartoon panther, not a copy of any real title's logo, lettering, characters or shots.-You are directing a 30–60 second film in the **60s Spy Title Sequence** style. The user gives you a topic. You decide everything else — story, shots, timing, sound — and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not++- **Flat, opaque inks on paper**: four colours, no gradients.+- **Hand-cut edges** on every shape; pieces layered with cut gaps and small paper shadows.+- **Abstraction down to silhouettes**: figures in profile, all acting in outline and timing.+- **Typography is the picture's structure**: credits are architecture, props, vehicles.+- **Music cuts the picture**: brass stabs are edit points.+- A title sequence is a story in itself: one goal, a few locations, one reveal.++Not flat vector motion graphics (the edges are cut, the paper is physical), not a halftone print style (no dots), not a Swiss grid (diagonals, jaunty type, playful), not a spy parody with gadgets and gun barrels.++## 2. Materials & rendering++- **Scissor-cut edges**: every polygon resampled every ~9–10 px and displaced along its normal by low-frequency noise (amp ~1.2–2.2 px, larger for bigger shapes) plus a rare 1–2 px notch. **Cut the edge once in the piece's local space and cache it**, so a moving cutout keeps the same edge, exactly like real cutout animation (screen-space edges crawl).+- **Paper layering**: separate pieces are separated by a ~2.4 px cut gap in the ground colour and cast a small paper shadow (offset a few px, blur ~5, alpha ~0.3). Whole figures get the gap as an outline, so a black figure reads in front of a black letter.+- **Paper texture**: one full-frame texture multiplied on top (mottling + faint fibres), a sparse "ink void" speckle on dark ink, faint squeegee streaks; film grain in the mux (~6).+- **Silhouette figures**: tall stylised adults (~7 heads), identity by hat, coat cut, shoes and **one colour accent** that doubles as a motion indicator (a tie or scarf streaming back when running). Pieces **merge into one outline** inside the figure, with only thin slits at shoulder, elbow, hip and knee. Hands are sharp wedges; no faces except an eye slit in close-ups.+- **The object of the chase** sits on a black backing (an ink keyline) so it reads on any ground; it is the brightest thing in frame.+- **Type**: a condensed OFL display face (e.g. League Gothic) for credits, glyph outlines extracted (opentype.js) and **re-cut** per letter (edge noise, ±0.8° rotation, ±1.5 px baseline jitter). A title in custom geometric cut glyphs (straight cuts + arcs, uneven weights, staggered baselines), never a real title's lettering.++## 3. Colour logic++- **Four inks**: ink black, paper cream, one hot colour, one warm secondary. Darker "shadow paper" variants of those inks only for depth.+- **One dominant ground colour per scene**, changing with the location; figures and type in the other inks.+- The hot colour is reserved for one accent on the hero and for danger; the secondary marks the object of the chase.+- Background props go in a darker version of the ground, never in black, or they read as letters.+- Examples: black `#1b1714` / cream `#efe4c9` / red `#d23a22` / mustard `#e2a52a`; ink `#161a22` / bone `#ece6d6` / teal `#1f8a8a` / orange `#f07a28`; black / pale pink `#f3d6cc` / cobalt `#2a46b8` / lemon `#f0d23a`.++## 4. Type & subtitles++- **Credits live in the set**, never in the subtitle band: one line per location, fully readable at some moment. Credits are fictional roles only, never real people's names.+- **Subtitles** on a narrow paper strip (scissor-cut ends, slightly tilted) bottom-left, a small glyph from the film as bullet, a geometric OFL sans (e.g. League Spartan 600, ~44 px). Light strip on dark scenes, dark strip on light scenes; slides in from the left in ~0.18 s. Hold ≥ max(1.8 s, speech + 0.6 s).+- Hold each credit long enough to read alongside a subtitle.++## 5. Motion quality++- **Puppets on twos** (12 fps): poses and positions of figures, hands, letters landing, vehicles. **Camera, credit slides and grid growth on ones** (24 fps): a stepped camera judders.+- Run cycles of ~8 drawings, one step per beat, a strong lean, the accent flying back. Walks one step per beat, coats swinging.+- Credits slide in along grid lines and **stop dead on the beat** (short ease-out); letters land with a paper slap.+- **Stop-time**: at a stab the whole picture freezes (background scroll included) for a couple of beats in total silence, then resumes.+- Shattering: a scene sliced into strips parallel to a cut line that slide off alternately along the diagonal.++## 6. Camera grammar++A vocabulary, not a route. Graphic, flat, decisive. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Wide on a full credit line, then truck in | reading, then action | any location built from type |+| Lateral tracking, one screen direction | pursuit; momentum | a chase; a race; a delivery |+| Hard cut on a brass stab | punch; a new location | montage; a reveal; a gag |+| Graphic match cut (same shape, same position) | rhyme; acceleration | wheel → coin → pupil → moon |+| Locked single shape on a flat ground | mystery; an icon | a cold open; a clue; a logo |+| Silhouette against a giant circle | the hero moment | a catch; a triumph; a stand-off |+| Diagonal split into a grid | fragmentation; many at once | a split screen; a conspiracy; a team |+| Vertical pan down a column of type | descent; a list | a building; a roster; a countdown |+| Push into a letter until it fills frame | a letter becomes a place | a door; a tunnel; a window |++Framing: strong diagonals (~30°), big flat grounds, figures small against type. Match cuts keep circle centres and sizes identical across the cut. No dissolves.++## 7. Sound palette++- **1960s spy big band**: stacked staccato trumpets and trombones in octaves with crash (the stab), surf guitar low-string twang through a spring reverb, walking upright bass, brushes or sticks, bongos and shakers, vibraphone, flute, organ stabs, harpsichord. Minor keys, chromatic lines, dotted rhythms. Original motifs only: avoid the famous chromatic crawl of the most famous spy theme and its minor-major-ninth ending chord.+- **Stabs = edit points**: place staccato brass ~8 ms early so the sample's peak hits the frame.+- **Techniques (options)**: a cut interval that shrinks as a chase accelerates; stop-time silence; a big chord for the title followed by a short button; a solo instrument alone for a quiet scene.+- **Foley follows the material**: paper (cut "shh", slides, card slaps for letters landing, blind flips, a tear), metal (keys, chains, locks, clicks), tape (click, hiss). Environments only hinted: a jet pass panned, train wheels in tempo, roulette ticks slowing, wind, a phone ring, footsteps on stairs.+- **Silence**: true zero, reverb tails included; a single tape click or hiss may remain.+- **Mix**: music ducks ~7 dB under voice; a peaky mix needs a few dB into a limiter before loudnorm to reach −14 LUFS.+- **Voice**: a briefing through a tape chain (band-pass ~220–5200 Hz, soft saturation, slow wow, hiss rising under the voice); a few very short lines.++## 8. Native moves++A menu: use the ones your story needs.++- **Type is the set.** Each location is one line of credits and that line is its architecture (letters as pillars, words as carriages, a letter as a lock). *Fits content like:* a conference programme as a city; a menu as a restaurant; team names as a stadium.+- **Credits are rhythm.** Credits land on beats; stabs are cuts. *Fits content like:* a product's features; a festival line-up; an award's nominees.+- **Graphic match cuts.** Shape rhymes, the interval shrinking as tension rises. *Fits content like:* a coin → a planet → a clock; a gear → a wheel → a sun.+- **The diagonal grid.** A diagonal cut multiplies into a grid, and the pieces later fly back along it to assemble something. *Fits content like:* a puzzle solved; a team forming; a logo assembled.+- **Silhouette puppets.** Profile cut-outs whose acting is outline and timing. *Fits content like:* a heist; a courier on a deadline; a detective.+- **Stop-time gag.** Freeze on a stab, silence, resume. *Fits content like:* a near miss; a double take; a price reveal.+- **The object of the chase is the title.** What everyone pursues becomes the last thing assembled. *Fits content like:* a product launch; a book's name; a birthday name.++## 9. Pitfalls of the medium++- Every internal piece outlined with a gap looks like a mannequin diagram → merge pieces in an offscreen layer, cut only joint slits (`destination-out`), outline the whole figure.+- A `clear()` that resets the transform silently kills the camera.+- A figure fully hidden behind a letter reads as "nobody there" → let hat, nose and accent stick out. A stiff streamer reads as a tongue → multi-segment ribbon with a travelling sine.+- A credit only ever seen partially is uncomfortable → always open wide on the full line.+- Black background props read as letters → darker ground colour.+- An object in the same ink as its ground vanishes → black backing.+- Circular props dropped into a word cover neighbouring letters → lay the word out around a gap.+- Match cuts fail if circle centres move across the cut.+- Flat inks + grain make huge files at low CRF → a higher CRF looks the same.++## 10. Engine++In `demo/`: `paper.js` (four inks, cached scissor edges, cut gaps, paper shadow, texture, silhouette layer with joint slits), `glyph.js` (League Gothic → opentype.js outlines → re-cut letters), `chars.js` (silhouette rigs, poses, run/walk cycles), `title.js` (custom cut title glyphs, diagonal split), `story.js` (tempo grid, single source of timing), `film.js` (timeline, acting, cameras, subtitles, sound events). `?sheet=1` renders a model sheet, `?frame=<scene>` a style frame. File list and build steps: [DEMO.md](DEMO.md) "Build notes".++## 11. Variation space++You decide what is pursued, by whom, the locations (as credits), the inks, the opening and the ending. All far from our demo:++- Structures: **no chase: a countdown** (ten credits, ten locations, a bomb-clock number built from type in each); **a heist in reverse** (the object is returned, location by location, to where it belongs); **two agents, one frame** (split diagonally, each side a different ground colour, until they meet).+- Openings: **a full-frame title** that shatters into the sequence (the reveal moved to the start); **a telephone rings** in a single cut-out room; **the hero already falling** through a column of type.+- Endings: **the title never assembles**, one piece missing, the hero walking off with it; **a slow pull-out** showing every location was one giant credit page; **a stop-time freeze** on the final stab, held.----## 1. What this style is--The graphic grammar of late-1950s / 1960s title design (Saul Bass's *North by Northwest*, *Anatomy of a Murder*, *Vertigo*; the 2002 homage by Kuntzel + Deygas for *Catch Me If You Can*): **flat, opaque inks on paper, hand-cut edges, abstraction down to silhouettes, and typography that is part of the picture's structure**. A title sequence is a story in itself: one goal, one chase, a few locations, one reveal — and the reveal is the title.--It is **not** a gun-barrel opening, not a tiptoeing cartoon panther, not a copy of any real title's logo, lettering, characters or shots. The credits contain only fictional roles ("A LEMOLAB PICTURE", "STARRING THE AGENT", "MUSIC BY THE SAMPLER") — never real names.--## 2. Story: what fits this style--Pick stories that are **a pursuit of something that turns out to be the film itself**. The medium has five native powers — use at least three, and put the strongest at the emotional peak:--| Native power | Story use |-|---|---|-| **Type is the set** | Each location is exactly one line of credits, and that line *is* the architecture: letters as colonnade pillars (the hero hides behind the **I**), words as train carriages (he leaps the gaps between words), the **O** of a name as a roulette wheel, an em-dash as a roof ledge, a letter as a lock. At some moment every line must be fully readable. |-| **Credits are rhythm** | Credits land on beats. Brass stabs = hard cuts. Hold each credit long enough to read it alongside a subtitle. |-| **Graphic match cuts** | Abstraction makes shape rhymes cheap and powerful: wheel → roulette → pupil → moon → keyhole. Cut on the brass, and make the interval shrink (2 bars → 1.5 bars → 2 beats) as the chase accelerates. |-| **The diagonal grid** | The opening splits along a 30° diagonal that multiplies into a grid; at the climax every fragment flies back along the same diagonals to assemble the title; the title closes along the same cut. Opening wound → closing seam. |-| **Silhouette puppets** | Figures are flat cut paper, always in profile, animated on twos. All acting is outline and timing: run, flatten, look back, freeze. |--Adapting any topic: make the topic the **MacGuffin** and the title its destination. A product launch → the product is the stolen object, and its logo is what the fragments assemble into. A lecture → the key idea is chased through four "chapters" set as credits. A birthday → the chase ends with the name assembling.--**Emotional arc (35–45 s):** a cold open on one shape + one line of briefing (hook in 3 s) → the theft → pursuit through 3–4 locations, each shorter than the last → a gag (hero half-hidden; stop-time freeze) → acceleration montage of shape-match cuts → the catch in silhouette against a giant circle → the world shatters along the grid and assembles into the title → a quiet button: one beat of silence, one bongo, one deadpan line.--## 3. Visual language--- **Four inks, no gradients**: ink black `#1b1714`, paper cream `#efe4c9`, signal red `#d23a22`, mustard `#e2a52a`. Allowed "darker paper" variants only for depth/shadows: `#9a2a18` (dark red), `#b07e1c`, `#3a322b` (distant city). Each scene gets one dominant ground color: black (cold open, rooftop), red (grid, train, casino), cream (velvet, title), mustard (airport).-- **Scissor-cut edges**: every polygon is resampled every ~9–10 px and displaced along its normal by low-frequency noise (amp 1.2–2.2 px, larger for bigger shapes) plus a rare 1–2 px notch. **Cut the edge once in the piece's local space and cache it** — a moving cutout keeps the same edge, exactly like real cutout animation. (Edges computed in screen space "crawl" when pieces move.)-- **Paper layering**: separate pieces are separated by a **2.4 px cut gap in the ground color** and cast a small paper shadow (offset 2.5/3.5 px, blur 5, alpha ~0.3). Whole figures get the gap as an outline, so a black figure still reads in front of a black letter.-- **Paper texture**: one full-frame texture multiplied on top (low-frequency mottling + faint fibers) and a sparse "ink void" speckle screened on (only shows on dark ink), plus faint horizontal squeegee streaks. Film grain in the mux at ~6. No halftone (that belongs to other styles).-- **Silhouette figures** (see `demo/stills/modelsheet_v1.jpg`): 7-head-tall agent with narrow-brim hat (the band is a cut slit), broad-shouldered jacket, pointed shoes, **one red tie as his only color** (it streams back when he runs — the motion indicator). Villain 1.2× taller: wide flat brim, A-line coat with a red lining that only shows when he runs, a mustard key chained to his wrist so the MacGuffin is findable in every shot. Pieces **merge into one outline** inside the figure; only thin (1.7 px) slits at shoulder, elbow, hip/hem and knee. Hands are sharp wedges. No faces except a cream eye slit in close-ups.-- **The MacGuffin** always sits on a black backing (= ink keyline) so it reads on any ground; it is the brightest thing in frame.-- **Type**: credits in League Gothic (OFL), glyph outlines extracted with opentype.js and **re-cut** per letter (edge noise, ±0.8° rotation, ±1.5 px baseline jitter). The film title uses custom geometric cut glyphs (straight cuts + arcs, uneven weights, jaunty staggered baselines) — never a real title's lettering. Subtitles in League Spartan 600.--## 4. Motion language--- **Puppets on twos** (12 fps): poses *and* positions of figures, hands, letters landing, the plane. **Camera, credit slides, grid growth on ones** (24 fps) — a stepped camera reads as judder.-- Run cycle: 8 drawings, one step per beat (cycle = 2 beats at 132 BPM), lean 0.3 rad, tie flying at ~65°. Walks: 1 step per beat, coat swinging.-- Credits slide in along grid lines and stop dead on the beat (ease-out, 0.2 s), letters land with a paper slap.-- **Stop-time**: at a brass stab the whole picture (background scroll included) freezes for 2 beats while the music is dead silent, then resumes — the big-band device made visual, and a wordless gag.-- The climax: the previous scene is sliced into strips parallel to the cut line that slide off alternately along the diagonal (N×NW), while title glyphs fly in along the same diagonal and land on consecutive 16th notes.--## 5. Camera language--| Beat | Camera |-|---|---|-| Cold open | Locked, centered single shape (the keyhole) on black. It is secretly an extreme close-up of the title's **I**. |-| Every credit-set location | Start **wide enough to read the entire credit line**, then push/truck in to the action. |-| Chase | Lateral tracking (Catch Me grammar): screen direction always left → right, pursued ahead, pursuer behind. |-| Montage | Hard cuts on brass stabs; circles keep the same screen position and size across the cut. |-| Hero moment | Silhouette in front of a giant cream moon. |-| Ending | Push in on the title's lock until the frame matches the cold open exactly, then hard-cut back to the full title on the final bongo. |--## 6. Sound--- **Music: 1960s spy big band** (not cool noir jazz, not ragtime), minor key, ~132 BPM. Original motif: a chromatic descent from the fifth, then a leap to the tonic (B–A♯–A–G | E), dotted rhythm. **Avoid** the famous E–F–F♯–F crawl and the Em(maj9) ending chord; end on Em6/9.-- **Brass stabs = edit points**: `trumpet_stac` + `trombone_stac` stacked in octaves + crash, ~0.25 s, placed 8 ms early so the sample peak hits the frame. Surf guitar low-string twang (`electric_guitar`) through a home-made spring reverb (dispersive chirp echoes, ~41 ms round trip, 2 s decay). `jazz_bass` walking. Brushes early (soft snare + egg shaker), sticks for the train (16th "rail" snare). `world_perc` bongos/shakers for the casino. Big chord for the title, then a short button, **one beat of digital silence**, one dry bongo.-- **Silence is a tool**: cold open is only a tape click; stop-time and the last beat are true zero (reverb tails included); the final line plays over nothing but tape hiss.-- **Foley follows the material**: paper (cut "shh", slides, card slaps for every letter landing, blind flips, a tear for the shatter), metal (key jingle, chain snap, key sliding into the lock, the lock click), tape (click, hiss). Environments only hinted: jet pass (panned L→R), train rumble with wheel "ka-chunk" in tempo, roulette ball ticks slowing down, rooftop wind.-- **Voice**: British mission-briefing male (Kokoro `bm_george`, speed 0.9–0.97) through a tape chain: band-pass 220–5200 Hz, soft saturation, 0.9 Hz wow, hiss that rises under the voice. 4–6 very short lines; the last line pays off the first ("Nobody knows what it opens." → "Now you know what it opens."). Music ducks ~−7 dB under the voice. Loudness −14 LUFS.--## 7. Subtitles & titles--- **Subtitles**: a narrow paper strip (scissor-cut ends, tilted −1°) bottom-left at (96, 958), a small red keyhole glyph as the bullet, League Spartan 600 44 px. Cream strip with ink text on dark scenes; ink strip with cream text on cream scenes. Slides in 60 px from the left in 0.18 s. Display ≥ max(1.8 s, voice + 0.6 s).-- **Credits live in the set**, never in the subtitle band. One line per location.-- **Title**: custom cut glyphs; the MacGuffin's slot is a letter (here the I of CIPHER is a black "lock plate" with a red keyhole; the key's outline fills it).-- **End card**: small title, "60s SPY TITLE SEQUENCE" in cut League Gothic, "LemoLab × Claude Opus 5.5" in red Spartan, tiny agent tipping his hat.--## 8. Pitfalls we hit--- Every internal piece outlined with a gap made the figures look like wooden-mannequin diagrams. Draw each figure into an offscreen layer where pieces merge, cut only joint slits (`destination-out`), then composite with an 8-direction ground-color outline + one shadow.-- `clear()` that resets the transform silently kills the camera → keep the camera matrix across the background fill.-- The hero fully hidden behind the I reads as "nobody there": shift him so hat brim, nose, tie knot and the fluttering tie stick out past the pillar. The tie must wave (multi-segment ribbon with travelling sine + width wobble) or it reads as a tongue.-- A credit that is only ever seen partially ("R R I N") is uncomfortable to read: always open wide on the full line.-- Telegraph poles in black between word-carriages read as the letter I — push background props into a darker version of the ground color.-- A mustard key on a mustard ground vanishes — give it a black backing.-- A roulette wheel dropped into a space character covers neighbouring letters; lay out the two halves of the word around a gap of 2.2 × radius.-- A near-arm drawn on top with the wheel/pupil/moon matches: keep circle centers identical across cuts or the match doesn't register.-- Brass staccato samples need ~8 ms to peak — place them early so the hit lands on the cut.-- A peaky mix (big stabs over quiet brushes) stops at −14.4 LUFS under the −1.2 dBTP ceiling; push ~4 dB into a limiter before loudnorm.--## 9. Production recipe (this repo)--```-styles/spy-titles/demo/- paper.js four inks, scissor edges (cached), cut gaps, paper shadow, texture, silhouette layer + joint slits- glyph.js League Gothic → opentype.js outlines → re-cut letters- chars.js agent / courier rigs (side, front, back), poses, run/walk cycles, key + keyhole- title.js custom title glyphs, lock-plate I, diagonal split- scenes.js keyhole, grid, velvet, intro, airport, train, wheel, casino, pupil, rooftop, title background- film.js timeline, acting, cameras, subtitles, sound events story.js 132-BPM grid (single source of truth)- sheet.js / frames.js model sheet and gate-1 style frames- music/score.py original big-band score (sampler) mix.py foley + tape voice + ducking-```--1. `node core/render/still.mjs styles/spy-titles/demo 12 20.8 --q nosub=1` — review stills (`?sheet=1&v=1`, `?frame=airport|train|title`).-2. `core/tts/tts.py lines.json voices` → `core/tts/asr_check.py` (6/6).-3. `python music/score.py` → `node core/render/events.mjs` → `python mix.py`.-4. `node core/render/video.mjs styles/spy-titles/demo --fps 24 --workers 3` (1058 frames ≈ 17 s, Canvas2D).-5. `CRF=24 sh demo/tools/mux.sh out/video24.mp4 mix.wav spy-titles.mp4 24 6` (core mux + a CRF knob: flat inks + grain at crf19 = 270 MB, at crf24 = 18.5 MB with no visible difference). Or just `sh demo/build.sh`.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/spy-titles/TREATMENT.md b/styles/spy-titles/TREATMENT.mddeleted file mode 100644index 62acca1..0000000--- a/styles/spy-titles/TREATMENT.md+++ /dev/null@@ -1,166 +0,0 @@-# 60s Spy Title Sequence · 导演方案(Treatment)--**片名** *The Velvet Cipher*(虚构的 1964 年间谍片片头)-**时长** 约 43.6 秒(24 小节 × 1.818 秒,132 BPM)| **画幅** 1920×1080 | **帧率** 24fps 输出;剪纸人物、剪纸毛边"沸腾"按 12fps(on twos)步进,像纸偶一格一格挪;镜头横移、网格飞线、字幕滑入按 24fps 平滑(镜头步进会被看成卡顿——brick-toy / risograph 的教训)-**一句话** 一个剪纸特工追一把被偷走的黄铜钥匙,穿过机场、夜班列车、赌场、屋顶——每个地方都是一行演职员字幕搭成的布景;追到屋顶,他接住钥匙的一瞬间,一路追过的几何碎片全部沿斜线飞回来拼成片名,片名里的"I"正好是个钥匙孔,钥匙插进去,片名合拢。-**钥匙开的是什么?** 开的是这部电影。"Nobody knows what it opens." → "Now you know what it opens."-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么(语法) | 刻意不学 |-|---|---|---|-| **Saul Bass《North by Northwest》(1959)** | 斜线网格占满画面、字幕沿网格线飞入、网格本身就是转场;强烈的单色底 + 细线 | 不用它的绿底蓝线、不做玻璃幕墙大楼化出、不用它的字体 |-| **Saul Bass《Anatomy of a Murder》(1959)** | 剪纸断肢:人物是分开的纸片,关节处留缝;剪刀剪出来的毛边;3–4 个平涂色;字幕是画面结构的一部分,大块字母和人形同权 | 不用它的"尸体轮廓"、不抄它的手写字形与具体构图 |-| **Saul Bass《Vertigo》(1958)** | 圆形母题的图形匹配(螺旋 ↔ 眼睛)——本片转成"轮盘 → 瞳孔 → 月亮 → 钥匙孔"一路圆形硬切 | 不做螺旋、不做眼睛大特写渐入螺旋那套具体画面 |-| **Kuntzel + Deygas《Catch Me If You Can》(2002)** | 平面布景里的侧面追逐、布景一格一格"推"过去的节奏;**字幕即道具**(门牌、行李标签、跑道都是字);角色靠剪影和姿势表演 | 不用它橡皮章/印章的颗粒质感(我们是剪纸 + 丝网平涂)、不用它的人物造型(长脖子高帽的追者和被追者)、不复刻机场/泳池等具体场景 |-| **60 年代间谍大乐队配乐(语法)** | 小调半音下行动机、铜管强奏当剪辑点、stop-time 断奏、冲浪吉他低音弦 twang、结尾"大和弦 + 小尾巴(button)" | 不用任何现成主题的音程与节奏(尤其是那个著名的 E–F–F#–F 半音爬行和 Em(maj9) 结尾和弦);不做 007 枪管、粉红豹那种踮脚贝斯 |-------## 二、为什么这个媒介讲这个故事(原生能力 → 故事用法)--| 片头字幕这个媒介的原生能力 | 故事里怎么用 |-|---|---|-| **字体即布景**:字母是纸剪出来的大块平面,可以是建筑 | 机场:演职员字幕 STARRING THE AGENT 的巨型字母就是航站楼的柱廊,**I 是特工躲在后面的柱子**;列车:MUSIC BY THE SAMPLER 每个单词是一节车厢,**特工在"车厢"之间跳**;赌场:and THE COURIER 里的 **O 是轮盘赌**;结尾:片名 CIPHER 的 **I 是钥匙孔** |-| **字幕本身就是节奏**:片头字幕天生按拍子出现 | 每个铜管强奏 = 一次硬切 / 一个字幕落地;每行字幕停留时间按阅读量定 |-| **图形匹配剪辑**:抽象到只剩几何形,圆就是圆 | 列车车轮 → 轮盘(车轮转成轮盘)→ 瞳孔 → 月亮 → 钥匙孔,一路圆形硬切,剪得一次比一次快 |-| **斜线网格**:开场网格是片头的"骨架" | 开场钥匙孔一刀劈成两半,切口繁殖成斜线网格;**高潮所有碎片沿同一套斜线网格飞回来**,拼成片名;片名最后沿同一条斜切线合拢——开场劈开的东西,结尾合上 |-| **剪纸人物 = 纸偶** | 永远侧面、一格一格挪(on twos)、断肢关节留缝;表演只靠姿势:奔跑、贴墙、回头 |--**情绪弧**:悬念(黑底红钥匙孔、磁带简报)→ 失窃(手一把抓走钥匙)→ 追踪(机场,躲在字母后面,紧张又滑稽)→ 升级(列车,跳车厢,stop-time 定格笑点)→ 加速(赌场—瞳孔—月亮三记连切)→ 高点(屋顶接住钥匙 + 全部碎片飞回拼成片名)→ 回响(钥匙 = 片名的 I,插进去合拢;一拍静音,一声邦戈;"Now you know what it opens.")。-一个角色(特工)、一个目标(夺回钥匙)、一次转折(钥匙开的不是任何一扇门,是这部片子本身——他一路追的碎片就是片名)。-------## 三、原生招式(放在情绪最高点)--1. **字体即布景**(贯穿全片,每个地点一次):字幕字母 = 柱子 / 车厢 / 轮盘 / 钥匙孔。每个地点只有一行演职员字幕,而它就是这个地点的布景。-2. **图形匹配硬切**(加速段 21.8–25.5s):车轮 → 轮盘 → 瞳孔 → 月亮,每记铜管强奏一切,间隔从 2 小节缩到 1.5 小节再到 2 拍。-3. **高潮:碎片拼片名**(30.9–37.3s):屋顶上他接住钥匙定格在月亮前 → 整个世界碎成剪纸碎片(屋顶、月亮、轮盘、字母、网格线),沿开场那套斜线网格飞回 → 最后一记铜管 + 镲拼成 THE VELVET CIPHER,I 是一块黑色锁板上的红钥匙孔、片名沿斜线错开一道缝 → 镜头推近到和开场一模一样的"黑底红钥匙孔"构图,一只手把钥匙竖着放进去(钥匙的轮廓正好填满它)→ "咔",斜切缝合拢,button 和弦 → **1 拍静音,只剩一声邦戈**,硬切回完整片名。-------## 四、角色(关卡 1 交设定表)--所有角色是**剪纸剪影**:墨黑纸片,剪刀毛边,四肢是分开的纸片、关节处留 3–4px 缝(Anatomy 的断肢语法),只在转面图里画正面和背面,**片中永远侧面**。--- **THE AGENT(特工)**:约 7 头身、窄长、锐角。窄檐软呢帽(帽带是一道纸白的细缝),宽肩收腰的西装外套(下摆后开衩,奔跑时开衩飘起),**一条信号红窄领带**——他身上唯一的颜色,奔跑时向后飘(运动方向指示器),尖头皮鞋。脸是纯剪影侧脸,鼻尖锐利,近景时剪出一道纸白的眼缝。-- **THE COURIER(信使 / 反派)**:比特工高 1.2 倍,一件长到小腿的 A 字风衣(大三角剪影),竖起的尖领,一顶**宽平檐帽**把脸藏在阴影里,只露一道纸白眼缝(瞳孔特写就是这只眼)。风衣内衬是信号红,跑起来翻开才看见。**钥匙用一根链子拴在他手腕上**,走路时晃——观众在每个场景都能一眼找到钥匙。-- **钥匙**:芥末黄黄铜钥匙:圆头(中间镂一个小钥匙孔——微缩的首尾呼应)、钥匙杆微收、两颗齿。**钥匙的外轮廓 = 片名里 I 的钥匙孔轮廓**。-- **色板(4 色)**:墨黑 INK `#1b1714` · 纸白 PAPER `#efe4c9` · 信号红 SIGNAL `#d23a22` · 芥末黄 MUSTARD `#e2a52a`(外加一个只用于阴影/凹痕的暗红 `#8e2417` 和暗芥末 `#a8761a`,都是同色纸的暗面,不算新颜色)。-------## 五、分镜节拍表(132 BPM;1 拍 = 0.4545s,1 小节 = 1.818s)--| # | 时间 | 小节 | 镜头 | 画面 / 表演 | 机位意图 |-|---|---|---|---|---|---|-| 1 | 0.00–1.82 | 1 | **冷开场:黑底红钥匙孔** | 0.05 磁带"咔哒"开机,黑底中央一个红色钥匙孔剪纸"唰"地剪开(0.1–0.5);旁白 1 0.35 起。1.36/1.59 两声邦戈弱起 | 开场 3 秒抓人:最简单的形状 + 一句悬念 + 马上要来的铜管。**这个画面其实是片名 CIPHER 的 I(一块黑色锁板上的红钥匙孔)的大特写**——观众要到结尾才知道,结尾会回到一模一样的构图 |-| 2 | 1.82–3.64 | 2 | **劈开 → 斜线网格** | **1.82 铜管强奏 1**:钥匙孔沿 30° 斜线被一刀劈开,两半砸向画外,红色铺满画面;切口繁殖成黑色斜线网格(八分音符一根)。A LEMOLAB PICTURE 三个词在第 2、3、4 拍沿网格线滑入 | North by Northwest 语法:网格是片头的骨架,也是结尾片名合拢的那条斜线 |-| 3 | 3.64–5.45 | 3 | **钥匙在丝绒垫上** | 网格线像百叶窗一样翻开,露出纸白底上一块红丝绒垫(扣钉簇绒),黄铜钥匙躺在上面,一束纸剪的光。旁白 2 3.75 起 | 目标物第一次亮相:画面正中、最亮、唯一的芥末黄 |-| 4 | 5.45–7.27 | 4 | **失窃** | **5.45 铜管强奏 2**:一只黑手套从右上沿斜线戳进来,第 1 拍抓走钥匙,第 2 拍收走;丝绒垫上留下一个钥匙形的凹痕(暗红)。第 3–4 拍信使的风衣剪影从前景横扫过画面 = 划像 | 手从网格斜线方向进来,和开场的劈刀同一角度;空凹痕是"丢失"的最简单画法 |-| 5 | 7.27–9.09 | 5 | **特工登场** | 纸白底,特工侧面跑进来急停在画面中央,第 3 拍(8.18)**回头**(转身 3 张:侧→正→侧)——冲浪吉他低音弦"噔—噔噔",第 4 拍拔腿冲出画右 | 主角出场先亮相一个姿势,给观众记住他的剪影和红领带 |-| 6 | 9.09–16.36 | 6–9 | **机场:STARRING THE AGENT** | 芥末黄底,演职员字幕的巨型黑色字母立在地平线上当航站楼柱廊,镜头随人向右横移,字幕随横移被读出来。信使在前(手腕钥匙晃),特工在后。**10.91(第 7 小节)铜管强奏 3**:信使突然停步回头,特工"啪"地贴到 **I** 的背后(贴墙姿势),可 I 比他窄一点点:帽檐尖、鼻尖和那条**红领带像舌头一样从柱子边上伸出来**,信使盯着看了一拍又转回去;旁白 3 11.3 起。第 8 小节信使继续走,特工从 I 后面滑出来跟上;第 9 小节红色剪纸飞机沿网格斜线起飞,跑道长破折号在地上一节一节闪过 | 横移 = 追逐的天然机位(Catch Me 的平面追逐);让字幕的阅读速度决定横移速度;I 柱子是全片第一个"字就是布景"的笑点 |-| 7 | 16.36–21.82 | 10–12 | **列车:字幕行就是车厢**(全片招牌镜头) | **16.36 铜管强奏 4**:飞机的白色航迹线硬切成水平的铁轨。红色夜空,MUSIC BY THE SAMPLER 每个词是一节黑色车厢(平板底盘 + 车轮 + 车钩),火车头是一个带芥末黄车灯的黑色楔形;背景电线杆和山丘剪影向左飞掠。镜头锁在列车上,字幕稳稳可读。特工在车顶从 MUSIC 往前跑,在词与词的缝隙之间**踩拍跳车厢**(第 10 小节第 4 拍、第 11 小节第 2 拍);旁白 4 17.0 起。**20.00(第 12 小节)铜管强奏 5 + stop-time**:信使回头——特工正悬在 THE 与 SAMPLER 的缝隙上空,**整个画面定格 2 拍、音乐全停**;20.91 信使转回去,音乐回来,特工落地 | 全片最记得住的镜头:字幕读得清清楚楚,同时它是车厢;定格是 60 年代大乐队 stop-time 的画面版,也是一个无台词的笑点(刚说完"他从不回头"他就回头) |-| 8 | 21.82–24.55 | 13–14前半 | **赌场:O 是轮盘** | 21.36 车轮特写转起来 → **21.82 铜管强奏 6** 硬切成俯拍轮盘(车轮 = 轮盘,同位置同大小)。纸白赌桌上印着 and THE COURIER,**COURIER 的 O 就是轮盘**,红黑格飞转,芥末黄小球咔啦啦跳。信使的黑手套把钥匙押在"红"上;特工的手从画左边缘伸进来 | 俯拍把赌桌压成平面图,字母和轮盘同一平面,字即道具 |-| 9 | 24.55–25.45 | 14后半 | **瞳孔** | **24.55 铜管强奏 7**:轮盘硬切成信使的眼睛大特写(同心圆:红虹膜、黑瞳孔),瞳孔一缩——他发现了 | 圆 → 圆,剪得更快(2 拍) |-| 10 | 25.45–29.09 | 15–16 | **屋顶:长破折号是屋檐** | **25.45 铜管强奏 8**:瞳孔硬切成巨大的纸白月亮。黑夜空、红色屋顶群、亮着黄窗的剪纸城市;一道长长的纸白破折号就是屋檐,信使在上面狂奔、风衣翻出红内衬,特工紧追;旁白 5 25.7 起。第 16 小节信使跑到破折号尽头急停、回身——无路可走 | 月亮是全片最大的"舞台灯":两个剪影都在它前面,姿势读得最清楚 |-| 11 | 29.09–30.91 | 17 | **接住钥匙**(高点前的蓄力) | 信使把钥匙往天上一抛(链子断了),钥匙沿弧线飞过月亮;特工起跳(奔跑 → 腾空),第 3 拍在月亮正中接住钥匙——剪影定格亮相,铜管半音爬升 | 英雄时刻用最经典的构图:剪影 + 满月 |-| 12 | 30.91–32.73 | 18 | **世界碎成碎片** | 整个画面沿网格斜线裂成剪纸碎片(月亮、屋顶、轮盘格、字母、网格线),碎片沿斜线飞向画面中心;鼓 fill 十六分音符推上去;特工和钥匙留在画面里 | **原生招式高潮**:一路追过的几何碎片 = 片名的零件 |-| 13 | 32.73–34.55 | 19 | **片名拼成** | **32.73 最后一记全乐队强奏 + 镲**:碎片落定 = THE VELVET CIPHER(自制剪纸字形,纸白底、墨黑字、淡红斜线网格),CIPHER 的 I 是一块黑色锁板、中间一个红色钥匙孔;整个片名沿开场那条 30° 斜线错开一道缝(上下两半没对齐)。特工站在 CIPHER 右边,把钥匙举过头顶 | 片名是全片最大的字、停得最久;错开的缝等待被合上 |-| 14 | 34.55–36.36 | 20 | **推近钥匙孔 = 回到开场构图** | 音乐只剩行走贝斯 + 踩镲。镜头一路平滑推近 I,推到和开场一模一样的构图(黑底红钥匙孔,斜切缝从中间穿过);特工的手(纸白袖口)从画外伸进来,把钥匙竖着放进钥匙孔——钥匙的轮廓正好填满它(圆头 = 圆、杆和齿 = 下宽的竖),金属滑入声 | 开场被一只黑手套偷走的钥匙,结尾由另一只手放回同一个画面:首尾呼应落在同一构图上 |-| 15 | 36.36–40.00 | 21–22 | **合拢 + 静音 + 邦戈** | **36.36 "咔"**:斜切缝在特写里合上(上下两半滑到对齐),button 和弦短促收住;**36.82 起 1 拍静音**(画面静止);**37.27 一声邦戈 = 硬切回全景**:完整合拢的片名,I 变成芥末黄的钥匙;旁白 6 37.6 起。特工抬手碰一下帽檐 | 开场劈开的那条斜线在这里合上;静音 + 一声邦戈 + 冷笑点台词是全片最后的包袱 |-| 16 | 40.00–43.64 | 23–24 | **片尾卡** | 纸白底,片名缩到上方,下面 "60s Spy Title Sequence"、"LemoLab × Claude Opus 5.5";网格线最后一次划过收成一条线;贝斯一个低 E 延音 + 弹簧混响尾巴 | 收 |--**旁白(Kokoro `bm_george`,英式任务简报,speed ≈ 0.92,过磁带 EQ:带通 + 轻微抖晃 + 磁带嘶声)**--| # | 约时间 | 文本 | 为什么 |-|---|---|---|---|-| 1 | 0.35 | Your target carries a key. | 开场 3 秒内给出目标 |-| 2 | 3.75 | Nobody knows what it opens. | 悬念;结尾回扣 |-| 3 | 11.3 | He travels light. | 机场:信使手腕上只有一把钥匙晃 |-| 4 | 17.0 | He never looks back. | 列车:说完 3 秒他就回头了(stop-time 笑点) |-| 5 | 25.7 | Tonight, he runs out of roof. | 屋顶:预告长破折号的尽头 |-| 6 | 37.6 | Now you know what it opens. | 静音 + 邦戈之后的冷笑点:它开的是这部片子 |--赌场、瞳孔、碎片高潮不配旁白,让音乐和剪辑说话。每句字幕停留 ≥ 语音 + 0.6s 且 ≥ 1.8s;片名/演职员字幕与旁白字幕在画面上分区(演职员字幕在布景里,旁白字幕在底部纸条上)。--**演职员字幕(全部虚构职务,不写真人名)**:A LEMOLAB PICTURE · STARRING THE AGENT · MUSIC BY THE SAMPLER · and THE COURIER · THE VELVET CIPHER。-------## 六、Cue map(音乐先行;132 BPM,E 小调,60 年代间谍大乐队)--**原创动机**:"B–A♯–A–G | E"——从五度开始半音下行三步、再跳到主音(附点节奏:长—短—短—长—落),在小号上是"喊",在长号上是"嘟囔",在冲浪吉他低音弦上是"噔噔噔—噔"。结尾和弦用 **Em6/9**(E G B C♯ F♯),避开那个著名的 Em(maj9)。--**铜管强奏 = 剪辑点**,全片 9 记强奏 + 1 个 button,每一记都对准一次硬切或一个字幕落地。--| 小节 | 时间 | 画面 | 配器 | 速度/情绪 | 卡点 |-|---|---|---|---|---|---|-| 1 | 0–1.82 | 黑底钥匙孔 | 无音乐:磁带开机咔哒 + 嘶声;邦戈两声弱起 | 屏息 | 0.05 咔哒;1.36、1.59 邦戈 |-| 2 | 1.82 | 劈开 → 网格 | **强奏 1**(小号 + 长号 Em 七和弦 + 镲)→ 行走贝斯、刷子鼓进 | 炸开 | 1.82 强奏;2.27/2.73/3.18 三个词落地 = 刷子重音 |-| 3 | 3.64 | 丝绒钥匙 | 行走贝斯 + 刷子 + 沙锤;冲浪吉他低音弦轻轻弹出动机 | 鬼祟 | 旁白 2 下面音乐让位 |-| 4 | 5.45 | 失窃 | **强奏 2**(短促"嚓")+ 吉他 twang 滑音 | 惊 | 5.45 抓走;6.36 风衣划像 = 呼啸 |-| 5 | 7.27 | 特工登场 | 贝斯 + 刷子;吉他动机"噔—噔噔"卡回头 | 亮相 | 8.18 回头;8.64 冲出 |-| 6–9 | 9.09–16.36 | 机场 | 刷子 → 鼓棒过门;加长号柔音垫;小号弱音器吹动机 | 追踪、滑稽 | 9.09 硬切(吉他);**10.91 强奏 3**(贴墙);14.55 起飞呼啸,16.14 鼓过门 |-| 10–12 | 16.36–21.82 | 列车 | **强奏 4** 后换鼓棒 + 军鼓铁轨节奏(十六分,模仿车轮"咔哒咔哒")+ 全铜管 riff | 加速 | 17.73、19.09 跳车厢 = 军鼓重音;**20.00 强奏 5 → stop-time 2 拍全停**;20.91 全乐队回来 |-| 13–14前 | 21.82–24.55 | 赌场 | **强奏 6**;邦戈 + 沙锤跑拉丁感,吉他 twang 震音 | 危险、华丽 | 21.82 硬切;轮盘小球 = 沙锤 |-| 14后 | 24.55 | 瞳孔 | **强奏 7**(更高一个半音) | 被发现 | 24.55 |-| 15–16 | 25.45–29.09 | 屋顶 | **强奏 8**;全乐队 shout chorus,小号高音 | 最高速度感 | 25.45 月亮;28.64 急停 = 铜管断音 |-| 17 | 29.09 | 接住钥匙 | 铜管半音爬升(B→C→C♯→D)+ 定音感的通通鼓 | 蓄力 | 30.00 接住 = 镲 |-| 18 | 30.91 | 碎片飞回 | 鼓十六分 fill + 铜管长音渐强 | 冲刺 | 每一组碎片落定一个军鼓 |-| 19 | 32.73 | 片名拼成 | **强奏 9 = 全乐队 + 镲**,Em6/9 长音 | 顶点 | 32.73 |-| 20 | 34.55 | 钥匙入孔 | 只剩行走贝斯 + 踩镲(屏息) | 悬 | 35.9 滑入 |-| 21 | 36.36 | 合拢 | **button**:短促"嘣—嗒!"(小号 + 长号 + 军鼓)→ **1 拍全静** → 37.27 一声邦戈 | 冷笑点 | 36.36 咔;36.82 静;37.27 邦戈 |-| 22 | 38.18 | 旁白 6 | 静(只有磁带嘶声) | | |-| 23–24 | 40.00–43.64 | 片尾卡 | 冲浪吉他低 E 一声 + 弹簧混响尾巴,贝斯同度 | 余韵 | 40.00 |--配器:`trumpet` / `trumpet_stac` / `trumpet_mute` + `trombone` / `trombone_stac` 强奏;`electric_guitar` 冲浪低音弦 twang(加弹簧混响 + 震音);`jazz_bass` 行走贝斯;`world_perc` 邦戈 / 沙锤;`drum_kit` 刷子 → 鼓棒。计划 fork 一个子 agent 专门写配乐(契约:BPM、逐小节配器与卡点、静音区、旁白窗口,交付 score.wav + 分轨 + score.json)。-------## 七、声音设计(拟音跟材质走:纸 + 金属 + 磁带)--- **纸**:每个剪纸形状入场 = 纸片"唰"(高通噪声短扫);字母落地 = 厚卡纸"啪"(低频 thump + 纸的中高频噼啪);劈开钥匙孔 = 剪刀"咔嚓"两刀;碎片飞回 = 一大把纸片刷刷声 + 每组落定一个"啪"。-- **金属**:钥匙链叮当(两个不和谐分音);最后钥匙滑入锁孔(金属刮擦)+ 拧锁"咔"。-- **磁带**:旁白走磁带简报链路(带通 300–4000 Hz、轻微抖晃、嘶声底噪);开场磁带开机"咔哒"。-- **地点环境**(都很轻,只点到):机场 = 喷气机呼啸(滤波噪声扫频);列车 = 车轮咔哒(军鼓承担节奏,拟音只补低频);赌场 = 轮盘小球咔啦啦 + 筹码;屋顶 = 风。-- 混音:旁白前置,音乐在旁白下闪避约 −7 dB;stop-time 和结尾一拍静音要连混响尾巴一起切干净。最终 −14 LUFS,mux grain = 6(轻,模拟胶片印刷)。-------## 八、字幕与标题设计(字幕也是片头的一部分)--- **演职员字幕**:League Gothic(OFL,窄长无衬线,60 年代片头气质)的字形轮廓用 opentype.js 取出来,**每个字母都重新"剪"一遍**:轮廓折线化 + 剪刀毛边抖动 + 每个字母独立的微小旋转/错位,像手剪的纸字贴在板上。字母就是布景,所以它们有重量:落地时"啪"一下。-- **旁白字幕**:一条纸白窄纸条(两端剪刀斜切),左侧一个红色小钥匙孔图标,文字 League Spartan 600(几何无衬线,60 年代打字感),句首大写,44px 墨黑。纸条在拍点上从左侧滑入、稍微倾斜 1°,与网格语言一致;背景亮时纸条改成墨黑底纸白字。位置固定在左下(x≈110,y≈960),不压画面主体。-- **片名**:THE VELVET CIPHER 用**自己拼的剪纸几何字形**(直线 + 圆弧拼成,笔画粗细不匀,基线错落,Bass 式的"不规整"),不参照任何真实片名 logo;CIPHER 的 I = 一块窄长的黑色"锁板"(远看就是一笔粗 I),中间剪出红色钥匙孔(圆 + 下宽的竖);钥匙放进去后孔被芥末黄填满。-- **片尾卡**:同一片名缩小 + "60s Spy Title Sequence" + "LemoLab × Claude Opus 5.5",下面一行小字 "a LemoLab picture · music by the sampler"。-------## 九、对风格说明的调整(及理由)--- **时长 35s → 约 43.6s**:每个地点都有一行演职员字幕(它就是布景)+ 一句旁白字幕,观众要在同一个画面里读两样东西;按"每屏留足阅读时间"算,机场需要 4 小节、列车 3 小节,加上结尾"拼片名 → 钥匙入孔 → 合拢 → 静音 → 旁白"这一串不能压缩,所以放宽到 24 小节,仍在 30–60s 范围内,节奏上地点仍然一个比一个快(4 → 3 → 2 小节,瞳孔只有 2 拍)。-- **开场片名卡**:片头这种体裁的片名本身就是高潮揭示,所以开场 3 秒的卡是 "A LEMOLAB PICTURE"(第一行演职员字幕),真正的片名卡放在 32.7s 的高潮;开场的红钥匙孔就是片名的 I,片名以"碎片"的形式其实一开始就在画面里。-- **钥匙 = 哪个字母**:风格说明建议 C 或 O 的缺口;我选 **CIPHER 的 I**,因为钥匙孔(圆 + 竖)和一把竖着的钥匙(圆头 + 杆)轮廓天然重合,一眼就懂"钥匙放进去 = 字母补齐",而且 I 在机场段已经当过"柱子",结尾再出现形成呼应。-- **钥匙挂在信使手腕的链子上**:让观众在每个快速切换的场景里都能立刻找到目标物。-- **赌场的 O**:放在 and THE COURIER 的 COURIER 里(信使的演职员字幕),轮盘就是反派名字里的一个字母。-------## 十、关卡 1 交付--- 角色设定表:`demo/stills/modelsheet_v1.jpg`(特工正/侧/背转面 + 7 头身尺;奔跑 4 张关键张;贴墙 + "躲在 I 后面"卡片;转身 3 张;信使 站/走/跑;钥匙 = I 的钥匙孔对照;四色色板)-- 风格帧:"字体即布景"三格——`frame_v1_airport.jpg`(STARRING 的 I 是柱子,红领带露馅)、`frame_v1_train.jpg`(MUSIC BY THE SAMPLER 是车厢,stop-time 定格那一拍)、`frame_v1_title.jpg`(片名拼成、斜线错缝、I 是锁板钥匙孔)-- 引擎:Canvas2D。剪边在纸片局部坐标里一次剪好并缓存(纸片移动时剪边跟着走、不沸腾——真实剪纸动画就是这样);纸片之间 2.4px 切缝露出底色 + 2.5/3.5px 纸影;整屏纸纹 multiply + 漏印白点 screen;字母用 opentype.js 取 League Gothic 轮廓后重新剪边。-------## 十一、制作中的实际调整--- **时间网格整体后移 1 拍**(OFF = 0.4545 s):第一句旁白 2.1 s,要让它说完再炸第一记铜管,所以小节 n 起点 = 0.4545 + (n−1)×1.818。实际全片 44.09 s;上表所有时间顺延 0.45 s(以 `demo/story.js` 为准)。-- 旁白时间:0.12 / 3.35 / 11.75 / 17.45 / 26.15 / 37.95。-- 关卡 1 意见:人物内部描线去掉只留关节缝、领带做成飘动的布、每行演职员字幕先给全景读全再推近(机场、列车)。-- 片尾卡在 40.91(第 23 小节第 2 拍),等第 6 句字幕读完。diff --git a/styles/spy-titles/style.json b/styles/spy-titles/style.jsonnew file mode 100644index 0000000..210236f--- /dev/null+++ b/styles/spy-titles/style.json@@ -0,0 +1,18 @@+{+ "slug": "spy-titles",+ "num": "17",+ "en": "60s Spy Title Sequence",+ "cn": "60s 间谍片头",+ "category_en": "Graphic & Type",+ "category_cn": "图形与排版",+ "film": "The Velvet Cipher",+ "line": "Opening titles for an imaginary 1964 spy film: a chase for a stolen key until the shapes lock into the title.",+ "line_cn": "虚构 1964 年间谍片的片头:追一把被偷的钥匙,几何碎片最后拼成片名。",+ "uses": [+ "Title sequences",+ "Event openers",+ "Trailers"+ ],+ "frame_sec": 26.46,+ "dur": 44.1+}diff --git a/styles/stained-glass/DEMO.md b/styles/stained-glass/DEMO.mdnew file mode 100644index 0000000..c36522b--- /dev/null+++ b/styles/stained-glass/DEMO.md@@ -0,0 +1,113 @@+# Stained Glass — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *The Dragon of the East Window* (56.5 s) · `stained-glass.mp4` · source in [`demo/`](demo/)+++## Story & structure++An east window in a stone hall shows a knight sent to slay "the dragon that ate the sun". Wherever the sun falls, that pane's story moves. At dusk, in the last pane, the knight strikes and the glass cracks: he sees that the dragon was guarding the sun's last ember, kept warm until morning. The pieces slide back along the leads and are re-welded into a kneeling knight with his sword laid flat. At night only that pane still glows. The title's "East" is the answer: because the dragon keeps the ember all night, the sun can rise in the east again.++The window: four lancets side by side plus a rose above, in a thick splayed wall, the title carved on the string course below. Left to right = one day:++| Pane | Time | Light | Scene |+|---|---|---|---|+| I | dawn | cool blue-white, low | the charge: knight on the battlements, sword raised; a roundel in the canopy shows "the sun-eating dragon" (the folk misunderstanding) |+| II | noon | white-gold, brightest, short patch | the journey: hills, trees, a river, a dove passes |+| III | afternoon | gold, patch lengthening | the fight, played out in the floor patch |+| IV | dusk | deep red-orange | the ember: strike → crack → wings slide open → re-leaded kneeling knight |+| Rose | all day | follows the sun | a sun wheel (gold centre, red and blue petals); its brightness is a clock, dark at night |++Structure used: one scene per lancet, each lit in turn (dawn → noon → afternoon → dusk), the rose as the sun clock, opening in darkness with a knife-thin ray, one hard crack at the emotional peak, then silence, a slow reveal, re-leading on the beat, a single bell, night. Native moves spent: light is time (throughout), glass projects onto stone (the duel, 24–30 s), cracks and mending leads (31.8–44.6 s), a window that holds its own light (47–53 s). Rhymes: the dawn ray at 0.5 s and a thin blue dawn ray on the end card at 55.2 s play the same glass note; the new lead lines remain as a scar where the story changed.++How the old guide suggested adapting topics (our demo's reading of the style, kept for reference): a sequence of stations the light visits in order; a product launch as stages of making with the product as the pane that glows at night; a biography in four panes with the one choice as the crack; history as eras across the day.++## Shots++80 BPM: one beat 0.75 s, one bar 3.0 s; times set from measured voice lengths.++| # | Time (s) | Shot | Camera | Sound |+|---|---|---|---|---|+| S1 | 0.0–4.8 | Black, faint dust. 0.5 a knife-thin dawn ray lights pane I top to bottom (`bandW` 18 → 310, skew .45 → .06, ~1 s); 2.6 the knight lifts his head | low close-up, pane ≈ 85 % of frame height | glass tink + air; recorder chant over organ pedal D; L1 at 1.0 |+| S2 | 4.8–9.6 | Pull back to the whole window; only pane I lit, a blue floor patch, dust in shafts; 5.4 a light sweep gilds the carved title | wide: the audience learns the rule in one frame | water glass + hand chime |+| S3 | 9.6–15.6 | Push into pane I; 11.1 sword raised (three stepped poses, on the beat); the canopy roundel lights | medium | harp Dm–G, recorder, chimes; L2 at 10.0 |+| S4 | 15.6–17.2 | The light slides right; pane I dims, knight frozen mid-step | truck with the band to pane II | water-glass glide, wind |+| S5 | 17.2–22.6 | Noon: knight steps piece by piece on the beat, background pieces shift back; 20.4 a dove | medium, very slow follow | harp, chimes, tubular bell on 17.2; L3 at 17.8 |+| S6 | 22.6–24.0 | Light reaches pane III, gold; dragon rears, red wings open | tilt down the shafts to the floor | full organ enters, timpani hit |+| S7 | 24.0–30.0 | **The floor duel**: stretched coloured patch with lead lines on flagstones; three clashes (charge / shield / wing sweep) on beats; the patch keeps lengthening | top-down on the flagstones; the subject is light | organ ostinato, timpani per clash; L4 at 24.4 |+| S8 | 30.0–31.8 | Back up to the window, red light on pane IV: knight raises sword, dragon curled, wings over its chest | low medium, charge | timpani roll |+| S9 | 31.8 | The blow (two stepped frames) → the pane cracks: 9 white lines in 0.28 s, flash 0.45 s, 2-frame shake | same framing, no cut | all music hard-cut, glass shatter + long reverb |+| S10 | 31.8–33.8 | Stillness; dust falls in red light; 33.0 wing pieces slide along the leads to reveal an amber ember | slow push to the ember | silence: reverb tail, lead creak, glass friction |+| S11 | 33.8–41.3 | The ember breathes; knight's face swaps from stern to astonished (one face piece) | close: face + ember in one frame | soft organ, sparse chimes; L5 33.8, L6 37.9 |+| S12 | 41.3–44.6 | **Re-leading**: groups (sword → legs → torso → arms) slide to kneeling, sword flat before the ember; a weld spark per beat | locked medium | one rising Dorian note per weld |+| S13 | 44.6–47.2 | Last weld = one bell; mending leads remain | still frame | tubular bell D, long reverb; L7 at 45.0 |+| S14 | 47.2–52.9 | Night: red → violet → moonlight; all panes grey-blue except pane IV, glowing warm from inside | slow pull back to the S2 wide | recorder reprise, harp harmonics; L8 at 49.2 |+| S15 | 52.9–56.5 | End card carved in the stone band; 55.2 a thin blue dawn ray touches pane I | push in on the string course | ends on a D–A open fifth; 55.2 the same glass tink as 0.5 |++Why this route, for this story: the knife-thin ray gave the spectacle in the first second; the pull-back taught the light rule; trucking with the light made time visible; the floor was the only place the duel could be bigger than its lancet; holding through the crack let the medium break instead of the edit; the return to the S2 wide showed the light had moved from outside the window to inside it. Each is one choice from STYLE.md §6, not the style's default opening or ending.++Staging in pane IV: close-ups at 1.3–2.3× on a 300-unit lancet; knight lower-left, dragon upper-right. The reveal was re-staged at the final zoom: both figures shrunk, the ember moved to frame centre at ≥ ~1/8 of the frame width with its glow, the knight on the left third looking at it, the dragon whole inside the pane, then a pull-back to both.++## Score structure++Original score (`demo/music/score.py`), medieval / plainchant feel, **D Dorian** (the raised 6th, B♮, gives the colour), 80 BPM for the metred cues. Instruments: `recorder`, `organ_soft` / `organ` / `organ_pedal`, `harp`, `hand_chimes`, `tubular_bells`, `timpani`, `glass` (water glass, "the light"), `glockenspiel` (dust glints, rare). All CC0 (VSCO 2 CE / VCSL / FreePats). Bus reverb `room(size=.8, mix≈.3)`; the bell alone at `size≈.95`.++| Cue | Time | Tempo | Orchestration | Sync |+|---|---|---|---|---|+| C1 Incipit | 0.5–9.6 | free | solo recorder chant over organ pedal D2 / soft D3–A3 drone | 0.5 ray (water glass D6); 5.4 title (glass + chime) |+| C2 Dawn | 9.6–15.6 | 80 | harp arpeggios Dm–G (Dorian i–IV), recorder, chimes on downbeats | 11.1 sword raise |+| T1 Light moves | 15.6–17.2 | — | rising water-glass glide | 17.2 arrival |+| C3 Noon | 17.2–22.6 | 80 | harp, chimes, tubular bells, recorder up an octave, soft organ | a step per beat |+| C4 Battle | 22.6–31.8 | 80 | full organ eighth-note ostinato (Dm–C–B♭–C), pedal, timpani | clashes 24.75 / 26.25 / 27.75; roll 30.0–31.8 |+| — Crack | 31.8–33.8 | — | **everything hard-cut, reverb tails included**; only the shatter's own reverb | 31.8 |+| C5 Ember | 33.8–44.6 | 60 (free) | warm soft-organ chords, sparse chimes, harp harmonics | from 41.3 one weld note per beat up the mode |+| C6 Bell | 44.6–47.2 | — | a single tubular bell D, very long reverb | the sword laid down |+| C7 Nocturne | 47.2–56.5 | free | recorder reprise (softer), soft organ D, harp harmonics | ends on a D–A open fifth |++Foley specific to this film: the ember's quiet crackle, far pigeons in the vault, the dove's wings, sword and shield clashes. Music ducked ~9 dB under the voice; timpani and heavy glass hits avoid word onsets.++Voice: Kokoro `bf_alice`, speed .86–.88, "like a nun telling an old story", 8 short lines (`demo/lines.json`). Whisper heard "knight" as "night": the expected transcription goes in the line's `asr` field.++## Palette & props++- Transmittance colours: cobalt `#1d3a9c` (dominant) · deep blue `#142a70` · ruby `#a8101c` · gold `#dc9a22` · emerald `#2f7f36` · olive `#6b7a22` · murrey `#632a63` · flesh `#d2a288` · white `#cfdac6` · mail `#a9b7b2` · sky `#7fa2cf` · umber `#7a4e24` · ember amber `#ff9a2a` (the story light).+- Sun colour × intensity: dawn `(.70,.83,1.0)` × 2.2, low, long patches · noon `(1,.97,.9)` × 2.7, short patches · afternoon `(1,.84,.6)` × 2.35 · dusk `(1,.6,.34)` × 2.6 · night moon `(.55,.66,1.0)` × 0.5 through every pane, plus the ember.+- Lit pane backlight 2.2–2.8, band edge `bandW` ≈ lancet width + 10, soft 24, slight diagonal skew.+- Lead `#1d1f23`, 6 units (4.2 quarries, 3–4 small details). Aged piece edges: two soft strokes, rgb 206 / 168.+- Grisaille trace `rgba(44,26,12,.88)`: brows 3.8, eyes 3.0, folds 2.3–2.6 units; matting `wash .35–.45`; scraped highlights use the piece's own colour `g.__col`.+- Borders: ruby band with gold pearls + white fillet with a running vine; quarries carry a small vine curl each.+- Room: ashlar courses 86 units; the title in Cinzel on the string course with a moving strip of light.+- The knight (`knight.js`): elongated ~7.5-head proportions, big hands, mail as staggered arcs, a sun device on the shield, swappable face pieces (stern / astonished). The dragon (`dragon.js`): a wyvern built as a spine chain cut into banded dorsal and belly pieces, scales as arcs along the spine, transverse belly plates, open and folded wings, the ember at its chest.++## End card++The carved inscription on the stone string course changes from *THE DRAGON OF THE EAST WINDOW* to *STAINED GLASS* and *LEMOLAB × CLAUDE OPUS 5.5* (Cinzel 600, incised and gilded, revealed by the sweep light); the camera pushes in so the credit line is ≥ 30 px, and a thin blue dawn ray touches pane I. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Rights++Original story, characters, window design and score. References (see STYLE.md header) were studied for grammar only; no Chartres window subject or religious imagery is reproduced. Samples are CC0; fonts are OFL (see `demo/CREDITS`).++## Build notes++```+styles/stained-glass/demo/+ glass.js pieces, textures, lead, grisaille brushes, lozenges comp.js WebGL2 compositor (glass/stone/floor/shafts/bloom)+ knight.js glass knight rig + poses + faces dragon.js wyvern rig (spine bands, head, folded/open wings, ember)+ window.js lancets, rose, borders, scenes, stone wall, carving scene.js camera, floor projection, shafts, dust -> compositor+ story.js timeline: light, camera, lancet states, crack, re-lead, events, subtitles+ subs.js banderole subtitles test.js model sheet / test pages (?test=sheet|knight|dragon) frames.js style frames (?frame=...)+ lines.json narration music/score.py original score mix.py foley + mix subs_export.py -> .srt build.sh one-shot rebuild+```++1. `node core/render/still.mjs styles/stained-glass/demo 36 --q nosub=1`: review stills. `?test=sheet` for the model sheet.+2. `core/tts/tts.py lines.json voices` → `asr_check.py`.+3. `node core/render/events.mjs` → `music/score.py` → `mix.py` → `subs_export.py`.+4. `node core/render/video.mjs styles/stained-glass/demo --fps 24 --workers 3` (1356 frames, about 3–4 min with 3 workers; Canvas2D vector glass plus the WebGL compositor).+5. `CRF=22 sh demo/tools/mux.sh out/video24.mp4 mix.wav stained-glass.mp4 24 4` (grain 4). Or simply `sh styles/stained-glass/demo/build.sh`.++Pitfalls tied to this demo's props:+- A folded wing built from the open-wing rig looked like a pile of sticks → a dedicated folded silhouette (knuckle up, pleated blade sweeping back), far wing hidden.+- The turning-point reveal was unreadable in v1: the knight filled the frame and the dragon was cut by the lancet edge → re-staged at the final zoom (see Shots).+- The carved end card at night was unreadable in the wide shot → push in and park the sweep light on the text.+- Duration grew from the planned 45 s to 56.5 s: L6 moved to 38.3 s so it wouldn't collide with L5's reading time, and the end card got its push-in so the credit stays legible.diff --git a/styles/stained-glass/STYLE.md b/styles/stained-glass/STYLE.mdindex 925ded7..b0527b0 100644--- a/styles/stained-glass/STYLE.md+++ b/styles/stained-glass/STYLE.md@@ -1,150 +1,121 @@# Stained Glass — Style Prompt-> A medieval stained-glass window that only comes alive where the sun touches it.-> Demo: *The Dragon of the East Window* (56.5 s) · `stained-glass.mp4` · source in `demo/`+> A medieval stained-glass window seen from inside a dark stone hall, alive only where the sun touches it: light is the clock, the camera and the story.+> References (grammar only): the window prologue of *Beauty and the Beast* (1991) (chapters pane by pane, a storyteller's pace); the glass knight of *Young Sherlock Holmes* (1985) (glass that cracks and recombines piece by piece); 12th–13th-century Chartres glass (colour logic, grisaille, leading). Copy none of their characters, compositions, subjects or music.-You are directing a 30–60 second film in the **Stained Glass** style. The user gives you a topic. You decide story, shots, timing and sound, and you deliver a finished film. Follow this guide.+## 1. Essence, and what it is not----+- **Cut pieces of coloured glass in dark lead cames**, faces and folds **painted in brown grisaille**.+- Glass has no light of its own: it **glows only when the sun is behind it** and throws a soft coloured copy onto the stone floor; unlit, it is dark and milky.+- Figures move **piece by piece**, rigid and stepped.+- The room is always there: stone, a splayed embrasure, iron saddle bars, a floor that catches light.+- **Secular**: no crosses, saints, halos or other religious imagery; borrow the craft, not the subjects.-## 1. What this style is+Not vector art with black outlines, not a kaleidoscope or Voronoi filter, not Tiffany Art Nouveau, not mosaic (mosaic reflects; glass transmits).-A 12th–13th-century church window seen from **inside a dark stone hall**. Every image is made of **cut pieces of coloured glass held in dark lead cames**, with faces, folds and ornament **painted on in brown grisaille**. The glass has no light of its own: it glows only when the sun is behind it, and it throws coloured light onto the stone floor.+## 2. Materials & rendering-The film is about **light moving across glass**. Characters are glass figures that move **piece by piece**, never like soft 2D animation.+One formula for everything (a WebGL compositor), so every element sits in the same light:-Keep it a fable. **No crosses, saints, halos or other religious imagery**. Borrow the craft and the colour logic of cathedral glass, not its subjects.+```+glass = tonemap( backlight(x,y,time) × transmittance × glass texture ) + weathering haze × room light+surface = albedo × (room ambient + glow spilled from lit panes + point lights) // stone, lead, iron+floor = flagstones × (ambient + projected colour-patch map, blurred + halo) // perspective or top-down++ additive light shafts with dust · bloom (bright glass eats into the lead: the "irradiation" effect)+```-## 2. Story: what fits this style+- **Hue-preserving tone mapping**: per-channel `1-exp(-x)` turns cobalt pastel; blend to per-channel only at the very top so a sun disc burns white while blue stays jewel blue.+- **Unlit panes**: weak sky light + room-lit weathering haze, figures ghostly but readable. **Lit panes**: backlight ~2–3×, a soft, slightly skewed moving band edge.+- **Pieces**: smooth Catmull-Rom cuts (no deep concave corners). **Every piece is textured** (`multiply` in its clip): streaks at a per-piece angle, hue drift (±10 %), darker aged edges by the lead, ±9 % thickness variation. The shader adds seed bubbles, scratches and thickness clouds in world space; fade small features below ~0.6× zoom or they sparkle.+- **Lead**: near-black, one planar network, thinner on small pieces, round joins, faint grey flange, solder blobs; only where colours meet (one colour = one piece).+- **Grisaille**: tapered trace lines in translucent dark brown; **matting** (stippled wash, graded shade, soft band inside the lead); **scraped highlights** (a thin stroke beside each fold in the piece's own colour: the only highlight transmitted light allows). Patterns (mail, scales, plates) are grisaille arcs and bands.+- **Faces**: almond eyes, heavy upper lid, big pupils, brow flowing into the nose. **Expression lives in brows and mouth**; change it by swapping the face piece, never morphing.+- **Backgrounds**: hand-cut **lozenge quarries** (jittered lattice, shared vertices, a painted motif each); borders of a coloured band with pearls and a white fillet with a running vine.+- **Room**: warm grey ashlar, a lighter embrasure, mullions; floor of **large irregular flagstones**, never the wall's running bond.+- **Floor projection**: blurred, ~20 % desaturated, modulated by the stone, haloed, mirrored (the window's top lands farthest into the room). **Shafts**: additive with dust, near 0 at the window, peaking ~40 % down.-The medium has four native powers. Build the story on at least three of them.+## 3. Colour logic-| Native power | Story use |-|---|---|-| **Light is time, and light is the camera** | Only the lit pane is "alive". Where the sun sits in the window is the story's clock. When the light leaves a pane, its figure freezes on that frame. The camera follows the light from pane to pane. |-| **Glass projects onto stone** | A lit pane throws a soft, stretched, coloured copy of itself onto the floor. Put a key scene *in the floor light*, and let the patch lengthen as the sun sinks. |-| **Glass cracks, lead mends** | One blow can crack a whole pane: this is your one hard turning point. The pieces slide along the leads into a new picture, and the repair leaves new lead lines, a scar where the story changed. |-| **A window can hold its own light** | At night every pane goes dark. A pane that still glows needs a light source inside the story, which makes a strong ending image. |+- Two hues **carry the picture** (one deep, one hot); three or four more only as **small touches**. Example (Chartres logic): cobalt ground, ruby, touches of gold, green, murrey.+- Greenish white glass sparingly (faces, fillets, sky). **Flesh darker than you think**, or backlit faces burn white.+- A story light (candle, lamp, screen) may take a colour no glass uses, so it reads as a source.+- **The sun's colour is the clock**: blue-white dawn, near-white brightest noon, gold afternoon, deep orange dusk (raise intensity rather than redness), weak blue moonlight. Patch length follows sun height.+- Stone and lead take colour only from spilled or projected light.-**Structure that works:** a window with several lancets, one scene per lancet, each lit in turn (dawn → noon → afternoon → dusk). A rose window above works as the sun clock. Open in darkness with a knife-thin ray. Put one hard crack at the emotional peak, then silence, a slow reveal, re-leading on the beat, a single bell, and night.+## 4. Type & subtitles-**Adapting any topic:** turn it into a sequence of stations that the light visits in order. For a product launch, show the stages of making, one per pane, with the finished product as the pane that glows at night. For a biography, show a life in four panes and the one choice as the crack. For history, show eras across the day.+- **Subtitles**: a parchment **banderole** near the bottom (curled ends, gentle sag, thin rule), IM Fell English ~44 px in dark ink. It unfurls from the centre; text fades in only once it is ≥ 75 % open; pad the ribbon well past the text. Hold ≥ max(1.8 s, speech + 0.6 s).+- **Titles**: incised Roman capitals (Cinzel 600) in the stone, dark cut, light lower lip, gilding, revealed by a moving band of light; small lines ≥ 30 px on screen. In the glass, text only as grisaille on a white-glass scroll.-## 3. Visual language+## 5. Motion quality-### Rendering model (one formula for everything, `demo/comp.js`)-```-glass = tonemap( backlight(x,y,time) × transmittance × glass texture ) + weathering haze × room light-surface = albedo × (room ambient + glow spilled from lit panes + point lights) // stone, lead, iron-floor = flagstones × (ambient + projected colour-patch map, blurred + halo) // perspective or top-down-+ additive light shafts with dust · bloom (bright glass eats into the lead, the "irradiation" effect)-```-- **Tone mapping must preserve hue.** A plain per-channel `1-exp(-x)` turns backlit cobalt into pastel sky blue. Use a hue-preserving curve and blend toward per-channel only at the very top, so a sun disc can burn white while blue stays jewel blue.-- **Unlit panes** are dark and milky. Transmittance × a weak sky light, plus a weathering haze lit by the room, keeps the figures faintly readable (they look ghostly).-- **Lit pane:** backlight 2.2–2.8, with a soft moving band edge (`bandW` ≈ lancet width + 10, soft 24, slight diagonal skew).--### Glass pieces (`demo/glass.js`)-- Each piece is a smooth Catmull-Rom cut. Real glass can't be cut into deep concave corners.-- **Every piece is textured.** Apply these by `multiply` inside the piece's clip:- - streaks (a rotated anisotropic noise pattern, different angle per piece)- - a hue drift across the sheet (warm → cool, ±10 %)- - darker aged edges by the lead (two soft strokes, rgb 206 / 168)- - ±9 % per-piece thickness variation of the base colour-- The shader adds seed bubbles (dark rim, bright centre), fine scratches and large thickness clouds in world space. Fade the small features out below 0.6× zoom or they sparkle.-- **Lead** `#1d1f23`, 6 units wide (4.2 for quarries, 3–4 for small details), round joins, a faint grey flange line, solder blobs at joints. **Lead is one planar network.** Before stroking a piece's lead, erase the surface layer under that piece, or the hidden leads of pieces behind show through.-- **Background:** hand-cut **lozenge quarries**. Use a jittered lattice with shared vertices, so there are no gaps, and paint a small vine curl on each. Plain Voronoi reads as a filter. Borders are a ruby band with gold pearls, plus a white fillet with a painted running vine.--### Palette (transmittance colours)-Cobalt `#1d3a9c` (dominant) · deep blue `#142a70` · ruby `#a8101c` · gold `#dc9a22` · emerald `#2f7f36` · olive `#6b7a22` · murrey `#632a63` · flesh `#d2a288` · white `#cfdac6` · mail `#a9b7b2` · sky `#7fa2cf` · umber `#7a4e24` · ember amber `#ff9a2a`.-Chartres logic: blue and red carry the picture, with small touches of gold, green and purple. Flesh has to be *darker* than you think, or backlit faces burn white.--### Grisaille (the painter's layer)-- **Trace lines:** tapered brush strokes (a polygon with a width profile) in `rgba(44,26,12,.88)`. Brows 3.8, eyes 3.0, folds 2.3–2.6 units.-- **Matting:** a stippled brown wash over whole garment pieces (`wash .35–.45`), a graded shade across the piece, and a soft band inside the lead.-- **Scraped highlights:** repaint a thin stroke beside each fold *in the piece's own colour* (`g.__col`). In transmitted light this is the only way to get a highlight.-- Medieval face: almond eyes with a heavy upper lid and big pupils, and a brow that flows into the nose line. **Expressions live in the brows and the mouth.** Changing expression means swapping the face piece, never morphing it.-- Mail: staggered small arcs. Dragon scales: arcs that follow the spine. Belly: transverse plates.--### Room-Warm grey ashlar (courses 86 units), a splayed window embrasure lighter than the wall, mullion shafts and iron saddle bars crossing the lancets. The floor has large irregular flagstones (a jittered cell pattern, *not* the wall's running bond). A string course under the window carries the carved title (Cinzel), and a moving strip of light sweeps across it.--### Time of day (sun colour × intensity)-Dawn `(.70,.83,1.0)` × 2.2, low, long patches · Noon `(1,.97,.9)` × 2.7, short patches, brightest · Afternoon `(1,.84,.6)` × 2.35, patches lengthening · Dusk `(1,.6,.34)` × 2.6 (keep some blue alive) · Night moon `(.55,.66,1.0)` × 0.5 through every pane, plus any story light.--## 4. Motion language-- **Glass figures step at 8 fps**: sample the pose every 1/8 s and hold it. Light, camera, shafts and dust move on ones (24 fps). Stepped light would read as flicker.-- Rigid pieces on a skeleton: 2D forward kinematics, with each part drawn with `setTransform(base · T(part))` so draw order is free. The dragon is a spine chain cut into banded dorsal and belly pieces.-- Actions land on the beat: steps on half-beats, clashes on beats, welds on beats.-- **Freeze rule:** the figures in a pane use `min(t, t_lightLeft)` so they stop exactly when the light leaves.-- **Crack:** 9 jagged crack lines run out from the impact point in 0.28 s. They are bright because light pours through them. A white point-light flash (0.45 s) and a 2-frame shake go with them.-- **Re-leading:** groups of pieces (sword → legs → torso → arms) each slide into the new pose over one beat with a small outward "slide along the lead" bump. Each group ends in a weld spark (a point light) and a note. The crack lines become thin mending leads as each weld lands.--## 5. Camera language--| Beat | Camera |-|---|---|-| Opening | Black. A 1-second knife-thin band of light slides onto the first pane (`bandW` 18 → 310, skew .45 → .06). Close-up, pane fills the frame. |-| Establishing | Pull back to the whole window with its floor patch and the carved title lit by a sweep. The audience learns the rule in one frame. |-| Light moves | Truck sideways *with* the band of light, from one pane to the next. |-| Key scene in light | Tilt down the shafts to the floor, then cut to top-down: the duel plays out in the projected patch while it stretches. |-| Crack | Same framing, no cut: let the crack be the event. |-| Reveal | Slow push toward the small light, the character's face and the reveal in one frame. |-| Ending | Pull back to the same wide as the establishing shot, now lit from inside. End card carved in the stone band. |--Keep subjects big: close-ups at 1.3–2.3× on a 300-unit lancet. In a narrow lancet, stack characters diagonally (one lower-left, one upper-right) so no head is hidden.--## 6. Sound-- **Score:** medieval and plainchant, D Dorian (the raised 6th, B♮, gives the colour), with no generic piano or strings.- - Solo recorder chant over an organ pedal drone.- - Harp arpeggios (Dm–G) and hand chimes by day; tubular bells at noon.- - Full organ and timpani for the fight, with timpani hits on the clashes and a roll into the blow.- - **A hard stop at the crack, including reverb.**- - Warm organ-soft chords for the reveal, with weld notes climbing the mode.- - **A single bell with a very long reverb** (room ≈ .95) when the sword is laid down.- - A recorder reprise at night.- - Water-glass notes are "the light": the same note plays at the first ray and at the final dawn.-- **Foley (all synthesized, material first):**- - struck glass: inharmonic modal partials 1 : 2.32 : 4.25 : 6.63 : 9.38- - crack: snap, a pane-body thump, then a rain of tinkles- - lead: slow stick-slip creak- - glass sliding along a came: gritty band noise with a faint squeal- - solder: hiss plus a tick- - air on each light move, a large stone-hall ambience, far pigeons in the vault, the ember's quiet crackle-- **Voice:** a gentle, even storyteller (Kokoro `bf_alice`, speed .86–.88), like a nun telling an old story. Use 8 short lines. Duck the music by about 9 dB under the voice.--## 7. Subtitles & titles-- **Subtitles:** a parchment **banderole** (scroll ribbon) centred 112 px above the bottom, with curled ends, a gentle sag and a thin red rule. Text is IM Fell English 44 px in ink `#3a2412`. It unfurls from the centre in 0.28 s and rolls back up at the end. Hold each line for at least speech + 0.6 s and at least 1.8 s.-- **Title and end card:** incised Roman capitals (Cinzel 600) in the stone string course, dark cut with a light lower lip and gilding. A moving band of light reveals them. Push the camera in for the end card so the credit line is at least 30 px tall on screen.--## 8. Pitfalls we hit-- Hidden leads showed through the pieces in front (the lead layer is separate). Erase the surface under each piece before stroking its lead.-- Pastel glass came from per-channel tone mapping. Use a hue-preserving curve, and darken the flesh colour.-- Voronoi backgrounds read as a Photoshop filter. Hand-cut lozenges plus painted vines read as glass.-- Flat piece fills looked like clip-art. The fix was a texture on every piece (streaks, hue drift, dark edges) plus heavy grisaille and scraped highlights.-- A floor patch that was too sharp looked like a decal. Blur it, desaturate it about 20 %, modulate it by the stone and add a halo. Keep the figures readable as coloured silhouettes.-- The top-down floor had the same running bond as the wall. Use large irregular flagstones.-- **The projection flips the image** (the top of the window lands farthest into the room). For a top-down shot, frame it with the wall at the bottom of the frame so the figures stand upright; they will be mirrored, which is correct.-- The patch-map canvas size didn't match the code, which drew into a quarter of the texture and put the patch in the wrong place.-- Shafts painted at full strength from the window plane wash out the pane. Start the gradient near 0 at the window, peak about 40 % down, and weaken it in close-ups.-- A folded wing built from the open-wing rig looks like a pile of sticks. Draw a dedicated folded silhouette (knuckle up, pleated blade sweeping back) and hide the far wing.-- A red dusk light × cobalt glass gives mud. Keep dusk at about `(1,.6,.34)` and raise the intensity.-- A carved end card at night was unreadable in the wide shot. Push in and park the sweep light on the text.-- Homophones: whisper hears "knight" as "night". Put the expected transcription in the `asr` field.-- The turning-point reveal was unreadable in v1: the knight filled the frame and the dragon was cut by the lancet edge. In a narrow lancet, stage the reveal **at the final zoom**. Shrink both figures and move the thing being revealed (the ember) to the middle of the frame, at least about 1/8 of the frame width including its glow. Put the character on the left third looking at it, keep the other character whole inside the pane, and pull back afterwards to show both together.-- Subtitle text drawn while the banderole is still unfurling looks like it hits the ribbon ends. Fade the text in only after the ribbon is at least 75 % open, and pad the ribbon about 75 px each side.--## 9. Production recipe (this repo)-```-styles/stained-glass/demo/- glass.js pieces, textures, lead, grisaille brushes, lozenges comp.js WebGL2 compositor (glass/stone/floor/shafts/bloom)- knight.js glass knight rig + poses + faces dragon.js wyvern rig (spine bands, head, folded/open wings, ember)- window.js lancets, rose, borders, scenes, stone wall, carving scene.js camera, floor projection, shafts, dust -> compositor- story.js timeline: light, camera, lancet states, crack, re-lead, events, subtitles- subs.js banderole subtitles test.js model sheet / test pages (?test=sheet|knight|dragon) frames.js style frames (?frame=...)- lines.json narration music/score.py original score mix.py foley + mix subs_export.py -> .srt build.sh one-shot rebuild-```-1. `node core/render/still.mjs styles/stained-glass/demo 36 --q nosub=1`: review stills. Use `?test=sheet` for the model sheet.-2. `core/tts/tts.py lines.json voices` → `asr_check.py`.-3. `node core/render/events.mjs` → `music/score.py` → `mix.py` → `subs_export.py`.-4. `node core/render/video.mjs styles/stained-glass/demo --fps 24 --workers 3` (1356 frames, about 3–4 min with 3 workers; Canvas2D vector glass plus the WebGL compositor).-5. `CRF=22 sh demo/tools/mux.sh out/video24.mp4 mix.wav stained-glass.mp4 24 4` (grain 4).+- **Figures step at 8 fps**; light, camera, shafts and dust move on ones (24 fps): stepped light reads as flicker.+- Rigid pieces on 2D FK (`setTransform(base · T(part))`, free draw order); long bodies are spine chains of banded pieces.+- **Freeze rule**: a pane's figures use `min(t, t_lightLeft)`. Actions land on the beat.+- **Crack**: jagged lines race from the impact in ~¼ s, bright with light, a short white flash and a 2-frame shake.+- **Re-leading**: piece groups slide one beat each with a small outward bump along the lead, each ending in a weld spark; cracks become mending leads.+- Glass never bends or morphs; things appear by being lit, not faded in.++## 6. Camera grammar++A vocabulary, not a route. Opening and ending come from the topic.++| Move | Expresses | Can serve |+|---|---|---|+| Truck sideways with the band of light | Time passing, the story moving on | a sequence of steps; a day; chapters |+| Locked close-up on one pane | This panel is "now" | a line being read; a character's decision; a detail |+| Pull back to the whole window | The rule, or the whole story at once | learning the system; a summary; aftermath |+| Tilt down the shafts to the floor, then top-down | The picture leaves the glass and becomes light | an event too big for its frame; a dream; a memory |+| Hold through a crack, no cut | The event is the medium breaking | a turning point; a loss; a revelation |+| Slow push toward a small light | Attention narrowing to one source | a discovery; a secret; hope |+| Tilt up to a rose or tracery | Something above the panels governs them | a clock; a cycle; an overview |+| Rack between two panes, one lit, one dark | Past and present side by side | before/after; two lives; cause and effect |+| Low angle along the embrasure, glass raking | The window as architecture, scale | awe; an institution; a long history |+| Return to an earlier framing under new light | The rhyme shows what changed | growth; nightfall; repair |++Framing: subjects big (close-ups ~1.3–2.3× a lancet width); in a narrow lancet stack figures diagonally; a revealed thing near centre, ≥ ~1/8 frame width with glow. Transitions: moving light, shafts, a crack, darkness; never a dissolve, wipe or flip.++## 7. Sound palette++- **Instruments**: organ (pedal drone, soft stops, full), harp, hand chimes, tubular bells, recorder or a chant-like voice, water-glass notes, timpani; also hurdy-gurdy drone, psaltery, portative organ. No generic piano or strings.+- **Mode families**: church modes (Dorian, Mixolydian, Aeolian, Lydian), open fifths, drones, parallel organum.+- **Options**: free unmetred chant for darkness; one note meaning "the light" each time a pane wakes; an organ pedal that holds and then cuts out; a rising scale, one step per lit piece.+- **Foley, material first** (synthesizable): struck glass = inharmonic partials ~1 : 2.32 : 4.25 : 6.63 : 9.38; crack = snap + pane thump + rain of tinkles; lead = stick-slip creak; glass sliding in a came = gritty band noise + faint squeal; solder = hiss + tick; air on light moves; stone-hall ambience; birds in the vault; iron ticking as it cools.+- **Silence**: a hard stop, reverb tails included, only the glass's own ring or creak inside; a single long-reverb bell can close it.+- **Mix**: big and reverberant; heavy hits avoid word onsets; music ducked ~9 dB under voice; −14 LUFS. **Voice**: a gentle, even storyteller, few short lines.++## 8. Native moves++A menu: use the ones your story needs.++- **Light is time, and the camera.** Only the lit pane is alive; figures freeze when the light leaves. *Fits content like:* the steps of a recipe; a factory's shifts; four seasons of one farm.+- **Glass projects onto stone.** A key scene plays in the floor patch, which stretches as the sun sinks. *Fits content like:* a memory seen larger than life; a sports play replayed as shadows; a data trend drawn by lengthening light.+- **Glass cracks, lead mends.** Pieces slide along the leads into a new picture, leaving scars. *Fits content like:* a company's reinvention; an injury and recovery; an old building restored.+- **A window holds its own light.** At night one pane glows from a source inside the story. *Fits content like:* a lighthouse keeper; a night-shift nurse; a server that never sleeps.+- **The window as a diagram.** Lancets as columns, a rose as a wheel or dial, the border as a timeline. *Fits content like:* a product lineup; the parts of a cycle; a family tree.++## 9. Pitfalls of the medium++- Hidden leads show through front pieces → erase the surface under each piece before stroking its lead.+- Pastel glass → hue-preserving tone mapping; darker flesh. Red dusk × blue glass = mud → keep blue alive, raise intensity.+- Voronoi reads as a filter; flat fills read as clip-art → hand-cut lozenges, texture on every piece, heavy grisaille.+- A sharp floor patch looks like a decal → blur, desaturate, stone-modulate, halo. Shafts at full strength at the window wash out the pane.+- Top-down projection is flipped → put the wall at the frame bottom so figures stand upright (mirrored, correct).+- Patch-map canvas size mismatched with the code draws into a corner of the texture → one constant size.+- Carved text in a dark wide is unreadable → push in, park a light on it.++## 10. Engine++In `demo/`: `glass.js` (pieces, textures, lead, grisaille, lozenges), `comp.js` (WebGL2 compositor), `window.js` (lancets, rose, borders, wall, carving), `scene.js` (camera, floor projection, shafts, dust), `subs.js` (banderole), `test.js` / `frames.js` (model sheets and style frames from the real engine), `music/score.py`, `mix.py` (glass/lead foley). `knight.js` / `dragon.js` show the rigid-piece FK rig pattern; build your own subjects with it.++## 11. Variation space++You decide the window (lancets, a rose, a medallion, a clerestory), the subjects, the order of light, opening, ending, camera path and pacing. All far from our demo:++- Structures: **a rose window as a dial** (petals lit in turn like hours, the centre the answer); **one tall lancet read bottom to top** (a tilt up a life or a process, medallion by medallion); **two windows facing each other** (the sun lights one side in the morning, the other in the evening; the floor between them holds their meeting).+- Openings: **the floor first** (only a coloured patch on stone; tilt up to find its source); **a lit window from outside at night** (a figure passes a glowing pane, then we are inside); **the glazier's bench** (a single piece cut and leaded, becoming the first piece of the picture).+- Endings: **clouds cover the sun** (every pane fades to grey at once; one line lingers); **a new pane leaded in** (an empty lancet filled with the last scene); **the camera leaves through the door** (the window small behind, its patch still on the floor).++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/stained-glass/TREATMENT.md b/styles/stained-glass/TREATMENT.mddeleted file mode 100644index 89d4803..0000000--- a/styles/stained-glass/TREATMENT.md+++ /dev/null@@ -1,189 +0,0 @@-# TREATMENT · 34 Stained Glass ·《The Dragon of the East Window》--> 2D | 目标时长 ~55 s(说明写 45 s,理由见第 10 节)| 1920×1080 · 24 fps 输出,玻璃人物 8 fps "按片步进",光与镜头 24 fps 连续 | 旁白 Kokoro `bf_alice`(speed 0.86–0.88)| grain 4-------## 1. 一句话故事--**一座石厅的东窗上画着骑士屠龙:太阳照到哪一格,哪一格的故事就动起来;黄昏最后一格,骑士举剑劈下,玻璃裂开——他看见龙守护的是太阳落下后留下的最后一颗火种,碎片沿铅条滑回原处,重新焊成一个跪下、剑横放的骑士。**--- 角色:骑士(主角);龙(对手 → 守护者)。-- 目标:屠掉"每晚吞掉太阳"的龙。-- 转折:决战一击劈裂玻璃,裂缝后露出的不是龙的獠牙,而是它用身体护着的一粒余烬——太阳的最后一颗火种,要捂到天亮。-- 回响:- - 开场全黑里一道晨光刺进第一格;结尾夜里没有阳光,只有龙那一格自己发着暖光(光从"窗外来"变成"窗里有")。- - 片名的"East"有了答案:龙整夜捂着火种,太阳才能第二天从东边升起。片尾卡上,一道细细的蓝色晨光再次碰到第一格(与开场同一声玻璃轻响)——故事循环。- - 修复的玻璃留下了新铅条(真实的花窗修补手法叫 mending lead):这扇窗从此带着一道"伤疤",那是故事被改写的地方。--## 2. 窗的设计(整片的舞台)--一扇哥特式东窗:**四个尖拱长窗(lancet)并排 + 顶上一个圆花窗(rose)**,嵌在厚石墙的斜面窗洞里,窗下一条石质束带层刻着片名。四格从左到右 = 一天:--| 格 | 时辰 | 光色 | 画面 |-|---|---|---|---|-| I 晨 | 清晨 | 冷蓝白,低角度 | **受命**:骑士立于城垛,举剑;顶部华盖里嵌一小圆片——"吞日之龙"(龙咬住落日,民间的误解) |-| II 午 | 正午 | 白金,最亮,光斑短 | **旅途**:骑士按片步进走过山丘、树、河,一只鸽子飞过 |-| III 午后 | 午后 | 金色,光斑拉长 | **决战**:龙立起、红翼张开,骑士举盾——战斗发生在**地上的光斑里** |-| IV 暮 | 黄昏 | 深红橙 | **火种**:骑士劈下 → 裂开 → 龙翼滑开露出火种 → 重铅成跪姿 |-| 圆花窗 | 全天 | 跟随太阳 | 太阳轮:金色日心 + 红蓝花瓣;它的亮度就是一座钟(晨淡、午炽、暮红、夜熄) |--光的规则:一束阳光像一块移动的光斑扫过窗面(左 → 右)。**被照到的格通透、发光、角色在动;没照到的格发暗发浊(玻璃表面的风化雾面反射室内微光)、角色冻结在光离开的那一帧。**--## 3. 对标:学什么 / 刻意不学什么--### 《Beauty and the Beast》(1991) 开场序幕-| 学 | 不学 |-|---|---|-| 用一扇扇花窗讲前史,**镜头在窗格之间横移 / 推近**,每格一个章节 | 它的构图、人物、王子与野兽的造型、那段旋律 |-| 旁白是"讲古"的平稳语气,画面停得够久让人看清 | 童话城堡、玫瑰等具体元素 |-| 转场靠镜头运动连接格子,不硬切 | 迪士尼式的软体动画——我们的角色是按片步进的玻璃 |--### 《Young Sherlock Holmes》(1985) 彩窗骑士-| 学 | 不学 |-|---|---|-| **玻璃人物的运动逻辑**:碎片沿铅条滑动、碎裂再组合;玻璃的物质性(锋利、会裂、会响) | 那个骑士的造型、它从窗里跳出来的情节、恐怖基调、任何 CG 画面 |-| 碎裂的瞬间 = 叙事转折点 | |--### 沙特尔大教堂 12–13 世纪花窗(配色与工艺逻辑)-| 学 | 不学 |-|---|---|-| **钴蓝底 + 宝石红**为主,少量金黄、绿、紫;肤色用淡粉白玻璃 | 任何具体窗面、圣像、宗教叙事与符号(不出现十字、光环、圣人、手从云中伸出等) |-| **灰绘(grisaille)**:半透明深棕的描线画五官、衣褶、锁子甲环纹,薄涂阴影、刮出高光 | |-| 铅条只走在颜色交界处;每个颜色一块玻璃;外侧铁条(saddle bar)横穿窗面 | |-| 镶珠边框(红带 + 金珠 + 白线)、华盖、马赛克式蓝底 | |-| 从下往上、从左往右读的"连环画"结构,同一角色在多格里重复出现 | |--## 4. 原生招式(只有花窗能做)--| 招式 | 位置 | 为什么只有花窗能做 |-|---|---|---|-| **① 光就是时间,也是镜头**(贯穿全片的规则) | 全片;最强的一段在 24–30 s 地面光斑决战 | 花窗的画面只有在逆光时才存在。太阳移动 = 故事推进;光从一格移开,那一格就"熄"、角色冻结,镜头跟着光走到下一格。**决战那一段镜头低头看地面**:午后斜阳把第 III 格投成一大片拉长、变形、带铅条暗线的彩色光斑铺在石板上,骑士和龙的光影在光斑里交锋——而且光斑随旁白"the shadows grew long"一边打一边真的在变长(太阳在降低)。 |-| **② 碎裂与重铅**(情绪最高点) | 31.8–44.6 s | 花窗人物是一片片切出来、用铅条焊住的。决战一击让整格玻璃裂开(全片唯一的硬静音 + 碎响),裂缝透出白光;龙翼的碎片沿铅条滑开露出火种;然后骑士身体的每一块玻璃依次脱开,**沿铅条滑到新位置**,剑片转平、落在火种前,焊点一个接一个亮起火花——每一个焊点是一个音,最后一个焊点落下 = 一声钟,所有乐器撤掉。修好的窗留着新的铅条"伤疤"。 |-| **③ 光从窗外来 → 光在窗里**(回响) | 47–53 s | 夜里只剩月光,所有格都暗成灰蓝,只有第 IV 格自己发出暖光——火种在玻璃里。花窗唯一能"自己发光"的方式就是故事给了它光源。 |--## 5. 视觉语言--- **渲染模型**(WebGL2 合成,所有元素走同一条公式,保证风格统一):- `玻璃 = 色调映射( 背光(x,y,时辰) × 玻璃透射色 × 灰绘 × 厚薄/气泡/划痕纹理 ) + 风化雾面 × 室内微光`- `石墙/铅条/地面 = 反照率 × (室内环境光 + 窗边溢光 + 地面彩色光斑)`- `+ 体积光束(光柱里的浮尘)+ 辉光(亮玻璃"吃掉"铅条边缘,即真实花窗的 irradiation 效应)`-- **玻璃片**:每片是平滑样条曲线切出的多边形(玻璃不能切深凹角);每片颜色按哈希 ±8% 厚薄变化;全局叠加纹理:条纹(手吹玻璃的拉丝)、大尺度厚薄云纹、气泡(暗圈亮心)、细划痕。-- **铅条**:深灰 `#23252a`,宽度随尺度(窗面单位 6,人物外轮廓 7),交点有焊点;从室内看铅条几乎是黑的剪影,只有一条很细的冷灰高光。外侧铁条横穿窗面。-- **玻璃色**(透射色):钴蓝 `#2447a8`、深蓝 `#18307a`、宝石红 `#b0141f`、金黄 `#e6a52a`、翠绿 `#3d8a3c`、橄榄绿 `#7d8c2c`、紫 `#6c2f69`、肤色淡粉白 `#e8cbb0`、白(带绿) `#d8e2cc`、天蓝 `#8fb0d8`、棕 `#8a5a2c`、火种琥珀 `#ff9a2a`。-- **灰绘**:描线 `rgba(46,28,14,.85)`(线宽随笔触变化),薄涂阴影 `rgba(60,36,18,.28)` 沿轮廓内侧渐变,刮出的高光线(亮细线)。锁子甲 = 灰绘小弧纹阵列;龙鳞 = 灰绘鳞弧;衣褶 = 长弧线。-- **时辰光色**:晨 `#bcd4ff` 强度 2.2;午 `#fff4dc` 3.4;午后 `#ffd79a` 2.8;暮 `#ff7a3c` 2.4;夜(月光)`#8fa6d8` 0.35;未照亮格的窗外天光 0.18。-- **石材**:暖灰石灰岩方石,灰缝,窗洞斜面比墙面亮一档;地面大石板(透视,由着色器按真实地平线计算)。-- **人物比例**:中世纪拉长比例(约 7.5 头身),大手,杏仁眼、连到鼻梁的弯眉;侧面朝向为主(3/4 侧脸),剪影优先。--## 6. 动作语言--- **玻璃人物 8 fps 步进**:姿势参数每 1/8 s 取样一次并保持,每片玻璃"跳"到位(带 1 帧极小的回弹),不做补间软动画;少量形变只在龙身节段之间。-- **光、镜头、光束、浮尘 24 fps 连续**——光是活的,玻璃是硬的。-- 步伐、挥剑、振翼都落在拍点上(80 BPM,一拍 0.75 s)。-- 光离开一格时,那一格的角色**冻结在当前帧**(下次亮起才继续)。-- 碎裂:裂纹 0.25 s 内从击点蜿蜒扩散(透光的白色细线),整格轻震 2 帧;碎片沿铅条滑动时一次只动一片或两片,像拼图被一块块推回去。-- 焊接:每个焊点一个橙白小火花 + 一声玻璃/手摇钟音,按拍点依次亮起。--## 7. 分镜节拍表(80 BPM:一拍 0.75 s,一小节 3.0 s;时间按实测配音长度排定,制作中微调)--| # | 时间 (s) | 画面 | 机位意图 | 声音 |-|---|---|---|---|---|-| S1 | 0.0–4.8 | 全黑,只有极淡的浮尘。**0.5 一道刀锋般的晨光斜刺进来**,打在第 I 格上,钴蓝从上往下亮透;2.6 骑士抬起头(第一个按片步进的动作)。 | 低机位仰拍第 I 格中近景(格子占 85% 画高)——开场 1 秒内就有"光把玻璃点亮"的奇观 | 0.5 玻璃轻响 + 气流;竖笛单声部起(素歌感),管风琴踏板 D 持续低音;**L1** 1.0 |-| S2 | 4.8–9.6 | 镜头缓缓拉出到**全景**:整扇窗(四格 + 圆花窗)只有第 I 格亮着,地上一块蓝色光斑,光柱里浮尘。5.4 窗下石带上的片名 *THE DRAGON OF THE EAST WINDOW* 被一道光扫过、刻字泛金。 | 建立"钟面":观众看清规则——光在哪,故事就在哪 | 5.4 水杯琴 + 手摇钟一闪 |-| S3 | 9.6–15.6 | 推近第 I 格:骑士立于城垛;11.1 举剑(三片步进到位,落在拍点);华盖里的"吞日之龙"小圆片同时被照亮。 | 推近 = 进入故事;中景让剑、盾上的太阳纹、灰绘脸都看得清 | 80 BPM 起:竖琴琶音(D 多利亚,i–IV 即 Dm–G,B 还原是多利亚的标志)+ 竖笛第二句 + 手摇钟;**L2** 10.0 |-| S4 | 15.6–17.2 | **光移动**:光斑向右滑,第 I 格暗下去,骑士冻结在半步;镜头跟着光平移到第 II 格。 | 规则的第一次演示:光走,镜头跟着走 | 水杯琴滑音 + 轻风 |-| S5 | 17.2–22.6 | 正午,第 II 格最亮最白:骑士按拍点一步一片地走(每步一声玻璃轻碰),背景的山、树、河的玻璃片一片片换位向后移;20.4 一只鸽子飞过华盖。 | 中景 + 极慢跟摇;这里给音乐一个独奏的空间 | 竖琴 + 手摇钟 + 管钟(17.2 小节首拍)+ 竖笛高八度;鸽子扑翅;**L3** 17.8 |-| S6 | 22.6–24.0 | 光移到第 III 格,变成金色;龙立起、红翼张开。镜头顺着光柱**向下摇**到地面。 | 顺着光柱下摇 = 把观众的视线交给地面 | 管风琴全开进入;定音鼓一击 |-| S7 | 24.0–30.0 | **地面光斑决战**(本片最想让人记住的镜头):石板上拉长变形的彩色光斑,铅条投出暗线,骑士与龙的光影在其中三次交锋(冲刺 / 盾挡 / 翼扫,都在拍点);光斑随时间继续拉长、微微偏移。 | 俯视石板;主体是光,不是玻璃 | 管风琴低音固定音型 + 踏板 + 定音鼓每次交锋一击;**L4** 24.4 |-| S8 | 30.0–31.8 | 镜头**摇回**窗上,光变成深红,落到第 IV 格:骑士高举剑,龙蜷着、双翼护住胸前。 | 仰拍中景,蓄力 | 定音鼓滚奏渐强 |-| S9 | 31.8 | **一击**:剑劈下(两帧步进)→ **整格玻璃裂开**:白色裂纹 0.25 s 爬满格子,轻震。 | 同一机位,不切——让裂纹自己成为"镜头" | **所有音乐硬切**,只剩玻璃碎响 + 长混响 |-| S10 | 31.8–33.8 | 静:红光里浮尘缓缓落下,裂开的碎片微微错位。33.0 龙翼的碎片沿铅条滑开,露出胸前一粒琥珀色的火种,光一点点变亮。 | 缓慢推近火种 | 静音,只有混响尾巴、铅条吱嘎、玻璃摩擦 |-| S11 | 33.8–41.3 | 火种在呼吸般明暗;骑士灰绘的脸从"厉"到"惊"(换一片脸玻璃,步进)。 | 近景:骑士脸 + 火种同框 | 管风琴柔和音栓暖和弦 + 稀疏手摇钟;**L5** 33.8、**L6** 37.9 |-| S12 | 41.3–44.6 | **重铅**:骑士身体的玻璃一片片脱开,沿铅条滑到跪姿;剑片转平,落在火种前。每到一拍一个焊点亮起火花。 | 中景固定,让观众看清每一片的去向 | 每个焊点一个音(手摇钟 / 水杯琴沿多利亚音阶上行)|-| S13 | 44.6–47.2 | 最后一个焊点 = **一声钟**,所有乐器撤掉;窗上留下新的铅条伤疤。 | 静止画面,给钟声留时间 | 管钟 D + 长混响(room size 0.9);**L7** 45.0 |-| S14 | 47.2–52.9 | 天黑:红光转紫再转成月光,四格都暗成灰蓝,**只有第 IV 格自己亮着暖光**。镜头慢慢拉回到全景(呼应 S2):地上只剩淡淡的月光斑和一小块暖色。 | 首尾呼应的全景:同一个机位,光源从窗外变成了窗里 | 竖笛再唱开场那一句,更轻更慢;竖琴泛音;**L8** 49.2 |-| S15 | 52.9–56.5 | 片尾卡:刻在石带上的 *STAINED GLASS* · *LemoLab × Claude Opus 5.5*;55.2 一道细细的蓝色晨光碰了一下第 I 格。 | 循环 | 结束在 D–A 空五度;55.2 玻璃轻响(与 0.5 同一声)|--### 旁白(bf_alice,speed 0.86–0.88,像修女讲一个很老的故事)--| id | 起点 | 文本 | 试音长 |-|---|---|---|---|-| L1 | 1.0 | This window only tells its story where the sun falls. | 3.48 s |-| L2 | 10.0 | At dawn, a knight was sent to slay the dragon that ate the sun. | 3.79 s |-| L3 | 17.8 | He crossed hill and river under the high white sun. | 3.22 s |-| L4 | 24.4 | All afternoon they fought, and the shadows grew long. | 3.02 s |-| L5 | 33.8 | Then, in the red of evening, he saw what the dragon was guarding. | 3.80 s |-| L6 | 37.9 | The last ember of the sun, kept warm until morning. | 3.37 s |-| L7 | 45.0 | So the knight laid down his sword. | 2.22 s |-| L8 | 49.2 | And every night since, one pane of glass keeps its own light. | 3.69 s |--## 8. Cue map(原创配乐:中世纪 / 素歌感,D 多利亚调式,采样乐器 + 长混响)--乐器:`recorder`(中音竖笛,旋律)、`organ_soft` / `organ` / `organ_pedal`(管风琴)、`harp`、`hand_chimes`、`tubular_bells`、`timpani`、`glass`(水杯琴,玻璃的"光")、`glockenspiel`(浮尘闪光,极少)。全部 CC0(VSCO 2 CE / VCSL / FreePats)。总线混响 `room(size=.8, mix≈.3)`,钟声那一下单独 `size=.95`。--| Cue | 时间 | 速度 | 配器 | 情绪 | 卡点 |-|---|---|---|---|---|---|-| C1 Incipit | 0.5–9.6 | 自由(素歌) | 竖笛单旋律 + 管风琴踏板 D2 / 柔和音栓 D3–A3 持续 | 古老、屏息 | 0.5 光刺入(水杯琴 D6);5.4 片名(水杯琴 + 手摇钟) |-| C2 Dawn | 9.6–15.6 | 80 | 竖琴琶音 Dm–G(多利亚 i–IV)+ 竖笛第二句 + 手摇钟小节首拍 | 清冷、启程 | 11.1 举剑落拍 |-| T1 光移 | 15.6–17.2 | — | 水杯琴上行滑奏 | 时间流动 | 17.2 到位 |-| C3 Noon | 17.2–22.6 | 80 | 竖琴 + 手摇钟 + 管钟 + 竖笛高八度 + 柔和管风琴和弦 | 明亮、开阔 | 每拍一步;17.2 管钟 |-| C4 Battle | 22.6–31.8 | 80 | 管风琴全开(低音八分音符固定音型,Dm–C–B♭–C 的多利亚/弗里几亚色彩)+ 踏板 + 定音鼓 | 激烈、压迫 | 22.6 进入;24.75/26.25/27.75 交锋;30.0–31.8 滚奏 |-| — 碎裂 | 31.8–33.8 | — | **全部硬切**(连混响尾一起清零),只剩玻璃碎响自己的长混响 | 震惊 | 31.8 |-| C5 Ember | 33.8–44.6 | 60(自由) | 管风琴柔和音栓暖和弦 + 稀疏手摇钟 + 竖琴泛音 | 温柔、领悟 | 41.3 起每拍一个焊点音(D 多利亚上行) |-| C6 Bell | 44.6–47.2 | — | 只有一声管钟 D + 超长混响 | 放下 | 44.6 |-| C7 Nocturne | 47.2–56.5 | 自由 | 竖笛再唱开场句(更轻)+ 柔和管风琴 D 持续 + 竖琴泛音 | 回响、安宁 | 52.9 片尾;56 收在 D–A 空五度 |--旁白期间音乐闪避约 −9 dB;定音鼓和玻璃重响避开词头。--## 9. 声音设计(拟音跟材质走:玻璃、铅、石、空气)--- **玻璃轻响**:光点亮一格 = 高频非谐波模态音(几个 3–9 kHz 衰减分音)+ 水杯琴一个音;角色每步 = 更轻、更短的"叮"。-- **铅条吱嘎**:碎片滑动时低频摩擦(带通噪声 + 缓慢颤动的音高)。-- **碎裂**:宽频噪声爆 + 多个高频共振 + 随后的细碎叮当雨;裂纹扩散时一串极快的"噼"。-- **焊接**:短促嘶声 + 一个清亮的音。-- **空间**:石厅混响(长、暗);远处鸽子扑翅(两次);极轻的风从窗缝进来;夜里一声远处的猫头鹰?(不用,保持安静)。-- 光束移动时一阵极轻的"气流"声(带通噪声扫频),不做卡通 whoosh。--## 10. 字幕与片名--- **字幕 = 题带(banderole)**:画面底部居中一条羊皮纸色的卷轴飘带(两端卷起,带阴影),英文用 IM Fell English 46 px、深棕墨色 `#3a2412`,飘带底色 `#efe2c2` 带纸纹与边缘暗色;出现时从中间向两边 0.3 s 展开,消失时卷回。每句停留 ≥ 语音 + 0.6 s 且 ≥ 1.8 s,相邻两句之间留 ≥ 0.3 s 空白。-- **片名 / 片尾**:刻在窗下石质束带层上的罗马碑刻字(Cinzel),光扫过时刻痕里泛金;片尾同一位置换成 *STAINED GLASS* 与 *LemoLab × Claude Opus 5.5*。-- 字体均为 OFL(Cinzel、IM Fell English)。--## 11. 与风格说明的差异及理由--1. **时长 ~55 s(说明 45 s)**:8 句旁白 + 两个必须留白的情绪支点(碎裂后 2 s 真静音、钟声后的长混响)+ 地面光斑决战 6 s。按观众阅读时间留足停留,不为凑时长砍;仍在 30–60 s 规格内。-2. **故事转折补了一层因果**:说明写"龙守护太阳落下后留下的最后一颗火种",我把开场设定成"民间说这条龙每晚吃掉太阳",于是转折是**误解被揭开**,而片名的"East"成为答案——火种要捂到天亮,太阳才能从东边再升起。-3. **窗的结构定为"四长窗 + 圆花窗"**:四格正好对应晨 / 午 / 午后 / 暮,圆花窗做"太阳钟",全景里一眼能看出光在走。夜晚不单独占一格,而是整扇窗一起进入夜色,只有第 IV 格自己亮——让回响落在已经看过的那一格上。-4. **重铅留下伤疤**:碎片重组后保留新增的铅条(真实花窗修补做法),让"故事被改写"有可见的痕迹。-5. **片尾加一道晨光的循环暗示**(0.8 s,不加台词)。-------## 12. 制作后记(成片与方案的差异)--- **关卡 1 返修**(协调者意见)已全部落实:- - 每片玻璃加内部变化:拉丝、色相漂移、铅条旁变暗,还有着色器里的气泡和划痕。- - 背景从 Voronoi 改成手切菱形小窗格,每片灰绘卷草;边框加白色饰带,上面画连续卷草纹。- - 灰绘加重:点彩 matting 整片压暗,衣褶旁用本色"刮出"亮线;头套开口放大,眉眼口加粗。- - 龙的蜷护姿势改为:双翼收在身后,身体盘成一圈,头低、面向骑士。第 III 格骑士在左下,龙立在右上的岩石上,不再重叠挡头。- - 地面光斑:模糊、降饱和、受石板纹理调制、外加光晕;俯拍地面改成大块不规则石板。- - 片名:一道光扫过石带,全景里也能读。-- **火种的揭示方式**:龙身盘成的圈里原本是一块暗色的"石头",看上去像龙在守宝。劈裂之后它慢慢被点燃成琥珀色火种,同时龙头从对着骑士转回去,低头看它。这样"he saw what the dragon was guarding"有了可见的转变,不需要用翅膀去遮。-- **时长 56.5 s**:L6 挪到 38.3 s,免得和 L5 的阅读时间冲突;片尾加了推近石带的镜头,保证署名可读。-- **L4 改词**:原句 "…the shadows grew long." 在 Kokoro 的读法下,whisper 连单句都听成 "longed",所以改成 "…the shadows grew longer."。-- **片头**:光不是整格一下亮起,而是一条 18 单位宽的斜向光缝从格子左缘滑进来,1 秒内展开到整格,也就是"刀锋般的晨光"。-- **碎裂**:9 条裂纹在 0.28 s 内扩散,裂纹透光,击点有白色闪光。重铅时,每落一个焊点,就有一部分裂纹变成细铅条留下来。--## 13. 关卡 2 返修:火种揭示(33.8–44.6 s)--- v1 的问题:揭示时骑士占满画面,龙被挤在窗格右缘,头和盘身被切掉一半,火种只是边上一个亮点。-- 第 IV 格重新排布:- - 龙缩到 0.68,移到窗格右半,整个盘圈落在窗框以内。- - 火种放大(r 27),放在圈心,辉光半径和强度在揭示这一拍再加一档,照亮周围的玻璃片。- - 龙在揭示姿势里颈部向后弯过盘圈,头平放在圈顶、面向骑士,火种露在头的下方。-- 骑士(0.64)移到窗格左侧。劈下后放低剑、垂下盾,脸朝火种(表情 wonder → gentle)。-- 镜头 33.8→36.4 推到 2.85 倍,骑士的脸落在左三分线,火种接近画面中部。41.3 起拉回到 1.9 倍,看骑士跪下、剑放平,和龙、火种同框。-- 击点改到龙头附近。-- 题带字幕:飘带加宽(文字宽 +150),文字在飘带展开到 75% 之后才淡入,展开过程中不再顶到两端。diff --git a/styles/stained-glass/style.json b/styles/stained-glass/style.jsonnew file mode 100644index 0000000..81a16dd--- /dev/null+++ b/styles/stained-glass/style.json@@ -0,0 +1,18 @@+{+ "slug": "stained-glass",+ "num": "20",+ "en": "Stained Glass",+ "cn": "彩色玻璃窗",+ "category_en": "Graphic & Type",+ "category_cn": "图形与排版",+ "film": "The Dragon of the East Window",+ "line": "Sunlight crosses a cathedral window from dawn to dusk, waking each pane of a knight-and-dragon tale.",+ "line_cn": "阳光从清晨移到黄昏,照到哪一格花窗,哪一格的故事就动起来。",+ "uses": [+ "Legends",+ "Heritage",+ "Holiday stories"+ ],+ "frame_sec": 40.68,+ "dur": 56.5+}diff --git a/styles/swiss-motion/DEMO.md b/styles/swiss-motion/DEMO.mdnew file mode 100644index 0000000..e67beb1--- /dev/null+++ b/styles/swiss-motion/DEMO.md@@ -0,0 +1,129 @@+# Swiss Motion Graphics — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Five Rules for a Poster* (44 s) · `swiss-motion.mp4` · source in [`demo/`](demo/)+++A 30–60 second film: five rules build one concert poster on a grid; a red circle breaks the grid, and the poster turns out to be the score of the music. The demo sets Archivo as its one family.++## Story & structure++Pure 2D graphic design animated on a grid: flat white paper, black type and bars, a very light grey and **one** saturated red. It is the language of 1950s–70s Zurich concert posters (Müller-Brockmann, Hofmann, Gerstner, Crouwel) turned into motion the way modern identity systems move (Experimental Jetset, Pentagram): **every element snaps to the grid, every move lands on a beat, nothing bounces**.++The charm is **rigor with one exception**. The whole frame obeys a system, so the one element that doesn't obey it becomes a character.++Never copy a specific historical poster's composition (no concentric-circle or fan compositions lifted from Müller-Brockmann). Don't use Helvetica or Akzidenz font files. Pick an OFL neo-grotesque (Archivo, Inter, Schibsted Grotesk, Instrument Sans…). Never name a real institution on a poster.++Pick stories where **the system itself tells the story**. The demo used all five native powers, the strongest (the grid means something) at the peak:++| Native power | Story use |+|---|---|+| **The modular grid** | The grid is the stage and the rulebook. Show it being built (lines draw on the beat), show it briefly in section gaps, and at the peak **make the grid mean something**: in the demo, 7 columns = the 7 notes of A dorian and 16 rows = 16 eighth notes, so the poster *is* the score. |+| **Snap = beat** | Every element's arrival is a percussion hit: type clack, knife, ruling pen. Picture and music share one coordinate system, not a sync pass after the fact. |+| **Rules generate design (programme)** | The plot is a set of rules applied one by one to one artifact. End by showing the same programme generating many artifacts (the Gerstner reveal). |+| **Extreme scale contrast** | A 700 px numeral next to 19 px technical notes. The giant element is the chapter card, the tiny one is texture. |+| **One signal colour** | Only one thing is red, so red = the protagonist. When it breaks a rule it is the only thing on screen that is not exact. |++**Adapting any topic:** turn it into **a system plus one exception**. A product launch: the product's spec sheet assembles on a grid, then one feature breaks out of it. A company's history: each decade is a rule added to one poster. A love story: two red elements on two different grids, and the film ends when one of them leaves its grid.++**Emotional arc (30–60s):** order being built (curious, crisp) → order complete (correct and a bit dull, *say it*) → hesitation (the red element twitches and snaps back) → the break (the only non-snapped, linear move in the film; drums drop out) → everything else re-flows around it, better (full band back) → the reveal (the grid means something) → scale reveal (same system, many outputs) → back to the hero artifact on the end card.++## Shots++The "camera" is a 2D matrix (centre, scale, rotation). It moves only with the precise ease and only on beats.++| Beat | Camera |+|---|---|+| Opening | Locked full frame. One gesture: a red line strikes across and the grid columns grow out of it on sixteenths |+| Building (rules) | Locked spread, so the viewer reads cause (rule, left) → effect (artifact, right) |+| The break | Left page slides out, artifact moves to centre-left, grid lines extend across the whole frame (the grid is bigger than the page) |+| Reveal | **Rotate the artifact 90° in 1.5 beats and stop.** Only then do labels (note names, bar numbers) wipe in, then the playhead sweeps two bars. Each bar turns red on the exact frame of its onset: put onsets on whole frames (multiples of 0.25 s at 24 fps) |+| Scale reveal | Rotate back while pulling out to a wall of artifacts from the same system |+| Ending | The red line strikes again and cuts the other artifacts away. Push back to the opening spread, end card on the left page, hero artifact on the right |++- **Two curves only.** Precise ease `cubic-bezier(.7,0,.2,1)` for snaps, linear for lines being drawn, the playhead and the rule-breaker. No overshoot, no spring, no bounce.+- **Durations are note values** at the film's BPM (120: 1/8 = 0.25 s, 1/16 = 0.125 s). A snap starts one note value early and **lands on the beat**.+- **Entrances are wipes or clip-reveals, never fades.** Words rise out of a clip rect from below the baseline (1/16 note) and leave upward (1/8 note). Lines grow along their length. Paper appears by a vertical wipe. Big numerals climb in **4 eased steps** ("one module at a time").+- **Deletions are knife cuts.** A 2 px line crosses the element in 1/16, then the element collapses vertically to its midline in 1/8.+- **Ripples are ordered by distance** from the cause. After the red circle lands, units re-flow two at a time on sixteenths, nearest first.+- **The exception moves differently.** It is linear, not snapped, and pauses for one eighth mid-flight (a glance back). It grows as it travels. A coordinate readout next to it turns from `col 5.00 row 0.00 · on grid` to red `off grid` with non-integer (even negative) values.+- Everything renders at a smooth 24 fps. There's no stepping: this style is digital precision, not hand-made.++## Score structure++- **Music**: Motorik / krautrock, 120 BPM, A dorian (not a generic piano-and-strings bed). Layer one instrument per rule:+ 1. hats only;+ 2. + full motorik kit (`drum_kit`: kick 1, 3, 3&; snare 2, 4; closed hat eighths);+ 3. + `electric_bass` eighth-note root pulse;+ 4. + numpy saw arpeggio sixteenths with an opening filter;+ 5. + `glockenspiel` doubled by a soft numpy square lead.++ **Drop the drums for the one bar of the break**, return on the landing. Before the reveal add one bar of near-silence (bass pedal + quarter-note tick). During the reveal keep only kick + bass + melody so every note is audible.+- **The melody comes from the same JSON as the picture** (`score.json`: column → pitch, row → onset, length → duration). "The poster is the score" is true in code, not faked.+- **Foley follows materials**, dry and close, no reverb:+ - letterpress clack (metal transient + 3.3 / 5.1 kHz resonances + wooden tray);+ - ruling pen "tss";+ - guillotine (band-pass sweep + metal snick);+ - paper slap / slide;+ - numeral "thunk" per step;+ - block snap;+ - circle landing (58 Hz felt thump).++ The rule-breaker is the only element that *sings*: a sine glide that follows its position.+- **Voice**: cool, crisp female narrator, Kokoro `af_sarah` at speed 1.0. It had ~7× the 3–8 kHz consonant energy of `af_kore`. Keep lines rule-like: "Rule one. Build a grid." Check every line with whisper (write numbers as `"asr": "Rule 1, …"`).+- **Mix**: voice compressed, music ducked ~−10 dB under voice (voice ≥ 6 dB above music), −14 LUFS.++## Palette & props++- **Frame grid**: 1920×1080, 12 columns, 96 px side margins, 24 px gutters (122 px columns), 24 px baseline. Treat the frame as a **spread**: left page (cols 1–6) = the "programme" (numeral, rule text, notes); right page (cols 8–12) = the artifact (poster 706×1008, ratio 0.70 ≈ Swiss world format).+- **Artifact grid**: derive it from the content (Gerstner). In the demo the poster has 7 columns × 91 px and 16 rows × 40 px, with a 26 px baseline grid in the text zone. I first tried 12 semitone columns: bars were only 43 px wide and the poster looked like a data chart. **Choose module sizes that give the bars mass.**+- **Palette**: page `#EAE9E5`, paper `#FFFFFF`, ink `#111111`, signal red `#E30613`, grid lines `#CFCEC9` on the page / `#C9C8C2` while building / `#E2E1DC` on paper, secondary bars `#CFCEC9`. No gradients, no shadows, no particles, no grain (mux grain 0).+- **Type**: one family for the whole film (demo: **Archivo** variable, weights 400–800). Letter-spacing −2.2% at ≥ 90 px. Lowercase headlines (`neue musik`). Rule numerals at ~980 px (700 px figure height), bottom-aligned with the poster's bottom edge, **optically** flush left (subtract the glyph's left bearing). Notes 19 px Medium. Always `document.fonts.load` every weight before drawing.+- **Composition**: flush left, ragged right. Everything on a grid line. Big white spaces are part of the layout. The final composition must be **visibly bolder** than the "correct" one:+ - one main diagonal with a strong long-short rhythm;+ - the red element at ~2× scale;+ - elements **bleeding** off the paper edge;+ - type overprinting the red circle (black on red).+ Merely tilting the correct layout is not enough.+- **Bars as notes**: bar width = column minus 8 px; consecutive cells of one note merge into one bar (overdraw 1 px at the seams or antialiasing shows hairlines, especially when rotated).+- **The secondary voice** (bass) is light-grey bars under the black ones. They read as a shadow diagonal and give depth without a second colour.++## Titles, subtitles & end card++- **Subtitles are part of the layout**, not a bar at the bottom. Each line sits at column 1 on the spread's left page: the first sentence as a 30 px Medium grey lead-in, the rest as a 76 px Bold statement. Each word clip-reveals on its whisper timestamp. Non-rule lines use Regular weight ("Perfect. And a little dull."). In other shots the line sits at column 1 of that shot, at the artifact's headline baseline or under the wall like a museum label.+- **Title card**: `Five Rules / for a Poster`, 120 px Bold, two lines flush left, sitting on the opening red line. A 19 px caption row with a 1 px rule above it (`A programme in five steps · 1961 · ♩ = 120`).+- **Caption row + notes**: top of the left page (title / `Rule 0n / 05` / keyword); bottom of column 5: 2–3 technical notes per rule (`Columns 7 · Rows 16 · Module 91 × 40`). Bottom of column 7: a bar counter `bar 04.3`.+- **End card**: the opening spread again. `Swiss Motion / Graphics` 120 px, red line under it, `LemoLab × Claude Opus 5.5` 36 px, notes at the bottom, hero poster on the right. The LemoLab sign-off belongs to this library's demo only: a user's film carries no LemoLab credit and no copy of this card.++## Pitfalls we hit (demo record)++- **12 columns looked like a chart.** Grid modules must give the graphic elements mass. We used fewer, wider columns for the artifact and kept the standard 12 columns for the frame.+- **The "better" composition wasn't obviously better.** Four small staircases → one scattered layout wasn't convincing. Fix: one main diagonal with long/short rhythm, 2× red element, bleeds, type over red.+- **Rotation reveal needs a stop.** Rotating and labelling at the same time read as noise. Order it: rotate (1.5 beats) → hold → grid lines → labels → playhead → sweep.+- **Merged bars showed seams** after rotation and scaling (antialiasing between adjacent rects). Overdraw 1 px where cells join.+- **Labels overlapping the header**: hide the caption row before the rotated shot.+- **Word timings**: whisper splits or merges words ("type face"), and `asr_check` reports the first word at −0.6 s (padding). Align by letters and clamp to 0 (`tools/words.py`).+- **Subtitle rule** (≥ voice + 0.6 s and ≥ 1.8 s): two lines missed by 2 ms. `tools/subs.py` asserts it, so fix by nudging start times.+- **The wall cut must follow the line**: shrink the wall board from the side the red line enters, in screen space.+- The other posters on the wall share the camera matrix, so draw them **only** during the wall shot. Otherwise they leak into other shots at ±786 px.+- Canvas `letterSpacing` also affects `measureText`, so compute widths after setting the font.++## Build notes++```+styles/swiss-motion/demo/+ score.json grid = score: stiff / final melody, bass, circle, bleeds, timeline+ ease.js cubic-bezier(.7,0,.2,1), snap(t, t_arrive, dur), steps(), track()+ film.js layout system, rules, poster, circle, reveal, wall, end card, foley events+ main.js loads fonts, score, lines, whisper word times; ?nosub=1, ?poster=1+ lines.json voice script (af_sarah) tools/words.py word timings → subtitle reveal+ music/score.py motorik score from score.json mix.py foley + ducked voice + music+ tools/subs.py subtitle intervals (asserted) → srt build.sh one-shot rebuild+```++1. Design the layout system first: frame grid, artifact grid, what columns and rows *mean*. Write `score.json`.+2. `node core/render/still.mjs styles/swiss-motion/demo --range 0.5:43.5:1 --out …` then `sheet.py`. Review a 1 s overview plus dense 0.25 s strips around the break and each transition.+3. `tts.py` → `asr_check.py` (0 mismatches) → `tools/words.py`.+4. `music/score.py` (onsets from `score.json`; check sweep onsets ≤ 5 ms) → `events.mjs` → `mix.py` (prints voice/music/foley dB per line).+5. `video.mjs --workers 3` (1056 frames in ~12 s) → `mux.sh … 24 0`. Or simply `sh styles/swiss-motion/demo/build.sh` (~55 s from zero).diff --git a/styles/swiss-motion/STYLE.md b/styles/swiss-motion/STYLE.mdindex bf65ce4..93020f3 100644--- a/styles/swiss-motion/STYLE.md+++ b/styles/swiss-motion/STYLE.md@@ -1,133 +1,113 @@# Swiss Motion Graphics — Style Prompt-> International Typographic Style in motion: a modular grid, one typeface, one signal red, and movement as exact as a printing press.-> Demo: *Five Rules for a Poster* (44s) · `swiss-motion.mp4` · source in `demo/`+> International Typographic Style in motion: a modular grid, one typeface, one signal colour, and movement as exact as a printing press.+> References (grammar only): 1950s–70s Zurich posters (Müller-Brockmann, Hofmann, Gerstner, Crouwel) for the grid, flush-left type, scale contrast and "designing programmes"; modern identity systems in motion (Experimental Jetset, Pentagram) for snaps on the beat. Never copy a specific historical poster's composition (no concentric-circle or fan layouts lifted from Müller-Brockmann), never use Helvetica or Akzidenz font files, never name a real institution on a poster.-You are directing a 30–60 second film in the **Swiss Motion Graphics** style. The user gives you a topic. You decide everything else (story, layout system, timing, score, sound) and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not++- **Pure 2D graphic design animated on a grid**: flat paper, black type and bars, a very light grey and **one** saturated signal colour.+- **Every element snaps to the grid, every move lands on a beat, nothing bounces.**+- **Rigor with one exception**: the whole frame obeys a system, so the one element that doesn't becomes a character.+- **Extreme scale contrast**: a giant numeral next to tiny technical notes.++Not a keynote (no gradients, no glow, no device renders), not kinetic typography for a lyric video (words don't fly, spin or bounce), not data visualisation (bars have mass as graphic form, not as charted quantities, unless the grid gives them that meaning), not a Bauhaus pastiche of primary shapes.++## 2. Materials & rendering++- **Frame grid**: 1920×1080, 12 columns, ~96 px side margins, 24 px gutters, 24 px baseline. The frame can act as a **spread**: a left page (the programme: numeral, rule text, notes) and a right page (the artifact).+- **Artifact grid** derived from the content (Gerstner): what the columns and rows *mean* is a design decision. **Choose module sizes that give the elements mass**; too many thin columns make a layout look like a chart.+- **Surfaces**: page, paper, ink, signal colour, grid lines in two or three light greys (on page, while building, on paper). No gradients, no shadows, no particles, no grain (mux grain 0).+- **Bars and blocks** are flat rects; consecutive cells of one unit merge into one bar, overdrawn 1 px at seams (antialiasing shows hairlines, especially when rotated or scaled).+- **A secondary voice** can be light-grey elements under the black ones: depth without a second colour.+- **A 2D camera matrix** (centre, scale, rotation) for all moves.++## 3. Colour logic++- **Paper, ink, greys, and one signal colour.** Only one thing carries the signal colour; that makes it the protagonist. It is the only thing allowed to be inexact.+- Overprint is allowed: black type on the signal colour.+- The signal colour can be red, orange, ultramarine or green; choose it for the topic, then never add a second.+- Examples: `#EAE9E5` page, `#FFFFFF` paper, `#111111` ink, signal `#E30613`; or `#F2F0EA` / `#141414` / signal `#FF5A00`; or `#E9ECEF` / `#0B0B0B` / signal `#1F3FFF`.++## 4. Type & subtitles++- **One family for the whole film**, an OFL neo-grotesque (Archivo, Inter, Schibsted Grotesk, Instrument Sans…), several weights. Letter-spacing ~−2 % at ≥ 90 px. Headlines can be lowercase. Load every weight with `document.fonts.load` before drawing.+- **Flush left, ragged right**; everything on a grid line; big white space is part of the layout. Giant numerals are **optically** flush left (subtract the glyph's left bearing).+- **Subtitles are part of the layout**, not a bar at the bottom: each line sits at a column start in the current composition (a small grey lead-in + a large bold statement, or a caption like a museum label), each word clip-revealed on its whisper timestamp. Hold ≥ max(1.8 s, speech + 0.6 s); assert it in code.+- **Caption rows**: small (~19 px) medium-weight notes with a 1 px rule above; technical notes in a corner (module sizes, counts, a bar counter).++## 5. Motion quality++- **Two curves only**: a precise ease `cubic-bezier(.7,0,.2,1)` for snaps; linear for lines being drawn, playheads and the exception. No overshoot, no spring, no bounce.+- **Durations are note values** at the film's tempo. A snap starts one note value early and **lands on the beat**.+- **Entrances are wipes or clip-reveals, never fades**: words rise out of a clip rect from below the baseline and leave upward; lines grow along their length; paper appears by a wipe; big numerals climb in eased steps ("one module at a time").+- **Deletions are knife cuts**: a thin line crosses the element, then the element collapses to its midline.+- **Ripples are ordered by distance** from their cause, a couple of units per subdivision.+- **The exception moves differently**: linear, unsnapped, perhaps pausing mid-flight; a coordinate readout beside it can turn from "on grid" to "off grid".+- Smooth 24 fps, no stepping: digital precision, not hand-made.++## 6. Camera grammar++A vocabulary, not a route. The camera moves only with the precise ease and only on beats. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Locked spread | cause (left) → effect (right) | a rule applied; a before/after; a comparison |+| Hard pan by one page or column | the next step in a system | a sequence; a catalogue; a timeline |+| Rotate 90° and stop | the same thing read another way | a poster as a score; a chart as a map |+| Pull out to a wall of artifacts | one programme, many outputs | a brand system; a product range; a series |+| Push into one module | detail; the unit of the system | a pixel; a letter; a single data point |+| Grid extends past the page | the system is bigger than the artifact | scale; ambition; a break from constraints |+| Split frame into equal cells | parallel cases | options; variants; team members |+| Vertical scroll through a column | reading; a list | a manifesto; a spec sheet; a timetable |++Framing: everything on the grid; the signal element may sit off-grid only when it is being the exception. Transitions are wipes, knife cuts, camera moves and re-flows; never dissolves.++## 7. Sound palette++- **Music with a grid of its own**: a steady pulse whose subdivisions give snap durations. Options: motorik / krautrock kit and bass, minimal techno, marimba or vibraphone patterns, a mechanical piano ostinato, a drum machine with a glockenspiel; one instrument added per new rule is a clear build.+- **Picture and music can share one data file** (a column → pitch, a row → onset), so a graphic can literally be the score.+- **Techniques (options)**: drop the drums for the one moment of the exception; a near-silent bar before a reveal; thin the band during a reveal so every note is audible.+- **Foley follows the materials of print**, dry and close, no reverb: letterpress clack, ruling pen "tss", guillotine snick, paper slap and slide, numeral thunk, block snap, felt thump for a landing, rubber stamp, typewriter carriage.+- **The exception can be the only element that sings** (a sine glide following its position).+- **Silence**: a hard stop of everything on a downbeat; the next snap reads as an event.+- **Mix**: voice compressed and ≥ 6 dB above music, music ducked ~10 dB under voice, −14 LUFS.+- **Voice**: cool, crisp, rule-like sentences; prefer voices with bright consonants.++## 8. Native moves++A menu: use the ones your story needs.++- **The grid means something.** Columns and rows become a quantity (notes, hours, floors, years). *Fits content like:* a building's floors and rooms; a week's timetable; a city's districts.+- **Snap = beat.** Every arrival is a percussion hit. *Fits content like:* a product's feature list; the steps of a recipe; a countdown.+- **Programme.** Rules applied one by one to one artifact, then the same programme generating many. *Fits content like:* a brand identity; a typeface family; a set of stamps.+- **Extreme scale contrast.** A giant element as chapter card beside tiny notes. *Fits content like:* a record statistic; a year; a price.+- **The exception.** One element breaks the grid, linear and unsnapped. *Fits content like:* an inventor; an outlier in the data; a rebel employee.+- **Knife cut.** An element deleted by a line. *Fits content like:* budget cuts; editing a text; removing a feature.+- **Re-flow.** Everything else rearranges around a change, nearest first. *Fits content like:* a team reorganised; traffic after a road closes; a layout adapting to a phone.++## 9. Pitfalls of the medium++- Too many thin columns look like a chart → fewer, wider modules.+- A "better" composition that isn't obviously better → one strong diagonal with long/short rhythm, a larger signal element, bleeds, type over colour. Merely tilting is not enough.+- Rotating and labelling at once reads as noise → rotate, hold, then add labels.+- Merged bars show seams after rotation → overdraw 1 px.+- Elements that share the camera matrix leak into other shots → draw them only when on screen.+- Canvas `letterSpacing` affects `measureText` → measure after setting the font.+- Onsets that fall between frames flicker → put visual onsets on whole frames.+- Whisper splits or merges words and pads the first word → align by letters, clamp to 0.++## 10. Engine++In `demo/`: `ease.js` (`cubic-bezier(.7,0,.2,1)`, `snap(t, t_arrive, dur)`, `steps()`, `track()`), `film.js` (layout system, clip-reveal text, knife cuts, bars from a score, rotation reveal, wall of artifacts, caption rows), `main.js` (fonts, whisper word times, `?nosub=1`, `?poster=1`), `score.json` (the shared data file for picture and music), `tools/words.py` and `tools/subs.py` (word timings, asserted subtitle intervals). File list and build steps: [DEMO.md](DEMO.md) "Build notes".++## 11. Variation space++You decide the system, what the grid means, the exception (or none), the signal colour, the opening and the ending. All far from our demo:++- Structures: **a timetable** (a 24-row grid of hours fills with the topic's day, one row per beat); **an alphabet** (A to Z, each letter a module of the topic, the grid completing as a specimen sheet); **a comparison** (two systems side by side on a split spread until one element crosses the gutter).+- Openings: **a single dot** placed on the page, then the grid growing from it; **the finished artifact** that is then dismantled into its rules; **a giant numeral** filling the frame, which turns out to be a detail of a small layout.+- Endings: **the empty grid** after every element has been cut away; **a single word** flush left in the corner; **the exception leaves the frame** and the system closes over the space it left.----## 1. What this style is--Pure 2D graphic design animated on a grid: flat white paper, black type and bars, a very light grey and **one** saturated red. It is the language of 1950s–70s Zurich concert posters (Müller-Brockmann, Hofmann, Gerstner, Crouwel) turned into motion the way modern identity systems move (Experimental Jetset, Pentagram): **every element snaps to the grid, every move lands on a beat, nothing bounces**.--The charm is **rigor with one exception**. The whole frame obeys a system, so the one element that doesn't obey it becomes a character.--Never copy a specific historical poster's composition (no concentric-circle or fan compositions lifted from Müller-Brockmann). Don't use Helvetica or Akzidenz font files. Pick an OFL neo-grotesque (Archivo, Inter, Schibsted Grotesk, Instrument Sans…). Never name a real institution on a poster.--## 2. Story: what fits this style--Pick stories where **the system itself tells the story**. Swiss design has five native powers. Use at least three, and put the strongest one at the emotional peak:--| Native power | Story use |-|---|---|-| **The modular grid** | The grid is the stage and the rulebook. Show it being built (lines draw on the beat), show it briefly in section gaps, and at the peak **make the grid mean something**: in the demo, 7 columns = the 7 notes of A dorian and 16 rows = 16 eighth notes, so the poster *is* the score. |-| **Snap = beat** | Every element's arrival is a percussion hit: type clack, knife, ruling pen. Picture and music share one coordinate system, not a sync pass after the fact. |-| **Rules generate design (programme)** | The plot is a set of rules applied one by one to one artifact. End by showing the same programme generating many artifacts (the Gerstner reveal). |-| **Extreme scale contrast** | A 700 px numeral next to 19 px technical notes. The giant element is the chapter card, the tiny one is texture. |-| **One signal colour** | Only one thing is red, so red = the protagonist. When it breaks a rule it is the only thing on screen that is not exact. |--**Adapting any topic:** turn it into **a system plus one exception**. A product launch: the product's spec sheet assembles on a grid, then one feature breaks out of it. A company's history: each decade is a rule added to one poster. A love story: two red elements on two different grids, and the film ends when one of them leaves its grid.--**Emotional arc (30–60s):** order being built (curious, crisp) → order complete (correct and a bit dull, *say it*) → hesitation (the red element twitches and snaps back) → the break (the only non-snapped, linear move in the film; drums drop out) → everything else re-flows around it, better (full band back) → the reveal (the grid means something) → scale reveal (same system, many outputs) → back to the hero artifact on the end card.--## 3. Visual language--- **Frame grid**: 1920×1080, 12 columns, 96 px side margins, 24 px gutters (122 px columns), 24 px baseline. Treat the frame as a **spread**: left page (cols 1–6) = the "programme" (numeral, rule text, notes); right page (cols 8–12) = the artifact (poster 706×1008, ratio 0.70 ≈ Swiss world format).-- **Artifact grid**: derive it from the content (Gerstner). In the demo the poster has 7 columns × 91 px and 16 rows × 40 px, with a 26 px baseline grid in the text zone. I first tried 12 semitone columns: bars were only 43 px wide and the poster looked like a data chart. **Choose module sizes that give the bars mass.**-- **Palette**: page `#EAE9E5`, paper `#FFFFFF`, ink `#111111`, signal red `#E30613`, grid lines `#CFCEC9` on the page / `#C9C8C2` while building / `#E2E1DC` on paper, secondary bars `#CFCEC9`. No gradients, no shadows, no particles, no grain (mux grain 0).-- **Type**: one family for the whole film (demo: **Archivo** variable, weights 400–800). Letter-spacing −2.2% at ≥ 90 px. Lowercase headlines (`neue musik`). Rule numerals at ~980 px (700 px figure height), bottom-aligned with the poster's bottom edge, **optically** flush left (subtract the glyph's left bearing). Notes 19 px Medium. Always `document.fonts.load` every weight before drawing.-- **Composition**: flush left, ragged right. Everything on a grid line. Big white spaces are part of the layout. The final composition must be **visibly bolder** than the "correct" one:- - one main diagonal with a strong long-short rhythm;- - the red element at ~2× scale;- - elements **bleeding** off the paper edge;- - type overprinting the red circle (black on red).- Merely tilting the correct layout is not enough.-- **Bars as notes**: bar width = column minus 8 px; consecutive cells of one note merge into one bar (overdraw 1 px at the seams or antialiasing shows hairlines, especially when rotated).-- **The secondary voice** (bass) is light-grey bars under the black ones. They read as a shadow diagonal and give depth without a second colour.--## 4. Motion language--- **Two curves only.** Precise ease `cubic-bezier(.7,0,.2,1)` for snaps, linear for lines being drawn, the playhead and the rule-breaker. No overshoot, no spring, no bounce.-- **Durations are note values** at the film's BPM (120: 1/8 = 0.25 s, 1/16 = 0.125 s). A snap starts one note value early and **lands on the beat**.-- **Entrances are wipes or clip-reveals, never fades.** Words rise out of a clip rect from below the baseline (1/16 note) and leave upward (1/8 note). Lines grow along their length. Paper appears by a vertical wipe. Big numerals climb in **4 eased steps** ("one module at a time").-- **Deletions are knife cuts.** A 2 px line crosses the element in 1/16, then the element collapses vertically to its midline in 1/8.-- **Ripples are ordered by distance** from the cause. After the red circle lands, units re-flow two at a time on sixteenths, nearest first.-- **The exception moves differently.** It is linear, not snapped, and pauses for one eighth mid-flight (a glance back). It grows as it travels. A coordinate readout next to it turns from `col 5.00 row 0.00 · on grid` to red `off grid` with non-integer (even negative) values.-- Everything renders at a smooth 24 fps. There's no stepping: this style is digital precision, not hand-made.--## 5. Camera language--The "camera" is a 2D matrix (centre, scale, rotation). It moves only with the precise ease and only on beats.--| Beat | Camera |-|---|---|-| Opening | Locked full frame. One gesture: a red line strikes across and the grid columns grow out of it on sixteenths |-| Building (rules) | Locked spread, so the viewer reads cause (rule, left) → effect (artifact, right) |-| The break | Left page slides out, artifact moves to centre-left, grid lines extend across the whole frame (the grid is bigger than the page) |-| Reveal | **Rotate the artifact 90° in 1.5 beats and stop.** Only then do labels (note names, bar numbers) wipe in, then the playhead sweeps two bars. Each bar turns red on the exact frame of its onset: put onsets on whole frames (multiples of 0.25 s at 24 fps) |-| Scale reveal | Rotate back while pulling out to a wall of artifacts from the same system |-| Ending | The red line strikes again and cuts the other artifacts away. Push back to the opening spread, end card on the left page, hero artifact on the right |--## 6. Sound--- **Music**: Motorik / krautrock, 120 BPM, A dorian (not a generic piano-and-strings bed). Layer one instrument per rule:- 1. hats only;- 2. + full motorik kit (`drum_kit`: kick 1, 3, 3&; snare 2, 4; closed hat eighths);- 3. + `electric_bass` eighth-note root pulse;- 4. + numpy saw arpeggio sixteenths with an opening filter;- 5. + `glockenspiel` doubled by a soft numpy square lead.-- **Drop the drums for the one bar of the break**, return on the landing. Before the reveal add one bar of near-silence (bass pedal + quarter-note tick). During the reveal keep only kick + bass + melody so every note is audible.-- **The melody comes from the same JSON as the picture** (`score.json`: column → pitch, row → onset, length → duration). "The poster is the score" is true in code, not faked.-- **Foley follows materials**, dry and close, no reverb:- - letterpress clack (metal transient + 3.3 / 5.1 kHz resonances + wooden tray);- - ruling pen "tss";- - guillotine (band-pass sweep + metal snick);- - paper slap / slide;- - numeral "thunk" per step;- - block snap;- - circle landing (58 Hz felt thump).-- The rule-breaker is the only element that *sings*: a sine glide that follows its position.-- **Voice**: cool, crisp female narrator, Kokoro `af_sarah` at speed 1.0. It had ~7× the 3–8 kHz consonant energy of `af_kore`. Keep lines rule-like: "Rule one. Build a grid." Check every line with whisper (write numbers as `"asr": "Rule 1, …"`).-- **Mix**: voice compressed, music ducked ~−10 dB under voice (voice ≥ 6 dB above music), −14 LUFS.--## 7. Subtitles & titles--- **Subtitles are part of the layout**, not a bar at the bottom. Each line sits at column 1 on the spread's left page: the first sentence as a 30 px Medium grey lead-in, the rest as a 76 px Bold statement. Each word clip-reveals on its whisper timestamp. Non-rule lines use Regular weight ("Perfect. And a little dull."). In other shots the line sits at column 1 of that shot, at the artifact's headline baseline or under the wall like a museum label.-- **Title card**: `Five Rules / for a Poster`, 120 px Bold, two lines flush left, sitting on the opening red line. A 19 px caption row with a 1 px rule above it (`A programme in five steps · 1961 · ♩ = 120`).-- **Caption row + notes**: top of the left page (title / `Rule 0n / 05` / keyword); bottom of column 5: 2–3 technical notes per rule (`Columns 7 · Rows 16 · Module 91 × 40`). Bottom of column 7: a bar counter `bar 04.3`.-- **End card**: the opening spread again. `Swiss Motion / Graphics` 120 px, red line under it, `LemoLab × Claude Opus 5.5` 36 px, notes at the bottom, hero poster on the right.--## 8. Pitfalls we hit--- **12 columns looked like a chart.** Grid modules must give the graphic elements mass. We used fewer, wider columns for the artifact and kept the standard 12 columns for the frame.-- **The "better" composition wasn't obviously better.** Four small staircases → one scattered layout wasn't convincing. Fix: one main diagonal with long/short rhythm, 2× red element, bleeds, type over red.-- **Rotation reveal needs a stop.** Rotating and labelling at the same time read as noise. Order it: rotate (1.5 beats) → hold → grid lines → labels → playhead → sweep.-- **Merged bars showed seams** after rotation and scaling (antialiasing between adjacent rects). Overdraw 1 px where cells join.-- **Labels overlapping the header**: hide the caption row before the rotated shot.-- **Word timings**: whisper splits or merges words ("type face"), and `asr_check` reports the first word at −0.6 s (padding). Align by letters and clamp to 0 (`tools/words.py`).-- **Subtitle rule** (≥ voice + 0.6 s and ≥ 1.8 s): two lines missed by 2 ms. `tools/subs.py` asserts it, so fix by nudging start times.-- **The wall cut must follow the line**: shrink the wall board from the side the red line enters, in screen space.-- The other posters on the wall share the camera matrix, so draw them **only** during the wall shot. Otherwise they leak into other shots at ±786 px.-- Canvas `letterSpacing` also affects `measureText`, so compute widths after setting the font.--## 9. Production recipe (this repo)--```-styles/swiss-motion/demo/- score.json grid = score: stiff / final melody, bass, circle, bleeds, timeline- ease.js cubic-bezier(.7,0,.2,1), snap(t, t_arrive, dur), steps(), track()- film.js layout system, rules, poster, circle, reveal, wall, end card, foley events- main.js loads fonts, score, lines, whisper word times; ?nosub=1, ?poster=1- lines.json voice script (af_sarah) tools/words.py word timings → subtitle reveal- music/score.py motorik score from score.json mix.py foley + ducked voice + music- tools/subs.py subtitle intervals (asserted) → srt build.sh one-shot rebuild-```--1. Design the layout system first: frame grid, artifact grid, what columns and rows *mean*. Write `score.json`.-2. `node core/render/still.mjs styles/swiss-motion/demo --range 0.5:43.5:1 --out …` then `sheet.py`. Review a 1 s overview plus dense 0.25 s strips around the break and each transition.-3. `tts.py` → `asr_check.py` (0 mismatches) → `tools/words.py`.-4. `music/score.py` (onsets from `score.json`; check sweep onsets ≤ 5 ms) → `events.mjs` → `mix.py` (prints voice/music/foley dB per line).-5. `video.mjs --workers 3` (1056 frames in ~12 s) → `mux.sh … 24 0`. Or simply `sh styles/swiss-motion/demo/build.sh` (~55 s from zero).+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/swiss-motion/TREATMENT.md b/styles/swiss-motion/TREATMENT.mddeleted file mode 100644index cae0bd3..0000000--- a/styles/swiss-motion/TREATMENT.md+++ /dev/null@@ -1,146 +0,0 @@-# Swiss Motion Graphics · 导演方案(Treatment)--**片名** *Five Rules for a Poster*-**时长** 44.0 秒(22 小节 × 2 秒,120 BPM,4/4;关卡 1 时是 42 s,见下方修改)| **画幅** 1920×1080 | **帧率** 24fps,全部逐帧平滑(瑞士动态图形是"印刷机一样准"的数字运动,不做步进)-**一句话** 一张虚构的 1961 年新音乐音乐会海报,按瑞士设计的五条规则一条条把自己排出来——网格、一种字体、留白、对齐——结果正确但呆板;第五条规则"只打破一条",那枚红色圆犹豫一拍后斜着离开网格,其余元素被它带动重新排版,海报活了;网格旋转 90°,我们发现海报上的条块和圆正是刚才那段配乐的乐谱。-**主题** 规则给你秩序,打破其中一条给你生命。"Same five rules. A different song every time."--> **关卡 1 后的修改(协调者意见,已全部落实;下文分镜表保留原方案,以本段为准)**-> 1. **揭示放慢**:旋转 1.5 拍(29.25–30.0),转完先停住;30.0–30.5 网格线画出,30.5–31.0 音名与小节号才出现(不与旋转同时);31.75 播放线竖直画出,**32.0–36.0 从头扫一遍两小节**。条块变红的那一帧 = 该音起音(起音都落在 0.25 s 的整数倍 = 24fps 的整帧;配乐起音误差 ≤ 3.3 ms)。为此在 30–32 加了一小节"停住"(音乐只剩低音 A 长音 + 四分音符节拍器),全片 42 → 44 s。-> 2. **最终海报更大胆**:红圆从 2 列直径长到 **4 列直径(364 px,≈2 倍)**,它在出走途中一边飞一边长大;落点**出血到海报左边外**,被两行 150 px 的标题压住(黑字压红圆);第一根条块**出血到上边**、最后一根**出血到右边**;对角线改成一根主线加明显的长短节奏:长—短—短—长—短—短—长(A 二分音符、B C 八分、D 二分、E F# 八分、G 二分),灰色低音在它下方形成一条错位的"影子对角线"。-> 3. **规则五**:海报居中偏左(中心 x = 860),坐标读数贴在海报右侧 x = 1290,26 px。-> 4. **海报墙**:5 张海报一排(缩放 0.42),我们这张在中间;其余 4 张用同一套系统(同网格、同字族、对角线条块、灰色影子、右上信息块),但各打破一条不同的规则,**叛逆元素一律是红色**:`Klang` = 红色哥特体标题(规则 2)、`takt` = 一块红色填满了留白(规则 3)、`stille` = 红色标题不齐左而齐右(规则 4)、`Puls!` = 五条全破(一个眨眼:这就是为什么"只打破一条")。每张下方有展签(我们这张用红字 `breaks rule 1 · grid`)。39.0 红线从左到右划过,把其它海报像规则三那样"裁"扁、墙板被裁掉,只剩我们这张;40.0 机位回到开场的对开页,红线落到片名线,**片尾卡停在我们这张海报上**。-> 5. 旁白时间:l4b 20.1、l5 22.15、l6 36.5(原 20.3 / 22.3 / 34.6),保证每句字幕 ≥ 语音 + 0.6 s。声线最终选 **af_sarah(speed 1.0)**:3–8 kHz 辅音能量是 af_kore 的约 7 倍、起音更尖,咬字更利落。-------## 一、对标:学什么 / 刻意不学什么--| 对标 | 学什么 | 刻意不学 |-|---|---|---|-| **Josef Müller-Brockmann 苏黎世音乐厅海报(1950–70)** | 用几何形体的节奏表现音乐:条块的长短 = 时值,间距 = 休止;整张海报从一个模块网格推导出来;小号无衬线信息文字全部齐左、贴在网格上;大面积留白是构图的一部分 | 不复刻任何一张具体海报的构图(不做他著名的同心圆 / 斜向扇形);不用 Akzidenz / Helvetica;不出现任何真实音乐厅、乐团、节日名 |-| **Armin Hofmann** | 黑白绝对对比,一个彩色(信号红)只给一个元素,颜色 = 戏份 | 不学他的手绘/摄影拼贴 |-| **Karl Gerstner《Designing Programmes》** | "设计的是规则,不是结果":片子本身就是一个程序——五条规则依次作用在同一张海报上;结尾同一套程序生成一整面墙的不同海报 | 不照抄他书里的图表与示例 |-| **Wim Crouwel** | 网格可见;网格本身是审美对象(网格线在段落间隙短暂显形) | 不用他的网格字体 |-| **Experimental Jetset / Pentagram 动态品牌系统** | 元素严格吸附网格;运动曲线克制(快进快出的精确缓动,没有弹跳);动作时值 = 音符时值 | 不借用任何品牌资产 |-------## 二、为什么这个媒介讲这个故事(原生能力 → 故事用法)--| 瑞士动态图形的原生能力 | 故事里怎么用 |-|---|---|-| **模块网格** | 网格就是乐谱:海报的 **7 列 = A 多利亚调式的 7 个音**(从左到右 A B C D E F# G),**16 行 = 两小节的八分音符**(从上到下读)。每个元素吸附到网格的那一刻就是一个音 |-| **吸附 = 节拍** | 所有动作在前一个八分音符起步、落在拍点上;落位本身就是打击乐(排字"咔哒"、裁纸刀、踩镲)。画面卡音乐不是后期对齐,而是同一套坐标 |-| **规则生成设计(程序)** | 五条规则 = 五个段落,同一张海报被程序一步步改写;结尾拉远,同一套规则生成了一整面墙的不同海报,每张"打破"的都是不同的一条 |-| **极端字号对比** | 每条规则的巨大数字(约 700 px 高)是段落主角,旁边 20 px 的注释文字是它的对比;字幕 = 版面里的一行排版 |-| **一个信号色** | 全片只有一个红色元素(红圆)= 唯一的"角色";它离开网格就是全片唯一的一次"违规" |-| **网格旋转 90°(高潮,原生招式)** | 海报逆时针转 90°:纵向的时间轴变成横向,一根红色播放线从左扫到右,每经过一个条块它就发声变红——观众刚听到的旋律正是这张海报。"听到的就是看到的" |--**情绪弧**:秩序被建立(好奇、清爽)→ 秩序完成(正确,但呆板:"Perfect. And a little dull.")→ 犹豫(红圆抖一下又缩回)→ 出走(全片唯一一次非吸附的线性运动,鼓全部撤掉)→ 带动(其余元素在拍点上重新排版,全乐队回来,旋律出现切分)→ 揭示(网格旋转,海报就是乐谱)→ 回响(尺度揭示:一整面墙,同一套规则的不同歌)。-一个主体(红圆)、一个目标(让海报"活"起来)、一次转折(第五条规则:打破一条)。--**红圆的性格**:它是全片唯一被允许"不准"的东西。犹豫 = 23.5 s 向右挪 1/4 列又咔地缩回;出走中途在 25.25 s 停一个八分音符(像回头看一眼);它移动时发出一条滑音(全片第一个不在音阶上的音)。-------## 三、画面系统(版式参数)--- **画面网格**:1920×1080,12 列,左右边距 96 px,栏间距 24 px(列宽 122 px),基线 24 px。整部片的"对开页":- - **左页(1–6 列)= 规则页**:顶部一条 1 px 黑色细线 + 一行 20 px 注释(片名 / Rule n of 5 / 规则关键词,三栏表格式齐左);中上部是**字幕行**("Rule one." 28 px Medium + "Build a grid." 76 px Bold,逐词在发声时刻吸附出现);底部是**巨大数字**(约 980 px 字号,贴底齐左,底边与海报底边同一条线)。- - **右页(8–12 列)= 海报**:706×1008 px(0.70 比例,接近瑞士世界格式 895×1280 mm),上下边距 36 px。-- **海报网格**:边距 35 px,7 列(每列 91 px)= 7 个调式音;上部 16 行 × 40 px = 两小节八分音符的"乐谱区",下部是文字区(26 px 基线网格)。音符条宽 83 px(列内各缩 4 px),相邻的八分音符格合并成一根长条。-- **规则页注释**:每条规则在第 5 列底部配一组 19 px 的技术注释("Columns 7 / Rows 16 / Module 91 × 40"、"Axis flush left / Every edge on a line"……),和巨大数字形成 700 px 对 19 px 的字号对比;第 7 列底部是小节计数器 `bar 04.3`(节拍器读数也是版面元素)。-- **呆板版 vs 最终版**:呆板版 = 4 组一模一样的小阶梯(A B C D 反复)+ 一条通长灰色低音 + 右上角格子里的红圆,文字全部齐左堆在底部;最终版 = 一条从左上贯穿到右下、长短不一的大对角线(一句完整的上行旋律)+ 三段灰色低音像它的影子 + 演出信息移到右上空白处 + 标题拆成两行压在底部 + 红圆落在左下空白三角里、离标题只差一线(唯一不在网格上的元素)。-- **色板**:纸页浅灰 `#EAE9E5`,海报白 `#FFFFFF`,墨黑 `#111111`,信号红 `#E30613`,网格线浅灰 `#CFCEC9`(海报内 `#E2E1DC`),低音声部浅灰条 `#C9C8C3`。没有渐变、没有阴影、没有粒子,grain = 0。-- **字体**:全片只用一个字族 **Archivo**(OFL,可变字重 100–900 / 字宽 62–125;≥90 px 时字距 −2.2%)。第二条规则演示"一种字体"时,会先短暂出现两种"错误"字体(OFL 衬线 + 哥特体),在一个拍点上全部换成 Archivo。-- **海报内容(虚构)**:大标题 `neue musik`(Archivo 800,小写),`konzert 1961`,`freitag 17. märz · 20.15 uhr`,`kleiner saal`,`werke von e. marti · l. brunner · k. weiss`(虚构人名)。不出现任何真实机构。-- **缓动**:只有两种——精确缓动 `cubic-bezier(.7,0,.2,1)`(元素吸附)和线性(线条划出、播放线、红圆出走)。时值只用音符时值:1/8 = 0.25 s,1/16 = 0.125 s。无弹跳、无过冲。-------## 四、分镜节拍表(120 BPM:1 小节 = 2 s,拍 = 0.5 s)--| # | 时间 | 小节 | 镜头 / 机位意图 | 画面 |-|---|---|---|---|---|-| 1 | 0.0–2.0 | 1 | **固定全画幅(对开页)**。开场 3 秒抓人:一个动作 = 一条红线 | 空白浅灰页。0.0–0.5 一条 3 px 红线从左到右线性划过(裁纸刀声);0.5–2.0 十二列网格在十六分音符上逐列落下(每列一声踩镲) |-| 2 | 2.0–4.0 | 2 | 同上 | 片名 `Five Rules / for a Poster` 76 px Bold 逐词在拍点上吸附到红线下的基线(排字咔哒);3.5 右页海报纸张以一个八分音符"啪"地铺上 |-| 3 | 4.0–8.0 | 3–4 | **规则一:网格**。对开页固定机位,让观众看清"规则 → 结果"的因果 | 4.0 巨大数字 `1` 从底部分四级台阶升起落位;开场的 12 列画面网格保留到 8.0(规则一 = 到处都是网格);海报上 7 列 + 16 行乐谱网格在八分/十六分音符上画出,随后文字区基线网格;旁白 1(4.4) |-| 4 | 8.0–12.0 | 5–6 | **规则二:一种字体** | 8.0–9.5 海报文字在八分音符上落下,但用了三种字体(衬线、哥特、Archivo),居中、挤满;**10.0 一个拍点上全部换成 Archivo**(一声重咔哒);旁白 2(8.4) |-| 5 | 12.0–16.0 | 7–8 | **规则三:留白** | 12.5/13.0/13.5 裁纸刀三刀删掉三行多余文字("!! nicht verpassen !!" 之类);14.0 剩下的文字块压缩、落到下部文字区,**上部三分之二变成空白**;旁白 3(12.4) |-| 6 | 16.0–22.0 | 9–11 | **规则四:对齐**(全片最"满"也最呆板的时刻) | 16.0 所有居中文字一起滑到第 1 列齐左,灰色低音条向下画出;18.0–19.875 十六个黑色块在十六分音符上逐个落进乐谱区——每落一块钟琴响一个音(一串上行音阶,排成 4 组规整小阶梯);20.0 红圆沿自己的列从海报上方落进右上角的格子(重拍 + 镲),网格线收起;20–22 全静止、全乐队呆板循环,旁白 4b "Perfect. And a little dull." |-| 7 | 22.0–24.0 | 12 | **规则五**,对开页 | `5` 落位;旁白 5(22.3)"Rule five. Break one rule.";**23.5 红圆向右挪 1/4 列又咔地缩回**(犹豫) |-| 8 | 24.0–26.0 | 13 | **推镜**:24.0 左页滑出,海报居中放大到 1.05×,网格线延伸出海报、铺满画面(网格显形)。机位意图:把舞台让给红圆 | **鼓全部撤掉**。24.5 红圆以 45° 斜着向左下方**线性**离开网格(不吸附),身后留下 1 px 红色空格圈和轨迹线;右侧 26 px 读数显示它的网格坐标从整数变成小数 `col 5.00 → 0.55 / row 0.00 → 13.50`,状态从 on grid 变成红色 off grid;25.0 停一个八分音符(回头看一眼);旁白 5b "Only one."(24.6);26.0 落在左下空白里、离标题只差一线 |-| 9 | 26.0–29.5 | 14–15 | 居中固定 | **26.0 全乐队回来**。其余元素像被红圆带动,按离红圆落点由近到远的顺序,两两一组在十六分音符上跳到新位置(26.125–27.0):16 个小块合并成一条贯穿全幅的长短对角线,灰色低音裂成三段;27.125 起文字块重排——演出信息跳到右上空白、标题 `musik` 落到第二行(仍然全部在网格上)。27.5 网格线收起,28–29.5 定格完成品 |-| 10 | 29.5–34.0 | 15–17 | **原生招式:网格旋转 90°**(全片最记得住的镜头)。29.5–30.0 整页(海报 + 延伸的网格线)逆时针转 90° 并放大到充满画高 | 时间轴变成横向,对角线变成一条上行的旋律线:左边出现 7 个音名标签(A…G),顶部出现小节号 1、2;**30.0–34.0 红色播放线从左到右线性扫过**,经过的条块在发声时变红,红圆在它那个切分的位置"咚"地一声。配乐此时只剩底鼓 + 贝斯 + 旋律,和 26–30 秒听到的是同一句 |-| 11 | 34.0–38.0 | 18–19 | **尺度揭示**:34.0–35.0 转回竖向,同时一路拉远 | 这张海报原来贴在街头一面海报墙上(仍然纯平面:浅灰墙、黑色地线、一根海报柱);旁边是同一套规则生成的其它海报(Konzert 2–7),每张打破的都是另一条规则(一根斜掉的条、一个掉下来的字母、一个黑色圆……);旁白 6(34.6)"Same five rules. A different song every time." |-| 12 | 38.0–42.0 | 20–21 | **片尾卡**:首尾呼应 | 38.0 红线再次划过(同开场),海报墙被它"裁"掉;`Swiss Motion Graphics` 76 px Bold + `LemoLab × Claude Opus 5.5` + 片名小字,全部齐左在网格上;40.0 红圆最后一次落下,停在网格外半格(它的签名),最后一个低音 A 延音到结束 |--**旁白(Kokoro 清晰冷静的女声,af_kore 与 af_sarah 试音后选咬字利落的一个;speed ≈ 0.95)**--| # | 时间 | 文本 | 字幕位置 |-|---|---|---|---|-| 1 | 4.4 | Rule one. Build a grid. | 左页字幕行 |-| 2 | 8.4 | Rule two. Use one typeface. | 左页字幕行 |-| 3 | 12.4 | Rule three. Leave space. | 左页字幕行 |-| 4 | 16.4 | Rule four. Align everything. | 左页字幕行 |-| 4b | 20.3 | Perfect. And a little dull. | 左页字幕行(换成 Regular 字重,语气降一级) |-| 5 | 22.3 | Rule five. Break one rule. | 左页字幕行 |-| 5b | 24.6 | Only one. | 居中镜头的左侧第 1 列,与海报标题同一基线 |-| 6 | 34.6 | Same five rules. A different song every time. | 海报墙下方第 1 列,像一条展签 |--每句字幕停留 ≥ 语音 + 0.6 s 且 ≥ 1.8 s;片名(2.0–4.0)与第一句字幕错开;旋转揭示段(29.5–34)不放旁白、不放字幕,让音乐说话。-------## 五、Cue map(音乐先行;Motorik / 克劳特摇滚,120 BPM,A 多利亚)--**"音乐也按规则叠层"**:每条规则多一件乐器;第五条抽掉鼓一小节;揭示段只留"海报上写着的"声部。--| 小节 | 时间 | 画面 | 配器 | 情绪 | 卡点 |-|---|---|---|---|---|---|-| 1 | 0–2 | 红线 + 网格 | 无音乐。裁纸刀"嚓" + 12 声十六分音符踩镲(每落一列) | 安静、精确 | 0.0 红线;0.5–1.875 每 0.125 s 一列 |-| 2 | 2–4 | 片名 | 踩镲八分音符 + 2.0 单个底鼓;排字咔哒 | 期待 | 2.0/2.5/3.0/3.5 每词一次;3.5 纸张铺上 |-| 3–4 | 4–8 | 规则一 | **+ 完整 motorik 鼓**(`drum_kit`:底鼓 1、3、3&,军鼓 2、4,踩镲八分) | 启动、直线推进 | 4.0 数字 1 落位 = 第一个完整小节 |-| 5–6 | 8–12 | 规则二 | **+ 电贝斯八分音符**(`electric_bass`,A 踏板音,小节尾八度跳) | 前进 | 10.0 换字体 = 重拍 + 镲 |-| 7–8 | 12–16 | 规则三 | **+ 模拟琶音**(numpy 锯齿/方波十六分音符,低通滤波逐渐打开) | 加速、清理 | 12.5/13.0/13.5 三刀;14.0 纸张滑动 |-| 9–11 | 16–22 | 规则四 | **+ 旋律:钟琴(`glockenspiel`)叠方波主音**,呆板的上行琶音,每个音 = 一个条块落位 | 满、正确、机械 | 16.5–20.0 每 0.25 s 一块;20.0 红圆 = 重拍 + 镲;20–22 全乐队呆板循环 |-| 12 | 22–24 | 规则五 | 同上循环 | 紧张 | 23.5 红圆犹豫:一个失谐的钟琴倚音 + 小咔哒 |-| 13 | 24–26 | 出走 | **鼓全撤**:只剩贝斯长音 A + 琶音滤波上扫;红圆移动时一条正弦滑音(音高随它的位置变) | 屏息 | 24.0 撤鼓;25.25 滑音停一拍;26.0 落地 |-| 14–15 | 26–30 | 带动 + 定格 | **全乐队回来**,旋律换成海报上的新乐句(有长短、休止、一个切分的重音 = 红圆) | 释放、活了 | 26.0 重拍;26.0–27.5 每个八分音符一个元素跳位(咔哒);29.5 翻页声 |-| 16–17 | 30–34 | 旋转揭示 | **只剩底鼓 + 贝斯 + 旋律**(踩镲、琶音撤掉),和 26–30 同一句 | 恍然 | 播放线经过每个条块 = 那个音;红圆的切分重音 = 钟琴 + 镲 |-| 18–19 | 34–38 | 海报墙 | 全乐队 + 琶音,最后一遍乐句 | 开阔、温暖 | 34.0 转回 + 拉远 |-| 20–21 | 38–42 | 片尾卡 | 38.0 乐队停,只剩裁纸刀 + 贝斯余音;40.0 红圆落下 = 最后一个低音 A + 钟琴 + 底鼓,延音到结束 | 回响 | 38.0 红线;40.0 红圆 |--配乐由我用 `core/audio/sampler.py`(`drum_kit`、`electric_bass`、`glockenspiel`,INSTRUMENTS.md 已 `STATUS: READY`)+ numpy 合成模拟琶音/方波主音/滑音。**旋律数据与画面共用一份 JSON**(`score.json`:每个音的列、行、时值),画面上的条块就是这份数据画出来的,配乐也从这份数据合成——所以"海报就是乐谱"在工程上是真的,不是对齐出来的。-------## 六、声音设计(拟音跟材质走:铅字、纸、裁纸刀、钢尺)--- **铅字排版**:短促的木/金属"咔哒"(高频瞬态 + 2–4 kHz 共振),每个字、每个元素吸附时一声,全部落在八分音符上。-- **裁纸刀**:金属滑过 "嚓"(带通噪声扫频)+ 刀落的低频 "咚";开场、规则三的三刀、片尾各用一次。-- **纸张**:海报铺上的"啪"、文字块滑动的纸面摩擦声、旋转揭示时的翻页声。-- **网格线**:钢尺划线的细"嘶",和十六分音符踩镲叠在一起。-- **红圆**:它是唯一"会唱歌"的元素——出走时一条正弦滑音,落地时低音 A + 钟琴;犹豫时一个失谐倚音。-- 混音:旁白压缩后置前,音乐在旁白下闪避约 −8 dB;拟音干、近,不加混响(瑞士的"干净")。最终 −14 LUFS,mux grain = 0。-------## 七、字幕与标题设计(字幕就是版面的一部分)--- **字幕**:不是底部居中的字幕条,而是**版面里的一行排版**:左页第 1 列齐左,上行 "Rule one." Archivo Medium 28 px(灰 `#6B6A66`),下行 "Build a grid." Archivo Bold 76 px 墨黑;逐词在旁白发声时刻(whisper 逐词时间戳)从基线下方以 1/16 音符吸附出现;换句时整行以一个八分音符向上"翻走"。非规则句(4b、5b、6)用 Regular 字重、同一位置或对应镜头的第 1 列。-- **片名**:`Five Rules / for a Poster`,Archivo Bold 76 px,两行齐左压在开场红线下方;顶部注释行 20 px `A programme in five steps · 1961 · 120 bpm`。-- **片尾卡**:`Swiss Motion Graphics` Archivo Bold 76 px,`LemoLab × Claude Opus 5.5` Medium 28 px,片名 20 px,全部在 12 列网格上齐左;红圆停在网格外半格作签名。-- **SRT**:另交 `swiss-motion.srt`,时间与烧录字幕同源。-------## 八、对风格说明的调整(及理由)--- **时长 30 s → 42 s**:五条规则每条需要"旁白 + 读字幕 + 看清海报变化"约 4 s,第四条多 2 s 给"呆板"这个情绪点(没有它,第五条的打破就没有理由);旋转揭示需要不被打断的完整 4 s 乐句;片尾卡 4 s。按"节奏以观众为准",不压缩停留。仍在 30–60 s 范围内。-- **海报网格用 7 列(= 7 个调式音)而不是 12 列**:先试了 12 列 = 12 个半音,音符条只有 43 px 宽,海报像一张图表、没有瑞士海报的体量;改成 7 列后条块宽 83 px,对角线有了分量。这也正是 Gerstner 的"网格从内容推导"。画面层(对开页)仍是标准 12 列网格。-- **列 = 音高、行 = 八分音符**:风格说明建议"横轴时间、纵轴音高"。我把它做成版式系统本身的一条规则,海报竖版时是"从上往下读"的乐谱,旋转 90° 后正好变成"横轴时间、纵轴音高"——风格说明里可选的"网格旋转 90°"因此成为揭示的必要动作,而不是装饰。-- **红圆的"打破"在音乐里也成立**:它离开的是节拍网格,所以它那个音落在十六分音符的反拍上(全片唯一的切分)——视觉上的违规 = 听觉上的切分,这就是"活了"。-- **加了一句旁白 "Perfect. And a little dull."**:让"秩序完成但呆板"成为一个明确的情绪节点,给第五条规则动机。-- **结尾墙上每张海报打破不同的规则**:把 Gerstner 的"程序"思想落到画面上:同一套规则,不同的一次打破,不同的歌。diff --git a/styles/swiss-motion/style.json b/styles/swiss-motion/style.jsonnew file mode 100644index 0000000..ecab2b1--- /dev/null+++ b/styles/swiss-motion/style.json@@ -0,0 +1,18 @@+{+ "slug": "swiss-motion",+ "num": "16",+ "en": "Swiss Motion Graphics",+ "cn": "瑞士动态排版",+ "category_en": "Graphic & Type",+ "category_cn": "图形与排版",+ "film": "Five Rules for a Poster",+ "line": "A concert poster lays itself out by five Swiss design rules; the fifth is to break just one.",+ "line_cn": "一张音乐会海报按瑞士设计的五条规则自己排版,第五条是只打破一条。",+ "uses": [+ "Brand identity",+ "Events",+ "Design education"+ ],+ "frame_sec": 31.68,+ "dur": 44.0+}diff --git a/styles/tilt-shift/DEMO.md b/styles/tilt-shift/DEMO.mdnew file mode 100644index 0000000..fc35069--- /dev/null+++ b/styles/tilt-shift/DEMO.md@@ -0,0 +1,84 @@+# Tilt-Shift Miniature — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Toy Town Rush Hour* (38 s) · `tilt-shift.mp4` · source in [`demo/`](demo/)+++## Story & structure++An original procedural town wakes up at dawn and builds to rush-hour gridlock; at the peak, time crashes to real speed on a family of ducks crossing the main avenue in front of a hero car, then releases and rises until the town is a circuit board.++The old guide's adaptation recipe, kept as one example: make the topic a *system with many small actors*, then find the *one tiny actor* the system bends around (a product launch → the city's traffic flowing toward one shop; a love story → two commuters crossing on the same crosswalk every morning; a history lesson → one street time-lapsed across a century).++Arc (38 s): quiet (one light trail at dawn) → the system wakes up (actors multiply, rhythm builds) → maximum density → **hard drop to real time on one detail** (the ducks, with a failed hop before success as the comedy beat) → release back to fast-forward → rise to a scale reveal. One subject, one goal, one twist.++Native powers spent: long-exposure light (the dawn car trail is the whole opening), the blur band (follows the car; narrowest on the ducks), time-lapse speed (×24–×40 with the ×40 → ×1 drop at the peak), god's-eye scale (rotating top-down at peak density, the final rise).++## Shots++| Beat | Camera |+|---|---|+| Opening | High oblique wide at dawn, very slow slide; the band follows the single hero car's light trail, routed on the lane nearest the camera |+| Title | Oblique across rooftops onto an **in-world neon sign** on a building facing a wide avenue, letters lighting one per 8th note; road-sign tag "A TILT-SHIFT MINIATURE" |+| System waking up | Medium-high oblique on an intersection and a station, slow push; the band on the stop lines / platform edge; commuter train |+| Peak density | **Straight top-down, slowly rotating**, gridlock |+| Real-time detail | One continuous **dive** from the top-down into a low medium close-up over the hero car's hood, the car's front and lights as blurred foreground. The eye-line lands on the ducks before the body does (look target eases out faster than position). Speed ramps ×40 → ×1 during the dive; land on the narrowest band. The top-down was rotated so it ends facing the close shot's direction |+| Ending | **Vertical rise** with logarithmic height (40 m → 820 m) through a thin cloud layer until the town becomes a circuit-board pattern; end card |++Close-up numbers used: camera ~1.7 m up, 6–8 m away, ~12° pitch, 17° FOV, near plane 0.08 m; the ducks fill ~1/4–1/3 of frame height. Oblique shots: 45–55° pitch, 110–200 m from the subject, 27–30° vertical FOV.++## Score structure++Sampled minimalist marimba ensemble (`demo/music/score.py`), 120 BPM, so the 8 Hz time-lapse stutter is exactly a 16th note. **Fixed phrase skeleton; city events decide which notes sound**: cars crossing stop lines gate marimba A, green lights play woodblock accents, crowds trigger glockenspiel, train carriages play the bass; each section has a base fill rate.++- At peak density the skeleton is full, with phased marimba B and tuned car-horn chords (sampled brass staccato pulsing 8ths).+- The real-time drop is a **tape-stop**: varispeed 1 → 0.22, voices drop out one by one, then true silence. During the rest only one soft note per story event plays, each duck hop a step up the scale.+- The first note of the film is the top note of the final chord.++Sound design: time-lapse = music first with a faint granular sped-up city hiss, rail clacks, relay clicks; real time = idling engines, distant city, sparrows, tiny quacks and peeps, webbed feet patting asphalt; release = engines rev, wind sweeps up during the rise.++Voice: relaxed American male, Kokoro `am_adam`, speed 0.9–0.95, 5–6 short lines, music ducked ~8 dB.++## Palette & props++- Facades: warm whites, cream, terracotta, brick, pale yellow, mint, sky blue. Cars: white, silver, black, red, blue, yellow taxis. Park green `#6fa24a`. Asphalt `#4b4e53`. People: 0.5 m colour capsules.+- Grade: NeutralToneMapping, saturation ×1.55, soft contrast +0.42, slight warm highlights, vignette 0.3.+- Band values: half-width `w` 0.055 (0.035 on the ducks), `amp` 30, `mix` 0.55–0.7, `aper` 5000–9000 (metres), CoC clamp 30 px; 128 spiral taps.+- Light: 4096 shadow map fitted per shot, hemisphere fill ~0.6. Dawn: sun ~3.5° below the horizon, pink-orange east fill `#ffb48c`, ~9 % of windows lit, sodium street-light pools.+- Facade shader: punched / ribbon / curtain-wall / brick window types, glass roughness 0.08–0.22, metalness 0.35; manholes, asphalt patches, oil stains; GTAO.+- Traffic: IDM car-following pre-computed per clip, lights on a 96 s cycle, "don't block the box" logic, a pedestrian crossing that stops all lanes; heavy inflow plus box-blocking gives honest gridlock. Crowds are closed-form: they gather at corners on red and surge on green. Stepping: 8 Hz in fast-forward, 12 Hz between ×2 and ×6, smooth below ×2.+- Hero actors: a dawn car on a scripted path, a commuter train with kinematics fitted through beat times, lathe-turned ducks with a sheen fuzz material (`MeshPhysicalMaterial`, sheen 1, sheenRoughness 0.55), hop = anticipation squash (0.28 s) → stretch jump → land squash → settle, a second failed attempt before success.++## Titles, subtitles & end card++- Subtitles: a green `#0f5e3c` rounded road-sign panel with an inset white keyline, Overpass 600 44 px white, a tiny traffic-light icon lit green on the left, 118 px above the bottom inside the lower blur band.+- Time-lapse clock top-left (Overpass Mono): `07:12` with small seconds, `×24 TIME-LAPSE` in amber, `×1 REAL TIME` in green.+- End card: the same road-sign language over the top-down town: the title, the style name and `LemoLab × Claude Opus 5.5`. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/tilt-shift/demo/+ post.js tilt-shift DOF (band + physical), grade city.js procedural town, facade shader, sign+ geo.js merged-geometry builder sky.js clock → sun/sky/fog/env, dawn glow+ traffic.js lanes, lights, IDM sim, fleet, trails, walkers train.js commuter train+ ducks.js lathe ducks + hop choreography story.js 120 BPM timeline, time windows, rate curves+ main.js cameras, stepping, crowds, HUD, events mix.py ambience + foley + VO + score+ music/score.py sampled marimba score (skeleton + event gating) subs.mjs subtitle export+```++1. `sh styles/tilt-shift/demo/build.sh` rebuilds everything from scratch: TTS → whisper → events → subtitles → score → mix → 912-frame render (~60–80 s on an M-series GPU with 3 workers) → mux (−14 LUFS, grain 1) → styleframe and poster.+2. Iterate with `node core/render/still.mjs styles/tilt-shift/demo <t…> --q noev` (`noev` skips the event scan). Debug flags: `nohud`, `nodof`, `nostep`, `az=<deg>`, `cam=x,y,z,lx,ly,lz,fov`, `aper=`, `bamp=`, `bmix=`.++Pitfalls tied to this demo's props:+- The first pass was a skyscraper forest with no streets visible.+- The dawn car was hidden in a street canyon until routed on the camera-side lane.+- The neon sign was occluded until moved to face a wide avenue.+- The instance cap (1,400 vs 2,800 cars alive) silently dropped the hero car.+- Cars stopped 2 m short of the ducks' crossing (IDM jam gap): the stop line was moved closer and the jam gap subtracted.+- Gridlock left the story lane empty: box-blocking starved the segment in front of the crossing, so the main avenue was exempted and the queue formed behind the hero.+- The top-down → oblique dive first twisted 180°.+- The peak first used a high long-lens view with the ducks at 1/15 of the frame. Headlights were moved to the car's top front edge so they read from above, and the hero car was held until the rising camera lifted clear of it.+- Clouds washed out the ending; streetlight pools read as bubbles; street furniture cluttered the close-up area and was removed.+- One fixed sun left half the film backlit and grey; the first dawn read as midnight (fixed by the pink east fill and ~3× fewer lit windows).diff --git a/styles/tilt-shift/STYLE.md b/styles/tilt-shift/STYLE.mdindex 65b8285..b65726e 100644--- a/styles/tilt-shift/STYLE.md+++ b/styles/tilt-shift/STYLE.md@@ -1,115 +1,105 @@# Tilt-Shift Miniature — Style Prompt-> A real-looking town photographed from high above with a tilted lens and a time-lapse camera, so the whole world reads as a tabletop model.-> Demo: *Toy Town Rush Hour* (38s) · `tilt-shift.mp4` · source in `demo/`+> A real-looking place photographed from high above with a tilted lens and a time-lapse camera, so the whole world reads as a tabletop model.+> References (grammar only): Sam O'Hare's *The Sandpit* (2010) and tilt-shift time-lapse photography in general: high vantage points, the blur band, time-lapse rhythm, cloud shadows sweeping over streets. Copy none of its places or music; show no real landmarks, brands or logos.-You are directing a 30–60 second film in the **Tilt-Shift Miniature** style. The user gives you a topic. You decide everything else — story, shots, timing, sound — and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not++A place seen from high up through a **tilt-shift lens**: only a thin horizontal strip of the frame is sharp, everything above and below melts into blur. The eye reads that as a macro shot of something small, so the world becomes a model. Two more things make the trick work: **saturated, sunny colour** (model-railway paint) and **time-lapse** (vehicles and people move in fast, jittery steps like wind-up toys).++Not a toy or clay render (the world is photoreal, only the lens and the clock make it small), not a game's top-down view (no UI, no clean flat shading), not drone footage (the band, the saturation and the stutter are mandatory).++## 2. Materials & rendering++- **Vantage**: always high. Oblique views at roughly 45–55° pitch from 100–200 m with a moderately long lens (~27–30° vertical FOV); straight top-down for the most "board game" look. Real tilt-shift is never shot from street level, except for a deliberate intimate moment: a true medium close-up at the actors' height, a blurred foreground object framing sharp actors who fill ~1/4–1/3 of the frame height (a long lens from high up keeps them as dots).+- **Blur band** (`demo/post.js`): physical depth of field mixed with a screen-space band. CoC in pixels = `mix(aper·(1/focus − 1/z), sign(dy)·amp·(max(0,|dy|−w)/0.5)^1.2, mix)`, clamped (~30 px). Put the band on the subject; when the subject moves, project it to screen every frame and slide the band there. Narrow the band for intimacy. Gather at output resolution after a 2× supersampled render, with many spiral taps and per-pixel rotation; far samples must not bleed onto nearer sharp ones.+- **Grade**: neutral tone mapping, strong saturation boost, soft added contrast, slightly warm highlights, a vignette. Lower saturation at night.+- **Light**: a hard sun with sharp shadows (a big shadow map fitted to each shot), a low hemisphere fill with warm ground bounce so shadows stay blue but not murky, a sky-gradient environment map for glass and paint. **Cheat the sun azimuth per shot**: each time-lapse clip is its own shot, so front-light the facades you see; one fixed sun leaves half a film backlit and grey.+- **Model-like detail** (what separates "filmed miniature" from "game CG"): facades with several window types, 1.6–3 m bays, dark reveals, world-space grime, sky-reflective glass and walls darkening toward the ground; roof clutter, awnings and signs; worn markings and stains; vehicles with dark glass, a soft contact shadow and brake lights; ambient occlusion over everything.+- **People** are small colour capsules, like model-railway figures. Actors seen up close get organic bodies with a soft sheen material and are made 20–30 % larger than real so they read.++## 3. Colour logic++- Saturated, sunny, "freshly painted model": a pale warm ground of buildings with a few candy accents, very saturated greens, dark ground surfaces so white markings and vehicles pop.+- Shadows stay blue and clean, never grey. Night and dawn are the only low-saturation states; dawn must read as early morning (a warm low fill from the sunrise side, few lit windows), not midnight.+- The subject you want found should be the one saturated thing in the sharp band, or move against the flow.+- Examples: a Mediterranean harbour (whitewash, cobalt shutters, terracotta, turquoise water); a snowy ski village (white, pine green, red gondolas, long blue shadows); a desert market (sand, saffron, indigo awnings, dusty olive).++## 4. Type & subtitles++- Subtitles belong to the world's own signage: a panel in the graphic language of the place's signs (road sign, platform board, harbour notice…), an open sign-revival font (Overpass, OFL, is a Highway-Gothic revival), sitting inside the lower blur band. Hold ≥ max(1.8 s, speech + 0.6 s).+- A **time-lapse clock** with a speed readout (e.g. `×24 TIME-LAPSE` / `×1 REAL TIME`, monospace) is the audience's speedometer for the native trick; use it whenever speed changes carry meaning.+- Titles live in the world: letters on a roof, a sign or a field, placed where nothing blocks them, lit or revealed on the beat.++## 5. Motion quality++- **Time-lapse stutter is the soul of the style.** In fast-forward the whole world (vehicles, people, lights, sun) updates at a low rate and holds each position for several frames (8 Hz = 3 frames at 24 fps); choose the rate so every jump lands on the musical grid. **The camera stays smooth on every frame.** Step at a middle rate while the speed is moderate; below about ×2 the stutter disappears and motion becomes silky, which makes a drop to real time hit hard.+- Systems run on simple simulations pre-computed per clip (car-following, signal cycles, crowds gathering and surging), with cycle offsets chosen so changes land on bar lines.+- Hero actors get art-directed timing (scripted paths fitted through beat times), never a hope that the sim hits a beat.+- Close-up acting: anticipation squash → stretch → land squash → settle; a failed attempt before success is the comedy engine.++## 6. Camera grammar++A vocabulary, not a route. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| High oblique wide, very slow slide | a whole system at a glance | setting a place; routine; many small actors |+| Band follows one subject across a wide | "this one" | a single commuter; a delivery; a lost child |+| Rack of the band from one subject to another | attention changing hands | cause and effect; a handover; a comparison |+| Slow push on an intersection, station or yard | a system heating up | rush hour; a festival setting up; a queue |+| Straight top-down, slowly rotating | the world as a board or machine | patterns; logistics; choreography |+| Continuous dive from high to actor height with a speed ramp | the one small thing that matters | a twist; a joke; a meeting |+| Band narrowing to a sliver | intimacy | a confession; a reunion; one decision |+| Vertical rise with logarithmic height | scale, letting go | aftermath; a summary; a system becoming a pattern |+| Lateral track along a line (rail, river, road) | a process in order | a supply chain; a parade; a race |+| Locked frame across hours | time as the actor | a construction; a market day; tide |++Framing: stay high; the sharp band carries the subject; vehicles and people stay tiny except in a close-up. Transitions: cuts on the beat, speed ramps, dives and rises; avoid dissolves that reveal the fake lens.++## 7. Sound palette++- **Ensemble**: tuned percussion carries the style (marimba, glockenspiel, vibraphone, woodblocks, kalimba, celesta), pulse-based and minimalist (Reich grammar: phasing, voices added one at a time, pulsing chords), plus plucked strings or a small reed section. Not generic piano and strings.+- **Techniques, as options**: world events gate the notes of a fixed phrase skeleton (vehicles crossing a line, lights changing, crowds moving each trigger an instrument), with a base fill rate so the phrase stays audible; tuned horns or bells voiced as chords; a tape-stop (varispeed down, voices dropping out) into silence when time slows; single notes for single events in a rest; phasing two identical lines apart; a music-box version of the theme for the smallest scale.+- **Sound follows speed**: in time-lapse, music first with a faint granular "sped-up world" hiss, clacks and relay clicks. At real speed the world turns suddenly real: idling engines, distant traffic, birds, small voices, footsteps. On release, engines rev and wind rises.+- **Silence** is the moment real time arrives: cut the music, keep one or two real sounds.+- **Voice**: relaxed, few short lines, music ducked ~8 dB. Verify every line with whisper; write numbers as words and put digits in the `asr` field. Master to −14 LUFS.++## 8. Native moves++A menu: use the ones your story needs.++- **The speed drop (×40 → ×1).** Time crashes to real speed on one detail. *Fits content like:* one worker finishing a shift; a child dropping an ice cream; a proposal on a crowded pier.+- **The band as pointer.** Slide or narrow the sharp strip to steer the eye. *Fits content like:* a courier through a market; a single wrong-way skier; one boat leaving port.+- **God's-eye system.** The place as a sequencer or machine. *Fits content like:* a port unloading ships; an airport's turnaround; a farm harvest.+- **Long-exposure light.** At dusk, lights leave trails that draw on the world. *Fits content like:* ferries crossing a bay; runners with headlamps; lanterns along a river.+- **The scale reveal.** Rise until the place becomes a pattern. *Fits content like:* a festival from setup to crowd; a school at recess; a city grid at night.+- **Cloud shadows sweeping.** Weather crossing the model. *Fits content like:* a season turning; a mood change; a news cycle.++## 9. Pitfalls of the medium++- Tall buildings plus shallow pitch hide the ground → low to mid-rise buildings, pitch 45°+.+- The subject hides in a canyon or behind a facade → route it on the camera side and let the band follow it.+- Instance caps silently drop actors → cull by distance from the camera (≈ 4× camera height) and raise the cap.+- Simulated vehicles stop short of lines (the jam gap) → subtract it where the story needs contact.+- Focus lags a frame → update actors before the camera.+- A top-down → oblique dive twists → rotate the top-down so its screen-up matches the target shot.+- A close-up from high up is too far → go low and close, small near plane for foreground objects.+- Clouds wash out a rise → unlit white, low opacity, nothing below the camera. Light pools read as bubbles → denser, larger, fainter pools.+- Scene backlit and grey → cheat the sun per shot. Dawn reads as midnight → warm low fill, fewer lit windows.++## 10. Engine++In `demo/`: `post.js` (tilt-shift DOF: band + physical, grade; `band.follow`), `city.js` (procedural town, facade shader, sign), `geo.js` (merged geometry), `sky.js` (clock → sun, sky, fog, env map), `traffic.js` (lanes, lights, IDM sim, fleet, trails, walkers), `train.js`, `ducks.js` (lathe-turned characters + hop choreography), `main.js` (cameras, stepping, crowds, HUD), `music/score.py` (sampled marimba, skeleton + event gating). A minimal new use: build a harbour from `geo.js` boxes, run boats as a one-lane `traffic.js` fleet on water, and point `band.follow` at one of them.++## 11. Variation space++You decide the place, the system, the tiny actor, the structure, the opening, the ending, the camera path, the speed curve and the palette within the colour logic. All far from our demo:++- Structures: **one day, dawn to night** (a single locked vantage, the sun and the shadows sweep, one shop's light the last to go out); **the relay** (the band hands attention from actor to actor across a whole place, each one passing something to the next); **before/after** (a construction site time-lapsed from empty lot to opening day, with one real-time moment per stage).+- Openings: **mid-bustle at full density** with the band already on one oddity; **a top-down pattern** that only slowly tilts into a place; **real time first**: one person at actor height, then the lens lifts and time speeds up.+- Endings: **a drop to real time that stays there** (no pull-back); **lights going out one by one** at night from high above; **the lens un-tilts**: the band widens to full sharpness and the model becomes a real place.----## 1. What this style is--A town seen from high rooftops through a **tilt-shift lens**: only a thin horizontal strip of the frame is sharp, everything above and below melts into blur. Your eye reads that as a macro shot of something small, so the town becomes a model. Two more things make the trick work: **saturated, sunny colour** (model railway paint) and **time-lapse** (cars and people move in fast, jittery steps like wind-up toys).--The reference is Sam O'Hare's *The Sandpit* (2010). Learn from its grammar: high vantage points, the blur band, time-lapse rhythm, cloud shadows sweeping over streets. Do not copy its city or its music. In your film the town, vehicles and people are all original and procedural. Show no real landmarks, brands or logos.--## 2. Story: what fits this style--The medium has four native powers. Use at least three:--| Native power | Story use |-|---|---|-| **Time-lapse speed** | Time itself is a character. Fast-forward shows systems (traffic, crowds, sunrise). **Dropping suddenly to real speed (×40 → ×1)** is the strongest move you have: it says "look at this one small thing". Put it at the emotional peak. |-| **The blur band** | The sharp strip is your pointer. Move it (rack focus) to follow the subject, and narrow it to a sliver for the most intimate moment. |-| **God's-eye scale** | Everything is seen from above, like a board game or a machine. Systems stories work best: a city as a sequencer, an ant colony, a factory, a festival setting up. End by rising until the town becomes a pattern. |-| **Long-exposure light** | At dawn or dusk, car lights leave trails that draw on the town like a pen. One trail can be the whole opening. |--**Adapting any topic:** make the topic a *system with many small actors*, then find the *one tiny actor* the system bends around. A product launch → the city's traffic flows toward one shop. A love story → two commuters' paths cross on the same crosswalk every morning. A history lesson → one street time-lapsed across a century.--**Emotional arc (30–45s):** quiet (one actor) → the system wakes up (actors multiply, rhythm builds) → maximum density → **hard drop to real time on one detail** (the twist, the joke, the heart) → release back to fast-forward → rise to a scale reveal. One subject, one goal, one twist.--## 3. Visual language--- **Camera height and angle**: always high. Oblique views at 45–55° pitch, 110–200 m from the subject, lens 27–30° vertical FOV. Use straight top-down (90°) for the "board game" moment. Real tilt-shift is always shot from high up, never at street level. The one exception is the emotional peak. There, drop to a true **medium close-up at the actors' height**: camera ~1.7 m up, 6–8 m away, ~12° pitch, 17° FOV. A blurred foreground object (the hero car's hood edge with its lights) frames the sharp actors, who fill ~1/4–1/3 of the frame height. A long lens from high up kept the actors as tiny dots and killed the moment (review note).-- **Blur band** (`demo/post.js`): physical depth of field mixed with a screen-space band. CoC in pixels = `mix(aper·(1/focus − 1/z), sign(dy)·amp·(max(0,|dy|−w)/0.5)^1.2, mix)`, clamped at 30 px.- - Typical values: band half-width `w` 0.055 (0.035 for the most intimate shot), `amp` 30, `mix` 0.55–0.7. Physical aperture `aper` 5000–9000 (world units in metres).- - Put the band on the subject. When the subject moves, project it to the screen every frame and slide the band there (`band.follow`).- - Gather at output resolution (after a 2× supersampled render): 128 spiral taps with per-pixel random rotation, and far samples must not bleed onto nearer sharp ones.-- **Grade**: NeutralToneMapping. Saturation ×1.55, soft contrast +0.42, slight warm highlights, vignette 0.3. Lower saturation at night.-- **Light**: a hard sun with sharp shadows (4096 shadow map fitted to each shot), a hemisphere fill kept low (~0.6, warm ground bounce) so shadows stay blue but not murky, and a sky-gradient environment map for glass and car paint.- - **Cheat the sun azimuth per shot**: each time-lapse clip is its own shot, so aim the sun behind or beside the camera and front-light the facades you see. One fixed sun left half the film backlit and grey.- - Dawn: sun ~3.5° below the horizon, a pink-orange low fill from the east (`#ffb48c`), only ~9% of windows lit, sodium street-light pools. It should read as 6 a.m., not midnight.-- **Model-like detail** (what separates "filmed miniature" from "game CG"):- - Facade shader with punched / ribbon / curtain-wall / brick window types, 1.6–3 m bays, light window frames, darker window reveals, and world-space grime noise. Windows get a sky-reflective glass tint (roughness 0.08–0.22, metalness 0.35), and walls darken toward the ground (fake contact AO).- - Awnings, shop signs, AC units, balconies, water tanks, antennas, solar panels, parapets.- - Worn road markings, manholes, asphalt patches and oil stains.- - Cars: rounded bodies, dark glass cabins, wheels, a soft contact shadow blob under every vehicle, and red brake lights when stopped.- - GTAO on top of all of this.-- **Palette**: facades are warm whites, cream, terracotta, brick, pale yellow, mint, sky blue. Cars are white, silver, black, red, blue and yellow taxis. Park greens are saturated `#6fa24a`. Road asphalt is dark `#4b4e53` so white markings and cars pop. People are 0.5 m colour capsules, like model-railway figures.-- **Actors at close range**: organic lathe-turned bodies with a sheen "fuzz" material (`MeshPhysicalMaterial`, sheen 1, sheenRoughness 0.55). Make them 20–30% larger than real so they read on screen.--## 4. Motion language--- **Time-lapse stutter is the soul of the style.** In fast-forward, the whole city (cars, people, lights, sun) updates at **8 Hz**, holding each position for 3 frames at 24 fps. At 120 BPM that is exactly a 16th note, so every jump lands on the musical grid. The **camera stays smooth on every frame.** When the rate drops below ×2 the stutter disappears and motion becomes silky, which makes the real-time drop hit much harder. Step to 12 Hz while the rate is between ×2 and ×6.-- Traffic is an **IDM car-following simulation** pre-computed per clip: lights on a 96 s cycle, "don't block the box" logic, a pedestrian crossing that stops all lanes. Heavy inflow plus box-blocking gives honest gridlock. Keep light changes on bar lines by choosing the cycle offset per clip.-- Crowds are closed-form: they gather at corners during red and surge across on green, which reads beautifully at ×24.-- A hero actor needs art-directed timing. Script it (dawn car path, train kinematics fitted through beat times, duck hops) rather than hoping the sim hits a beat.-- Close-up acting: anticipation squash (0.28 s) → stretch jump → land squash → settle. Make the comedy beat a second failed attempt before success.--## 5. Camera language--| Beat | Camera |-|---|---|-| Opening | High oblique wide, very slow slide; the blur band follows the single subject (a light trail) |-| Title | Oblique across rooftops onto an **in-world sign** (neon letters light one per 8th note) |-| System waking up | Medium-high oblique on an intersection or a station, slow push; the band on the stop lines / platform edge |-| Peak density | **Straight top-down, slowly rotating** — the most "toy" angle |-| Real-time detail | One continuous **dive** from the top-down into a low medium close-up over the hero car's hood, with the car's front and lights as blurred foreground. The eye-line lands on the actors before the body does (look target eases out faster than position). Speed ramps ×40 → ×1 during the dive; land on the narrowest band. Rotate the top-down so it ends facing the close shot's direction, otherwise the dive twists. |-| Ending | **Vertical rise** with logarithmic height (40 m → 820 m) through a thin cloud layer until the town becomes a circuit-board pattern |--## 6. Sound--- **Music**: minimalist marimba ensemble (Steve Reich grammar: pulse, phasing, voices added one at a time, pulsing chords). Not generic piano and strings. **Fixed phrase skeleton; city events only decide which notes sound.** Cars crossing stop lines gate marimba A, green lights play woodblock accents, crowds trigger glockenspiel, train carriages play the bass. Each section has a base fill rate so the phrase stays audible.- - At peak density the skeleton is full, with phased marimba B and tuned car-horn chords (sampled brass staccato pulsing 8ths).- - The real-time drop is a **tape-stop**: varispeed the music 1 → 0.22, drop voices out one by one, then true silence. During the rest, only one soft note plays per story event, each hop a step up the scale.- - The first note of the film is the top note of the final chord.-- **Sound design follows speed**: in time-lapse, keep it music-first with a faint granular "sped-up city" hiss, rail clacks and relay clicks. At real speed the world turns suddenly real: idling engines, distant city, sparrows, tiny quacks and peeps, webbed feet patting asphalt. On release, engines rev and wind sweeps upward during the rise.-- **Voice**: relaxed American male (Kokoro `am_adam`, speed 0.9–0.95), 5–6 short lines. Music ducks about 8 dB under the voice. Verify every line with whisper; write numbers as words in the text and put digits in the `asr` field.--## 7. Subtitles & titles--- Subtitles are a **road sign**: green `#0f5e3c` rounded panel with an inset white keyline, Overpass 600 44 px white (Overpass is the open Highway-Gothic revival, OFL), and a tiny traffic-light icon lit green on the left. Place it 118 px above the bottom, inside the lower blur band.-- Keep a **time-lapse clock** top-left (Overpass Mono): `07:12` with small seconds and a speed readout (`×24 TIME-LAPSE` in amber, `×1 REAL TIME` in green). It is the audience's speedometer for the native trick.-- Title: an in-world rooftop neon sign on a building facing a wide avenue, so nothing blocks it. Add a small road-sign tag underneath: "A TILT-SHIFT MINIATURE".-- End card: the same road-sign language over the top-down town. Show the title, the style name and `LemoLab × Claude Opus 5.5`.--## 8. Pitfalls we hit--- **Tall buildings + shallow pitch = no streets**: the first pass was a skyscraper forest. Keep 2–10 floors and pitch 45°+.-- **The dawn subject was hidden in a street canyon**: route the hero on the lane nearest the camera side, and make the band follow it.-- **Neon sign occluded**: put it facing a wide avenue.-- **Instance cap silently dropped the hero car** (1,400 cap vs 2,800 cars alive). Cull by distance from the camera (radius = 4× camera height) and raise the cap.-- **Cars stop 2 m short of stop lines** because IDM's jam gap applies to them too. For the story-critical crossing, move the stop line closer and subtract the jam gap.-- **Gridlock left the story lane empty**: box-blocking starved the segment in front of the crossing. Exempt the main avenue from box-blocking so the queue forms behind the hero.-- **Focus lagged a frame**: compute actors before the camera so `band.follow` uses this frame's position.-- **Top-down → oblique dive twisted 180°**: rotate the top-down so its screen-up already matches the close shot.-- **Close-up too far away**: the peak moment first used a high long-lens view, and the ducks were 1/15 of the frame. Go low and close. Use a small near plane (0.08 m) for the foreground hood. Put headlights on the top front edge so they read from above, and hold the hero car until the rising camera has lifted clear of it.-- **Clouds washed out the ending**: use unlit white, low opacity, and almost nothing below the camera.-- **Streetlight pools read as bubbles**: make them denser, larger and fainter so they merge into warm street lines. Remove street furniture from the close-up area.-- **Whole scene backlit and grey**: cheat the sun azimuth per shot.-- **Dawn read as midnight**: add a pink east fill and cut lit windows by a factor of ~3.--## 9. Production recipe (this repo)--```-styles/tilt-shift/demo/- post.js tilt-shift DOF (band + physical), grade city.js procedural town, facade shader, sign- geo.js merged-geometry builder sky.js clock → sun/sky/fog/env, dawn glow- traffic.js lanes, lights, IDM sim, fleet, trails, walkers train.js commuter train- ducks.js lathe ducks + hop choreography story.js 120 BPM timeline, time windows, rate curves- main.js cameras, stepping, crowds, HUD, events mix.py ambience + foley + VO + score- music/score.py sampled marimba score (skeleton + event gating) subs.mjs subtitle export-```--1. `sh styles/tilt-shift/demo/build.sh` rebuilds everything from scratch: TTS → whisper → events → subtitles → score → mix → 912-frame render (~60–80 s on an M-series GPU with 3 workers) → mux (−14 LUFS, grain 1) → styleframe and poster.-2. Iterate with `node core/render/still.mjs styles/tilt-shift/demo <t…> --q noev` (`noev` skips the event scan). Debug flags: `nohud`, `nodof`, `nostep`, `az=<deg>`, `cam=x,y,z,lx,ly,lz,fov`, `aper=`, `bamp=`, `bmix=`.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/tilt-shift/TREATMENT.md b/styles/tilt-shift/TREATMENT.mddeleted file mode 100644index 99964ea..0000000--- a/styles/tilt-shift/TREATMENT.md+++ /dev/null@@ -1,107 +0,0 @@-# Tilt-Shift Miniature · 导演方案(Treatment)--**片名** *Toy Town Rush Hour*-**时长** 约 38 秒(说明里建议 35 秒;多出的 3 秒给片尾最后一个和弦和"暂停"段的停留,见第八节)-**画幅** 1920×1080 · 24fps 输出 · 渲染逐帧(延时摄影本身就是"抽帧"的质感,不再额外步进)-**声线** Kokoro `am_adam`(轻松的美式男声),6 句-**一句话** 一座玩具般的小城从黎明到早高峰,被当成一台音序器来"演奏":一辆车一个音,红绿灯打拍子,火车弹贝斯,全城堵死时所有声部齐奏——然后镜头发现,让整座城停下来的,是五只过马路的鸭子。-------## 一、对标:向 Sam O'Hare《The Sandpit》(2010) 学什么 / 不学什么--| 学 | 不学 |-|---|---|-| **移轴 + 延时**两件事叠加产生"真城市像模型"的错觉:高机位俯拍、画面上下两条虚化带、只有中间一窄条清晰 | 不复刻它的纽约地标、具体街景和任何可辨认建筑;城市全部程序化生成,是一座不存在的小城 |-| 高饱和、强阳光、硬阴影——模型摄影的"灯光太好"感 | 不照搬它一镜一景的纯风光结构;我们要一个主体、一个转折 |-| **节奏跟城市脉搏走**:车流、人流的疏密就是剪辑节奏 | 不用它的配乐与旋律;配乐是原创马林巴极简主义 |-| 延时里车辆"跳格"的颤动感、云影扫过街区、人群像蚂蚁 | 不做它那种整片同一速度;我们用**速度本身**讲故事(快进 → 真实速度 → 再快进) |-| 机位意图:斜俯拍像看桌上的沙盘,镜头缓慢横移像摇臂在模型上方滑过 | |--另外参考了 Steve Reich 的《Music for 18 Musicians》《Drumming》学**配乐语法**(脉冲、相位、声部逐个加入、脉动和弦),不借用任何旋律。--## 二、故事与情绪弧--- **主体**:一辆红色小车(白顶,全片唯一的配色)。它是清晨的"第一个音",也是高潮里停在斑马线前的那一辆。-- **目标**:小城要"把这首歌奏满"——早高峰越堵,音乐越满。-- **转折**:全城堵到最满、所有声部齐奏的那一刻,镜头俯冲下去找原因——时间突然恢复正常速度,音乐几乎全停:红色小车在斑马线前让一只母鸭带着四只小鸭慢慢过马路。每一步是一个轻轻的音。**"Every song needs a rest."**(每首歌都需要一个休止符)-- **回响**:鸭子扑通落进池塘 = 强拍,时间猛地再快进,车流松开,镜头一路升到云层上方,整座城缩成一块电路板般的图案,车流像信号在线路上流动。"Then... take it from the top."(从头再来——"from the top"既是乐谱上的"从头",也是镜头所在的"顶上")。最后一个和弦落在片尾卡,它的最高音就是开场那"第一个音"。--情绪:静谧好奇(黎明)→ 轻快 → 越来越满的兴奋 → 顶点的喧闹 → **骤停的温柔与好笑** → 释放 → 开阔。--## 三、原生招式(只有移轴延时才做得到)--1. **速度变化本身就是转折(放在情绪最高点)**:全城堵死、音乐最满时,一个连续镜头从正上方旋转俯拍俯冲到斑马线,时间从 ×40 刹到 ×1——云影停下、蚂蚁般的人群突然正常走路、左上角的时钟从飞转变成一秒一跳、音乐只剩鸭子的脚步音。5.5 秒后鸭子入水,时间再猛地加速。-2. **车灯长曝光拖影**:黎明段,空城里第一辆车的车灯像一支笔在城里画出一道光线;日出段,延时 ×240 让所有车变成光轨。片尾电路板图案里,车流再次变成流动的光点。-3. **移轴虚化带**:每个镜头都设计了"清晰带"放在哪里——它就是镜头的视线引导(片名牌、红绿灯路口、站台、斑马线)。在鸭子段把清晰带收到最窄,只有一排小鸭是清楚的。-4. **片名牌是城里的一块霓虹屋顶招牌**,字母随马林巴主题一拍亮一个——片名本身就是音序器的第一段乐句。--## 四、分镜节拍表(120 BPM,1 小节 = 2 秒;时间为成片秒数)--| # | 时间 | 城市时钟 / 延时倍率 | 机位与意图 | 画面 | 声音 |-|---|---|---|---|---|---|-| 1 黎明 | 0.0–5.0 | 06:00 · ×15 | 高位斜俯拍大全景,极慢横移——像俯身看桌上的沙盘;清晰带放在红车路线上 | 蓝调时刻,窗户零星亮着,路灯光斑。**唯一一辆红车**开出来,车灯拖出一道光线;它在红灯前停下,3.0 秒绿灯亮,车走——第一个音 | 几乎无声:风、远处一声鸟叫 · **VO1** 0.9s "Six a.m. One car. One note." · 3.0 第一个马林巴音(绿灯)· 4.5 第二辆车,第二个音 |-| 2 片名 | 5.0–9.0 | 06:15→06:31 · ×240 | 低一点的斜俯拍横过屋顶,片名招牌在清晰带里;背景城市在上虚化带里 | 屋顶霓虹招牌 **TOY TOWN / RUSH HOUR** 字母一拍亮一个(15 个字母 × 八分音符);天色从靛蓝快进到金色,建筑阴影"唰"地扫过街道,车流变成光轨 | 字母 = 马林巴主题(原创 15 音乐句)· 日出时加入轻柔的持续音 |-| 3 路口 | 9.0–14.0 | 07:12 · ×24 | 中高位斜俯拍一个十字路口,缓慢推近;清晰带压在路口中心 | 红绿灯在小节线上变灯(周期 = 2 小节),车队一波一波放行,行人成群走过斑马线 | 红绿灯"咔嗒"= 八分脉冲 · 每辆车过停止线触发马林巴音(量化到十六分)· 行人 = 钢片琴闪音 · **VO2** 9.6s "Every green light adds a beat." · 10.0 绿灯落在强拍 |-| 4 火车 | 14.0–19.0 | 07:39 · ×6 | 侧向跟拍的站台斜俯拍,跟着火车减速横移;清晰带沿着车厢 | 一列 6 节的通勤火车进站,**每节车厢经过站台起点 = 一个贝斯音**(车速设计成在网格上逐渐放慢:八分→四分→二分);停稳、开门、人群涌出,发车 | 低音马林巴进入 · 轨道咔哒对齐贝斯 · **VO3** 14.3s "The seven-forty brings the bass." |-| 5 大堵车 | 19.0–24.0 | 07:58→08:01 · ×40 | **正上方俯拍大路口,缓慢旋转**(最像"桌上的玩具"的角度);22.5 起镜头开始俯冲并倾斜 | 全城堵死:四个方向的车排成长龙,路口被车塞满,人群在车缝里穿行,云影高速扫过 | 全部声部齐奏 + 音高调准的汽车喇叭奏出脉动和弦(Reich 式)· 两支马林巴开始相位错开 · **VO4** 19.4s "By eight, the whole town is playing." · 22.5–24.0 延时倍率从 ×40 刹到 ×1,音乐被"拉慢"后切断 |-| 6 休止 | 24.0–29.5 | 08:01:0x · **×1 真实速度** | 俯冲落定为中近景斜俯拍斑马线;**清晰带收到最窄**,只有一排鸭子清楚 | 红车停在斑马线前,母鸭带四只小鸭慢慢穿过马路;两边车流都停着;人行道上的人正常速度走路;时钟一秒一跳 | 静:发动机怠速、远处城市底噪、鸟叫、鸭子小声嘎嘎、蹼掌拍地;**每一步一个很轻的高音**(开场那个"一个音"的回声)· **VO5** 25.2s "Every song needs a rest." · 29.0 鸭子扑通入水 |-| 7 从头 | 29.5–34.0 | 08:02 → · ×40 | 30.0 强拍:红车起步,时间猛地快进;镜头**垂直升起**,从 40 m 升到 1.5 km,越过云层 | 车流松开、像信号一样在街道上流动;城市缩成一块电路板般的图案(街区 = 芯片,道路 = 走线,车 = 光点) | 30.0 全体强拍回归 · 升起时的风声 · **VO6** 30.6s "Then... take it from the top." · 34.0 最后和弦 |-| 8 片尾 | 34.0–38.0 | ×40 | 电路板城市俯视静帧上叠片尾卡 | 片名 · TILT-SHIFT MINIATURE · LemoLab × Claude Opus 5.5 | 和弦延音,最高音 = 开场第一个音;渐弱 |--## 五、Cue map(音乐先行)--**速度** 120 BPM(十六分脉冲 = 8 Hz),调性中心 D,调式在 D 利底亚 / D 大调五声之间游移(极简主义常见的"悬而不决")。-**配器**(全部合成,按事件生成音符):-- **马林巴 A**(中音区,"车"):原创 12 步主题的骨架;每个格子只有在"那一刻有车过停止线"时才发声 → 车越多,乐句越满。-- **马林巴 B**("车·第二声部"):同一主题,从路口段进入;大堵车段每小节错开一个十六分(相位)。-- **低音马林巴**("火车"):每节车厢一个音;之后作为和声根音保留。-- **钢片琴 / 颤音琴**("行人"):人群过斑马线时的闪音。-- **木鱼/咔嗒**("红绿灯"):八分脉冲,变灯时重音。-- **调音喇叭和弦**("堵车"):簧片感的脉动和弦(类似 Reich 的单簧管/人声脉冲),只在大堵车段。--| 段 | 时间 | 小节 | 配器 | 能量 | 关键卡点 |-|---|---|---|---|---|---|-| 黎明 | 0–5 | 1–2.5 | 几乎静默,只有单音 | 1/10 | 3.0 第一个音(绿灯)· 4.5 第二个音 |-| 片名 | 5–9 | 3–4.5 | 马林巴 A 独奏主题(字母)+ 日出持续音 | 2 | 5.0 起每 0.25s 一个字母 |-| 路口 | 9–14 | 5–7 | + 咔嗒脉冲 + 车触发音 + 钢片琴 | 4 | 10.0 / 12.0 变灯(强拍)|-| 火车 | 14–19 | 7–9.5 | + 低音马林巴 + 马林巴 B | 6 | 14.5 起贝斯音逐渐放慢;17.0 停稳 |-| 大堵车 | 19–24 | 10–12 | 全部 + 喇叭脉动和弦 + 相位 | 10 | 20.0 / 22.0 喇叭和弦;22.5–24.0 "刹车"(音高下滑、声部逐个掉出)|-| 休止 | 24–29.5 | 13–15.5 | 只有鸭子脚步的高音(真实时间,不对网格)| 1 | 29.0 入水 |-| 从头 | 29.5–34 | 15.5–17 | 全体回归,主题完整一次 | 9 | **30.0 强拍** |-| 片尾 | 34–38 | 18–19 | 最后和弦延音 | → 0 | **34.0 最后和弦** |--音符由画面事件驱动:页面在 `window.EV` 里导出每个"车过停止线 / 变灯 / 车厢经过 / 行人过街 / 字母亮起 / 鸭子一步"事件,配乐脚本读 events.json,按十六分网格量化后映射到各声部的音阶。--## 六、声音设计(拟音跟材质走)--- **延时段**:音乐为主;只保留很轻的"加速的城市"底噪(高通噪声 + 快速颗粒)、火车轨道咔哒、变灯继电器的小咔嗒。-- **真实速度段**:一下子"真实"起来——低沉的发动机怠速(多辆车叠加的低频)、远处城市底噪、麻雀叫、鸭子嘎嘎(小、短、带鼻音)、蹼掌拍柏油路的湿软"啪嗒"、最后入水"扑通"+ 水花。-- **上升段**:宽频风声上扫。-- **人声**:轻压缩,音乐闪避约 −8 dB;VO 与延时段的"快"形成反差——语速放松。--## 七、字幕与片名设计--- **字幕**:借城市交通导视牌的语言——深墨绿圆角牌(像路牌),白色 Overpass 半粗体(Overpass 源自美国公路标牌字体 Highway Gothic 的开源再设计,OFL),左侧一个小的红绿灯三色点,当前"灯"随句子亮绿。位于底部上方 120 px,在下虚化带里,不挡清晰带。-- **时钟**:左上角一个小的延时时钟 `06:00`(Overpass Mono)+ 下面一行倍率 `×15`。它是速度变化的"读数":延时段数字飞转,休止段秒针一跳一跳。-- **片名**:场景内的屋顶霓虹招牌(见第三节),辅以一行小字 "A TILT-SHIFT MINIATURE"。-- **片尾卡**:电路板城市俯视图上,片名 + 风格名 + `LemoLab × Claude Opus 5.5`,同样的导视牌语言。--## 八、改动说明(相对风格说明)--- **时长 35 → 约 38 秒**:休止段需要 5.5 秒真实时间才能看清五只鸭子过完马路(节奏以观众为准),片尾和弦需要 4 秒延音。-- **结尾采用"升到云层、城市变电路板"**,不用真实尺寸的手 / 咖啡杯(避免和 brick-toy 的尺度揭示重复),并用 "take it from the top" 把镜头的"顶"和乐谱的"从头"合在一起。-- **加入"鸭子"作为转折**:说明里的高潮是"全部堵死、全部声部";我让高潮之后多一个"原因揭示"——堵车的源头是让鸭子过马路。这让"速度变化"这个原生招式不只是技巧,而是故事的转折点和笑点。--## 九、镜头语言小结--- 全片都是**高位俯拍**(模型摄影的前提),只在高度和角度上做文章:斜俯(沙盘感)→ 中高位(路口的"棋盘")→ 侧跟(火车的速度)→ 正上方旋转(最"玩具"的时刻)→ 俯冲(速度变化)→ 垂直升起(尺度揭示)。-- **让人记住的镜头**:第 5→6 段的连续镜头——正上方旋转俯拍堵车的路口 → 俯冲、倾斜 → 时间刹停 → 落在斑马线的鸭子上。-- 清晰带是每个镜头的"视线",永远放在叙事主体上。--## 十、制作中的调整(关卡 1 之后)-- 鸭子镜头改为**从北往南看**的长焦高位机位:红车(北行外侧车道)正脸朝镜头停在斑马线后,鸭子从画面右侧走向左侧的公园路沿;比原计划"从南看"更能同时看清红车和鸭子。-- 鸭子全程过马路的位置由城市时钟驱动:延时段里在西侧路沿等,俯冲减速时快进穿过大半条路,真实速度段只走最后一条车道并逐只跳上路沿(最后一只第一次撞回来)。-- 快进段城市按 8 Hz(= 十六分音符)步进,真实速度段完全平滑(协调者建议)。-- 片尾高度定在 820 米(原计划 1.5 公里时城市太小,电路板感反而弱)。-- **关卡 2 返修**:鸭子段改为真正的中近景。机位压到红车引擎盖旁、离地约 1.7 米,斜俯约 12°,距鸭子 6–8 米;红车车头边缘和前灯做虚化前景,清晰带在鸭子上,鸭子一家约占画面高度 1/4–1/3。俯冲终点落到这个机位(俯拍旋转相应改为转向东北),红车放行推迟到 30.35 s,让上升的镜头先离开车身。diff --git a/styles/tilt-shift/style.json b/styles/tilt-shift/style.jsonnew file mode 100644index 0000000..8b3dc99--- /dev/null+++ b/styles/tilt-shift/style.json@@ -0,0 +1,18 @@+{+ "slug": "tilt-shift",+ "num": "42",+ "en": "Tilt-Shift Miniature",+ "cn": "移轴微缩",+ "category_en": "Materials & 3D",+ "category_cn": "材质与 3D",+ "film": "Toy Town Rush Hour",+ "line": "Morning rush hour in a town that looks like a model: traffic, trains and tiny people.",+ "line_cn": "玩具城的早高峰,一切都像模型。",+ "uses": [+ "City promos",+ "Real estate",+ "Transport"+ ],+ "frame_sec": 22.8,+ "dur": 38.0+}diff --git a/styles/ukiyoe/DEMO.md b/styles/ukiyoe/DEMO.mdnew file mode 100644index 0000000..d6c06dd--- /dev/null+++ b/styles/ukiyoe/DEMO.md@@ -0,0 +1,128 @@+# Ukiyo-e — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Toward the Mountain · 山へ五景* (44 s) · `ukiyoe.mp4` · source in [`demo/`](demo/)+++## Story & structure++A traveller in a straw hat walks from the rice fields toward a distant mountain: across a bridge in the rain, past a teahouse where the mountain waits in a round window, to a sea that stands up between them. The wave washes the print back to a blank sheet; the next print is the mountain, and he takes off his hat. Five views, one constant subject; the story is told by *where the mountain sits in the frame* each time (tiny on the horizon → framed by a window → dwarfed by a wave → filling the sheet). One character, one goal, one turn.++Arc: jo-ha-kyū (序破急), slow, open, still (jo) → gathering pulse (ha) → rapid rush to a peak (kyū) → a hard cut to silence (ma, 間) → a quiet resolution and a scale reveal. The old guide asked every film to rest on at least three of the five native moves with the strongest at the peak; that was this demo's choice, not a rule.++Native moves spent: a series of views (the whole film), the handscroll (every transition), printing block by block (the opening and the rebirth after the wave), paper is the white (the foam that erases the print), the frame is an object (the wave breaking out of the border). How the old guide suggested adapting a topic, for this kind of story: make it a journey or a series with one constant subject (a product launch → five views of the product in five places; a city → a day in five prints; a life → five ages, the same tree in every print).++Views: 一 田毎の朝 (rice fields at dawn) · 二 雨の橋 (bridge in the rain) · 三 茶屋の窓 (teahouse window) · 四 海立つ (the sea stands up) · 五 山 (the mountain).++## Shots++| Beat | Camera |+|---|---|+| Opening | Locked on a blank sheet; the first print is printed block by block in front of us |+| Early views | Locked frame, like reading a print on a wall. The subject is small |+| Middle view | A very slow push (1.00 → 1.065) toward a framing device (round window) |+| Transitions | Handscroll slide right → left through the mounting gap, getting faster: 1.0 s → 0.9 s → 0.6 s |+| Climax | First big move: tilt up past the top border into the mount, push in; then crash-zoom into the foam |+| After the climax | Hard cut to a blank sheet, hold (間), then reprint |+| Ending | Pull back from the last print to reveal the whole scroll: every view side by side (scale reveal); end card on the scroll |++The climax got the **only big camera move** of the film, played in four beats (~4.5 s total; 25.4–30.4 s in the final cut):++1. **Rise** (~1.9 s): the sea swells into a wall; the camera tilts up past the top border and widens slightly so the figure shrinks.+2. **Hang / 亮相** (~1.2 s): the crest stands outside the border in the mounting paper, claws open and nearly frozen (jitter ×0.25); the whole print is visible as an object. The drum roll peaks, then an 80 ms silent intake of breath.+3. **Fall** (~1.2 s): the lip lengthens and rotates down toward the lens, claws grow ×2.5, camera pushes to 3× with a small roll.+4. **Foam** (~0.7 s): fractal claws burst from the lip to fill the screen, fade to bare paper → hard cut to silence (ma, 30.4–32.2 s).++Then four reprints (32.2 / 32.7 / 33.2 / 33.7 s), the last line at 34.4 s, the final print at 38.4 s, the pull-back 38.9–40.9 s, the end card from 40.3 s. The first cut's climax lasted 0.7 s and read as "some foam flashed"; the four-beat version is why STYLE.md asks for a held beat of about a second.++Subtitles stay clear of the figure: bottom band ~80 px from the edge; figures were moved up where needed.++## Score structure++Original score (`demo/music/score.py`) on shamisen, shakuhachi, taiko and hyōshigi, following jo-ha-kyū:++- Hyōshigi claps accelerate over the opening printing (one clap per block), the kabuki curtain call.+- Shakuhachi in free rhythm, *miyako-bushi* scale (D E♭ G A B♭), long tones with breath, a slide up into each note and *meri* drops at phrase ends.+- Shamisen: slow pulse (72 BPM), then an ostinato (96 BPM) with a small tight drum; a fast rising run on the fastest scroll slide.+- Taiko heartbeat that accelerates from 0.9 s intervals to a roll for the climax; one full hit on the crash; then **absolute silence** (reverb tails cut too). Four big taiko strokes reprint the last view. The opening shakuhachi motif returns and resolves; a long shamisen note with sawari rings out under the end card.++Instrument recipes (reusable):+- Shakuhachi from samples: `flute` / `recorder`, flatten amplitude and pitch vibrato (divide by a 60 ms envelope; f0-track and counter-warp), add 1–4 kHz breath noise locked to the envelope, a *muraiki* breath burst on attacks.+- Taiko from samples: `gran_cassa` + `toms:low_mallet` + `frame_drum:large` + a synthesized skin (pitch drop ~120 → 58 Hz) and a stick thud.++Foley specific to this film: baren rub with a ~9 Hz circular modulation, hollow bridge steps, wind chime partials 2.36 / 5.15 / 7.98 kHz, field trickle, rain bed with drops, sea swell every ~4 s, lark chirps, geese, a kite's *pii-hyoro* on the last view.++Voice: calm male storyteller, first person, 5 short lines (Kokoro `am_adam`, speed 0.84–0.88). Music ducked ~−8 dB under voice (−10 dB on the last line), ambience ~−4 dB. Subtitle hold in this demo: ≥ max(1.8 s, voice + 0.75 s).++## Palette & props++**Canvas & sheet.** 1920×1080 sheet = screen at zoom 1. Ink border at `x 44–1876, y 38–1042` (3.4 px) plus a thin outer line 9 px outside; paper margin beyond. Sheets sit on a long mounting scroll (`#c9b690`, 260 px gaps) with a wooden roller at the left end.++**Palette** (this film's pigment set):++| Name | Hex | Use |+|---|---|---|+| Paper | `#eee2c6` | washi base (with ±3 % mottling, fibres `#fbf6e9` / `#c7b893`) |+| Prussian blue | `#1d3a66` · dark `#13284a` · light `#4d6f98` | skies, water, mountain, wave |+| Deep trough | `#0f2344` | inside of the wave |+| Pale blue | `#8db0c6` · `#bcd0d6` | water reflections, lower sky |+| Sumi (key block) | `#231f1c` | all key lines |+| Beni red | `#b8412f` · pale `#e3a08a` · peach `#efc4a8` | sun, felt bench, seals, dawn bokashi, cartouche tab |+| Ochre / straw | `#cf9f4a` · `#c9a45c` | hats, roads, obi |+| Greens | `#8aa152` · dark `#50703c` · pine `#3e5a3a` | fields, trees |+| Indigo cloth | `#2c4a70` · gaiters `#1d2c44` | clothing |++**Blocks.** `g0` key lines · `g1` blues · `g2` greens / secondary · `g3` reds / figures, composited with fixed registration offsets `g1 (2.2,−1.3)`, `g2 (−1.8,1.9)`, `g3 (1.5,2.2)`. Printing reveal: ~0.34 s per block.++**Texture recipe.** On each colour block, in this order: woodgrain `source-atop` α ≈ 0.1–0.17 (sky/water strongest), baren streaks `destination-out` α ≈ 0.38 (0.2 on dark wood), goma-zuri specks `destination-out` α ≈ 0.3. Key block: specks only (α 0.12). Over the finished sheet, light fibres (α ≈ 0.09). **Woodgrain** = iso-lines of a warped noise field (`u = y·0.035 + fbm·9 + knots`), thin dark lines where `|frac(u)−0.5| > 0.4` plus broad tonal bands. **Baren** = ~260 blurred circular arcs + zigzag streaks. Dynamic big fills (the wave) get woodgrain + a paper-coloured baren overlay inside their clip. **Bokashi**: per pixel, top edge wandering ±20–30 px per column.++**Props:**+- *Mountain*: asymmetric concave slopes (`y = s^1.55` left, `s^1.8` right), a notched summit, snowcap as **drips down the gullies**: 12 fingers of random depth (some long), narrow and pointed, joined by a gently wavy snow line; right-side shade band; pale beni glow on the snow at dawn. An original silhouette, not Fuji's.+- *The wave*: normalised outline (back slope → crest → forward lip → curl → hollow front). A vertical wall of water whose crest falls toward the lens, with the traveller on a rocky headland, deliberately not the boat-and-wave composition of *The Great Wave*. Body in **three blue bands with bokashi between them** (light blue by the crest → Prussian → deep trough), made from thick strokes of inward offsets of the back-slope curve; **grouped white flow lines** (3 lines per group, broken into long arcs). Foam rim along the crest; **fractal claws**: each big claw splits into 3 fingers, each finger splits again, all tips hooking inward; a pale-blue back layer offset behind the white front layer; spray in **clusters** (one big dot, a few medium, many small).+- *Claw roots* grow **out of** the foam: taper the root to ~40 % width, then bury it in irregular white foam blobs (stroke all blobs first, then fill all → one union outline). Claws stuck straight onto the crest read as planks.+- *Bridge*: a side-view arched (taiko) bridge, not the diagonal bridge-over-river composition.+- *The traveller* (80–130 px): side view, low conical kasa hiding the upper face, tucked-up kimono with the back corner tucked into the obi, dark gaiters, straw sandals, staff, bundle knotted at the chest. Close views: shaved pate (pale blue-grey), folded topknot, one-stroke eye. Poses: walk / stand / hold hat / straw cape / sit & drink / back view / hat off.+- *Cartouche*: cream `#f3e7c6`, pale beni tab with the series title.++## Titles, subtitles & end card++- **Subtitle cartouche**: cream `rgba(243,231,198,.96)` slip, 2.6 px + 1 px ink border, a small red seal "旅" at the left, Shippori Mincho 500 42 px in sumi, centred 72 px above the bottom. It prints in over 0.22 s with the reveal mask and fades out over 0.25 s.+- **View cartouche** (vertical, Yuji Syuku): 一 田毎の朝 · 二 雨の橋 · 三 茶屋の窓 · 四 海立つ · 五 山, seal below/beside. Cartouche drop-in: fade + 14 px.+- **Title**: a vertical cartouche 山へ五景 + a horizontal English slip *Toward the Mountain* laid on the first print, stamped with a seal, lifted away before the first line.++## End card++The whole scroll across the middle on dark indigo `#161a22`; title above, `UKIYO-E · a Lemo-Opuscar demo · LemoLab × Claude Opus 5.5` below, one seal (drawn `source-over`, not multiply, on the dark background). The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/ukiyoe/demo/+ print.js paper, woodgrain, baren, specks, blocks, bokashi, carved lines, reveal masks, cartouche, seals+ nature.js mountain + snow drips, pines, rocks, rain, geese, simple claws+ traveler.js the traveler (walk / stand / hold hat / straw cape / sit & drink / back view / hat off)+ views.js the five prints: cached blocks (g0–g3) + per-frame paint()+ wave.js sea rows, wave geometry, banded body, fractal claws, spray clusters+ story.js the timeline (single source of truth) main.js camera, scroll, sheets, reveal, titles, subtitles, events+ lines.json voice music/score.py original score mix.py foley + voice + ducking + the silent ma subs.py cues → srt+ build.sh one-command rebuild+```++1. `node core/render/still.mjs styles/ukiyoe/demo <t…>` (`--q nosub=1`, `--q test=trav` for the character sheet, `--q poster=1`).+2. `core/tts/tts.py lines.json voices` → `core/tts/asr_check.py`.+3. `node core/render/events.mjs styles/ukiyoe/demo` → `music/score.py` → `mix.py`.+4. `node core/render/video.mjs styles/ukiyoe/demo --fps 24 --workers 3` (1056 frames ≈ 45 s, Canvas2D).+5. `core/render/mux.sh out/video24.mp4 mix.wav ukiyoe.mp4 24 0` → `check_asr.py ukiyoe.mp4`.++Or simply `sh styles/ukiyoe/demo/build.sh`.++Pitfalls tied to this demo's props:+- A zig-zag snow line looks like a crown; smooth waves look like icing. Use narrow pointed drips of random length, and force control points to be x-monotonic (otherwise tiny self-intersecting loops appear).+- The first wave looked like a waterfall curtain (flow lines fanning from the base). Flow lines must follow the back-slope contour; the body needs banded blues; claws must branch and hook inward: a single curled strip reads as a ribbon.+- Offset curves self-intersect at the tight lip → only use the back slope for inner flow lines.+- The wave breaking the border must escape **both** the sheet clip and the frame clip; its sides are clipped to the frame so only the top breaks out.+- `mountain()` filled only when a flat colour was passed, so gradient bodies were transparent: watch option flags.+- A seal drawn with `multiply` vanished on the dark end card and on the wave → `source-over` there.+- The traveller walking past a foreground tree read as "in front of" it; keep low branches clear of the walking path.+- The subtitle band covers anything in the bottom 150 px: ground lines and figures were raised.diff --git a/styles/ukiyoe/STYLE.md b/styles/ukiyoe/STYLE.mdindex 047c866..afee35a 100644--- a/styles/ukiyoe/STYLE.md+++ b/styles/ukiyoe/STYLE.md@@ -1,157 +1,110 @@# Ukiyo-e — Style Prompt-> Edo-period woodblock prints brought to life: flat colour blocks, carved ink lines, Prussian blue, bokashi skies, paper you can feel — and a camera that moves over the print like an unrolling handscroll.-> Demo: *Toward the Mountain · 山へ五景* (44 s) · `ukiyoe.mp4` · source in `demo/`+> Edo-period woodblock prints brought to life: flat colour blocks, carved ink lines, bokashi skies, paper you can feel, and a camera that moves over the print like an unrolling handscroll.+> References (grammar only): Hokusai's *Thirty-six Views* (one constant subject placed differently each time; bold geometric cropping); Hiroshige's *Fifty-three Stations* and *Hundred Famous Views* (small figures, rain lines, extreme foreground framing); the anime *Mononoke* (2007) (print texture alive in motion, flat layers sliding, seals as screen language). Never reproduce a specific famous print (no copy of *The Great Wave*, *Red Fuji*, *Sudden Shower over Ōhashi*), and never copy their characters or compositions.-You are directing a 30–60 second film in the **Ukiyo-e** style. The user gives you a topic. You decide story, shots, timing, music and sound, and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not------## 1. What this style is--Every shot is **a complete woodblock print**: a sheet of washi, a thin double ink border, flat areas of colour printed from separate blocks, a black key-block line on top, a vertical title cartouche and a red seal. The world is flat on purpose. Depth comes from stacked horizontal layers, mist bands and bold cropping — never from perspective rendering, lighting or shading.+Every shot is **a complete woodblock print**: a sheet of washi, a thin double ink border, flat areas of colour printed from separate blocks, a black key-block line on top, a vertical title cartouche and a red seal. The world is flat on purpose. Depth comes from stacked horizontal layers, mist bands and bold cropping, never from perspective rendering, lighting or shading.What makes it read as *printed* rather than *vector*:- **Paper** is always visible: warm washi, long fibres, slight edge ageing.- **Each colour is its own block**, slightly **out of register** (1.5–2.5 px) with the key line.- Large colour areas show **woodgrain** and **baren rubbing** (uneven ink density, circular streaks) and fine **goma-zuri** specks.-- **Bokashi** — hand-wiped gradients — in skies and water.+- **Bokashi**, hand-wiped gradients, in skies and water.++Not a flat vector illustration with a paper overlay (no woodgrain, no misregistration), not Chinese ink wash (no bleeding washes, colour is printed, not painted), not anime cel shading (no light and shadow on forms).-Never reproduce a specific famous print (no copy of *The Great Wave*, *Red Fuji*, *Sudden Shower over Ōhashi*). Learn the grammar, draw your own compositions.+## 2. Materials & rendering-## 2. Story: what fits this style+- **The sheet is the frame**: the print fills the screen at zoom 1, inside a thick + thin ink border, with a paper margin beyond. Sheets can sit on a long mounting scroll (darker tan paper, a roller at one end), so the camera can travel from print to print.+- **Blocks**: draw each colour group into its own offscreen canvas, cached once (key lines; blues; greens / secondary; reds / figures). Composite each with a small fixed registration offset (1.5–2.5 px, a different direction per block).+- **Texture every colour block**: woodgrain (`source-atop`, strongest in sky and water) → baren streaks → goma-zuri specks (both `destination-out`); the key block gets specks only; light paper fibres over the finished sheet so paper shows through the ink. Big dynamic fills get the same textures inside their clip. Woodgrain = iso-lines of a warped noise field; baren = blurred circular arcs + zigzag streaks (recipe and alphas in [DEMO.md](DEMO.md#palette--props)).+- **Bokashi** is generated per pixel: a gradient whose top edge wanders by low-frequency noise per column (±20–30 px). Never strips of `fillRect` (vertical seams).+- **Line**: key lines 2.4–3 px; large contours are variable-width filled strokes, tapered at both ends, with ±20–35 % low-frequency width jitter. Distant things get a grey key line or none.+- **Motifs of the medium**: mist as long rounded flat bands (suyari-gasumi) fading at both ends; pines with flat-topped **needle pads**; fields as high, flat, parallel layers whose cross lines are **parallel and slanted**, never converging; rain as two sets of fine straight lines at slightly different angles under a sumi bokashi sky; water as banded blues with bokashi between bands, foam and spray left as paper.+- **Seal**: characters cut out of red, chipped edges. **Figures** are small in the landscape (roughly 80–130 px at full sheet), flat, with a clear silhouette; faces in a few strokes.-The medium has five native powers. Build the film on at least three and put the strongest at the emotional peak.+## 3. Colour logic-| Native power | Story use |-|---|---|-| **A series of views** (Hokusai's 36 Views, Hiroshige's 53 Stations) | One constant subject seen in different compositions — the story is told by *where it sits in the frame* each time (tiny on the horizon → framed by a window → dwarfed by a wave → filling the sheet). |-| **The handscroll** | Scenes don't cut; the camera slides along a long scroll **right to left** (the real reading direction) and the next print arrives from the right. Speed up the slides to accelerate the story. |-| **Printing, block by block** | A scene can *appear* the way a print is made: key line first, then each colour block lands (slightly off, then snapping into registration) with baren-pressed, uneven ink. Use it to open, and to be reborn. |-| **Paper is the white** | Foam, snow, mist and blank sky are all unprinted paper. A wave's foam can fill the frame and literally wash the print back to a blank sheet. |-| **The frame is an object** | The border line, cartouche and seal are physical. Something big enough (a wave, a dragon, a mountain) can **break out of the border** into the mounting paper — the medium's own "fourth wall". |+- **A pigment set, not a colour wheel**: 6–9 flat hues, each printed from its own block, over the paper ground. No gradients except bokashi, no shading on forms.+- **Sumi key line** over everything; **paper is the white** (no white pigment for foam, snow, mist, blank sky).+- **One dominant hue family** carries sky and water (in the 19th-century prints, Prussian blue); **red is rare**: seals, a sun, one garment or tab.+- Far layers pale and low-contrast, near layers saturated with dark key lines.+- Examples, one per film: an indigo-and-beni landscape (Prussian blue, pale blue, beni red, ochre, greens, sumi, as in our demo); a bijin-ga interior (pale pink, mauve, grey-green, lacquer black, a mica-grey ground); an autumn surimono (persimmon, ochre, grey-green, deep brown, one blue).-Adapting any topic: make it **a journey or a series** with one constant subject. A product launch → five views of the product in five places. A city → a day in five prints. A life → five ages, the same tree in every print.+## 4. Type & subtitles-**Emotional arc (40 s):** jo-ha-kyū (序破急) — slow, open, still (jo) → gathering pulse (ha) → rapid rush to a peak (kyū) → a hard cut to silence (ma, 間) → a quiet resolution and a scale reveal. One character, one goal, one turn.+- **Subtitle = a horizontal cartouche**: a cream slip with a thick + thin ink border and a small red seal at the left; Shippori Mincho (500) in sumi, centred near the bottom. It "prints" in with the reveal mask and fades out. Hold ≥ max(1.8 s, speech + 0.6 s). It covers the bottom ~150 px: keep ground lines and figures above it.+- **View cartouche**: vertical cream slip, thick + thin border, a pale tab with the series title, the view title below in a brush font (e.g. Yuji Syuku), a seal beside: the "full stop" of each view. Titles live on the print as cartouches and seals, never as floating type.-## 3. Visual language+## 5. Motion quality-**Canvas & sheet.** 1920×1080 sheet = screen at zoom 1. Ink border at `x 44–1876, y 38–1042` (3.4 px) plus a thin outer line 9 px outside; paper margin beyond. Sheets sit on a long mounting scroll (`#c9b690`, 260 px gaps) with a wooden roller at the left end.+- Prints are still. **Most of the frame does not move**; each view has one or two small actions (steam, rain, a lantern, a falling leaf).+- **Figures and nature step at 8 fps**; rain and fast water at **12 fps**; **the camera moves on ones (24 fps)**. A stepped camera judders.+- **Printing reveal**: each block appears over ~0.3 s with a diagonal baren sweep with a noisy edge, sliding 5–6 px into registration as it lands (pure noise looks like mould).+- Cartouches drop in (fade + a short slide); a seal *stamps* (scale ~1.35 → 1 in 0.2 s).+- A native move needs a **held beat of about a second** to be read; a peak flashed in under a second reads as noise.-**Palette** (use these, not generic "Japanese" colours):+## 6. Camera grammar-| Name | Hex | Use |+The camera moves *over* prints and between them; it never rotates in 3D space inside one. Opening and ending come from the topic.++| Move | What it expresses | Can serve ||---|---|---|-| Paper | `#eee2c6` | washi base (with ±3% mottling, fibres `#fbf6e9` / `#c7b893`) |-| Prussian blue | `#1d3a66` · dark `#13284a` · light `#4d6f98` | skies, water, mountain, wave |-| Deep trough | `#0f2344` | inside of the wave |-| Pale blue | `#8db0c6` · `#bcd0d6` | water reflections, lower sky |-| Sumi (key block) | `#231f1c` | all key lines |-| Beni red | `#b8412f` · pale `#e3a08a` · peach `#efc4a8` | sun, felt bench, seals, dawn bokashi, cartouche tab |-| Ochre / straw | `#cf9f4a` · `#c9a45c` | hats, roads, obi |-| Greens | `#8aa152` · dark `#50703c` · pine `#3e5a3a` | fields, trees |-| Indigo cloth | `#2c4a70` · gaiters `#1d2c44` | clothing |--**Blocks.** Draw each colour group into its own offscreen canvas ("block"), cached once:-`g0` key lines · `g1` blues · `g2` greens / secondary · `g3` reds / figures. Composite with fixed registration offsets `g1 (2.2,−1.3)`, `g2 (−1.8,1.9)`, `g3 (1.5,2.2)`. On each colour block apply, in this order: woodgrain `source-atop` α≈0.1–0.17 (sky/water strongest), baren streaks `destination-out` α≈0.38 (0.2 on dark wood), goma-zuri specks `destination-out` α≈0.3. Key block: specks only (α 0.12). Over the finished sheet draw light fibres (α≈0.09) so paper shows through the ink.--**Woodgrain** = iso-lines of a warped noise field (`u = y·0.035 + fbm·9 + knots`), thin dark lines where `|frac(u)−0.5|>0.4` plus broad tonal bands. **Baren** = ~260 blurred circular arcs + zigzag streaks. Dynamic big fills (a wave) get the same textures inside their clip (woodgrain + paper-coloured baren overlay).--**Bokashi** is generated per pixel (a gradient whose top edge wanders by low-frequency noise per column, ±20–30 px) — never strips of `fillRect`, which leave vertical seams.--**Line.** Key lines 2.4–3 px; large contours (mountain, wave, trunks) are variable-width filled strokes, tapered at both ends, with ±20–35% low-frequency width jitter. Distant things (a mountain in rain) get a grey key line or none.--**Motifs (how to draw them):**-- *Mountain*: asymmetric concave slopes (`y = s^1.55` left, `s^1.8` right), a notched summit, snowcap as **drips down the gullies** — 12 fingers of random depth (some long), narrow and pointed, joined by a gently wavy snow line; right-side shade band; pale beni glow on the snow at dawn.-- *Mist (suyari-gasumi)*: long rounded bands, flat colour, fading at both ends and softly toward the bottom.-- *Pines*: bent trunk with bark scales, branches ending in flat-topped **needle pads** (scalloped top edge with fans of needle strokes, flat bottom line).-- *Fields*: high, flat, parallel layering — horizontal dikes with slowly increasing spacing and gentle waves; the cross dikes are **parallel and slanted**, not converging to a vanishing point; dike line widths vary.-- *Rain*: two sets of straight fine lines at slightly different steep angles over everything; heavy sumi bokashi at the top of the sky.-- *The wave*: normalised outline (back slope → crest → forward lip → curl → hollow front). Body in **three blue bands with bokashi between them** (light blue by the crest → Prussian → deep trough), made from thick strokes of inward offsets of the back-slope curve; **grouped white flow lines** (3 lines per group, broken into long arcs). Foam rim along the crest; **fractal claws**: each big claw splits into 3 fingers, each finger splits again, all tips hooking inward; a pale-blue back layer offset behind the white front layer; spray in **clusters** (one big dot, a few medium, many small).-- *Claw roots* must grow **out of** the foam: taper the root to ~40% width, then bury it in irregular white foam blobs (stroke all blobs first, then fill all → one union outline). Claws stuck straight onto the crest read as planks.-- *Cartouche*: vertical, cream `#f3e7c6`, thick + thin ink border, a pale beni tab on top with the series title, the view title below in a brush font; a red seal (white characters cut out of red, chipped edges) below or beside it.-- *Figures* are small in the landscape (80–130 px), flat, with a big hat and clear silhouette. Side-view traveler: low conical kasa hiding the upper face, tucked-up kimono with the back corner tucked into the obi, dark gaiters, straw sandals, staff, bundle knotted at the chest. Close views: shaved pate (pale blue-grey), folded topknot, one-stroke eye.--## 4. Motion language--- Prints are still. **Most of the frame does not move**; each view has one or two small actions (hat strings in the wind, seedlings swaying in rows, rain, a boat, steam, a lantern, a falling leaf).-- **Figures and nature step at 8 fps**; rain and wave claws at **12 fps**; **the camera moves on ones (24 fps)**. Stepping the camera looks like judder.-- **Printing reveal**: each block appears over ~0.34 s with a diagonal baren sweep whose edge is blotchy (noise), sliding 5–6 px into registration as it lands.-- **Transitions are scroll slides** (eased), getting faster: 1.0 s → 0.9 s → 0.6 s. Cartouche drops in (fade + 14 px) and the seal *stamps* (scale 1.35→1 over 0.2 s).-- The climax gets the **only big camera move** of the film, and it needs time — play it in four beats (~4.5 s total):- 1. **Rise** (~1.9 s): the sea swells into a wall; the camera tilts up past the top border and widens slightly so the figure shrinks.- 2. **Hang / 亮相** (~1.2 s): the crest stands outside the border in the mounting paper, claws open and nearly frozen (jitter ×0.25) — the whole print is visible as an object. The drum roll peaks, then an 80 ms silent intake of breath.- 3. **Fall** (~1.2 s): the lip lengthens and rotates down toward the lens, claws grow ×2.5, camera pushes to 3× with a small roll.- 4. **Foam** (~0.7 s): fractal claws burst from the lip to fill the screen, fade to bare paper → hard cut to silence (ma).--## 5. Camera language--| Beat | Camera |-|---|---|-| Opening | Locked on a blank sheet; the first print is printed block by block in front of us |-| Early views | Locked frame, like reading a print on a wall. The subject is small |-| Middle view | A very slow push (1.00 → 1.065) toward a framing device (round window) |-| Transitions | Handscroll slide right → left through the mounting gap |-| Climax | First big move: tilt up past the top border into the mount, push in; then crash-zoom into the foam |-| After the climax | Hard cut to a blank sheet — hold (間) — then reprint |-| Ending | Pull back from the last print to reveal the whole scroll: every view side by side (scale reveal); end card on the scroll |--Keep subtitles clear of the figure (bottom band ~80 px from the edge; move the figure up if needed).--## 6. Sound--- **Music: jo-ha-kyū** on Japanese instruments — **shamisen** (`pluck.py shamisen` with sawari buzz), **shakuhachi**, **taiko**, **hyōshigi** (wooden clappers). No piano, no string pads.- - Hyōshigi claps accelerate over the opening printing (one clap per block) — the kabuki curtain call.- - Shakuhachi in free rhythm, *miyako-bushi* scale (D E♭ G A B♭), long tones with breath, a slide up into each note and *meri* drops at phrase ends.- - Shamisen: slow pulse (72 BPM), then an ostinato (96 BPM) with a small tight drum; a fast rising run on the fastest scroll slide.- - Taiko heartbeat that accelerates from 0.9 s intervals to a roll for the climax; one full hit on the crash; then **absolute silence** (cut the reverb tails too). Four big taiko strokes reprint the last view. The opening shakuhachi motif returns and resolves; a long shamisen note with sawari rings out under the end card.- - Shakuhachi from samples: `flute`/`recorder`, flatten amplitude and pitch vibrato (divide by a 60 ms envelope; f0-track and counter-warp), add 1–4 kHz breath noise locked to the envelope, a *muraiki* breath burst on attacks.- - Taiko from samples: `gran_cassa` + `toms:low_mallet` + `frame_drum:large` + a synthesized skin (pitch drop ~120→58 Hz) and a stick thud.-- **Foley follows the material**: paper (baren rub = band-passed noise with a ~9 Hz circular modulation; scroll slide; cartouche slip; seal = low thump + tacky peel), wood (block set down, hollow bridge steps, cup on wood), glass (wind chime partials 2.36 / 5.15 / 7.98 kHz), water (field trickle, rain bed with drops, sea swell every ~4 s), birds (lark chirps, geese, a kite's *pii-hyoro* on the last view).-- **Voice**: calm male storyteller, first person, 5 short lines (Kokoro `am_adam`, speed 0.84–0.88). Music ducks ~−8 dB under voice (−10 dB on the last line), ambience ~−4 dB. Loudness −14 LUFS, `mux.sh` grain **0** (the paper is the grain).--## 7. Subtitles & titles--- **Subtitle = a horizontal cartouche**: cream `rgba(243,231,198,.96)` slip, 2.6 px + 1 px ink border, a small red seal "旅" at the left, Shippori Mincho 500 42 px in sumi, centred 72 px above the bottom. It "prints" in over 0.22 s with the reveal mask and fades out over 0.25 s. Each line stays ≥ max(1.8 s, voice + 0.75 s).-- **View cartouche** (vertical, Yuji Syuku): series title on the pale beni tab, view number + name below (一 田毎の朝 · 二 雨の橋 · 三 茶屋の窓 · 四 海立つ · 五 山), seal below/beside — the "full stop" of each view.-- **Title**: a vertical cartouche 山へ五景 + a horizontal English slip *Toward the Mountain* laid on the first print, stamped with a seal, lifted away before the first line.-- **End card**: the whole scroll across the middle on dark indigo `#161a22`; title above, `UKIYO-E · a Lemo-Opuscar demo · LemoLab × Claude Opus 5.5` below, one seal (drawn `source-over`, not multiply, on dark backgrounds).--## 8. Pitfalls we hit--- Bokashi from 6 px `fillRect` strips leaves visible vertical seams → build it per pixel.-- Too much speckle / fibre overlay makes dark areas look like sandpaper or scratched film → specks α≈0.3, fibres α≈0.09.-- Flat fills without woodgrain + baren read as vector art. Put the textures on every colour block, and inside the clip of big dynamic fills.-- A regular perspective grid for rice fields looks digital. Use parallel, slanted, flat layering.-- A zig-zag snow line looks like a crown; smooth waves look like icing. Use narrow pointed drips of random length, and force control points to be x-monotonic (otherwise tiny self-intersecting loops appear).+| Locked frame on one sheet | Reading a print on a wall | a place; a portrait; a still moment |+| Handscroll slide, right → left through the mounting gap (shorter slides = urgency) | Travel, the next station | a journey; a sequence of steps; a race |+| Very slow push toward a framing device (a window, a fan, a gate) | Attention narrowing | discovery; longing; a detail that matters |+| Tilt past the border into the mount | Something larger than the print | a flood; a rumour; a giant |+| Pull-back from one sheet to many | The series seen whole | a summary; a timeline; a collection |+| Crash-zoom into the texture (grain, specks, fibres) | The medium itself becomes the image | a dream; a breakdown; a memory dissolving |+| Pan across a triptych (three sheets side by side) | One scene too wide for one sheet | a procession; a battle; a festival |+| Hard cut to a blank sheet | Ma (間), a held breath | aftermath; a pause before a decision |++Framing: bold cropping and extreme foreground elements (a branch, a post, a lantern crossing the frame) are native; depth by stacking, never by perspective. Allowed transitions: scroll slides, printing reveals, a wash back to paper, a cut to blank. No cross-dissolves, no 3D flips.++## 7. Sound palette++- **Japanese instruments, not piano and pads**: shamisen (`core/audio/pluck.py shamisen`, with sawari buzz), shakuhachi, koto, taiko and shime-daiko, kotsuzumi / ōtsuzumi calls, hyōshigi (wooden clappers), a small bell.+- **Modes**: miyako-bushi (in scale), yō, ritsu; long breathy tones with a slide into each note and *meri* drops at phrase ends suit the shakuhachi; the shamisen can hold a pulse or an ostinato.+- **Techniques, as options**: absolute silence as *ma* (cut reverb tails too); a single sawari note left ringing; free-rhythm breath phrases against a steady pulse; clappers that accelerate (the kabuki curtain call); a taiko heartbeat that tightens into a roll; a koto glissando for a turn of season; a drum call (*kakegoe*) before an entrance.+- **Foley follows the material**: paper (baren rub = band-passed noise with a slow circular modulation; scroll slide; seal = low thump + tacky peel), wood (block set down, hollow steps), glass (wind chime), water, birds and insects of the season.+- **Voice**: calm, few short lines, like a poem written beside the print. Duck music ~8 dB under voice, ambience ~4 dB. Loudness −14 LUFS; `mux.sh` grain **0** (the paper is the grain).++## 8. Native moves++A menu: use the ones your story needs.++- **A series of views.** One constant subject in different compositions; the story is told by *where it sits in the frame* each time. *Fits content like:* one building through a century; a product in five homes; the same street in four seasons.+- **The handscroll.** Scenes don't cut; the camera slides right to left and the next print arrives. *Fits content like:* a supply chain; the stations of a pilgrimage; the steps of a recipe.+- **Printing, block by block.** Key line first, then each colour lands slightly off and snaps into register. *Fits content like:* a building going up; an idea taking shape; a character being "made" for the story.+- **Paper is the white.** Foam, snow, mist and blank sky are unprinted paper; white can flood the frame and wash the print back to a blank sheet. *Fits content like:* a snowfall that erases a town; forgetting; a clean start.+- **The frame is an object.** Border, cartouche and seal are physical; something big enough breaks out of the border into the mount. *Fits content like:* a festival that can't be contained; a legend; a runaway success.+- **Alternate impressions.** The same key block reprinted with different colour blocks (day → night, spring → winter). *Fits content like:* before and after; a city lit at night; two lives in one house.+- **The triptych.** A scene split across three sheets that join. *Fits content like:* three generations; a panorama of a harbour; a debate between three voices.++## 9. Pitfalls of the medium++- Bokashi from `fillRect` strips leaves vertical seams → build it per pixel.+- Too much speckle or fibre makes dark areas look like sandpaper or scratched film → specks α ≈ 0.3, fibres α ≈ 0.09.+- A perspective grid for fields looks digital → parallel, slanted, flat layering.- Pine clusters drawn as half-discs look like parasols → flat pads with needle fans.-- The first climax lasted 0.7 s and read as "some foam flashed"; the native move needs a ~1 s held beat to be read.-- First wave looked like a waterfall curtain (flow lines fanning from the base). Flow lines must follow the back-slope contour; body needs banded blues; claws must branch and hook inward — a single curled strip reads as a ribbon.-- Offset curves self-intersect at the tight lip → only use the back slope for inner flow lines.-- Drawing outside the print (the wave breaking the border) must escape **both** the sheet clip and the frame clip; clip the wave's sides to the frame so only the top breaks out.-- `mountain()` filled only when a flat colour was passed, so gradient bodies were transparent — watch option flags.-- A seal drawn with `multiply` vanishes on a dark end card or on the wave → `source-over` there.-- Figures on a foreground tree read as "in front of" it; keep low branches clear of the walking path.-- Ink reveal from pure noise looks like mould spreading → combine a directional (diagonal) sweep with noise on the edge.-- The subtitle band covers anything in the bottom 150 px — raise ground lines / figures.--## 9. Production recipe (this repo)--```-styles/ukiyoe/demo/- print.js paper, woodgrain, baren, specks, blocks, bokashi, carved lines, reveal masks, cartouche, seals- nature.js mountain + snow drips, pines, rocks, rain, geese, simple claws- traveler.js the traveler (walk / stand / hold hat / straw cape / sit & drink / back view / hat off)- views.js the five prints: cached blocks (g0–g3) + per-frame paint()- wave.js sea rows, wave geometry, banded body, fractal claws, spray clusters- story.js the timeline (single source of truth) main.js camera, scroll, sheets, reveal, titles, subtitles, events- lines.json voice music/score.py original score mix.py foley + voice + ducking + the silent ma subs.py cues → srt- build.sh one-command rebuild-```--1. `node core/render/still.mjs styles/ukiyoe/demo <t…>` (`--q nosub=1`, `--q test=trav` for the character sheet, `--q poster=1`).-2. `core/tts/tts.py lines.json voices` → `core/tts/asr_check.py`.-3. `node core/render/events.mjs styles/ukiyoe/demo` → `music/score.py` → `mix.py`.-4. `node core/render/video.mjs styles/ukiyoe/demo --fps 24 --workers 3` (1056 frames ≈ 45 s, Canvas2D).-5. `core/render/mux.sh out/video24.mp4 mix.wav ukiyoe.mp4 24 0` → `check_asr.py ukiyoe.mp4`.+- Offset curves self-intersect at tight bends → build inner lines from the gentle side of the contour; force control points x-monotonic.+- Breaking out of the print must escape **both** the sheet clip and the frame clip.+- A seal drawn with `multiply` vanishes on dark ground → `source-over` there.++## 10. Engine++In `demo/`: `print.js` (paper, woodgrain, baren, specks, blocks, bokashi, carved lines, reveal masks, cartouche, seals: the reusable core), `nature.js` (mountains, pines, rocks, rain, birds), `wave.js` (banded water, fractal claws, spray), `traveler.js` (flat figure rig), `views.js` (prints as cached blocks + per-frame `paint()`), `main.js` (camera, scroll, reveal, subtitles), `music/score.py`. Instrument recipes and commands: [DEMO.md](DEMO.md#build-notes).++## 11. Variation space++You decide the constant subject (or none), the number of views, the characters, the opening, the ending, the camera path, the pacing and the pigment set. All far from our demo:++- Structures: **alternate impressions** (one key block of a single street, reprinted for dawn, rain, festival night and snow); **a triptych unfolding** (three sheets revealed one at a time, the story only readable when all three join); **a print being made** (the carver's blocks, one per shot, each block's colour telling one chapter).+- Openings: **a close crop** (an extreme foreground detail, a lantern or a sleeve, fills the sheet; the pull-back finds the print); **the bare block** (carved wood inked, the paper laid on, the baren rubs; lifted to reveal the first print); **the mount first** (a closed scroll unrolls to its first sheet).+- Endings: **a seal alone** (the print fades back to paper, only the red seal remains); **the album closes** (sheets stack like pages, the cover lands); **the last print left unfinished** (key line only, colour blocks never land).++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/ukiyoe/TREATMENT.md b/styles/ukiyoe/TREATMENT.mddeleted file mode 100644index 5732f1e..0000000--- a/styles/ukiyoe/TREATMENT.md+++ /dev/null@@ -1,116 +0,0 @@-# TREATMENT · 17 Ukiyo-e《Toward the Mountain · 山へ五景》--> **返修注(关卡 2 后)**:巨浪高潮拉长为四拍——起浪 25.4–27.3 / 高悬(浪出画框、亮相)27.3–28.5 / 朝镜头倒下 28.5–29.7 / 泡沫铺满成纸 29.7–30.4;間 30.4–32.2;其后全部 +2.0 s(重印 32.2/32.7/33.2/33.7,L5 34.4,终印 38.4,拉远 38.9–40.9,片尾 40.3),全片 44 s。下表为首版时间,结构不变。--> 风格:木版套色浮世绘(Ukiyo-e)|2D Canvas|目标约 42 s(风格说明建议 40 s,见第 9 节"改动与理由")|旁白 Kokoro `am_adam`--## 1. 一句话故事--一个戴斗笠的旅人从稻田出发,穿过雨中的桥、在茶屋的圆窗里看见它、在海边被一道立起来的巨浪挡住——浪头把整幅画冲回一张白纸,下一幅"印"出来的,就是那座山;他站在山前,摘下斗笠。--> 旁白(第一人称,沉静):-> 1. *From home, the mountain was no bigger than a grain of rice.*-> 2. *The rain taught me to walk slower.*-> 3. *Some evenings, it waited for me in a window.*-> 4. *Then the sea stood up between us.*-> 5. *The mountain never moved. Only I did.*--最后一句是全片的"回响":观众一路看到山在每一幅画里的位置都不一样——大小、方向、被框住、被浪遮住——最后才被告知:变的从来不是山。--## 2. 对标:学什么 / 刻意不学什么--| 对标 | 学什么 | 刻意不学 |-|---|---|---|-| 葛饰北斋《富岳三十六景》 | 同一座山在不同构图里当"锚":远如米粒、被框进圆形(桶、窗)、藏在浪谷里、占满整幅。每幅画一个前景行为(劳作、赶路)+ 一个恒定的远景主体。大胆的几何切分(圆、对角线、低地平线)。 | 不复刻《神奈川冲浪里》:我的浪是**竖直立起的水墙、浪头朝镜头倒下**,前景是岩岬上的旅人而不是小船;不画红富士 + 鱼鳞云的构图;山的轮廓是原创的(不对称、顶上有缺口)。 |-| 歌川广重《东海道五十三次》/ 骤雨类 | 旅人作为小小的前景人物;雨线用两组不同角度的细直线铺满画面;天空上缘的墨色 ぼかし 表示暴雨。 | 不用对角斜桥 + 河面构图;我的是侧面的拱桥(太鼓桥)。 |-| 动画《怪化猫》(2007) | 把版画纹理变成动态:纸纹始终在画面上、平面层滑动而不是透视运动、镜头像在纸面上平移、题签/印章作为画面语法、强烈的平涂色块与装饰边框、有限动画(大部分时间静止,关键处才动)。 | 不学它的怪诞惊悚、迷幻拼贴与高饱和闪烁剪辑;不用其角色造型、符咒、纹样。本片是沉静的旅途诗,而不是恐怖剧。 |-| 手卷(绘卷)形制 | **从右往左**展开——旅人朝画面左侧走,镜头向左平移,是真实的阅读方向。 | —— |--## 3. 原生招式(只有木版画能做到的)--全片的动画语法就是"印刷"本身:--1. **一版一版印出来**:开场是一张空白和纸,先落墨线版(主版 / 墨版),再按拍点落普鲁士蓝的 ぼかし 天空、稻田的绿、黎明的红——每一版带一点**错位后"咔"地对准见当(kentō)**的动作,墨色像被馬連(baren)压过一样斑驳地"吃"进纸里。-2. **手卷平移**:幕与幕之间不剪,而是镜头沿着一条长长的裱纸向左平移,下一幅版画从右边滑进来;节奏由慢到快(1.0 s → 0.9 s → 0.6 s)。-3. **题签 + 印章当作句号**:每幕结束,竖式题签(日文幕名)落下,朱印"盖"上去——一声闷响,像在纸上按章。-4. **情绪最高点——浪冲破版画的边框,把画冲回白纸**:海边一幕,镜头第一次大幅运动(上摇 + 推进 + 微转),浪头长出"爪子",越过版画的墨线边框、伸进裱纸边距;浪倒下时白色泡沫铺满全屏——泡沫的白就是纸的白。接着是 1.5 秒的"間"(ma):只有一张空白和纸,全静音。然后最后一幅画像开场一样一版一版印出来:这次每一版都落在太鼓重击上。-5. **首尾呼应的尺度揭示**:结尾镜头从最后一幅拉远,露出整条手卷——五幅画并排,旅人走过的路一目了然,山在五幅里的五个位置同时可见。片尾卡就叠在这条手卷上。--## 4. 分镜节拍表(按秒,24 fps 输出;角色与自然元素 8 fps 步进,镜头走 24 fps)--| 时间 | 段落 | 画面 / 机位意图 | 声音 |-|---|---|---|---|-| 0.0–0.3 | 空纸 | 满屏和纸,纤维可见。静止——让观众先"看见纸"。 | 纸的底噪;木版放上台面的一声轻"咚" |-| 0.35 / 1.05 / 1.70 / 2.30 | 开场印刷(**钩子**) | 第一幕按版印出:墨线 → 普鲁士蓝 ぼかし 天空与水田 → 秧苗绿 → 朝霞红 + 旅人色。每版错位 6 px 落下、0.15 s 内对准,斑驳吃墨。 | 每版:拍子木(hyōshigi)一击 + 馬連摩擦声;四击渐快(歌舞伎开幕的"刻み") |-| 2.9–5.6 | 片名 | 左上竖式题签「山へ五景」+ 英文横题签 *Toward the Mountain* 落下,朱印盖上。 | 三味线和弦(sawari 蜂鸣)落在 2.9;尺八长音入 |-| 3.2–10.4 | **一 · 田毎の朝**(黎明稻田) | 固定机位,像把一幅画挂在面前"读":低地平线,一块块水田倒映天空,田埂把画面切成几何格。山在**左侧地平线上只有米粒大**。旅人沿田埂向左走(8 fps),风吹秧苗成排起伏,一行雁飞过。 | 晨风、远处云雀、田水细流、草鞋脚步。尺八自由节拍的长句(序 jo) |-| 6.0–9.5 | L1 | *From home, the mountain was no bigger than a grain of rice.* | |-| 9.6 / 10.1 | 题签 + 印 | 右上竖题签「一 田毎の朝」,朱印。 | 三味线"チン" + 印章闷响 |-| 10.5–11.5 | 手卷平移 | 向左平移 1.0 s,经过裱纸间隙。 | 纸面滑动声 |-| 11.5–17.0 | **二 · 雨の橋** | 侧面拱桥横跨河面,岸边柳树;天空上缘墨色 ぼかし;两组角度的细雨线铺满画面(12 fps 刷新)。山在**左中部,灰色剪影,比上一幅大**。旅人披蓑衣、压低斗笠过桥;桥下一叶小舟轻摇。 | 雨床、木桥空心脚步、河水。三味线慢脉动 72 BPM 起 |-| 12.3–14.1 | L2 | *The rain taught me to walk slower.* | |-| 15.6 / 16.1 | 题签 + 印 | 「二 雨の橋」 | 三味线 + 印 |-| 16.4–17.3 | 手卷平移 | 0.9 s | 纸面滑动 |-| 17.3–22.5 | **三 · 茶屋の窓**(**记忆点镜头**) | 茶屋内景,灰泥墙上一扇**圆窗正好框住整座山**(暮色橙粉 ぼかし 天空,山比前两幅都大)。旅人坐在铺红毡的长凳上端茶,热气袅袅,纸灯笼轻摆,风铃晃动。镜头极慢推进 1.00→1.06,让窗里的山慢慢"迎上来"。 | 铁壶微沸、风铃、茶碗落木。三味线固定音型 96 BPM + 締太鼓轻敲(破 ha) |-| 18.0–20.6 | L3 | *Some evenings, it waited for me in a window.* | |-| 21.6 / 22.0 | 题签 + 印 | 「三 茶屋の窓」 | 三味线 + 印 |-| 22.3–22.9 | 手卷平移 | 0.6 s,明显加快 | 纸面急滑 |-| 22.9–28.4 | **四 · 海立つ**(高潮) | 先是全景:右侧岩岬,旅人停步;左边远海上,山**又变小了**。L4 之后海面隆起成一道竖直水墙,镜头**第一次大幅运动**:上摇 + 推进 + 微转,跟着浪头。浪顶生出白色"爪子",越过版画的墨线边框伸进裱纸;浪头朝镜头倒下。 | 海浪床 → 低频涌起;大太鼓心跳从 23.2 起渐快成滚奏(急 kyū);三味线震音;尺八高音"村息"嘶鸣在浪顶 |-| 23.6–25.5 | L4 | *Then the sea stood up between us.* | |-| 28.4 | 碎浪 | 白色泡沫爪铺满全屏 → 全屏只剩纸白。 | 全频冲击,然后立刻切断(连混响尾一起) |-| 28.4–30.2 | **間(ma)** | 一张空白和纸,1.8 s 静止。 | **完全静音**(只有极低的纸底噪) |-| 30.2 / 30.7 / 31.2 / 31.7 | 最后一幅印刷 | 墨线 → 普鲁士蓝山体与天空 ぼかし → 雪顶的淡红 → 前景山脊 + 旅人。与开场同一语法,但更快更重。 | 每版一记大太鼓 |-| 30.2–36.8 | **五 · 山** | 正面、对称:山占满画面,雪线、横向霞带(すやり霞);前景低矮山脊上旅人背影极小。35.2 他摘下斗笠。 | 高空风、一声鸢鸣。尺八以开场动机回归(回响);三味线轻拨 |-| 32.4–35.1 | L5 | *The mountain never moved. Only I did.* | |-| 35.8 / 36.3 | 题签 + 印 | 「五 山」+ 最大的一枚朱印 | 三味线终止和弦 + 太鼓 + 拍子木一击 |-| 36.8–38.8 | 尺度揭示 | 镜头从第五幅拉远,整条手卷横在画面中央:五幅画从右到左排开,山的五个位置同时可见。 | 尺八最后长音,海风淡出 |-| 38.4–42.0 | 片尾卡 | 手卷上方:*Toward the Mountain*;下方:**Ukiyo-e** · Lemo-Opuscar / `LemoLab × Claude Opus 5.5`,朱印。 | 三味线最后一拨,sawari 余振自然衰减 |--**山的五个位置**:米粒大、左侧地平线 → 灰色剪影、左中 → 被圆窗框住、画面中心、大 → 缩小、藏在浪墙下 → 占满整幅、正中。--## 5. Cue map(音乐先行;画面卡以下时间点)--结构用日本传统音乐的**序・破・急**(jo-ha-kyū),正好就是"由慢到快":--| Cue | 时间 | 配器 | 速度 | 情绪 | 卡点 |-|---|---|---|---|---|---|-| C1 印刷 | 0.0–2.9 | 拍子木 + 馬連摩擦(拟音当乐器) | 渐快 | 期待 | 0.35 / 1.05 / 1.70 / 2.30 四击 = 四版落纸 |-| C2 序 | 2.9–10.5 | 三味线和弦 → 尺八自由节拍长句(都节音阶 D–E♭–G–A–B♭,meri 下滑音),三味线零星单音 | 无拍(约 60) | 清晨、空阔 | 2.9 片名和弦;10.1 印章"チン" |-| C3 雨 | 10.5–17.3 | 三味线慢脉动(すくい上拨)+ 尺八应答短句 | 72 BPM | 耐心、湿冷 | 11.5 平移落定起拍;16.1 印章 |-| C4 破 | 17.3–22.9 | 三味线固定音型 + 締太鼓轻敲,尺八休止(让风铃唱) | 96 BPM | 暖、停留 | 22.0 印章;22.3 急平移 |-| C5 急 | 22.9–28.4 | 大太鼓心跳(间隔 0.9 s → 0.12 s 滚奏)+ 三味线震音 + 尺八高音嘶鸣 + 海 | 加速 | 敬畏、危险 | 27.6 浪顶;28.4 冲击 |-| C6 間 | 28.4–30.2 | **全静音** | — | 屏息 | 28.4 硬切 |-| C7 回响 | 30.2–36.8 | 大太鼓四击 → 尺八回到 C2 的开场动机,三味线分解和弦 | 约 66 | 释然、到达 | 30.2/30.7/31.2/31.7 四版;35.2 摘斗笠;36.3 终印 |-| C8 尾 | 36.8–42.0 | 尺八长音 + 三味线末音(sawari 长余振) | — | 回响 | 38.4 片尾卡 |--配乐全部原创:三味线用 Karplus–Strong + sawari 蜂鸣(非线性琴马反射),尺八用气声噪声 + 带颤音的正弦/三角波 + 起音"村息",太鼓用音高下滑的膜振动 + 击面噪声,拍子木用两块硬木的共振。优先用 `core/audio` 的 pluck/sampler(届时查 INSTRUMENTS.md 是否 READY),否则 numpy 自写;可能 fork 子 agent 专写配乐。--## 6. 声音设计--- 材质拟音:和纸(馬連摩擦 = 周期调制的滤波噪声;纸面滑动;印章 = 低频闷响 + 纸面轻擦)、木(拍子木、木桥空心脚步、茶碗落木)、水(田水细流、雨床、河、海浪床、碎浪)、草鞋在土路上的轻擦、风铃(高频玻璃分音)、铁壶沸声、鸢鸣(FM 下滑音)。-- **静音是招式**:碎浪之后 1.8 s 全静,连混响尾一起切掉。-- 旁白压缩后放在最前,音乐闪避约 −8 dB;整体 −14 LUFS;grain = 0(纸纤维画面里自己做)。--## 7. 字幕设计(字幕也是风格)--- 形制:**横式题签**——米黄色(#f1e4c2)长方块,外粗内细双墨线框,左端一枚小朱印("旅")。文字用 Shippori Mincho(OFL)约 42 px,墨色 #231f1c。位置底部居中,距底 ~80 px,逐镜检查不压住旅人。-- 出现方式:"印"上去:0.2 s 内带斑驳吃墨的显现 + 1 px 对准;消失为 0.25 s 淡出。-- 幕题签:竖式,右上或左上(按构图避让),上方一小块浅红"系列签"写「山へ五景」,下面写幕名(日文竖排),朱印盖在旁边。-- 片名:竖题签「山へ五景」+ 横题签英文 *Toward the Mountain*。-- 另交 `.srt`。--## 8. 视觉规格(摘要,完整参数写进 STYLE.md)--- 纸:和纸 #eee2c6 底,长短纤维、微黄的边缘老化;全画面乘一层纤维纹理(颗粒 = 0,纸自己就是质感)。-- 版:每个颜色一块"版"(离屏画布),各带 ±1–2 px 固定错位;色版上有胡麻摺(goma-zuri)斑点与大面积的木纹(mokume);主墨线版最后压上。-- 色:普鲁士蓝 #1d3a66 / 深 #13284a、藍 #2f4f73、浅蓝 #8db0c6、墨 #231f1c、紅 #b8412f、淡红 #e3a08a、黄土 #cf9f4a、秧绿 #8aa152 / 深绿 #50703c、灰 #8b8a80、肤 #ecd6b2、纸 #eee2c6。-- ぼかし:天空上缘普鲁士蓝向下渐变成纸色,边缘有手抹的不均匀;地平线附近一条淡红。-- 线:墨线 2.4–3 px 为主,大轮廓(山、浪)用两端收尖的变宽线;线条有低频抖动,像刻刀刻出来的。-- 动作:角色与自然元素 8 fps(有限动画,大部分时间"像画一样静"),雨 12 fps,镜头 24 fps。--## 9. 相对风格说明的改动与理由--- **时长约 42 s 而非 40 s**:五幕 + 开场印刷 + 間 + 手卷揭示,按"每句字幕 ≥ 语音 + 0.6 s、每幅画留够读图时间"排下来是 42 s,不为压时长砍停留。-- **加入"一版一版印出来"作为开场钩子与高潮后的重生**:风格说明列的原生招式(平移、ぼかし、浪爪、题签印章)都保留;我把"印刷过程"本身做成叙事转折——浪把画冲回白纸,山被重新印出——这是只有版画能讲的转折。-- **从右往左走**:手卷的真实阅读方向,旅人、山、镜头平移方向一致。-- **加入结尾整条手卷的尺度揭示**:让"山在每幅画里位置不同"的设计在最后一眼被看全,并承接最后一句旁白。diff --git a/styles/ukiyoe/demo/fonts/shippori-500.woff2 b/styles/ukiyoe/demo/fonts/shippori-500.woff2deleted file mode 100644index 4ddec19..0000000Binary files a/styles/ukiyoe/demo/fonts/shippori-500.woff2 and /dev/null differdiff --git a/styles/ukiyoe/demo/fonts/shippori-700.woff2 b/styles/ukiyoe/demo/fonts/shippori-700.woff2deleted file mode 100644index 21dad4a..0000000Binary files a/styles/ukiyoe/demo/fonts/shippori-700.woff2 and /dev/null differdiff --git a/styles/ukiyoe/demo/fonts/shippori-kanji.woff2 b/styles/ukiyoe/demo/fonts/shippori-kanji.woff2deleted file mode 100644index 313aab6..0000000Binary files a/styles/ukiyoe/demo/fonts/shippori-kanji.woff2 and /dev/null differdiff --git a/styles/ukiyoe/demo/fonts/yuji-kanji.woff2 b/styles/ukiyoe/demo/fonts/yuji-kanji.woff2deleted file mode 100644index 5a20e04..0000000Binary files a/styles/ukiyoe/demo/fonts/yuji-kanji.woff2 and /dev/null differdiff --git a/styles/ukiyoe/style.json b/styles/ukiyoe/style.jsonnew file mode 100644index 0000000..e52fc80--- /dev/null+++ b/styles/ukiyoe/style.json@@ -0,0 +1,18 @@+{+ "slug": "ukiyoe",+ "num": "08",+ "en": "Ukiyo-e",+ "cn": "浮世绘",+ "category_en": "East Asian Traditions",+ "category_cn": "东方传统",+ "film": "A Journey Toward the Mountain",+ "line": "A traveller walks toward a distant mountain; every shot is a woodblock print, ending in a great wave.",+ "line_cn": "旅人走向远山,每个镜头都是一幅版画,最后迎来一道巨浪。",+ "uses": [+ "Travel",+ "Japanese culture",+ "Poetry"+ ],+ "frame_sec": 26.4,+ "dur": 44.0+}diff --git a/styles/urban-sketch/DEMO.md b/styles/urban-sketch/DEMO.mdnew file mode 100644index 0000000..e76fe0e--- /dev/null+++ b/styles/urban-sketch/DEMO.md@@ -0,0 +1,131 @@+# Urban Sketch · Pen & Wash — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Where the Wind Went* (32.4 s, 1920×1080, 24 fps, no voice-over) · `urban-sketch.mp4` · source in [`demo/`](demo/)+++The original header: a sketchbook page from the park bench: fine sepia fineliner lines that wobble, overshoot and never quite close, with loose transparent watercolour dropped on top. The colour sits slightly off the lines, spills over them, and dissolves into cream cold-press paper at the page edge.++## Story & structure++A park exists only as an ink sketch, and the only colour on the page is a straw hat. A gust steals the hat, and **the page gets painted wherever the wind carries it**.++The original "what the style is" notes with the demo's exact colours: paper `#f5eede`, ink `#2b2520`.++Reportage drawing, made on location in a few minutes. Two layers that stay visibly separate:+1. **Ink.** One thin, near-constant line (a 0.3–0.5 mm fineliner), dark sepia `#2b2520`. It wobbles slightly, overshoots corners by a few pixels, breaks mid-stroke, and suggests rather than describes: a few window marks instead of a grid, scalloped fragments instead of a whole tree outline.+2. **Wash.** Transparent watercolour glazed on top. It is **misregistered** by 1–3 px from the line, sometimes spills past it, and leaves paper white for highlights and for figures (reserves). Dried edges are darker (pigment pools at the rim), and pigment granulates into the paper tooth.++The page itself is part of the image. The warm cream `#f5eede` cold-press paper has large-scale mottling and a fine tooth. Nothing is painted edge to edge: the painting frays into leaf-sized dabs and white holes, leaving a blank margin for handwriting.++Stories the style was pitched for, and the native moves the demo used (line before colour for the sketch spread and skyline; colour as arrival driven by the gust; the one coloured thing = the straw hat; the page as frame for the ending):++Good for: travel diaries, city portraits, a day in a place, "the moment I noticed…", slice-of-life, gentle comedy with small figures, anything that benefits from feeling observed and handmade.++**Native moves (only this medium does them):**+- **Line before colour.** Show the pen drawing a subject stroke by stroke (in real stroke order), then drop the wash in. The drawing process is the spectacle.+- **Colour as arrival.** Every pixel has a *colour arrival time*. Wash spreads outward from a source with a ragged wet front and a dark tide line, so you can paint with an event (wind, a runner, music, a sunrise). Figures stay frozen line drawings until colour touches them, then start moving.+- **The one coloured thing.** Open on a colourless sketch with a single tinted object; it becomes the protagonist.+- **The page as frame.** Pull back until the whole page is visible, edges dissolving, with handwritten title and notes in the margin. This works as an end card and a scale reveal in one.++## Shots++A 2D camera over a 5120×2880 page (the final pull-back shows it 1:1 at 0.375×).+- Designed moves use cubic easing. Follow shots use a critically damped spring on a lead-ahead target, so the camera lags like a hand-held follow (stiffness 28, or 70 for the fall).+- The demo uses push, pull, lateral follow, crane-up, whip-tilt with a slight roll, a punch-in with a 0.35 s shake on impact, a long pull-back, and a tilt down into the margin.+- Keep subjects at least one third of frame height at story beats; the hat gets a faint paper halo (reserve) so it reads over busy foliage.++## Motion as used in the demo++- Figures **boil** at 12 fps: line wobble and wash seeds change every 1/12 s. The static page does not boil (it is a real page); the camera moves every frame, smoothly.+- Figures keep anticipation, action and follow-through: a crouch before standing, a lunge and stumble on a miss, a prone slide after a dive. Footsteps land on the beat (run cycle = 2 beats).+- The wind is drawn: ink "~@" curls spawn behind the hat on every beat, draw on in 0.4 s, then erase from the tail; leaf dabs trail the hat.+- Colour never snaps. It blooms from a point with a noisy circular clip (figures) or through the arrival field (the world).++## Score structure++Three layers; no voice-over.+- **Ambience:** paper room tone → park birds (after colour arrives) → a low city hum that comes in a bar before the skyline (J-cut). Everything drops out for the silent bar.+- **Foley:** pen on cold-press paper (band-passed noise, 1.6–7.5 kHz, with a fibre amplitude texture and grain clicks, one burst per real stroke; thousands overlap into a hiss during the sketch spread; skyline strokes are brighter and read as a hi-hat); a wet brush "shhh" for every big bloom; wind J-cut from the right channel; the straw hat as paper flapping whose rate and level follow its speed and whose pan follows its screen x; steps on the beat; bike bell; dive, slide, catch slap and water plop.+- **Music:** 150 BPM jazz waltz in F: Sneakybass walking in three, synthesized brushes plus pedal hi-hat, upright piano on beats 2–3, a clarinet lead, muted trumpet for the city, pizzicato ostinato, vibraphone and marimba stabs where trees burst, and a floating D♭maj7♯11 at the apex, followed by **one bar of true silence**. The first sound after it is a chromatic clarinet fall with timpani; the catch lands on a tutti downbeat.+- Mix: music ducks under the catch; foley high-passed at 90 Hz; −14 LUFS, LRA 7.++## Palette & props++| Element | Value |+|---|---|+| Paper | `#f5eede`; mottling fbm at 0.0011 and 0.0062 cycles/px, ±4.5 %; tooth tile multiplied on top of everything, figures included |+| Ink | `#2b2520` at 96 % coverage; world line width 1.3–3.4 px (thinner far, thicker near); wobble 0.9–1.3 px; overshoot 3–8 px; 30–60 % of long strokes get one 3–9 px gap |+| Wash | 2–3 rough-edged layers (edge noise 4–12 px), multiply blend; alpha 0.4–0.65; offset from line by 0.7–1× line width; dried edge stroke at 30–40 % |+| Granulation | pigment × (0.82 + 0.36 · fbm(p · 0.21)) |+| Wet front | reveal smoothstep over 0.16 s of arrival time; front band darkened +70 % (Gaussian at +0.07 s, σ 0.08 s); edge noise ±240 px coarse + ±40 px fine |+| Foliage | pale base wash (sun `#d6d56f`), then light and shadow masses, then 5–20 px leaf dabs coloured by light direction: `#d6d56f` → `#aabf57` → `#7fa04a` → `#56793c` → `#3f5d36`; holes at the rim; scalloped ink fragments only on the outline |+| Sky | a few big soft ellipses of `#9fbcd6` / `#86a6c8` at 10–20 % alpha, fading upward; clouds are reserves with a `#b7b3c9` belly |+| Buildings | limestone `#d8c6a0`, ochre `#cfaa72`, glass `#98b1c8`, brick `#c49a7a`; shadow side = colour mixed 45 % with `#5a5f82`; distant blocks mixed 50 % with haze `#b9c0cc` |+| Lawn and path | `#c3c96f` / `#dcd98b` light bands, `#7f9c52` shade dabs; path `#d8ccb1`; grass = 2–4 ink flicks per tuft, denser near the camera |+| Figures | 3D skeleton, orthographic projection; torso silhouette from cross-sections; limbs as organic tapered tubes; hair and head as one mass; face left blank (one nose tick in profile); shadow side = colour mixed 40 % with violet `#464873` |+| Page edge | noisy boundary (fbm 0.004, ±80 px); a white-dab band 70 px wide inside, a coloured-dab spray 70 px wide outside |++## Titles and end card++No subtitles are needed. All text is **handwriting on the page**, written on with a left-to-right reveal and pen sound:+- corner note in Reenie Beanie (`Sun. 3:40 pm — windy`);+- title and colophon in Caveat (500–600 weight), left-aligned in the blank page margin.++The text stays in the world and moves with the camera, never as an overlay.++End card (`demo/film.js`, `notes()`): the title "Where the wind went." written in Caveat 500 at 190 px in the lower-left margin (28.2–29.5 s), then the colophon in the same column: "Urban Sketch · Pen & Wash — a Lemo-Opuscar style" (30.1–30.8 s), "LemoLab × Claude Opus 5.5" in Caveat 600 (30.6–31.2 s), and the music, sample and font credits (31.0–31.8 s). The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card (take those `handwrite()` lines out when reusing the code).++## Build notes++```+styles/urban-sketch/demo/+ engine.js pen, wash, foliage, arrival field, GL compositor, figure rig, hat, bike, handwriting, sketchShape+ world.js the static page: sky, skyline (ink in stroke order), trees, lawn, path, lamp, pond, bridge, crowd, edge dissolve+ poses.js character looks + pose library (sit, run, walk, cycle, dive, prone, wave)+ film.js timeline: hat path, camera, performances, colour sources, sound cues+ audio/ score.py (music) · foley.py (all procedural sound) · mix.py+ build.sh one command, from nothing to urban-sketch.mp4+```+Render: `node core/render/video.mjs styles/urban-sketch/demo --fps 24 --workers 4` renders 778 frames in about 40 s on an M-series Mac; world build takes about 4 s per worker.++### Pitfalls we hit++- **Straight edges in the colour field.** The source bounding box ignored its vertical stretch (`sy`), and the slow "creep" beyond the reach radius was cut by a square box. Clip by the actual (noisy) distance, not the bbox.+- **Rectangle masks around set-back towers** left white notches in the sky. Mask with the real stepped silhouette (tiers, spire, pyramid, water tank).+- **Characters losing colour** when they run into unpainted areas. Sample arrival once at the character's start point (or tie it to the event that coloured them), never at the current position.+- **Static ink cannot be occluded by later washes.** Far crowds therefore use carrot-people (one wash blob, two leg lines, a head dot) instead of full rigs; building ink is erased inside nearer buildings and tree crowns before drawing.+- **IK feet left pinned** while blending sit → stand splays the legs. Blend the foot targets toward under-hip positions.+- **Front-facing heads went bald.** Always draw the hair mass, then knock the face out of its lower part.+- Headless Chrome and big canvases: 5120² canvases for ink, time, colour and the page are fine, but pack ink and time into RGBA byte textures yourself (`getImageData`), and upload the arrival field as `R16F` (filterable).++## Engine reference++All functions are in `demo/engine.js` and are deterministic (same seed, same marks).++| Function | What it does |+|---|---|+| `penStroke(pts, {w, wob, over, gap, seed, smooth})` | prepares a fineliner stroke along any polyline (wobble, overshoot, taper, gaps) |+| `drawPen(ctx, stroke, p=1, col=INK, alpha=1, from=0)` | draws it up to fraction `p` (draw-on); `from` erases from the tail |+| `rasterPen(inkCtx, timeCtx, stroke, t0, dur, win)` | bakes a stroke into a static ink layer **plus** its per-pixel arrival time (stroke order playback in the shader) |+| `wash(ctx, poly, [r,g,b], {a, j, layers, edge, dx, dy, seed})` | a watercolour wash on any polygon (rough edges, glazing, dark tide line, offset) |+| `reserve(ctx, poly, a)` | lifts colour back to paper (reserves, foreground occlusion) |+| `dab(ctx, x, y, r, angle, col, a, seed)` / `foliage(ctx, crown[], opts)` | leaf dabs / a whole tree crown |+| `arrivalField(W, H, gw, gh, sources, {amp, creep})` | colour arrival time per cell; `sources = [{x, y, t, v, R, sy, mask, hard}]` |+| `compositor(canvas, layers)` → `draw(cam, t)` | WebGL page: paper × wash (revealed by arrival, wet front) × ink (revealed by stroke time) |+| `figure(look, pose, place, {seed, boil})` → prims | a sketched person (knock / wash / ink primitives); `prims.head`, `prims.hand` for attachments |+| `hat(c, r, [rx, ry, rz])`, `bike(place, phase, col)` | props with true 3D orientation |+| `drawPrims(ctx, prims, {color, ink, clip})` | draws primitives; `color` 0..1 = how far the wash has arrived; `ink` = draw-on progress (number or per-primitive function) |+| `sketchShape(ctx, poly, col, {ink, wash, offset, color, p})` | **any shape in this style** in one call |+| `handwrite(ctx, text, x, y, size, p, {font})` | handwriting written on left to right |++**The "only colour" hook.** Leave everything at `color: 0` (pure ink) and pass `color: 1` only for the element that keeps its colour, as the straw hat does in the demo. Or give that element an arrival source at t = 0 and everything else later.++Minimal example: a warm orange `#D97757` four-point sparkle with a short cursor tail.+```js+import { sketchShape, sparkle, penStroke, drawPen, hex } from './engine.js';+const star = sparkle(960, 540, 120, .24); // 4-point star polygon+sketchShape(ctx, star, hex('#D97757'), { ink: 3, wash: .7, offset: 3, seed: 7 });+drawPen(ctx, penStroke([[1040, 610], [1180, 640], [1300, 646]], { w: 3, wob: 1.2, over: 6, seed: 8 }), 1); // the tail+```diff --git a/styles/urban-sketch/STYLE.md b/styles/urban-sketch/STYLE.mdindex 68b51ba..033bc2e 100644--- a/styles/urban-sketch/STYLE.md+++ b/styles/urban-sketch/STYLE.md@@ -1,122 +1,124 @@-# Urban Sketch · Pen & Wash+# Urban Sketch · Pen & Wash — Style Prompt-> **One line:** a sketchbook page from the park bench: fine sepia fineliner lines that wobble, overshoot and never quite close, with loose transparent watercolour dropped on top. The colour sits slightly off the lines, spills over them, and dissolves into cream cold-press paper at the page edge.->-> **Demo:** *Where the Wind Went*, 32.4 s, 1920×1080, 24 fps, no voice-over. A park exists only as an ink sketch, and the only colour on the page is a straw hat. A gust steals the hat, and **the page gets painted wherever the wind carries it**.->-> **References (grammar only):**+> A sketchbook page drawn on location: fine sepia fineliner lines that wobble, overshoot and never quite close, with loose transparent watercolour dropped on top. The colour sits slightly off the lines, spills over them, and dissolves into cream cold-press paper at the page edge.+> References (grammar only):> - Urban-sketching sketchbook pages: line first, then wash; colour off-register; handwritten date and place in the corner; the page edge breaking up into dabs.-> - *Paperman* (2012): a monochrome world with one coloured object; the wind as matchmaker.-> - *The Red Balloon* (1956): an object as the protagonist, with the camera following it across a city.-> - Jazz waltz (the Vince Guaraldi school): 3/4 swing, a bass walking in three, brushes, a clarinet lead.+> - *Paperman* (2012): a monochrome world with one coloured object.+> - *The Red Balloon* (1956): an object as the protagonist, the camera following it across a city.+> - Jazz waltz (the Vince Guaraldi school): 3/4 swing, walking bass, brushes, a woodwind lead.>> Nothing is copied from these: no characters, melodies, layouts or type.----+## 1. Essence, and what it is not-## 1. What the style isReportage drawing, made on location in a few minutes. Two layers that stay visibly separate:-1. **Ink.** One thin, near-constant line (a 0.3–0.5 mm fineliner), dark sepia `#2b2520`. It wobbles slightly, overshoots corners by a few pixels, breaks mid-stroke, and suggests rather than describes: a few window marks instead of a grid, scalloped fragments instead of a whole tree outline.-2. **Wash.** Transparent watercolour glazed on top. It is **misregistered** by 1–3 px from the line, sometimes spills past it, and leaves paper white for highlights and for figures (reserves). Dried edges are darker (pigment pools at the rim), and pigment granulates into the paper tooth.--The page itself is part of the image. The warm cream `#f5eede` cold-press paper has large-scale mottling and a fine tooth. Nothing is painted edge to edge: the painting frays into leaf-sized dabs and white holes, leaving a blank margin for handwriting.--## 2. Stories that fit, and the native moves-Good for: travel diaries, city portraits, a day in a place, "the moment I noticed…", slice-of-life, gentle comedy with small figures, anything that benefits from feeling observed and handmade.--**Native moves (only this medium does them):**-- **Line before colour.** Show the pen drawing a subject stroke by stroke (in real stroke order), then drop the wash in. The drawing process is the spectacle.-- **Colour as arrival.** Every pixel has a *colour arrival time*. Wash spreads outward from a source with a ragged wet front and a dark tide line, so you can paint with an event (wind, a runner, music, a sunrise). Figures stay frozen line drawings until colour touches them, then start moving.-- **The one coloured thing.** Open on a colourless sketch with a single tinted object; it becomes the protagonist.-- **The page as frame.** Pull back until the whole page is visible, edges dissolving, with handwritten title and notes in the margin. This works as an end card and a scale reveal in one.--## 3. Visual language (with numbers)-| Element | Value |-|---|---|-| Paper | `#f5eede`; mottling fbm at 0.0011 and 0.0062 cycles/px, ±4.5 %; tooth tile multiplied on top of everything, figures included |-| Ink | `#2b2520` at 96 % coverage; world line width 1.3–3.4 px (thinner far, thicker near); wobble 0.9–1.3 px; overshoot 3–8 px; 30–60 % of long strokes get one 3–9 px gap |-| Wash | 2–3 rough-edged layers (edge noise 4–12 px), multiply blend; alpha 0.4–0.65; offset from line by 0.7–1× line width; dried edge stroke at 30–40 % |-| Granulation | pigment × (0.82 + 0.36 · fbm(p · 0.21)) |-| Wet front | reveal smoothstep over 0.16 s of arrival time; front band darkened +70 % (Gaussian at +0.07 s, σ 0.08 s); edge noise ±240 px coarse + ±40 px fine |-| Foliage | pale base wash (sun `#d6d56f`), then light and shadow masses, then 5–20 px leaf dabs coloured by light direction: `#d6d56f` → `#aabf57` → `#7fa04a` → `#56793c` → `#3f5d36`; holes at the rim; scalloped ink fragments only on the outline |-| Sky | a few big soft ellipses of `#9fbcd6` / `#86a6c8` at 10–20 % alpha, fading upward; clouds are reserves with a `#b7b3c9` belly |-| Buildings | limestone `#d8c6a0`, ochre `#cfaa72`, glass `#98b1c8`, brick `#c49a7a`; shadow side = colour mixed 45 % with `#5a5f82`; distant blocks mixed 50 % with haze `#b9c0cc` |-| Lawn and path | `#c3c96f` / `#dcd98b` light bands, `#7f9c52` shade dabs; path `#d8ccb1`; grass = 2–4 ink flicks per tuft, denser near the camera |-| Figures | 3D skeleton, orthographic projection; torso silhouette from cross-sections; limbs as organic tapered tubes; hair and head as one mass; face left blank (one nose tick in profile); shadow side = colour mixed 40 % with violet `#464873` |-| Page edge | noisy boundary (fbm 0.004, ±80 px); a white-dab band 70 px wide inside, a coloured-dab spray 70 px wide outside |--## 4. Motion-- Figures **boil** at 12 fps: line wobble and wash seeds change every 1/12 s. The static page does not boil (it is a real page); the camera moves every frame, smoothly.-- Figures keep anticipation, action and follow-through: a crouch before standing, a lunge and stumble on a miss, a prone slide after a dive. Footsteps land on the beat (run cycle = 2 beats).-- The wind is drawn: ink "~@" curls spawn behind the hat on every beat, draw on in 0.4 s, then erase from the tail; leaf dabs trail the hat.-- Colour never snaps. It blooms from a point with a noisy circular clip (figures) or through the arrival field (the world).--## 5. Camera-A 2D camera over a 5120×2880 page (the final pull-back shows it 1:1 at 0.375×).-- Designed moves use cubic easing. Follow shots use a critically damped spring on a lead-ahead target, so the camera lags like a hand-held follow (stiffness 28, or 70 for the fall).-- The demo uses push, pull, lateral follow, crane-up, whip-tilt with a slight roll, a punch-in with a 0.35 s shake on impact, a long pull-back, and a tilt down into the margin.-- Keep subjects at least one third of frame height at story beats; the hat gets a faint paper halo (reserve) so it reads over busy foliage.--## 6. Sound-Three layers; no voice-over.-- **Ambience:** paper room tone → park birds (after colour arrives) → a low city hum that comes in a bar before the skyline (J-cut). Everything drops out for the silent bar.-- **Foley:** pen on cold-press paper (band-passed noise, 1.6–7.5 kHz, with a fibre amplitude texture and grain clicks, one burst per real stroke; thousands overlap into a hiss during the sketch spread; skyline strokes are brighter and read as a hi-hat); a wet brush "shhh" for every big bloom; wind J-cut from the right channel; the straw hat as paper flapping whose rate and level follow its speed and whose pan follows its screen x; steps on the beat; bike bell; dive, slide, catch slap and water plop.-- **Music:** 150 BPM jazz waltz in F: Sneakybass walking in three, synthesized brushes plus pedal hi-hat, upright piano on beats 2–3, a clarinet lead, muted trumpet for the city, pizzicato ostinato, vibraphone and marimba stabs where trees burst, and a floating D♭maj7♯11 at the apex, followed by **one bar of true silence**. The first sound after it is a chromatic clarinet fall with timpani; the catch lands on a tutti downbeat.-- Mix: music ducks under the catch; foley high-passed at 90 Hz; −14 LUFS, LRA 7.--## 7. Titles and text-No subtitles are needed. All text is **handwriting on the page**, written on with a left-to-right reveal and pen sound:-- corner note in Reenie Beanie (`Sun. 3:40 pm — windy`);-- title and colophon in Caveat (500–600 weight), left-aligned in the blank page margin.--The text stays in the world and moves with the camera, never as an overlay.--## 8. Pitfalls we hit-- **Straight edges in the colour field.** The source bounding box ignored its vertical stretch (`sy`), and the slow "creep" beyond the reach radius was cut by a square box. Clip by the actual (noisy) distance, not the bbox.-- **Rectangle masks around set-back towers** left white notches in the sky. Mask with the real stepped silhouette (tiers, spire, pyramid, water tank).-- **Characters losing colour** when they run into unpainted areas. Sample arrival once at the character's start point (or tie it to the event that coloured them), never at the current position.-- **Static ink cannot be occluded by later washes.** Far crowds therefore use carrot-people (one wash blob, two leg lines, a head dot) instead of full rigs; building ink is erased inside nearer buildings and tree crowns before drawing.-- **IK feet left pinned** while blending sit → stand splays the legs. Blend the foot targets toward under-hip positions.-- **Front-facing heads went bald.** Always draw the hair mass, then knock the face out of its lower part.-- Headless Chrome and big canvases: 5120² canvases for ink, time, colour and the page are fine, but pack ink and time into RGBA byte textures yourself (`getImageData`), and upload the arrival field as `R16F` (filterable).--## 9. How this demo is built (this repo)-```-styles/urban-sketch/demo/- engine.js pen, wash, foliage, arrival field, GL compositor, figure rig, hat, bike, handwriting, sketchShape- world.js the static page: sky, skyline (ink in stroke order), trees, lawn, path, lamp, pond, bridge, crowd, edge dissolve- poses.js character looks + pose library (sit, run, walk, cycle, dive, prone, wave)- film.js timeline: hat path, camera, performances, colour sources, sound cues- audio/ score.py (music) · foley.py (all procedural sound) · mix.py- build.sh one command, from nothing to urban-sketch.mp4-```-Render: `node core/render/video.mjs styles/urban-sketch/demo --fps 24 --workers 4` renders 778 frames in about 40 s on an M-series Mac; world build takes about 4 s per worker.--## 10. Engine usage-All functions are in `demo/engine.js` and are deterministic (same seed, same marks).--| Function | What it does |-|---|---|-| `penStroke(pts, {w, wob, over, gap, seed, smooth})` | prepares a fineliner stroke along any polyline (wobble, overshoot, taper, gaps) |-| `drawPen(ctx, stroke, p=1, col=INK, alpha=1, from=0)` | draws it up to fraction `p` (draw-on); `from` erases from the tail |-| `rasterPen(inkCtx, timeCtx, stroke, t0, dur, win)` | bakes a stroke into a static ink layer **plus** its per-pixel arrival time (stroke order playback in the shader) |-| `wash(ctx, poly, [r,g,b], {a, j, layers, edge, dx, dy, seed})` | a watercolour wash on any polygon (rough edges, glazing, dark tide line, offset) |-| `reserve(ctx, poly, a)` | lifts colour back to paper (reserves, foreground occlusion) |-| `dab(ctx, x, y, r, angle, col, a, seed)` / `foliage(ctx, crown[], opts)` | leaf dabs / a whole tree crown |-| `arrivalField(W, H, gw, gh, sources, {amp, creep})` | colour arrival time per cell; `sources = [{x, y, t, v, R, sy, mask, hard}]` |-| `compositor(canvas, layers)` → `draw(cam, t)` | WebGL page: paper × wash (revealed by arrival, wet front) × ink (revealed by stroke time) |-| `figure(look, pose, place, {seed, boil})` → prims | a sketched person (knock / wash / ink primitives); `prims.head`, `prims.hand` for attachments |-| `hat(c, r, [rx, ry, rz])`, `bike(place, phase, col)` | props with true 3D orientation |-| `drawPrims(ctx, prims, {color, ink, clip})` | draws primitives; `color` 0..1 = how far the wash has arrived; `ink` = draw-on progress (number or per-primitive function) |-| `sketchShape(ctx, poly, col, {ink, wash, offset, color, p})` | **any shape in this style** in one call |-| `handwrite(ctx, text, x, y, size, p, {font})` | handwriting written on left to right |--**The "only colour" hook.** Leave everything at `color: 0` (pure ink) and pass `color: 1` only for the element that keeps its colour, as the straw hat does. Or give that element an arrival source at t = 0 and everything else later.--Minimal example: a warm orange `#D97757` four-point sparkle with a short cursor tail.-```js-import { sketchShape, sparkle, penStroke, drawPen, hex } from './engine.js';-const star = sparkle(960, 540, 120, .24); // 4-point star polygon-sketchShape(ctx, star, hex('#D97757'), { ink: 3, wash: .7, offset: 3, seed: 7 });-drawPen(ctx, penStroke([[1040, 610], [1180, 640], [1300, 646]], { w: 3, wob: 1.2, over: 6, seed: 8 }), 1); // the tail-```++1. **Ink.** One thin, near-constant line (a 0.3–0.5 mm fineliner) in dark sepia. It wobbles slightly, overshoots corners by a few pixels, breaks mid-stroke, and suggests rather than describes: a few window marks instead of a grid, scalloped fragments instead of a whole tree outline.+2. **Wash.** Transparent watercolour glazed on top, **misregistered** by 1–3 px from the line, sometimes spilling past it, leaving paper white for highlights and figures (reserves). Dried edges are darker (pigment pools at the rim), and pigment granulates into the paper tooth.++**The page is part of the image**: warm cream cold-press paper with large-scale mottling and fine tooth. Nothing is painted edge to edge; the painting frays into leaf-sized dabs and white holes, leaving margins for handwriting.++Not Watercolor Brush (no line-free wet-in-wet painting, no painterly edges without ink), not Whiteboard (no marker, no explainer diagrams), not Chinese Ink Wash (no brush calligraphy, no monochrome ink tones). Line and wash, both, always.++## 2. Materials & rendering++- **Paper**: two octaves of fbm mottling (a few %), a tooth tile multiplied over everything, figures included.+- **Ink**: ~96 % coverage; world line width thinner far, thicker near (e.g. 1.3–3.4 px); wobble ~1 px; overshoot 3–8 px; a third to half of long strokes get one small gap. Strokes are baked with their **draw time per pixel**, so the shader plays back stroke order.+- **Wash**: 2–3 rough-edged layers, multiply, alpha ~0.4–0.65, offset from the line by about one line width, a dried edge at 30–40 %; granulation = pigment × (0.82 + 0.36 · fbm).+- **Colour arrival field**: every pixel has a time at which colour reaches it. The wash is revealed through it with a ragged wet front (darkened band just behind the front) and noisy edges. Figures bloom from a point with a noisy circular clip.+- **Foliage**: pale base wash, then light and shadow masses, then small leaf dabs coloured by light direction, holes at the rim, scalloped ink only on the outline.+- **Sky**: a few big soft washes at low alpha, fading upward; clouds are reserves with a tinted belly.+- **Buildings**: local colour; shadow side mixed ~45 % with a cool violet-grey; distant blocks mixed ~50 % with a haze colour.+- **Figures**: a 3D skeleton in orthographic projection; torso from cross-sections; limbs as organic tapered tubes; hair and head as one mass; face left blank (one nose tick in profile); shadow side mixed with violet.+- **Page edge**: a noisy boundary, a white-dab band inside, a coloured-dab spray outside.+- Deterministic: same seed, same marks.++## 3. Colour logic++- **Ink is one colour** (dark sepia or warm black); it never changes.+- **Wash is local colour, lightly**: few pigments, mixed on the page; shadows are the local colour mixed toward one shared cool violet; distance mixes toward one haze.+- **Paper white is the brightest value**; it is reserved, never painted.+- **Colour can be withheld**: a page may be ink-only with colour as an event (one tinted object, colour arriving with a cause).+- Example palettes: park in summer (lawn `#c3c96f`, leaves `#7fa04a`, sky `#9fbcd6`, limestone `#d8c6a0`); harbour morning (sea `#7fa6b8`, hulls `#c9573f`, rope `#c8a86b`, sky `#bcd0dc`); winter market (roofs `#8b93a6`, lights `#e2b04a`, awnings `#b8483e`, snow = paper).++## 4. Type & subtitles++- **All text is handwriting on the page**, written on left to right with pen sound, and moves with the camera: a corner note (e.g. Reenie Beanie: day, time, weather, place), titles and colophon in a casual hand (e.g. Caveat 500–600), left-aligned in the blank margin.+- **Subtitles**, if there is a voice: handwritten lines in the page margin or a caption strip written into the lower margin, never a generic overlay box. Hold ≥ max(1.8 s, speech + 0.6 s).+- The style works well without any voice.++## 5. Motion quality++- **Figures boil at 12 fps** (line wobble and wash seeds change every 1/12 s). The static page does not boil (it is a real page); the camera moves every frame, smoothly.+- **Performance**: anticipation, action, follow-through; footsteps on the beat.+- **Invisible forces are drawn**: wind as ink curls that draw on and erase from the tail, trailing dabs; sound as ink lines; heat as wavy strokes.+- **Colour never snaps**: it blooms from a point or arrives through the field.+- Stroke-order draw-on for anything that "appears".++## 6. Camera grammar++A 2D camera over a large page (e.g. 5120 × 2880). Designed moves use cubic easing; follow shots use a critically damped spring on a lead-ahead target, so the camera lags like a hand-held follow. A vocabulary, not a route. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Push-in | attention; a detail observed | a face; a sign; a small event |+| Lateral follow on a spring | travel, pursuit | an object carried; a walker; a vehicle |+| Crane up | a new level, a view opening | a skyline; a tree; a balcony |+| Whip-tilt with slight roll | sudden change of direction | a fall; a gust; a surprise |+| Punch-in with a short shake | impact | a catch; a collision; a door slam |+| Pull back to the whole page | scale; the sketch as an object | a summary; a place in full |+| Tilt into the margin | from picture to words | notes; a date; a title |+| Slow pan across a line-only area | the world before colour | a quiet start; memory |+| Hold while the pen draws | the act of noticing | a subject being drawn |+| Page turn to a new spread | another time or place | a travel diary; a sequence of days |++Framing: subjects ≥ ⅓ of frame height at story beats; a small key object gets a faint paper halo (reserve) so it reads over busy foliage. Transitions: camera travel on the page, page turns, or colour arriving; no dissolves.++## 7. Sound palette++- **Ambience from the place**: paper room tone first, then the location once it has colour (birds, traffic, harbour gulls, market chatter). J-cut a place's sound a bar before we see it.+- **Pen on cold-press paper**: band-passed noise (~1.6–7.5 kHz) with a fibre texture and grain clicks, one burst per real stroke; thousands overlap into a hiss during a fast sketch; brighter short strokes read like a hi-hat.+- **Water and brush**: a wet brush "shhh" for blooms, a jar rinse, a drip.+- **Foley follows objects** at sketch scale: fabric or paper flapping for things in the wind (rate and level from speed, pan from screen x), steps on the beat, bells, splashes.+- **Music families**: a jazz waltz (walking bass in three, brushes, piano, clarinet or flute); a café accordion trio; solo nylon guitar; a string quartet pizzicato; a brass band for crowds. One colour instrument per area of the page works well.+- **Silence as a tool**: a bar of true silence (ambience included) at the height of suspense; the first sound after it is the next gesture.+- **Mix**: music ducks under key hits; foley high-passed ~90 Hz; −14 LUFS, moderate LRA.++## 8. Native moves++A menu: use the ones your story needs.++- **Line before colour.** The pen draws a subject in real stroke order, then the wash drops in; the drawing is the spectacle. *Fits content like:* a cathedral façade; a chef plating a dish; a street musician.+- **Colour as arrival.** Wash spreads from a source with a wet front, so an event paints the page; figures stay frozen line drawings until colour touches them. *Fits content like:* a sunrise over a harbour; a parade moving down a street; the lights of a market switching on.+- **The one coloured thing.** A colourless sketch with a single tinted object that becomes the protagonist. *Fits content like:* a red umbrella in the rain; a yellow taxi; a child's kite.+- **The page as frame.** Pull back until the whole page shows, edges dissolving, handwritten notes in the margin. *Fits content like:* a travel diary entry; a neighbourhood portrait; a day in a place.+- **Carrot people.** Distant crowds as one wash blob, two leg lines and a head dot. *Fits content like:* a station at rush hour; a stadium; a beach.++## 9. Pitfalls of the medium++- **Straight edges in the colour field** from clipping by a bounding box → clip by the actual noisy distance.+- **Rectangular masks around complex silhouettes** leave notches → mask with the real stepped silhouette.+- **Characters losing colour** when they move into unpainted areas → sample arrival once (or tie it to the event), never at the current position.+- **Static ink can't be occluded by later washes** → erase far ink inside nearer shapes before drawing; use carrot people for far crowds.+- **IK feet pinned while blending poses** splay the legs → blend foot targets toward under-hip.+- **Front-facing heads go bald** → draw the hair mass, then knock the face out of it.+- **Big canvases in headless Chrome**: pack ink and time into RGBA byte textures yourself and upload the arrival field as a filterable float texture (`R16F`).+- **Painting edge to edge** kills the sketchbook feel → leave margins and fray the edge.++## 10. Engine++`demo/engine.js` (deterministic): `penStroke` + `drawPen` (fineliner with wobble, overshoot, gaps, draw-on), `rasterPen` (bakes stroke order into an ink + time layer), `wash`, `reserve`, `dab` / `foliage`, `arrivalField` (colour arrival per cell from sources), `compositor` (WebGL page: paper × wash revealed by arrival × ink revealed by stroke time), `figure` + `drawPrims` (sketched people), `sketchShape` (any shape in this style in one call), `handwrite`. `demo/poses.js` holds a pose library. API table and a minimal example that draws something new: [DEMO.md](DEMO.md#engine-reference).++## 11. Variation space++You decide the place, the subjects, what colour does (always there, withheld, arriving), the voice (or none), the music family, the camera path, the opening, the ending and the length.++All far from our demo:++- Structures: **a travel diary** of five pages, one per day, each page turned by the wind or a hand; **a single street corner** drawn at four times of day, the wash changing while the ink stays; **a recipe** where each ingredient is drawn from life at the market and the final dish is painted last.+- Openings: **the blank page** with only the handwritten date, then the first line of the horizon; **a close-up of a coffee cup** on the page's edge, pulling back to find the city drawn behind it; **rain dots** landing on the paper and blooming into the first washes.+- Endings: **the sketchbook closes** on the page; **the last figure walks off the page** into the blank margin; **the colour drains** back to ink as the evening comes, leaving one lit window.++---++How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/urban-sketch/TREATMENT.md b/styles/urban-sketch/TREATMENT.mddeleted file mode 100644index 2c726ad..0000000--- a/styles/urban-sketch/TREATMENT.md+++ /dev/null@@ -1,79 +0,0 @@-# Where the Wind Went · 钢笔淡彩(Urban Sketch / Pen & Wash)--> 32 秒 · 1920×1080 · 24fps · 无旁白(音乐 + 拟音叙事)· 2D 全代码绘制--## 风格定义-城市速写的钢笔淡彩:极细的深褐墨线(略抖、出头、不封口),上面盖一层松散的透明水彩——黄绿、鼠尾草绿、灰蓝天、暖赭石楼。颜色**不严格填在线里**(错位、溢出、留白),纸是暖米色冷压水彩纸,画面边缘不画满,碎成一点点色块溶进纸里。--## 对标(只学语法)-| 对标 | 学什么 | 不学什么 |-|---|---|---|-| 城市速写(Urban Sketchers 的写生本页面) | 线先色后、颜色溢出线外、页角手写日期地点、画面边缘碎成色块留白 | 不临摹任何具体作品的构图 |-| *Paperman*(2012 短片) | 黑白世界里只有一个彩色物件;风当"月老",追一个被风卷走的东西 | 角色、造型、情节、配乐 |-| *The Red Balloon*(1956) | 一个物件当主角,镜头跟着它穿过整座城市 | 画面、城市 |-| 爵士华尔兹(Vince Guaraldi 一类的 3/4 摇摆) | 3/4 拍摇摆、低音提琴走三拍、刷子鼓、单簧管旋律 | 任何现成旋律,旋律全部原创 |--## 一句话故事-周日下午三点四十,公园还只是一张没上色的钢笔速写。唯一有颜色的是她的草帽。一阵风把草帽卷走,他追上去:**风经过哪里,哪里才被画上颜色**。草帽飞过草坪、单车、路灯和树梢,升到摩天楼尖顶,停在半空(全片唯一的静音),再掉下来,他在石桥上一跃接住。镜头拉远,整页已经上完色。页角手写:*Where the wind went.*--**情绪弧**:安静(线稿、屏息)→ 慌乱与追逐(华尔兹起)→ 越飞越高、越来越开阔(城市、配乐渐强)→ 悬停(静音)→ 下坠、冲刺、接住(全奏)→ 圆满(整页成画)。--## 原生招式(只有钢笔淡彩能做)-1. **风就是画笔**:上色区域 = 风走过的路径。每个像素都有自己的"颜色到达时间",湿边向外洇开,前沿有积色暗边;人物被颜色碰到之前定格成线稿,碰到之后才开始动。-2. **钢笔按笔顺画出来**:开场人物、城市天际线按真实笔顺一笔一笔出现,笔尖沙沙声就是这段的节奏。-3. **唯一彩色**:开场整页只有草帽一个颜色(引擎里的"唯一彩色"接口)。-4. **页面即画框**:最后拉到整页,边缘碎成色点溶进纸里,页角手写片名和署名。这个结尾同时是尺度揭示。--## 镜头表-| # | 时间 | 景别 / 运动 | 内容 | 为什么这样拍 |-|---|---|---|---|---|-| 1 | 0.0–2.4 | 近景,背面,缓推 | 空白纸上钢笔画出一对情侣的背影、野餐布、篮子;1.8s 草帽被点上赭黄色;页角手写 "Sun. 3:40 pm — windy" | 先让观众看见"画的过程",建立媒介;背影 = 观众和他们一起看公园 |-| 2 | 2.4–4.8 | 近 → 全,拉 | 线稿从情侣向外一圈圈长出来:草坪、小路、路灯、树、远处的人,全是黑白 | 尺度第一次打开,交代整张纸的地形(之后风要走一遍) |-| 3 | 4.8–6.0 | 全 → 中,向右缓推 | 草线和她的头发先动,风声先到(J-cut);她抬手按帽子,晚了半拍 | 预备动作:观众先听见风,再看见风 |-| 4 | 6.0–10.8 | 中景跟拍,横移向左(相机有滞后) | 帽子飞起,颜色追着帽子洇开;他起身追;8.4s 帽子在草地弹一下,他扑空;9.6s 两辆单车被颜色碰到,恢复骑行,铃声 | 一镜到底的签名段落:追着帽子走,颜色就是它的轨迹 |-| 5 | 10.8–12.0 | 推近 | 帽子绕路灯转一圈,他赶到时伸手抓空 | 小笑点;节奏上的"转身" |-| 6 | 12.0–15.6 | 升降(crane up) | 帽子穿过树冠上升,每个强拍炸开一棵树的颜色(三棵) | 用画面数拍子 |-| 7 | 15.6–19.2 | 继续上摇 + 拉远 | 天空被灰蓝洗满,天际线按笔顺画出来,帽子朝尖顶升 | 空间最开阔、配乐最满 |-| 8 | 19.2–21.6 | 特写,极慢推 | 帽子停在尖顶旁,慢慢转;20.4–21.6 全片静音 | 呼吸点;情绪最高处前的停顿 |-| 9 | 21.6–24.0 | 快速下摇(whip tilt)跟落 | 帽子坠落,他沿池塘冲向石桥,起跳 | 全片最快的一段,和第 8 镜形成反差 |-| 10 | 24.0–25.2 | 冲击推近 | 帽檐擦到水面,一圈蓝色涟漪洇开,他接住 | 结果镜头给足时间看清 |-| 11 | 25.2–32.0 | 全景,长拉 | 拉到整页:最后一波颜色扫完,他在桥上举帽,她在野餐布上挥手;页角手写片名和署名 | 首尾呼应(草帽在开头和结尾都是焦点),尺度揭示 |--镜头运动:推、拉、横移跟拍、升降、快速下摇、冲击推近,一共 6 种;景别在近景、全景、特写、大全景之间切换。--## 节拍 / cue map(150 BPM,3/4 拍,1 小节 = 1.2 s,F 大调)-| 小节 | 时间 | 段落 | 配器 / 音乐 | 卡点 |-|---|---|---|---|---|-| 0–1 | 0.0–2.4 | Sketch | 没有乐队;笔尖沙沙声按拍子排 | 1.8 草帽上色 = 颤音琴一声 |-| 2–3 | 2.4–4.8 | Page | 单簧管低音长音 + 竖琴泛音,立式钢琴分解和弦 | 线稿扩散时有一串笔声 |-| 4 | 4.8–6.0 | Gust | 小提琴震音渐强 + 风声 + 竖琴上行刮奏 | 6.0 帽子离头 = 下拍 |-| 5–8 | 6.0–10.8 | Chase A | 爵士华尔兹:低音提琴、刷子鼓、钢琴 2/3 拍伴奏、单簧管主旋律 | 8.4 帽子触地弹起;9.6 单车铃(旋律里的钟琴) |-| 9 | 10.8–12.0 | Lamp | 单簧管颤音 + 钢琴上行 | 帽子绕灯一圈 = 一小节 |-| 10–12 | 12.0–15.6 | Trees | 旋律 A';每小节下拍颤音琴 + 马林巴和弦 | 12.0 / 13.2 / 14.4 三棵树炸色 |-| 13–15 | 15.6–19.2 | City | 弱音小号接旋律,拨弦八分音符,渐强 | 天际线按笔顺画出 |-| 16 | 19.2–20.4 | Apex | 高位和弦 Dbmaj7(#11) 延音 + 吊镲 | 19.2 帽子到顶 |-| 17 | 20.4–21.6 | **静音** | 只剩极轻的风 | —— |-| 18 | 21.6–22.8 | Fall | 静音后的第一个声音:单簧管下行半音刮奏 + 大鼓 | 21.6 下坠 |-| 19 | 22.8–24.0 | Sprint | 军鼓 / 通鼓加花渐强 + 定音鼓滚奏 + 脚步 | 23.6 起跳 |-| 20–23 | 24.0–28.8 | Reprise | 24.0 全奏重拍 + 镲;华尔兹再现(加弦乐) | 24.0 接住 + 池塘洇色 |-| 24–26 | 28.8–32.0 | Tag | F6/9 长和弦 + 颤音琴闪光,最后一声拨弦收尾 | 28.8 手写片名 |--## 声音设计表-| 段落 | 环境底 | 拟音 | 音乐 |-|---|---|---|---|-| Sketch | 纸面房间音(很轻) | 钢笔在冷压纸上的沙沙、提笔的轻点、蘸水笔刷一下 | 无 → 颤音琴一声 |-| Page | 远处城市低鸣、鸟叫渐入 | 一串快速笔声(按距离扩散) | 呼吸段 |-| Gust | 风从右声道进来(J-cut 提前 0.4 s) | 草沙沙、裙摆、帽檐抖 | 渐强 |-| Chase | 公园:鸟、远处人声底 | 帽子翻飞(纸质拍打)、脚步(草地)、颜色洇开的湿润"嘶"声、单车链条 + 铃 | 华尔兹 |-| Trees | 树叶哗啦(风) | 每棵树炸色 = 湿刷一下 | 和弦卡拍 |-| City | 高处的风、远处车流 | 笔尖画楼的快速沙沙声(当踩镲用) | 渐强到顶 |-| Apex | 静 | 帽子慢转时极轻的纸声 | 静音 |-| Fall / Catch | 风呼啸 | 冲刺脚步(石头)、起跳、接住的"噗"、帽檐点水 | 鼓加花 → 全奏 |-| Page | 公园全景底 | 最后一波颜色的湿声、写字的笔声 | 尾声和弦 |--J/L-cut:①风声在第 3 镜画面动之前 0.4 s 进;②城市车流在镜头升到天际线前一小节就进;③接住的全奏镲声一直延续到最后的全景。--## 字幕 / 文字设计-无旁白、无字幕。文字全部是**速写本上的手写批注**,用同一支笔写出来:-- 开场页角:`Sun. 3:40 pm — windy`(Reenie Beanie,墨色)-- 结尾页角:片名 `Where the wind went.`(Caveat)+ 小字署名:风格名、Lemo-Opuscar、LemoLab × Claude Opus 5.5、素材署名diff --git a/styles/urban-sketch/demo/api.js b/styles/urban-sketch/demo/api.jsindex deedb89..a570fce 100644--- a/styles/urban-sketch/demo/api.js+++ b/styles/urban-sketch/demo/api.js@@ -1,4 +1,4 @@-// STYLE.md §10 的最小示例:?api=1+// DEMO.md(Engine reference)的最小示例:?api=1import { sketchShape, sparkle, penStroke, drawPen, hex } from './engine.js';const ctx = document.getElementById('c').getContext('2d');window.DUR = 1;diff --git a/styles/urban-sketch/demo/audio/spec.png b/styles/urban-sketch/demo/audio/spec.pngdeleted file mode 100644index 2153a76..0000000Binary files a/styles/urban-sketch/demo/audio/spec.png and /dev/null differdiff --git a/styles/urban-sketch/demo/engine.js b/styles/urban-sketch/demo/engine.jsindex 4a44b00..f738d40 100644--- a/styles/urban-sketch/demo/engine.js+++ b/styles/urban-sketch/demo/engine.js@@ -599,7 +599,7 @@ export function bike(place, ph, col, o = {}) {// ---------- 任意形状 → 钢笔淡彩 ----------// poly: 闭合多边形(世界坐标);col: [r,g,b];o: { ink 线宽, wash 浓度, offset 错位, reserve 留白度, color 0..1(到达程度), p 墨线进度 }-// 例:一颗暖橙色 #D97757 的四角光点 + 光标尾巴 —— 见 STYLE.md §10+// 例:一颗暖橙色 #D97757 的四角光点 + 光标尾巴 —— 见 DEMO.md(Engine reference)export function sketchShape(ctx, poly, col, o = {}) {const lw = o.ink ?? 2.4, off = o.offset ?? lw * .8, seed = o.seed ?? 1;const prims = [{ k: 'knock', poly, a: o.reserve ?? .9 }, { k: 'wash', poly, col, a: o.wash ?? .6, dx: off, dy: off * .5, seed, j: o.jitter ?? lw * 1.2, layers: 3, edge: .35 },diff --git a/styles/urban-sketch/style.json b/styles/urban-sketch/style.jsonnew file mode 100644index 0000000..b156c9a--- /dev/null+++ b/styles/urban-sketch/style.json@@ -0,0 +1,18 @@+{+ "slug": "urban-sketch",+ "num": "45",+ "en": "Urban Sketch · Pen & Wash",+ "cn": "钢笔淡彩",+ "category_en": "Hand-drawn & Painting",+ "category_cn": "手绘与绘画",+ "film": "Where the Wind Went",+ "line": "A park that is only a pen sketch; wherever the wind carries her straw hat, colour follows.",+ "line_cn": "公园只是一张钢笔速写,风把草帽吹到哪里,哪里才有颜色。",+ "uses": [+ "City & travel",+ "Architecture",+ "Lifestyle brands"+ ],+ "frame_sec": 16.2,+ "dur": 32.4+}diff --git a/styles/watercolor/DEMO.md b/styles/watercolor/DEMO.mdnew file mode 100644index 0000000..91cf08c--- /dev/null+++ b/styles/watercolor/DEMO.md@@ -0,0 +1,200 @@+# Watercolor Brush — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Follow the Rain* (113.6 s, 1920×1080, 60 fps) · `watercolor.mp4` · source in [`demo/`](demo/) · engine: Canvas2D stroke engine (`engine.js` `mk`/`drawS`, variable-width ribbon + dashed bristle tracks), procedural plant generators, per-plant sprite cache, headless Chrome frame capture.+++The demo is a naturalist's field journal: one long sideways walk through the Australian landscape along a rainfall gradient, hand-written notes and a quiet rainfall gauge, then a pull-out to a painted map that moves through deep time.++## Story & structure++A film that looks like a hand-painted field journal being painted in front of you. Everything sits on one sheet of warm, fibrous paper (`#f1e9da`). Every object — a spinifex hummock, a gum tree, a kangaroo, a cloud, the horizon, a coastline — is made of **individual brush strokes**: a variable-width ribbon laid down at partial opacity, plus 3–9 thin **bristle tracks** that break into dashes (dry-brush *flying white*). Strokes overlap and darken where they cross, like real transparent pigment. Nothing has a vector outline; the darker edge stroke on a trunk (`edgeOf`) is the only "line".++Things **paint themselves in** as they enter the frame: stroke by stroke, trunk before branches before leaves. Once finished, a plant is cached as a sprite and only sways. The landscape is a single long painted world that the camera walks across, in four parallax layers of washes and plants, while an **annotation layer** (handwritten Caveat labels with pen leader lines, a rainfall gauge in mono type, a biome title in Cormorant Garamond) explains what we are seeing. The film ends by washing the landscape away with paper-coloured mist and drawing the whole continent as a painted map.++Tone: calm, curious, precise. It is a documentary, not a fairy tale: numbers are real, labels are Latin names, the palette follows the data.++How the demo used the medium:++| Native power | Story use |+|---|---|+| **A walk along one gradient** | Map one measurable quantity to horizontal distance and walk it: rainfall (demo), altitude up a mountain, depth down a reef wall, distance from a city centre, latitude from equator to pole, time along a river. The camera move *is* the argument. |+| **Painting-in as reveal** | Each new zone is literally painted in as it arrives — the audience watches a new kind of life appear stroke by stroke. Use `burst` to make a whole zone erupt at once for the climax zone (the rainforest). |+| **Zone palettes** | Colour carries the data: red-ochre desert → sage mulga → straw woodland → blue-grey wet forest → deep green rainforest. The sky, ground, hills and far trees all blend by zone. |+| **Specimen + note** | One hero specimen per zone, labelled by hand with a leader line (`spinifex · Triodia`, `mountain ash · Eucalyptus regnans`). A small animal per zone gives life and scale (kangaroos, budgies, koala, cassowary, a tiny human for scale). |+| **One event per zone** | Each zone gets one small demonstrative event: rain running down mulga branches to the roots, a fire front and epicormic regrowth, a tilt-up measuring a 100 m tree, a layer diagram of the rainforest. |+| **Pull-out to the map** | After the walk, wash the landscape away and paint the map; draw "our walk" on it. The map can then move in **time** (50 Ma → today), which turns a spatial walk into a historical one. |++**Story shape (proven in the demo):** cold paper → horizon brushed in → vermilion sun "stamped" like a seal → title → landscape revealed with a brush-edge wipe → 5 zones (≈ 10–18 s each) with a rising gauge → mist washes everything back to paper → coastline painted → map filled → "our walk" arrow → rewind to 50 million years ago (all green) → drift and dry back to today (dry heart, green edge) → end title over the faded map + credits.++Adapting a topic: pick the gradient; list 4–6 zones with a real value at each boundary; give each zone a palette, a hero specimen, a small animal and one event; end on a map or diagram that re-frames the walk (in space, then in time).++## Shots++| Beat | Camera |+|---|---|+| Title (0–10.9 s) | Static on blank paper; horizon brushed across, sun stamped (1.6 s), title wiped in. |+| Walk (10.3–73 s) | One continuous sideways dolly: `camXf = monotone([[0,700],[10.3,700],[16,1400],…,[66,9300],[73,9800]])` in world px; speeds up between zones and slows on events (fire, ash tree). Four parallax layers + clouds at 0.2. |+| Tall tree | A vertical tilt `camYf`: up 980 px over 54.2–57.8 s along the mountain ash with a dimension line drawing "≈ 100 m", then back down 58.4–60.9 s. |+| Mist | 70.3–73.6 s: two wavy paper layers rise from the bottom and erase the world (no cut). |+| Map | Static, centred continent (equirectangular, cos 26° correction, 24 px/°), slight 90 px vertical settle when rewinding in time. |+| End | The map fades to 30 % and the title block returns over it. |++No cuts anywhere: the whole film is one painted sheet.++- **Painting in**: `plantP` — a plant's progress is `(REV(t) − screenX) / (span × max(.55, parallax))`. `REV` sweeps from −300 to 1650 px during the reveal (10.2–13.4 s); afterwards everything entering from the right is painted over ~380 px of travel. `drawList` draws N strokes in order, each taking `clamp(4/N, .12, .5)` of the progress, so trunks come first and leaf clumps last.+- **Sway**: a horizontal skew `sway × (sin(1.15t+φ) + .4 sin(2.7t+2φ))`, 0.006 for trees, 0.01–0.03 for grass and ferns.+- **Brush-edge wipes**: the whole landscape is revealed by a vertical wavy clip (`drawStripAt(..., reveal)`), the horizon by a left-to-right `drawS` progress, the coastline segment by segment, labels by a rectangle clip that opens left-to-right (`hand`), leader lines by growing point count (`leader`).+- **Music-locked animation**: kangaroo hops are phased to the score's beat grid (`BEAT0 = 11.865`, `BEAT = .5805` s, one hop per 2 beats) so every landing hits a beat.+- **Events**: raindrops fall onto mulga tips and slide down the stems (14 drops, 0.36 s apart) while a wet patch and a dashed tap root spread; fire front sweeps 5650→6900 world px in 3 s, trees cross-fade to a `#2a2320` burnt sprite, an ash band darkens the ground, then green epicormic shoots `drawList` back in; the rainforest `burst` paints every visible rainforest plant within 0.9 s.+- **Map**: the rainfall field is recomputed per frame from station values with a time multiplier (`mapTau`), so 50 Ma → today is a continuous "drying" with a radial fill reveal; fires flicker in the 500–900 mm band while it dries.+- Ease functions: `ss`, `eio`, `eo`, `ei` in `engine.js`; everything is a pure function of `t`.++## Score structure++- **Voice**: Kokoro (`kokoro-onnx`, model `core/tts/kokoro-v1.0.onnx`), voice **`af_heart`**, **speed 0.93**, `lang en-us` — warm, unhurried documentary read. Trim to 1 % of peak with 10 ms head / 100 ms tail. Numbers are spelled out in the TTS text ("two hundred and fifty millimetres") and written as digits in the subtitles. 13 lines, one per beat of the story, 1.7–7.4 s each.+- **Check**: `asr.py` transcribes every line with faster-whisper `base.en`; all 13 read back correctly (only spelling variants: "millimeters", "Red Center", "1%").+- **Music**: Scott Buckley — *Wildflowers* (CC BY 4.0). The 322 s track is cut to 117.8 s with **one beat-aligned jump**: `analyze.py` (librosa beat track, 103.4 BPM, 502 beats; chroma + MFCC beat-synchronous self-similarity) → `jump.py` ranks jump pairs whose result lands at 100–128 s → chosen pair beat 85 (61.23 s) → beat 437 (265.61 s), chroma similarity 0.915, 4-beat phase aligned, 0.18 s equal-power crossfade starting 60 ms before the beat (`edit.py`). The picture's beat constants come from the same `wf_beats.json`.+- **SFX**: all synthesised in `mix.py` (numpy/scipy): paper brush rustle (band-passed noise, 9 Hz tremolo, panned sweep), a thump for the sun stamp, desert wind, 46 budgie chirps, 14 raindrop plinks timed to the mulga drops, fire roar + crackle, rising rain, two eastern whipbird calls, a mist swell and a quiet map-fire crackle. Short convolution reverb from a filtered noise IR.+- **Mix** (`mix.py`): voice → 48 kHz, 90 Hz high-pass, RMS compressor (−24 dB, 3:1). **Kokoro's peak-to-RMS is ~17 dB**, so a **5 ms look-ahead peak limiter** (ceiling = speech RMS + 11 dB) runs *before* the level match; then voice RMS = music RMS + 8 dB during speech; music ducks ×0.62 (≈ −4 dB) under voice with a 0.3 s smoothed envelope; mix normalised to 0.89 peak. Final loudness in `mux.sh`: single-pass `loudnorm=I=-14:TP=-1` → −14.2 LUFS, −1.0 dBFS peak.++## Palette & props++**Paper**: `demo/paper.jpg`, generated by `paper.py` — base `#f1e9da`, three octaves of smooth noise (±3.5 %), 2,600 short curved fibres (±3.5 % light/dark), fine grain, 5 % vignette. It is drawn first every frame and is also the mist that erases the landscape (`drawMist` clips `PAPER_IMG` with a wavy rising edge).++**Ink**: `INK #2b2520` (lines, text, trunk edges), `INK2 #3d3129` (branches, stems). Accent: vermilion sun `#cf4f2c` with 7 horizontal `#b8401f` dry-brush bars (it reads as a seal); rain blue `#3f7fa8` (drops, gauge fill).++**Zone palettes** (`scene.js` `ZCOL`, blended by camera position with `mixZone`/`zoneGrad`):++| Zone | sky | far hills | mid ground | main ground |+|---|---|---|---|---|+| desert | `#f0d6b8` | `#dcae8e` | `#dba47e` | `#dda27a` |+| mulga | `#efdcc6` | `#c89b8c` | `#d0ae80` | `#dbb584` |+| wood | `#ece2cd` | `#bdb99c` | `#cbc28f` | `#dccb92` |+| wet | `#dfe3dc` | `#9fb1b8` | `#98aa8a` | `#a7b48e` |+| rain | `#dbe3d8` | `#9ab19f` | `#6f8d6d` | `#6e8b69` |++Plant colour sets live in `plants.js` `COL` (straw, mulga, salt, gum, gold, ash, fern, rain, rainLite, palm, wattle). Map rainfall ramp (`main.js` `MSTOP`): 150 mm `#cf7c4f` → 300 `#cda35f` → 650 `#b3b07a` → 1150 `#7f9a6c` → 2000 `#46705a` → 4000 `#2f5a45`, quantised into 5 bands on the map.++**Stroke material** (`engine.js`): a ribbon whose width follows a profile (`brush`, `leaf`, `even`, `tip`, `trunk`) with ±22 % value-noise roughness, filled at `a × rib` (≈ 0.57 when bristles are present, so the body is a thin wash) plus `nb` bristle tracks at 30–85 % opacity, each with a random dash pattern (long runs of 18–90 px, gaps up to w/2) and a random early end — that is the flying white. Washes (`washPoly`) are 3 passes of the same polygon with jittered vertices at `a/3 × 1.6`, so edges darken where passes disagree, like a pooled watercolour edge.++**Layers** (`LAY`): far (parallax 0.25, ground y 640, scale 0.38, alpha 0.5) · mid (0.55, 690, 0.62, 0.78) · main (1.0, 745, 1.0, 1.0) · fg (1.55, 1115, 1.75, 0.95). Distance = smaller, lighter, less saturated; two mist bands (`mistBand`) sit between the layers in the wet zones.++**Type**: Cormorant Garamond (biome titles 500 52 px, subtitles italic 500 36 px, title italic 124 px, map year 150 px / "today" italic 104 px), Caveat 500/600 (hand notes, 26–42 px, drawn twice over a paper-coloured 12 px shadow halo), IBM Plex Mono 400 (labels such as `ANNUAL RAINFALL`, `01 / 05`, 3 px letter-spacing), Noto Serif SC 400 (Chinese subtitle line). Self-hosted in `demo/fonts/` via `fetch_fonts.mjs`; Noto Serif SC is **subset to the CJK characters that appear in `scene.js` + `main.js`**.++## Titles, subtitles & end card++- **Burned-in, bilingual**, centred at the bottom: English italic Cormorant Garamond 36 px (auto-wrapped to 2 balanced lines at 1400 px, baseline 1000 or 962/1000) + Chinese Noto Serif SC 24 px at 1042, `INK` at 78 %, both over an 18 px paper-coloured shadow halo, drawn twice for density. Visible from `start − .15` to `start + dur + .45` with 0.25/0.35 s fades. The same table (`VO` in `scene.js`) drives the mix and `watercolor.srt`.+- **Biome card** (top-left): a short painted colour swatch, `01 / 05` mono, name in Cormorant 52 px, italic subtitle. **Gauge** (top-right): `ANNUAL RAINFALL`, value in Cormorant 54 px (`< 250 mm`, `≈ 1,600 mm`), a log-scale bar 100–4,000 mm with a blue drop marker.+- **Title**: "Follow the Rain" italic Cormorant 124 px wiped in, then the spaced caps subtitle and the Chinese line.+- **End card**: title block over the faded map + credits in IBM Plex Mono 15 px (music with licence, voice, coastline source, "rainfall bands are schematic"), and under them the sign-off **"LemoLab × Claude Opus 5.5"** in italic Cormorant Garamond 30 px, `INK` 85 %, centred at y 1010, fading in with the credits (105–106.2 s) — a serif italic line so it reads as the film's signature, not another asset credit. Keep it clear of the map (Tasmania sits at y ≈ 845–915). This sign-off belongs to this library's demo only: a user's film carries no LemoLab credit and no copy of this end card.++## Pitfalls we hit (demo record)++- **Strip canvases too short flatten the hills**: the far/mid washes are pre-painted into long offscreen strips. If a strip's `yTop` is too low, the tall ridges and the rainforest canopy wall get cut into flat tops, and the 980 px tilt-up exposes the cut. The far strip spans y 150–1500 and starts at world x −6000; the mid strip spans 200–1500.+- **Semi-transparent strip bottoms show a hard edge**: a wash that stops at the bottom of its canvas leaves a visible horizontal seam when a translucent layer is drawn over it. Extend every strip below the frame (to 1500 px) and fade the main ground to paper with a vertical gradient instead of stopping it.+- **Top-level `const` order → `READY` never set**: all five scripts share one global scope. If initialisation touches a `const` before its declaration (e.g. `CLOUDS`, `PAPER_IMG`) the async init throws, `window.READY` stays false and every screenshot times out after 60 s. Do all building inside the async init in `main.js`, and read `[pageerror]` lines in the render log.+- **Determinism**: `mk()` consumes the global RNG. Any stroke created inside `render(t)` must be wrapped in `withSeed(seed, …)` (sun, HUD swatches, animals, flames, legend rows) or be pre-built in `build()`; otherwise frames depend on render history and parallel workers disagree.+- **Performance**: drawing thousands of strokes per frame is too slow. Cache each finished plant as a sprite (`sprite()`); only plants whose progress is < 1 (being painted) or burning are drawn stroke by stroke.+- **Kokoro voice is very peaky** (~17 dB peak-to-RMS): matching RMS alone either buries the voice or clips it — limit first, then match.+- **Beat-locked animation**: keep the score's beat grid (`wf_beats.json`) as the source for `BEAT0`/`BEAT`; if the music edit changes, re-derive them.+- **CJK subset**: new Chinese subtitle characters render in a fallback font until you re-run `node fetch_fonts.mjs` (it subsets Noto Serif SC to the characters in `scene.js` + `main.js`).+- **`mix.py` parses `scene.js`** with the regex `\['(v\d\d)', ([\d.]+),` to place the voice lines — keep the `VO` rows in exactly that form.+- (Import) the original project had a `node_modules` symlink to another project; it is removed — `playwright-core` resolves from the repo root. zsh does not word-split `$TS`; use `${=TS}` when passing many timestamps.++## Build notes++```+styles/watercolor/demo/+ index.html loads fonts.css + aus.js, engine.js, plants.js, scene.js, main.js (classic scripts, one global scope)+ engine.js RNG/easing/noise, monotone spline, colours, the stroke engine (mk, drawS, drawList, sprite, clump, edgeOf)+ plants.js plant & prop generators (spinifex, desertOak, mulga, saltbush, wattle, tussock, gum, ash, treeFern,+ groundFern, rfTree, fanPalm, vine, farTree, uluru, cloud, shrub)+ scene.js VO table, layers, zones, camera, world build, wash strips, landscape drawing, animals, fire, rain, notes+ main.js canvas, map (deep time), mist, HUD, subtitles, title/end card, render(t), async init → READY+ aus.js coastline rings (from extract_aus.mjs + vendor/) paper.jpg (paper.py) fonts/ + fonts.css (fetch_fonts.mjs)+ tts/lines.json voice script tts/gen.py Kokoro asr.py whisper check voices/ v01–v13.wav + dur.json+ music/ prep.sh (source files) · analyze.py · lag.py · jump.py · edit.py → score.wav+ mix.py SFX + voice + music → mix.wav render.mjs stills / video / part mux.sh → ../watercolor.mp4+```++All commands from the repo root, Python = `.venv/bin/python`:++```sh+D=styles/watercolor/demo+# 1. voice (13 lines, ~10 s) and whisper check+.venv/bin/python $D/tts/gen.py # → $D/voices/v01..v13.wav + dur.json (OUT=dir to write elsewhere)+.venv/bin/python $D/asr.py # prints each transcript; compare with tts/lines.json+# copy the durations into the VO table in scene.js (id, start, dur, en, zh) and set the start times+# 2. music+sh $D/music/prep.sh # Wildflowers.mp3 → Wildflowers.wav (22.05k mono) + wf48.wav (48k)+.venv/bin/python $D/music/analyze.py # → wf_beats.json (plot skipped: no matplotlib in .venv)+.venv/bin/python $D/music/jump.py # ranked jump candidates; pick one, put its beat indices in edit.py+.venv/bin/python $D/music/edit.py # → score.wav, score_beats.json+# 3. look at frames while building (≈0.35 s/frame as PNG)+OUT=$D/out/review node $D/render.mjs stills 5 20 43 66 90 106+.venv/bin/python core/render/sheet.py $D/out/review/sheet.jpg $D/out/review/t_*.png --cols 3 --w 640+# 4. mix (4 s) — writes $D/mix.wav, or pass a path+.venv/bin/python $D/mix.py+# 5. video: 6816 frames at 60 fps, ~50 ms/frame/worker (8 workers ≈ 2 min; keep 2–3 when other jobs run)+node $D/render.mjs video 8 # → $D/out/seg_0..7.mp4 + out/list.txt (x264 crf 12 intermediates)+# 6. mux (≈70 s): concat + x264 slow crf 16 g 120 + loudnorm −14 → styles/watercolor/watercolor.mp4+sh $D/mux.sh # or: sh $D/mux.sh path/to/test.mp4+# 7. subtitles: VO table → srt+# ($D/out/srt_cues.json = VO rows as {t0: s-.15, t1: s+dur+.45, text: "en\nzh"}, dumped from scene.js with a 5-line node script)+.venv/bin/python core/render/srt.py $D/out/srt_cues.json styles/watercolor/watercolor.srt+```++Partial re-render (used for the end-card sign-off): `node $D/render.mjs part 99.4 113.6 $D/out/seg_7.mp4` re-creates the last 8-worker segment exactly (frames 5964–6815), then `sh $D/mux.sh`.+One-time asset scripts (already run): `node $D/extract_aus.mjs` (coastline), `cd $D && ../../../.venv/bin/python paper.py` (paper), `node $D/fetch_fonts.mjs` (fonts, needs network).++## Engine reference++**Page contract** (`render.mjs` relies on it): `window.DUR` (seconds), `window.render(t)` (pure function of t, draws the whole frame), `window.READY = true` after fonts, paper and `build()` are done. Canvas 1920×1080, `ctx` global from `main.js`.++**Stroke engine — `engine.js`**++| Function | Purpose / parameters |+|---|---|+| `mk(pts, w, col, o)` | Build a stroke from a centre-line `[[x,y],…]`, base width `w` px, hex colour. `o.prof`: `'brush'` (default: fat start, tapering), `'leaf'` (sin swell), `'even'` (flat, short tapers), `'tip'` (thick root → fine tip), `'trunk'` (flared base, −62 % to top). `o.nb`: bristle tracks (default `clamp(round(w/3.2), 3, 9)` when `w ≥ 6`, else 0). `o.a`: opacity (0.92). `o.rib`: body opacity factor (0.62 with bristles, 0.92 without). `o.rough`: width noise (0.22). Consumes RNG. |+| `drawS(c, s, p=1, col, am=1)` | Paint stroke `s` on context `c` up to fraction `p` of its length (a moving brush tip), optional colour override and alpha multiplier. |+| `drawList(c, L, p)` | Paint a list of strokes in order; `p ∈ [0,1]` for the whole list. |+| `sprite(L, col)` | Rasterise a stroke list to an offscreen canvas → `{cv, x0, y0, x1, y1}` (draw at `x0,y0` in local coords). `col` repaints all strokes in one colour (burnt silhouettes). |+| `qcurve(x0,y0,x1,y1,bend,n)`, `qctrl(...)`, `polar(x,y,ang,len,bend,n)` | Centre-line helpers (quadratic curves; `bend` is sideways offset of the control point). |+| `clump(S, cx, cy, r, n, cols, o)` | Push `n` leaf dabs in an ellipse (`o.sx`, `o.sy`), optional direction `o.dir ± o.spread`, lengths `o.l0–l1`, widths `o.w0–w1`, alpha `o.a0–a1`. |+| `edgeOf(s, side, w, col, a)` | Shadow/ink edge running along one side of a stroke (trunks, limbs). |+| `withSeed(seed, fn)` | Run `fn` with a fixed RNG — **required** for anything built inside `render`. |+| `monotone([[t,v],…])` | Monotone cubic keyframe track (camera paths). |+| `ss eio eo ei seg clamp lerp vnoise fbm hash mixc rgba` | Easing, ranges, noise, colour helpers. |++**Plants — `plants.js`**: every generator takes a scale `sc` (and optional args), works in local coordinates with the root at (0,0) and y up = negative, and returns `{ S: strokes, … }` (`gum` also returns `woody`, `leaves`, `shoots`, `fork`; `mulga` returns `stems`; `ash`/`rfTree` return `top`).++**World — `scene.js`**: `add(layer, worldX, generator, scale, {dy, span, sway, args, extra})` places a plant into `PL[layer]` and caches its sprite; `build()` fills zones by walking world x with `zoneJit`; `buildStrips()` pre-paints hill/ground washes with `washPoly(c, pts, fill, alpha, passes, jitter)`; `drawLandscape(t)` draws sky → far strip/plants → mist → mid → ground → horizon → main plants (with hooks for hero events) → animals → fire → foreground → rain. Annotations: `hand(txt, x, y, p, {size, w, align, col})`, `leader(x0,y0,x1,y1,p,bend)`, `note(t, t0, t1, anchorX, anchorY, labelX, labelY, txt, o)`; `scr(plant, dx, dy, t)` converts a plant-local point to screen space for labels.++**Minimal example** — replace `scene.js` + `main.js` with this to get a gum tree painting itself on paper (keep `index.html`, `engine.js`, `plants.js`, `paper.jpg`, fonts):++```js+const cv = document.getElementById('c'), ctx = cv.getContext('2d');+window.DUR = 6; let PAPER_IMG, tree, horizon;+function render(t) {+ ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.globalAlpha = 1; ctx.drawImage(PAPER_IMG, 0, 0);+ drawS(ctx, horizon, seg(t, .2, 1.6)); // horizon brushed across+ const p = seg(t, 1, 4.5), sk = .006 * Math.sin(t * 1.15); // paint-in progress + sway+ ctx.setTransform(1, 0, sk, 1, 960, 820);+ if (p < 1) drawList(ctx, tree.S, p); else ctx.drawImage(tree.spr.cv, tree.spr.x0, tree.spr.y0);+ ctx.setTransform(1, 0, 0, 1, 0, 0);+ withSeed(7, () => drawS(ctx, mk(qcurve(80, 90, 120, 90, 0, 5), 9, '#b3b07a', { prof: 'even', nb: 3 }), seg(t, 4.5, 5)));+ ctx.font = '500 52px "Cormorant Garamond"'; ctx.fillStyle = rgba(INK, ss(seg(t, 4.6, 5.2))); ctx.fillText('Eucalypt woodland', 76, 150);+}+window.render = render;+(async () => {+ PAPER_IMG = new Image(); PAPER_IMG.src = 'paper.jpg'; await PAPER_IMG.decode();+ await document.fonts.load('500 52px "Cormorant Garamond"');+ tree = withSeed(1, () => gum(1.2)); tree.spr = sprite(tree.S);+ horizon = withSeed(2, () => mk(qcurve(120, 822, 1800, 822, -4, 40), 5.2, INK2, { prof: 'even', nb: 5, a: .88, rough: .3 }));+ window.READY = true;+})();+```++For a full film: keep `engine.js`/`plants.js` (add generators for your specimens in the same style), rewrite the `VO`, `LAY`, `ZONES`, `RAINK`-style value table, `camXf`, `ZCOL` and `build()` in `scene.js`, and the map / HUD / titles in `main.js`.diff --git a/styles/watercolor/STYLE.md b/styles/watercolor/STYLE.mdindex d8d2ff9..26068ee 100644--- a/styles/watercolor/STYLE.md+++ b/styles/watercolor/STYLE.md@@ -1,203 +1,111 @@# Watercolor Brush — Style Prompt-> A naturalist's field-journal painting that paints itself: translucent brush strokes with dry-brush flying white on warm cotton paper, one long sideways walk through a landscape, hand-written notes and a quiet data gauge, then a pull-out to a painted map.-> Demo: *Follow the Rain* (113.6 s, 1920×1080, 60 fps) · `watercolor.mp4` · source in `demo/` · engine: Canvas2D stroke engine (`engine.js` `mk`/`drawS`, variable-width ribbon + dashed bristle tracks), procedural plant generators, per-plant sprite cache, headless Chrome frame capture.-> References (grammar only): naturalist field-journal and botanical-plate watercolours; long horizontal handscroll panoramas; the ecology-textbook "transect" diagram (one gradient, walked left to right). Borrow the grammar, never a specific artwork, character or layout.+> A hand-painted journal page that paints itself: translucent brush strokes with dry-brush flying white on warm cotton paper, hand-written notes beside what is painted, nothing drawn with a vector line.+> References (grammar only): naturalist field-journal and botanical-plate watercolours (specimen + note); long horizontal handscroll panoramas (one continuous painted world); the textbook "transect" diagram (a gradient read across space). Borrow the grammar, never a specific artwork, character or layout.-You are directing a film in the **Watercolor Brush** style. The user gives you a topic. You decide everything else — the gradient to walk, the zones, the specimens, the map, timing, voice and music — and deliver a finished film. Follow this guide.+## 1. Essence, and what it is not----+- **One sheet of warm, fibrous paper** under everything; it is also the eraser (paper-coloured mist washes things away).+- **Everything is individual brush strokes**: a variable-width ribbon at partial opacity plus a few thin **bristle tracks** that break into dashes (flying white). Strokes overlap and darken where they cross, like transparent pigment. No vector outlines; a darker edge stroke along a form is the only "line".+- **Things paint themselves in**, stroke by stroke, structure before detail (trunk → branches → leaves; outline wash → shadow → accent).+- **An annotation layer** in a hand the painter would write with: labels with pen leader lines, a small measured value, a quiet title.+- Tone: calm, curious, precise. Numbers are real; the palette can carry data.++Not ink wash (colour, not ink tones; no calligraphic brush-as-gesture), not impasto (no thick paint, no knife), not a children's picture book (no crayon, no cute outlines), not vector illustration with a watercolour texture laid on top.++## 2. Materials & rendering++- **Paper**: a pre-generated image (warm base, three octaves of smooth noise ±3.5 %, a few thousand short curved fibres, fine grain, light vignette), drawn first every frame.+- **Stroke** (`engine.js` `mk`/`drawS`): a ribbon whose width follows a profile (`brush`, `leaf`, `even`, `tip`, `trunk`) with ~±22 % value-noise roughness, filled as a thin wash (≈ 0.55–0.6 body opacity when bristles are present), plus 3–9 bristle tracks at 30–85 % opacity, each with a random dash pattern and a random early end: that is the flying white. A stroke can be painted up to any fraction of its length (a moving brush tip).+- **Wash**: the same polygon painted in 3 passes with jittered vertices at a third of the opacity each, so edges darken where passes disagree (a pooled watercolour edge).+- **Depth by layers**: several parallax layers of washes and painted objects; farther = smaller, lighter, less saturated; paper-coloured mist bands between layers.+- **Cache finished objects as sprites**; draw stroke by stroke only what is being painted or transformed.+- **Everything is a pure function of `t`**; any stroke made inside `render(t)` is built under a fixed seed.++## 3. Colour logic++- **Paper is the white.** Never paint pure white; light is unpainted paper.+- **Transparent layering**: darker = more passes, not a darker pigment on top. Keep 3–5 hues per scene plus ink.+- **Ink** (a warm near-black and a lighter brown) for lines, text, edges and stems only.+- **Colour may carry the data or the mood**: blend sky, ground and background by position or time so the palette itself changes with the subject. Map ramps quantised into 4–6 bands read as paint, continuous ramps read as software.+- **One accent** (a vermilion, a rain blue) reserved for one element that recurs: a stamp, a marker, a key object.+- Examples: arid-to-wet — red ochre → sage → straw → blue-grey → deep green; a harbour at dawn — `#f3e2c8` sky, `#9fb4c4` water, `#5f7486` hulls, accent `#c8442a` buoys; a vegetable garden — `#e8e0c0` soil light, `#8ea860` leaves, `#4e6e3c` shade, accent `#d9632e` pumpkins.++## 4. Type & subtitles++- An elegant serif (e.g. Cormorant Garamond) for titles and subtitles, a handwriting face (e.g. Caveat) for notes, a small mono (e.g. IBM Plex Mono, wide tracking) for measured labels, Noto Serif SC for Chinese (subset to the characters used).+- Hand notes are drawn twice over a paper-coloured halo, revealed left to right like writing, with a pen leader line that grows to its specimen.+- **Subtitles** sit on the paper, not in a box: centred at the bottom, serif italic ~36 px (2 balanced lines max), a second-language line beneath at ~2/3 size, ink at ~78 % over a paper-coloured halo. Hold ≥ max(1.8 s, speech + 0.6 s).+- Numbers are spelled out in the TTS text and written as digits on screen.++## 5. Motion quality-## 1. What this style is+- **Painting-in is the main motion**: an object's progress is a function of where it sits on screen or of a cue; strokes in a list each take a slice of that progress, so structure appears first.+- **Sway** only after an object is finished: a small horizontal skew (`sin(1.15t+φ) + .4 sin(2.7t+2φ)`), ~0.006 for trees, 0.01–0.03 for grass.+- **Brush-edge wipes**: a wavy vertical clip reveals a whole scene; lines grow by stroke progress; labels open with a left-to-right clip.+- **Mist** erases: paper-coloured layers with a wavy rising edge.+- Animated creatures and events may be phased to the music's beat grid so landings hit the beat.+- Smooth easing (`ss`, `eio`, `eo`, `ei`); 60 fps suits the slow, fluid brush; nothing jitters.-A film that looks like a hand-painted field journal being painted in front of you. Everything sits on one sheet of warm, fibrous paper (`#f1e9da`). Every object — a spinifex hummock, a gum tree, a kangaroo, a cloud, the horizon, a coastline — is made of **individual brush strokes**: a variable-width ribbon laid down at partial opacity, plus 3–9 thin **bristle tracks** that break into dashes (dry-brush *flying white*). Strokes overlap and darken where they cross, like real transparent pigment. Nothing has a vector outline; the darker edge stroke on a trunk (`edgeOf`) is the only "line".+## 6. Camera grammar-Things **paint themselves in** as they enter the frame: stroke by stroke, trunk before branches before leaves. Once finished, a plant is cached as a sprite and only sways. The landscape is a single long painted world that the camera walks across, in four parallax layers of washes and plants, while an **annotation layer** (handwritten Caveat labels with pen leader lines, a rainfall gauge in mono type, a biome title in Cormorant Garamond) explains what we are seeing. The film ends by washing the landscape away with paper-coloured mist and drawing the whole continent as a painted map.+A vocabulary, not a route. The picture is one painted sheet; cutting is rare. Opening and ending come from the topic.-Tone: calm, curious, precise. It is a documentary, not a fairy tale: numbers are real, labels are Latin names, the palette follows the data.+| Move | What it expresses | Can serve |+|---|---|---|+| Long lateral dolly over a continuous world | a gradient; a journey; cause and consequence | a transect; a route; a timeline |+| Vertical tilt along one object | scale; measurement | a tall tree; a building; a depth |+| Locked sheet, things painted in | study; attention | a specimen plate; a recipe; a diagram |+| Slow push into a detail | the observer leaning in | a seed; an insect; a hand-written note |+| Pull-back to a map or diagram | the whole re-framed | where it all happened; a system |+| Mist wash to blank paper | chapter end; time passing | a season; forgetting; a new place |+| Page turn / new sheet slides over | a new entry in the journal | a new day; a new species; a new case |+| Change in time on a locked view | growth; decay; history | a season cycle; before/after; deep time |-## 2. Story: what fits this style+Framing: generous paper margins; one hero subject per view with its note; labels never cover the subject. Transitions: brush-edge wipes, mist, a page turn, or a continuous camera move; no hard video cuts, no dissolves between unrelated pictures.-| Native power | Story use |-|---|---|-| **A walk along one gradient** | Map one measurable quantity to horizontal distance and walk it: rainfall (demo), altitude up a mountain, depth down a reef wall, distance from a city centre, latitude from equator to pole, time along a river. The camera move *is* the argument. |-| **Painting-in as reveal** | Each new zone is literally painted in as it arrives — the audience watches a new kind of life appear stroke by stroke. Use `burst` to make a whole zone erupt at once for the climax zone (the rainforest). |-| **Zone palettes** | Colour carries the data: red-ochre desert → sage mulga → straw woodland → blue-grey wet forest → deep green rainforest. The sky, ground, hills and far trees all blend by zone. |-| **Specimen + note** | One hero specimen per zone, labelled by hand with a leader line (`spinifex · Triodia`, `mountain ash · Eucalyptus regnans`). A small animal per zone gives life and scale (kangaroos, budgies, koala, cassowary, a tiny human for scale). |-| **One event per zone** | Each zone gets one small demonstrative event: rain running down mulga branches to the roots, a fire front and epicormic regrowth, a tilt-up measuring a 100 m tree, a layer diagram of the rainforest. |-| **Pull-out to the map** | After the walk, wash the landscape away and paint the map; draw "our walk" on it. The map can then move in **time** (50 Ma → today), which turns a spatial walk into a historical one. |+## 7. Sound palette-**Story shape (proven in the demo):** cold paper → horizon brushed in → vermilion sun "stamped" like a seal → title → landscape revealed with a brush-edge wipe → 5 zones (≈ 10–18 s each) with a rising gauge → mist washes everything back to paper → coastline painted → map filled → "our walk" arrow → rewind to 50 million years ago (all green) → drift and dry back to today (dry heart, green edge) → end title over the faded map + credits.+- **Music**: acoustic and gentle: felt piano, fingerpicked guitar, woodwinds, light strings, glockenspiel, kalimba, soft pads. A licensed track can be edited with beat-aligned jumps; the picture can then take its beat grid.+- **Foley made from the scene's matter**: a paper brush rustle for each painting-in (band-passed noise, light tremolo, a panned sweep); pencil scratch for notes; a soft thump for a stamp; page flips; nature beds and creatures of the subject (birds, wind, rain plinks, water, insects, fire crackle).+- **Silence**: the brush lifted: music out, only paper and room; it frames a single painted moment.+- **Mix character**: voice forward (RMS a few dB over the music), music ducked ~4 dB under voice with a smoothed envelope, a short soft reverb, final −14 LUFS. Kokoro voices are peaky (~17 dB peak-to-RMS): limit before level-matching.+- **Voice**: warm, unhurried documentary read, one line per idea.-Adapting a topic: pick the gradient; list 4–6 zones with a real value at each boundary; give each zone a palette, a hero specimen, a small animal and one event; end on a map or diagram that re-frames the walk (in space, then in time).+## 8. Native moves-## 3. Visual language+A menu: use the ones your story needs.-**Paper**: `demo/paper.jpg`, generated by `paper.py` — base `#f1e9da`, three octaves of smooth noise (±3.5 %), 2,600 short curved fibres (±3.5 % light/dark), fine grain, 5 % vignette. It is drawn first every frame and is also the mist that erases the landscape (`drawMist` clips `PAPER_IMG` with a wavy rising edge).+- **Painting-in as reveal.** A new thing appears stroke by stroke as it enters. *Fits content like:* the stages of a building; the ingredients of a dish; the organs of a body.+- **Burst.** A whole group paints in at once (≤ 1 s) for a peak. *Fits content like:* a festival crowd; a field in bloom; a city lighting up.+- **Palette as data.** Sky, ground and background blend by a measured value. *Fits content like:* pollution along a river; temperature by altitude; noise across a city.+- **Specimen + note.** One hero object with a hand-written label and leader line. *Fits content like:* a tool kit; a wine region's grapes; parts of a bicycle.+- **Mist erase.** The world washes back to paper. *Fits content like:* forgetting; a dream ending; a site demolished.+- **Map in time.** A painted map whose fills change continuously through years. *Fits content like:* a language spreading; a coastline eroding; a railway network growing.+- **Painted transformation.** Objects cross-fade to a burnt, wet or aged sprite and regrow. *Fits content like:* a wildfire and recovery; a flood; a restoration.-**Ink**: `INK #2b2520` (lines, text, trunk edges), `INK2 #3d3129` (branches, stems). Accent: vermilion sun `#cf4f2c` with 7 horizontal `#b8401f` dry-brush bars (it reads as a seal); rain blue `#3f7fa8` (drops, gauge fill).+## 9. Pitfalls of the medium++- Offscreen wash strips too short flatten tall shapes into flat tops and expose seams on tilts → size strips well beyond the frame.+- A translucent wash that ends at its canvas edge shows a hard seam under other layers → extend below the frame and fade to paper with a gradient.+- Classic scripts share one global scope: touching a `const` before its declaration in async init leaves `READY` false and every screenshot times out → build everything inside the init; read `[pageerror]` lines.+- The stroke builder consumes the global RNG: any stroke created in `render(t)` must be wrapped in `withSeed` or parallel workers disagree.+- Thousands of strokes per frame are too slow → sprite cache.+- Beat-locked animation must be re-derived when the music edit changes.+- New CJK subtitle characters fall back to another font until the subset is rebuilt.++## 10. Engine++In `demo/`: `engine.js` (RNG, easing, noise, monotone keyframe tracks; the stroke engine `mk`, `drawS`, `drawList`, `sprite`, `clump`, `edgeOf`, `withSeed`), `plants.js` (plant and prop generators, local coordinates, root at 0,0), `scene.js` (layers, wash strips `washPoly`, world placement `add`, annotations `hand` / `leader` / `note`), `main.js` (map, mist, HUD, subtitles, `render(t)`, async init → `READY`), `paper.py`, `fetch_fonts.mjs`, `mix.py`, `render.mjs`. API table and a minimal example: [DEMO.md](DEMO.md) "Engine reference".++## 11. Variation space++You decide the subject, the structure, what gets painted, the palette logic, whether anything is measured, the opening, the ending and the camera. All far from our demo:++- Structures: **a journal kept over one year** (locked page per month, each painted over the last); **anatomy of one object** (a single specimen dissected into labelled parts, each part a painted close-up); **a recipe or process** (steps painted top to bottom on one tall sheet, tilting down).+- Openings: **a finished painting** that we then watch being painted backwards to its first stroke, and forwards again; **a close-up of wet pigment** spreading, pulled back to show what it became; **a hand-written question** on blank paper, answered by painting.+- Endings: **the page left unfinished**, brush lifted mid-stroke; **a close-up of one detail** as the rest fades to paper; **the sheet dries and is filed** into a stack of other pages.++----**Zone palettes** (`scene.js` `ZCOL`, blended by camera position with `mixZone`/`zoneGrad`):--| Zone | sky | far hills | mid ground | main ground |-|---|---|---|---|---|-| desert | `#f0d6b8` | `#dcae8e` | `#dba47e` | `#dda27a` |-| mulga | `#efdcc6` | `#c89b8c` | `#d0ae80` | `#dbb584` |-| wood | `#ece2cd` | `#bdb99c` | `#cbc28f` | `#dccb92` |-| wet | `#dfe3dc` | `#9fb1b8` | `#98aa8a` | `#a7b48e` |-| rain | `#dbe3d8` | `#9ab19f` | `#6f8d6d` | `#6e8b69` |--Plant colour sets live in `plants.js` `COL` (straw, mulga, salt, gum, gold, ash, fern, rain, rainLite, palm, wattle). Map rainfall ramp (`main.js` `MSTOP`): 150 mm `#cf7c4f` → 300 `#cda35f` → 650 `#b3b07a` → 1150 `#7f9a6c` → 2000 `#46705a` → 4000 `#2f5a45`, quantised into 5 bands on the map.--**Stroke material** (`engine.js`): a ribbon whose width follows a profile (`brush`, `leaf`, `even`, `tip`, `trunk`) with ±22 % value-noise roughness, filled at `a × rib` (≈ 0.57 when bristles are present, so the body is a thin wash) plus `nb` bristle tracks at 30–85 % opacity, each with a random dash pattern (long runs of 18–90 px, gaps up to w/2) and a random early end — that is the flying white. Washes (`washPoly`) are 3 passes of the same polygon with jittered vertices at `a/3 × 1.6`, so edges darken where passes disagree, like a pooled watercolour edge.--**Layers** (`LAY`): far (parallax 0.25, ground y 640, scale 0.38, alpha 0.5) · mid (0.55, 690, 0.62, 0.78) · main (1.0, 745, 1.0, 1.0) · fg (1.55, 1115, 1.75, 0.95). Distance = smaller, lighter, less saturated; two mist bands (`mistBand`) sit between the layers in the wet zones.--**Type**: Cormorant Garamond (biome titles 500 52 px, subtitles italic 500 36 px, title italic 124 px, map year 150 px / "today" italic 104 px), Caveat 500/600 (hand notes, 26–42 px, drawn twice over a paper-coloured 12 px shadow halo), IBM Plex Mono 400 (labels such as `ANNUAL RAINFALL`, `01 / 05`, 3 px letter-spacing), Noto Serif SC 400 (Chinese subtitle line). Self-hosted in `demo/fonts/` via `fetch_fonts.mjs`; Noto Serif SC is **subset to the CJK characters that appear in `scene.js` + `main.js`**.--## 4. Motion--- **Painting in**: `plantP` — a plant's progress is `(REV(t) − screenX) / (span × max(.55, parallax))`. `REV` sweeps from −300 to 1650 px during the reveal (10.2–13.4 s); afterwards everything entering from the right is painted over ~380 px of travel. `drawList` draws N strokes in order, each taking `clamp(4/N, .12, .5)` of the progress, so trunks come first and leaf clumps last.-- **Sway**: a horizontal skew `sway × (sin(1.15t+φ) + .4 sin(2.7t+2φ))`, 0.006 for trees, 0.01–0.03 for grass and ferns.-- **Brush-edge wipes**: the whole landscape is revealed by a vertical wavy clip (`drawStripAt(..., reveal)`), the horizon by a left-to-right `drawS` progress, the coastline segment by segment, labels by a rectangle clip that opens left-to-right (`hand`), leader lines by growing point count (`leader`).-- **Music-locked animation**: kangaroo hops are phased to the score's beat grid (`BEAT0 = 11.865`, `BEAT = .5805` s, one hop per 2 beats) so every landing hits a beat.-- **Events**: raindrops fall onto mulga tips and slide down the stems (14 drops, 0.36 s apart) while a wet patch and a dashed tap root spread; fire front sweeps 5650→6900 world px in 3 s, trees cross-fade to a `#2a2320` burnt sprite, an ash band darkens the ground, then green epicormic shoots `drawList` back in; the rainforest `burst` paints every visible rainforest plant within 0.9 s.-- **Map**: the rainfall field is recomputed per frame from station values with a time multiplier (`mapTau`), so 50 Ma → today is a continuous "drying" with a radial fill reveal; fires flicker in the 500–900 mm band while it dries.-- Ease functions: `ss`, `eio`, `eo`, `ei` in `engine.js`; everything is a pure function of `t`.--## 5. Camera--| Beat | Camera |-|---|---|-| Title (0–10.9 s) | Static on blank paper; horizon brushed across, sun stamped (1.6 s), title wiped in. |-| Walk (10.3–73 s) | One continuous sideways dolly: `camXf = monotone([[0,700],[10.3,700],[16,1400],…,[66,9300],[73,9800]])` in world px; speeds up between zones and slows on events (fire, ash tree). Four parallax layers + clouds at 0.2. |-| Tall tree | A vertical tilt `camYf`: up 980 px over 54.2–57.8 s along the mountain ash with a dimension line drawing "≈ 100 m", then back down 58.4–60.9 s. |-| Mist | 70.3–73.6 s: two wavy paper layers rise from the bottom and erase the world (no cut). |-| Map | Static, centred continent (equirectangular, cos 26° correction, 24 px/°), slight 90 px vertical settle when rewinding in time. |-| End | The map fades to 30 % and the title block returns over it. |--No cuts anywhere: the whole film is one painted sheet.--## 6. Sound--- **Voice**: Kokoro (`kokoro-onnx`, model `core/tts/kokoro-v1.0.onnx`), voice **`af_heart`**, **speed 0.93**, `lang en-us` — warm, unhurried documentary read. Trim to 1 % of peak with 10 ms head / 100 ms tail. Numbers are spelled out in the TTS text ("two hundred and fifty millimetres") and written as digits in the subtitles. 13 lines, one per beat of the story, 1.7–7.4 s each.-- **Check**: `asr.py` transcribes every line with faster-whisper `base.en`; all 13 read back correctly (only spelling variants: "millimeters", "Red Center", "1%").-- **Music**: Scott Buckley — *Wildflowers* (CC BY 4.0). The 322 s track is cut to 117.8 s with **one beat-aligned jump**: `analyze.py` (librosa beat track, 103.4 BPM, 502 beats; chroma + MFCC beat-synchronous self-similarity) → `jump.py` ranks jump pairs whose result lands at 100–128 s → chosen pair beat 85 (61.23 s) → beat 437 (265.61 s), chroma similarity 0.915, 4-beat phase aligned, 0.18 s equal-power crossfade starting 60 ms before the beat (`edit.py`). The picture's beat constants come from the same `wf_beats.json`.-- **SFX**: all synthesised in `mix.py` (numpy/scipy): paper brush rustle (band-passed noise, 9 Hz tremolo, panned sweep), a thump for the sun stamp, desert wind, 46 budgie chirps, 14 raindrop plinks timed to the mulga drops, fire roar + crackle, rising rain, two eastern whipbird calls, a mist swell and a quiet map-fire crackle. Short convolution reverb from a filtered noise IR.-- **Mix** (`mix.py`): voice → 48 kHz, 90 Hz high-pass, RMS compressor (−24 dB, 3:1). **Kokoro's peak-to-RMS is ~17 dB**, so a **5 ms look-ahead peak limiter** (ceiling = speech RMS + 11 dB) runs *before* the level match; then voice RMS = music RMS + 8 dB during speech; music ducks ×0.62 (≈ −4 dB) under voice with a 0.3 s smoothed envelope; mix normalised to 0.89 peak. Final loudness in `mux.sh`: single-pass `loudnorm=I=-14:TP=-1` → −14.2 LUFS, −1.0 dBFS peak.--## 7. Subtitles & titles--- **Burned-in, bilingual**, centred at the bottom: English italic Cormorant Garamond 36 px (auto-wrapped to 2 balanced lines at 1400 px, baseline 1000 or 962/1000) + Chinese Noto Serif SC 24 px at 1042, `INK` at 78 %, both over an 18 px paper-coloured shadow halo, drawn twice for density. Visible from `start − .15` to `start + dur + .45` with 0.25/0.35 s fades. The same table (`VO` in `scene.js`) drives the mix and `watercolor.srt`.-- **Biome card** (top-left): a short painted colour swatch, `01 / 05` mono, name in Cormorant 52 px, italic subtitle. **Gauge** (top-right): `ANNUAL RAINFALL`, value in Cormorant 54 px (`< 250 mm`, `≈ 1,600 mm`), a log-scale bar 100–4,000 mm with a blue drop marker.-- **Title**: "Follow the Rain" italic Cormorant 124 px wiped in, then the spaced caps subtitle and the Chinese line.-- **End card**: title block over the faded map + credits in IBM Plex Mono 15 px (music with licence, voice, coastline source, "rainfall bands are schematic"), and under them the house sign-off **"LemoLab × Claude Opus 5.5"** in italic Cormorant Garamond 30 px, `INK` 85 %, centred at y 1010, fading in with the credits (105–106.2 s) — a serif italic line so it reads as the film's signature, not another asset credit. Every end card in this style must carry that line; keep it clear of the map (Tasmania sits at y ≈ 845–915).--## 8. Pitfalls we hit--- **Strip canvases too short flatten the hills**: the far/mid washes are pre-painted into long offscreen strips. If a strip's `yTop` is too low, the tall ridges and the rainforest canopy wall get cut into flat tops, and the 980 px tilt-up exposes the cut. The far strip spans y 150–1500 and starts at world x −6000; the mid strip spans 200–1500.-- **Semi-transparent strip bottoms show a hard edge**: a wash that stops at the bottom of its canvas leaves a visible horizontal seam when a translucent layer is drawn over it. Extend every strip below the frame (to 1500 px) and fade the main ground to paper with a vertical gradient instead of stopping it.-- **Top-level `const` order → `READY` never set**: all five scripts share one global scope. If initialisation touches a `const` before its declaration (e.g. `CLOUDS`, `PAPER_IMG`) the async init throws, `window.READY` stays false and every screenshot times out after 60 s. Do all building inside the async init in `main.js`, and read `[pageerror]` lines in the render log.-- **Determinism**: `mk()` consumes the global RNG. Any stroke created inside `render(t)` must be wrapped in `withSeed(seed, …)` (sun, HUD swatches, animals, flames, legend rows) or be pre-built in `build()`; otherwise frames depend on render history and parallel workers disagree.-- **Performance**: drawing thousands of strokes per frame is too slow. Cache each finished plant as a sprite (`sprite()`); only plants whose progress is < 1 (being painted) or burning are drawn stroke by stroke.-- **Kokoro voice is very peaky** (~17 dB peak-to-RMS): matching RMS alone either buries the voice or clips it — limit first, then match.-- **Beat-locked animation**: keep the score's beat grid (`wf_beats.json`) as the source for `BEAT0`/`BEAT`; if the music edit changes, re-derive them.-- **CJK subset**: new Chinese subtitle characters render in a fallback font until you re-run `node fetch_fonts.mjs` (it subsets Noto Serif SC to the characters in `scene.js` + `main.js`).-- **`mix.py` parses `scene.js`** with the regex `\['(v\d\d)', ([\d.]+),` to place the voice lines — keep the `VO` rows in exactly that form.-- (Import) the original project had a `node_modules` symlink to another project; it is removed — `playwright-core` resolves from the repo root. zsh does not word-split `$TS`; use `${=TS}` when passing many timestamps.--## 9. Production recipe (this repo)--```-styles/watercolor/demo/- index.html loads fonts.css + aus.js, engine.js, plants.js, scene.js, main.js (classic scripts, one global scope)- engine.js RNG/easing/noise, monotone spline, colours, the stroke engine (mk, drawS, drawList, sprite, clump, edgeOf)- plants.js plant & prop generators (spinifex, desertOak, mulga, saltbush, wattle, tussock, gum, ash, treeFern,- groundFern, rfTree, fanPalm, vine, farTree, uluru, cloud, shrub)- scene.js VO table, layers, zones, camera, world build, wash strips, landscape drawing, animals, fire, rain, notes- main.js canvas, map (deep time), mist, HUD, subtitles, title/end card, render(t), async init → READY- aus.js coastline rings (from extract_aus.mjs + vendor/) paper.jpg (paper.py) fonts/ + fonts.css (fetch_fonts.mjs)- tts/lines.json voice script tts/gen.py Kokoro asr.py whisper check voices/ v01–v13.wav + dur.json- music/ prep.sh (source files) · analyze.py · lag.py · jump.py · edit.py → score.wav- mix.py SFX + voice + music → mix.wav render.mjs stills / video / part mux.sh → ../watercolor.mp4-```--All commands from the repo root, Python = `.venv/bin/python`:--```sh-D=styles/watercolor/demo-# 1. voice (13 lines, ~10 s) and whisper check-.venv/bin/python $D/tts/gen.py # → $D/voices/v01..v13.wav + dur.json (OUT=dir to write elsewhere)-.venv/bin/python $D/asr.py # prints each transcript; compare with tts/lines.json-# copy the durations into the VO table in scene.js (id, start, dur, en, zh) and set the start times-# 2. music-sh $D/music/prep.sh # Wildflowers.mp3 → Wildflowers.wav (22.05k mono) + wf48.wav (48k)-.venv/bin/python $D/music/analyze.py # → wf_beats.json (plot skipped: no matplotlib in .venv)-.venv/bin/python $D/music/jump.py # ranked jump candidates; pick one, put its beat indices in edit.py-.venv/bin/python $D/music/edit.py # → score.wav, score_beats.json-# 3. look at frames while building (≈0.35 s/frame as PNG)-OUT=$D/out/review node $D/render.mjs stills 5 20 43 66 90 106-.venv/bin/python core/render/sheet.py $D/out/review/sheet.jpg $D/out/review/t_*.png --cols 3 --w 640-# 4. mix (4 s) — writes $D/mix.wav, or pass a path-.venv/bin/python $D/mix.py-# 5. video: 6816 frames at 60 fps, ~50 ms/frame/worker (8 workers ≈ 2 min; keep 2–3 when other jobs run)-node $D/render.mjs video 8 # → $D/out/seg_0..7.mp4 + out/list.txt (x264 crf 12 intermediates)-# 6. mux (≈70 s): concat + x264 slow crf 16 g 120 + loudnorm −14 → styles/watercolor/watercolor.mp4-sh $D/mux.sh # or: sh $D/mux.sh path/to/test.mp4-# 7. subtitles: VO table → srt-# ($D/out/srt_cues.json = VO rows as {t0: s-.15, t1: s+dur+.45, text: "en\nzh"}, dumped from scene.js with a 5-line node script)-.venv/bin/python core/render/srt.py $D/out/srt_cues.json styles/watercolor/watercolor.srt-```--Partial re-render (used for the end-card sign-off): `node $D/render.mjs part 99.4 113.6 $D/out/seg_7.mp4` re-creates the last 8-worker segment exactly (frames 5964–6815), then `sh $D/mux.sh`.-One-time asset scripts (already run): `node $D/extract_aus.mjs` (coastline), `cd $D && ../../../.venv/bin/python paper.py` (paper), `node $D/fetch_fonts.mjs` (fonts, needs network).--## 10. Engine usage--**Page contract** (`render.mjs` relies on it): `window.DUR` (seconds), `window.render(t)` (pure function of t, draws the whole frame), `window.READY = true` after fonts, paper and `build()` are done. Canvas 1920×1080, `ctx` global from `main.js`.--**Stroke engine — `engine.js`**--| Function | Purpose / parameters |-|---|---|-| `mk(pts, w, col, o)` | Build a stroke from a centre-line `[[x,y],…]`, base width `w` px, hex colour. `o.prof`: `'brush'` (default: fat start, tapering), `'leaf'` (sin swell), `'even'` (flat, short tapers), `'tip'` (thick root → fine tip), `'trunk'` (flared base, −62 % to top). `o.nb`: bristle tracks (default `clamp(round(w/3.2), 3, 9)` when `w ≥ 6`, else 0). `o.a`: opacity (0.92). `o.rib`: body opacity factor (0.62 with bristles, 0.92 without). `o.rough`: width noise (0.22). Consumes RNG. |-| `drawS(c, s, p=1, col, am=1)` | Paint stroke `s` on context `c` up to fraction `p` of its length (a moving brush tip), optional colour override and alpha multiplier. |-| `drawList(c, L, p)` | Paint a list of strokes in order; `p ∈ [0,1]` for the whole list. |-| `sprite(L, col)` | Rasterise a stroke list to an offscreen canvas → `{cv, x0, y0, x1, y1}` (draw at `x0,y0` in local coords). `col` repaints all strokes in one colour (burnt silhouettes). |-| `qcurve(x0,y0,x1,y1,bend,n)`, `qctrl(...)`, `polar(x,y,ang,len,bend,n)` | Centre-line helpers (quadratic curves; `bend` is sideways offset of the control point). |-| `clump(S, cx, cy, r, n, cols, o)` | Push `n` leaf dabs in an ellipse (`o.sx`, `o.sy`), optional direction `o.dir ± o.spread`, lengths `o.l0–l1`, widths `o.w0–w1`, alpha `o.a0–a1`. |-| `edgeOf(s, side, w, col, a)` | Shadow/ink edge running along one side of a stroke (trunks, limbs). |-| `withSeed(seed, fn)` | Run `fn` with a fixed RNG — **required** for anything built inside `render`. |-| `monotone([[t,v],…])` | Monotone cubic keyframe track (camera paths). |-| `ss eio eo ei seg clamp lerp vnoise fbm hash mixc rgba` | Easing, ranges, noise, colour helpers. |--**Plants — `plants.js`**: every generator takes a scale `sc` (and optional args), works in local coordinates with the root at (0,0) and y up = negative, and returns `{ S: strokes, … }` (`gum` also returns `woody`, `leaves`, `shoots`, `fork`; `mulga` returns `stems`; `ash`/`rfTree` return `top`).--**World — `scene.js`**: `add(layer, worldX, generator, scale, {dy, span, sway, args, extra})` places a plant into `PL[layer]` and caches its sprite; `build()` fills zones by walking world x with `zoneJit`; `buildStrips()` pre-paints hill/ground washes with `washPoly(c, pts, fill, alpha, passes, jitter)`; `drawLandscape(t)` draws sky → far strip/plants → mist → mid → ground → horizon → main plants (with hooks for hero events) → animals → fire → foreground → rain. Annotations: `hand(txt, x, y, p, {size, w, align, col})`, `leader(x0,y0,x1,y1,p,bend)`, `note(t, t0, t1, anchorX, anchorY, labelX, labelY, txt, o)`; `scr(plant, dx, dy, t)` converts a plant-local point to screen space for labels.--**Minimal example** — replace `scene.js` + `main.js` with this to get a gum tree painting itself on paper (keep `index.html`, `engine.js`, `plants.js`, `paper.jpg`, fonts):--```js-const cv = document.getElementById('c'), ctx = cv.getContext('2d');-window.DUR = 6; let PAPER_IMG, tree, horizon;-function render(t) {- ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.globalAlpha = 1; ctx.drawImage(PAPER_IMG, 0, 0);- drawS(ctx, horizon, seg(t, .2, 1.6)); // horizon brushed across- const p = seg(t, 1, 4.5), sk = .006 * Math.sin(t * 1.15); // paint-in progress + sway- ctx.setTransform(1, 0, sk, 1, 960, 820);- if (p < 1) drawList(ctx, tree.S, p); else ctx.drawImage(tree.spr.cv, tree.spr.x0, tree.spr.y0);- ctx.setTransform(1, 0, 0, 1, 0, 0);- withSeed(7, () => drawS(ctx, mk(qcurve(80, 90, 120, 90, 0, 5), 9, '#b3b07a', { prof: 'even', nb: 3 }), seg(t, 4.5, 5)));- ctx.font = '500 52px "Cormorant Garamond"'; ctx.fillStyle = rgba(INK, ss(seg(t, 4.6, 5.2))); ctx.fillText('Eucalypt woodland', 76, 150);-}-window.render = render;-(async () => {- PAPER_IMG = new Image(); PAPER_IMG.src = 'paper.jpg'; await PAPER_IMG.decode();- await document.fonts.load('500 52px "Cormorant Garamond"');- tree = withSeed(1, () => gum(1.2)); tree.spr = sprite(tree.S);- horizon = withSeed(2, () => mk(qcurve(120, 822, 1800, 822, -4, 40), 5.2, INK2, { prof: 'even', nb: 5, a: .88, rough: .3 }));- window.READY = true;-})();-```--For a full film: keep `engine.js`/`plants.js` (add generators for your specimens in the same style), rewrite the `VO`, `LAY`, `ZONES`, `RAINK`-style value table, `camXf`, `ZCOL` and `build()` in `scene.js`, and the map / HUD / titles in `main.js`.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/watercolor/demo/fonts/f0.woff2 b/styles/watercolor/demo/fonts/f0.woff2deleted file mode 100644index 59bbdec..0000000Binary files a/styles/watercolor/demo/fonts/f0.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f1.woff2 b/styles/watercolor/demo/fonts/f1.woff2deleted file mode 100644index 4f401d3..0000000Binary files a/styles/watercolor/demo/fonts/f1.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f10.woff2 b/styles/watercolor/demo/fonts/f10.woff2deleted file mode 100644index 12aa705..0000000Binary files a/styles/watercolor/demo/fonts/f10.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f11.woff2 b/styles/watercolor/demo/fonts/f11.woff2deleted file mode 100644index 773957d..0000000Binary files a/styles/watercolor/demo/fonts/f11.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f12.woff2 b/styles/watercolor/demo/fonts/f12.woff2deleted file mode 100644index 390184c..0000000Binary files a/styles/watercolor/demo/fonts/f12.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f13.woff2 b/styles/watercolor/demo/fonts/f13.woff2deleted file mode 100644index 33ce75e..0000000Binary files a/styles/watercolor/demo/fonts/f13.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f14.woff2 b/styles/watercolor/demo/fonts/f14.woff2deleted file mode 100644index 836dbda..0000000Binary files a/styles/watercolor/demo/fonts/f14.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f15.woff2 b/styles/watercolor/demo/fonts/f15.woff2deleted file mode 100644index 1e104e8..0000000Binary files a/styles/watercolor/demo/fonts/f15.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f16.woff2 b/styles/watercolor/demo/fonts/f16.woff2deleted file mode 100644index 900627d..0000000Binary files a/styles/watercolor/demo/fonts/f16.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f17.woff2 b/styles/watercolor/demo/fonts/f17.woff2deleted file mode 100644index 2866643..0000000Binary files a/styles/watercolor/demo/fonts/f17.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f18.woff2 b/styles/watercolor/demo/fonts/f18.woff2deleted file mode 100644index e4f67de..0000000Binary files a/styles/watercolor/demo/fonts/f18.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f19.woff2 b/styles/watercolor/demo/fonts/f19.woff2deleted file mode 100644index 52b6c75..0000000Binary files a/styles/watercolor/demo/fonts/f19.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f2.woff2 b/styles/watercolor/demo/fonts/f2.woff2deleted file mode 100644index 22b856d..0000000Binary files a/styles/watercolor/demo/fonts/f2.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f3.woff2 b/styles/watercolor/demo/fonts/f3.woff2deleted file mode 100644index ca5fbeb..0000000Binary files a/styles/watercolor/demo/fonts/f3.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f4.woff2 b/styles/watercolor/demo/fonts/f4.woff2deleted file mode 100644index f1bd492..0000000Binary files a/styles/watercolor/demo/fonts/f4.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f5.woff2 b/styles/watercolor/demo/fonts/f5.woff2deleted file mode 100644index 0dbab0b..0000000Binary files a/styles/watercolor/demo/fonts/f5.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f6.woff2 b/styles/watercolor/demo/fonts/f6.woff2deleted file mode 100644index 577d85b..0000000Binary files a/styles/watercolor/demo/fonts/f6.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f7.woff2 b/styles/watercolor/demo/fonts/f7.woff2deleted file mode 100644index cc82ab6..0000000Binary files a/styles/watercolor/demo/fonts/f7.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f8.woff2 b/styles/watercolor/demo/fonts/f8.woff2deleted file mode 100644index c7ba5ea..0000000Binary files a/styles/watercolor/demo/fonts/f8.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/fonts/f9.woff2 b/styles/watercolor/demo/fonts/f9.woff2deleted file mode 100644index 48836da..0000000Binary files a/styles/watercolor/demo/fonts/f9.woff2 and /dev/null differdiff --git a/styles/watercolor/demo/music/curves.png b/styles/watercolor/demo/music/curves.pngdeleted file mode 100644index 0db524d..0000000Binary files a/styles/watercolor/demo/music/curves.png and /dev/null differdiff --git a/styles/watercolor/demo/music/score_curve.png b/styles/watercolor/demo/music/score_curve.pngdeleted file mode 100644index 24c0df2..0000000Binary files a/styles/watercolor/demo/music/score_curve.png and /dev/null differdiff --git a/styles/watercolor/demo/music/wf_ssm.png b/styles/watercolor/demo/music/wf_ssm.pngdeleted file mode 100644index 00550d3..0000000Binary files a/styles/watercolor/demo/music/wf_ssm.png and /dev/null differdiff --git a/styles/watercolor/demo/paper.jpg b/styles/watercolor/demo/paper.jpgdeleted file mode 100644index 822dd10..0000000Binary files a/styles/watercolor/demo/paper.jpg and /dev/null differdiff --git a/styles/watercolor/style.json b/styles/watercolor/style.jsonnew file mode 100644index 0000000..c68618f--- /dev/null+++ b/styles/watercolor/style.json@@ -0,0 +1,18 @@+{+ "slug": "watercolor",+ "num": "02",+ "en": "Watercolor Brush",+ "cn": "水彩笔刷",+ "category_en": "Hand-drawn & Painting",+ "category_cn": "手绘与绘画",+ "film": "Follow the Rain",+ "line": "Follow the rain from Australia's red desert heart to its green coast in one unbroken painted walk.",+ "line_cn": "跟着降雨从澳洲红色腹地一路画到绿色海岸,一镜到底。",+ "uses": [+ "Nature documentary",+ "Travel",+ "Science explainers"+ ],+ "frame_sec": 68.16,+ "dur": 113.6+}diff --git a/styles/whiteboard/DEMO.md b/styles/whiteboard/DEMO.mdnew file mode 100644index 0000000..f7c7d02--- /dev/null+++ b/styles/whiteboard/DEMO.md@@ -0,0 +1,127 @@+# Whiteboard Explainer — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *Einstein in Your Pocket* (111 s) · `whiteboard.mp4` · source in [`demo/`](demo/)+++The demo's original one-line pitch: A science explainer drawn live on one glossy dry-erase board: single-line handwriting that is actually *written* stroke by stroke, floating markers with no hand, a magnet that can move, an eraser that can rewind time — and a camera that never leaves the board until the final pull-back shows the whole lesson hanging on the wall.++## Story & structure++Why GPS needs relativity, told from the map pin on your phone. The original style notes, as written for this demo:++A lesson on **one physical whiteboard**. Everything the viewer learns is drawn in dry-erase marker in front of them, in real handwriting order. The board is a *map*: each idea lives in its own region, and the camera travels between regions, usually **led by the pen** (the pen draws a line, the camera rides it). At the end the camera pulls back and the viewer sees that the whole explanation was one picture.++What makes it feel real rather than "animated text": ink that pools where the nib lands, dry streaks and speckle, strokes that overshoot and don't quite close, ghosts of old lessons that were never fully wiped, a glossy sheen that drifts slower than the board, and a sound for **every** stroke.++**This version has no hands.** Markers float (with a real cast shadow that grows when they lift), park outside the frame between phrases and fly back in. Physical props (magnets, eraser) move on their own. Don't draw a hand, an arm, or a cursor.++| Native power | How the demo used it |+|---|---|+| **Writing in stroke order** | The reveal *is* the explanation: an equation appears term by term exactly when the narrator says the term. |+| **One board, one camera** | Distance on the board = distance in the argument. Returning to an earlier drawing is a free callback (the demo returns to its first equation to compute 38 μs × c ≈ 11 km). |+| **The pen leads the camera** | Transitions are drawn: an orbit, a signal line, a trail. The camera follows the line to the next idea. |+| **Magnets** | The only objects allowed to *move* on a whiteboard. Give the hero (the "you are here" pin) to a magnet; it can be lifted off, dropped, slid, sunk. |+| **The eraser rewinds** | Wiping a trail backwards reads as undoing time. The demo used it once, right after the joke. |+| **Two pens at once** | A duet: two quantities compared live (the demo: ground clock vs orbit clock ticking at two tempi). |+| **Full-board reveal** | The demo's ending: pull back past the frame to the wall and the pen tray. Every earlier scene reappears at once. |++**Demo story shape:** hook on one tiny object (the pin) → scale reveal → title on the first downbeat → mechanism in 3 steps → **silence + "But, there's a catch."** → the twist explained with a visual duet → a joke that shows the consequence (the pin drifts one day per beat into the sea) → the eraser rewinds → the fix, in sync → pull back to the whole board → end card written under the title.++How we found the topic's handle (the same recipe works for others): find **one object the viewer owns** (the phone, a loaf, a lightbulb), one number that surprises, and one consequence you can *walk* across the board. Put the surprise in the middle, after a silence.++## Shots++- A 2D camera over an 8000 × 4500 board: position, zoom (interpolated in 1/z so pushes feel like dollies), a little roll.+- **Grammar**: (1) pull back to reveal scale; (2) ride the line the pen is drawing; (3) hold still whenever the viewer must read; (4) one whip into a new idea after a silence; (5) one final pull-back beyond the frame.+- Real 180° **motion blur**: when the camera moves more than 14 px per frame, render up to 12 sub-frames and average them.+- Keep the bottom 12 % of the frame for subtitles in every shot.++In the demo the camera never left the board until the final pull-back, which showed the whole lesson hanging on the wall with its aluminium frame and pen tray.++Demo motion numbers: pen hop lift 35 % of the window max; gaps > 0.75 s send the pen to park, returning 0.42 s before its next stroke; magnet drop 0.3 s, sink = tilt 0.5 rad and drop 40 px; eraser band 90–230 px at 90 % strength; title 3 s, a label 0.3–0.8 s, a full satellite ~1 s. The original motion section:++- **Hand speed**: every stroke follows `u − sin(2πu)/2π × 0.8` — slow landing, fast middle, slow lift. Strokes are scheduled into a **time window** (the engine solves the speed), so writing always finishes on the word.+- **Pen hops** between strokes: lift proportional to distance (shadow slides away and blurs), 35 % of the window max. Gaps > 0.75 s: the pen flies off to a parking spot outside the frame and returns 0.42 s before its next stroke.+- **Magnet**: drop = 0.3 s with lift → 0 and a big shadow shrinking; slide = smoothstep per step with a small lift; sink = tilt 0.5 rad and drop 40 px.+- **Eraser**: follows a path at constant speed, wipes a 90–230 px band at 90 % strength (a 10 % ghost always remains).+- **Speed**: title 3 s, a label 0.3–0.8 s, a full satellite ~1 s. Faster than real hands — this is a sped-up lesson — but never so fast that the stroke order is lost.++## Score structure++- **Every stroke sounds**: band-passed felt-on-gloss noise (2.2–7.5 kHz hiss + 0.5–1.5 kHz body) with the stroke's own speed curve as envelope, a 4 ms nib tick at the start, random stick-slip grains, and on ~28 % of long strokes the **dry-erase squeak** (a 1.5–2.6 kHz sine with 7–13 Hz vibrato). Blue marker slightly darker, orange slightly brighter. Pan = the stroke's screen x; closer camera = louder.+- **Props**: magnet on a steel board = click + metal modes (830/1370/2210/3120 Hz) + 140 Hz board thump; eraser = 250–2600 Hz felt rub modulated by its zig-zag; tray = plastic bounces + aluminium ring; cap off/on.+- **Room**: low room tone and a **wall clock that ticks the ground clock's seconds** — it is the only sound during the silence.+- **Score**: clockwork minimalism at 120 BPM, D major / B minor: marimba 8th-note arpeggio, cello + bass pizzicato, woodblock tick on every beat, glockenspiel theme, shaker/claps only in loud sections. Signals get glockenspiel pings, a falling signal gets a harp run, a drifting object gets a staccato march (tuba + bassoon, chromatic descent). For any "two quantities that diverge" moment, run **the same figure at two tempi** (phasing), then snap them into unison at the fix. Rewind = the previous cue reversed and squeezed.+- **Mix**: VO on top (compressed, light room), score 6.5 dB under VO RMS and ducked another 9 dB under speech, foley ~11 dB under VO; −14 LUFS.++## Palette & props++- **Board**: warm white `#fbfbf9 → #eeede9` gradient, a faint scuff/micro-scratch tile, ~46 **ghost marks** (old words, circles, arrows) at 5–10 % in grey `#9aa0a8` / pale blue `#8aa0c8`. A soft diagonal **window sheen** (white, 10–16 %) that moves at 0.35× the camera — this one detail sells "glossy".+- **Ink**: black `#23262c`, blue `#2a5cb3`, orange `#d97757`, alpha 0.94, composited with **multiply** so overlaps darken like real marker. Width 6–11 px for drawing, 13 % of cap height for lettering.+ - Colour semantics: **black** = things and structure, **blue** = signals, light, measurement, **orange** = you / time / the thing that matters (one accent per scene). Monochrome variant: keep one element orange (the "only colour").+- **Stroke character**: resampled every ~0.6 × width; low-frequency hand wobble along the normal (±2.6 px, wavelength ~220 px) plus a finer tremor; chisel-tip width modulation by direction (0.8–1.0); pressure ramp at the start (0.72 → 1) and a 12 % taper at the end; circles start at an angle and **overlap past closure**; rectangles are 4 strokes with small corner overshoot; a darker pooled dot just inside the start of every long stroke.+- **Dry-marker texture**: a 512 px tile of speckles and short streaks subtracted from the ink layer (destination-out), locked to board space, faded out when the camera is wide.+- **Lettering**: single-line font **EMS Tech** (OFL, a single-stroke version of Architects Daughter), every glyph with ±2° rotation, ±3.5 % baseline and scale jitter. Missing glyphs (μ ≈ → × − ✓ ² ↓ ° ± .) are hand-defined in the engine. Title 200 / 120 px cap height, labels 30–70 px.+- **Props**: dry-erase markers (white barrel, colour band and posted cap in the ink colour, felt nib), a charcoal felt eraser with a small orange label, one glossy orange **map-pin magnet** (radial gradient, white dot, specular highlight, soft cast shadow). Aluminium frame and pen tray only appear in the final wide shot, on a warm grey wall `#d8d3ca`.++## Titles & end card++- Title and end card are **written on the board** in the same single-line hand; the end card is written under the title so the film ends where it began.+- Burned subtitles: off-white rounded label (90 %), Architects Daughter 44 px, dark ink text, a short orange marker dash bottom-left. Split at clauses, ≤ 44 chars per line, short clauses merged, two lines above 1250 px.++The demo's end card is written under the title in the same hand (`demo/film.js`, block `END CARD`, from 103.3 s): "Whiteboard Explainer", "Lemo-Opuscar" in orange, "LemoLab × Claude Opus 5.5", then voice, lettering and sample credits in small type; the pen caps at 107.3 s. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card (take those `credit()` lines out when reusing the code).++## Build notes++1. Write the script as short lines (`demo/lines.json`), synthesize with `core/tts/tts.py` (voice `bm_george`, `lang: en-gb`), check with `demo/tools/asr_check.py` (`WM=medium.en`) → `voices/words.json` word times.+2. Lay out the board (regions for each idea), then write `demo/film.js`: VO start times, drawings hung on spoken words with `at(id, word)`, pens, camera keys.+3. `node core/render/events.mjs demo` → `events.json` (every stroke, wipe, magnet, cue anchors).+4. `music.py` (reads the same events) → `mix.py` (foley generated from events + VO + ducked score).+5. `node core/render/video.mjs demo --fps 24` → `core/render/mux.sh … 24 2`. Whole film renders in ~30 s.+6. `demo/build.sh` does steps 3–5 plus subtitles, poster and stills; `--vo` also redoes step 1.++### Pitfalls we hit++- **One pen, too many jobs**: a single pen scheduled back-to-back drifts later and later (satellites arrived 12 s late). Give every drawing a window (`by:`) and let overlapping jobs go to another pen.+- **Minimum stroke duration × dashes**: a 60-dash line with a 0.09 s floor takes 6 s. Dashes need their own tiny floor.+- **Pooled-ink dot bigger than the stroke start** → grey halos on every letter. Keep the dot inside the stroke.+- **Punctuation vanishes**: a font period is a 1 px stroke. Render sub-width strokes as dots.+- **Labels half-cut by a push-in** look sloppy: a label must be either fully in or fully out of every shot it appears in.+- **Motion blur with few sub-frames** strobes text. Step ≤ 4 px between sub-frames.+- **British voice + US phonemes**: Kokoro `bm_george` with `lang: en-us` said "clocks" like "Clarks". Use `en-gb` for British voices; check with `medium.en`.+- Keep eraser paths off labels you want to keep (it wiped half of "orbit" once).++## Engine reference++| Function | What it does |+|---|---|+| `loadFont(name, url)` | Load a single-line font converted by `demo/tools/svgfont2json.py` (`'tech'` = EMS Tech) |+| `line / curve / poly / arc / circle / rect / roundRect / arrow / dashed / hatch` | Hand-drawn shapes → `Stroke` / `Stroke[]`. Options: `w`, `color`, `jitter`, `over` (overshoot), `bow`, `lap` (circle overlap), `clip` (rounded rect), `alpha` |+| `text(str, x, y, {h, align, w, color, font})` | Handwritten text as strokes in writing order (`h` = cap height) |+| `new Stroke(points, opts)` | Any path (flat `[x,y,…]`) in marker style |+| `new Pen(id, color, {park})` | A floating marker; `park` = its off-frame spot in screen px |+| `Timeline.draw(pen, shapes, t, {by, speed, minGap, maxGap})` | Schedule strokes; with `by` the hand speed is solved to finish on time |+| `Timeline.erase(path, t, dur, {width, strength})` | Felt eraser along a path (leaves a ghost) |+| `Timeline.cue(t, type, extra)` | Extra sound/music anchors exported to `events.json` |+| `new Camera([[t, x, y, zoom, roll, ease], …])` | Keyed 2D camera; ease `io` `i` `o` `l` `s` |+| `new Board(tl, {ghosts})` · `board.render(ctx, t, cam)` | Board, ink (multiply + dry texture + erasers), sheen, `objs` (world props) and `overlays` (screen) |+| `penPose / drawMarker / drawEraser / drawPinMagnet` | The physical props |++Minimal call — draw a warm-orange four-point sparkle with a short cursor tail, in marker:++```js+import * as W from './engine/wb.js';+await W.loadFont('tech', 'fonts/EMSTech.json');+const tl = new W.Timeline(), O = new W.Pen('orange', '#D97757');+const star = [], cx = 960, cy = 540, R = 120, r = 26;+for (let i = 0; i <= 8; i++) { const a = i * Math.PI / 4 - Math.PI / 2, q = i % 2 ? r : R; star.push([cx + Math.cos(a) * q, cy + Math.sin(a) * q]); }+tl.draw(O, [W.poly(star, { w: 10 }), W.line(cx + 150, cy + 60, cx + 150, cy + 150, { w: 10 })], 0.5, { by: 1.6 });+tl.draw(O, W.text('ready', cx + 190, cy + 150, { h: 60 }), 1.7, { by: 2.4 });+tl.end();+const board = new W.Board(tl), cam = new W.Camera([[0, 960, 540, 1]]);+board.objs.push({ draw: (ctx, t, c) => W.drawMarker(ctx, O, W.penPose(O, t, cam), c, t) });+window.render = t => board.render(ctx, t, cam); // ctx = your 1920×1080 canvas 2D context+```+Single-colour variant: draw everything with the black pen and give only the element that matters `{ color: '#D97757' }`.diff --git a/styles/whiteboard/STYLE.md b/styles/whiteboard/STYLE.mdindex 2ac0836..fdd88f7 100644--- a/styles/whiteboard/STYLE.md+++ b/styles/whiteboard/STYLE.md@@ -1,124 +1,116 @@# Whiteboard Explainer — Style Prompt (v2, no hands)-> A science explainer drawn live on one glossy dry-erase board: single-line handwriting that is actually *written* stroke by stroke, floating markers with no hand, a magnet that can move, an eraser that can rewind time — and a camera that never leaves the board until the final pull-back shows the whole lesson hanging on the wall.-> Demo: *Einstein in Your Pocket* (111 s) · `whiteboard.mp4` · source in `demo/`-> References (grammar only): RSA Animate / Cognitive Media (one continuous board, the camera travels instead of cutting, final full-board reveal); minutephysics (one sentence = one drawing, the simplest geometry that carries the physics); Steve Reich's *Piano Phase* (two copies of one figure at two tempi as a structure). Never copy their drawings, characters, hands or music.+> An explainer drawn live on one glossy dry-erase board: single-line handwriting that is actually *written* stroke by stroke, floating markers with no hand, magnets that can move, an eraser that can rewind, and a camera that travels across the board instead of cutting.+> References (grammar only): RSA Animate / Cognitive Media (one continuous board, the camera travels instead of cutting, a full-board view); minutephysics (one sentence = one drawing, the simplest geometry that carries the idea); Steve Reich's *Piano Phase* (two copies of one figure at two tempi as a structure). Never copy their drawings, characters, hands or music.-You are directing a 60–120 second explainer in the **Whiteboard Explainer** style. The user gives you a topic (usually science or "how does X work"). You decide the script, the board layout, the camera route, the sound and the score, and deliver a finished film.+Suits explainers of 60–120 s, usually science or "how does X work".----+## 1. Essence, and what it is not++- **One physical whiteboard.** Everything the viewer learns is drawn in dry-erase marker in front of them, in real handwriting order.+- **The board is a map**: each idea lives in its own region; the camera travels between regions, often led by the pen. Distance on the board = distance in the argument.+- **Real marker, not animated text**: ink pools where the nib lands, dry streaks and speckle, strokes overshoot and don't quite close, ghosts of old lessons remain, a glossy sheen drifts slower than the board, and **every stroke makes a sound**.+- **No hands.** Markers float with a real cast shadow that grows when they lift, park outside the frame between phrases and fly back in. Magnets and the eraser move on their own. Never draw a hand, an arm or a cursor.++Not Blueprint (no blue sheet, no drafting conventions), not Crayon Picture Book (no wax texture, no children's story), not a kinetic-type explainer (text is handwritten stroke by stroke, never animated as blocks).++## 2. Materials & rendering++- **Board**: a warm white gradient, a faint scuff and micro-scratch tile, a few dozen **ghost marks** (old words, circles, arrows) at 5–10 % in grey or pale blue, and a soft diagonal **window sheen** (white, 10–16 %) moving at ~0.35× the camera: this one detail sells "glossy".+- **Ink**: alpha ~0.94, composited with **multiply** so overlaps darken like real marker. Width 6–11 px for drawing, ~13 % of cap height for lettering.+- **Stroke character**: resampled every ~0.6 × width; low-frequency hand wobble along the normal (a few px, long wavelength) plus a finer tremor; chisel-tip width modulated by direction; a pressure ramp at the start and a small taper at the end; circles start at an angle and **overlap past closure**; rectangles are four strokes with small corner overshoot; a darker pooled dot *inside* the start of long strokes.+- **Dry-marker texture**: a speckle-and-streak tile subtracted from the ink layer (destination-out), locked to board space, faded out when the camera is wide.+- **Lettering**: a single-line (single-stroke) font written in stroke order, each glyph with small rotation, baseline and scale jitter. Missing symbols (μ ≈ → × − ✓ ² ° ±) are hand-defined.+- **Props**: dry-erase markers (white barrel, colour band and cap in the ink colour, felt nib), a felt eraser, magnets (glossy, with specular highlight and soft cast shadow). Frame, tray and wall appear only if the camera ever goes past the board edge.++## 3. Colour logic++- **Three marker colours at most**, each with a meaning held for the whole film: one dark ink for things and structure, one for signals / measurement / process, one accent for the thing that matters (one accent per region).+- **Monochrome variant**: everything in the dark ink, one element in the accent (the "only colour").+- Ghost marks and board stay neutral; the accent never appears on props except its own marker cap and the hero magnet.+- Example sets: black `#23262c` / blue `#2a5cb3` / orange `#d97757`; black / green `#2e8b57` / red `#c8363a`; navy `#1f2a44` / teal `#1f8a8a` / purple `#7a4fb3`.++## 4. Type & subtitles++- **Handwriting only**: a single-line hand (e.g. EMS Tech, OFL) for all board text; titles large (~120–200 px cap height), labels 30–70 px.+- **Title and end card are written on the board** in the same hand.+- **Burned subtitles**: an off-white rounded label (~90 %), a handwriting-like face (e.g. Architects Daughter ~44 px), dark text, a short accent-colour marker dash. Split at clauses, ≤ 44 characters per line, bottom ~12 % of the frame kept free for them in every shot. Hold ≥ max(1.8 s, speech + 0.6 s).+- **Writing finishes on the word**: a term appears exactly when the narrator says it.+- A label is fully in or fully out of every shot it appears in.++## 5. Motion quality++- **Hand speed**: every stroke follows a slow-fast-slow curve (`u − sin(2πu)/2π × 0.8`). Strokes are scheduled into a **time window** and the engine solves the speed, so writing always finishes on time.+- **Pen hops** between strokes lift in proportion to distance (shadow slides and blurs); long gaps send the pen off-frame to park and back shortly before its next stroke.+- **Magnet**: drop with a shrinking shadow; slide with a small lift; lift-off and sink possible.+- **Eraser**: constant speed along a path, a wide band at ~90 % strength (a ghost always remains).+- **Speed**: faster than real hands (a sped-up lesson) but never so fast the stroke order is lost: a label ~0.3–0.8 s, a title ~3 s.+- Camera on ones with real motion blur when it moves fast.++## 6. Camera grammar++A 2D camera over a large board (e.g. 8000 × 4500): position, zoom interpolated in 1/z so pushes feel like dollies, a little roll. A vocabulary, not a route. Opening and ending come from the topic.++| Move | What it expresses | Can serve |+|---|---|---|+| Pull back from a tiny drawing | scale | a surprising size; context |+| Ride the line the pen is drawing | one idea leads to the next | a transition; a process; a path |+| Hold still | read now | an equation; a definition; a list |+| Whip to a new region | a new idea after a pause | a twist; a "but" |+| Return to an earlier region | a callback, for free | reusing a result; a comparison |+| Split view of two regions (zoomed out enough for both) | two things at once | a duet; before/after |+| Slow push into one symbol | this term is the point | a unit; a variable; a name |+| Track along a long diagram | sequence, time | a timeline; a pipeline; a journey |+| Pull back past the board edge to the wall | the whole lesson as one picture | a summary; a scale jump |-## 1. What this style is+Motion blur: when the camera moves more than ~14 px per frame, render and average sub-frames (≤ 4 px apart). No cuts on the board; if a cut is needed, it is a whip.-A lesson on **one physical whiteboard**. Everything the viewer learns is drawn in dry-erase marker in front of them, in real handwriting order. The board is a *map*: each idea lives in its own region, and the camera travels between regions, usually **led by the pen** (the pen draws a line, the camera rides it). At the end the camera pulls back and the viewer sees that the whole explanation was one picture.+## 7. Sound palette-What makes it feel real rather than "animated text": ink that pools where the nib lands, dry streaks and speckle, strokes that overshoot and don't quite close, ghosts of old lessons that were never fully wiped, a glossy sheen that drifts slower than the board, and a sound for **every** stroke.+- **Every stroke sounds**: band-passed felt-on-gloss noise (a hiss band ~2–7.5 kHz + body ~0.5–1.5 kHz) enveloped by the stroke's own speed curve, a tiny nib tick at the start, stick-slip grains, and on some long strokes the **dry-erase squeak** (a 1.5–2.6 kHz sine with 7–13 Hz vibrato). Each colour sounds slightly different. Pan = the stroke's screen x; closer camera = louder.+- **Props**: magnet on steel = click + metal modes + a low board thump; eraser = felt rub modulated by its zig-zag; cap off/on; marker tray bounce.+- **Room**: low room tone; a single diegetic ticker (a wall clock, a fridge hum, a projector fan) can own a silence.+- **Music** options: a solo piano figure; a small jazz trio with brushes; plucked strings and kalimba; a synth arpeggio for tech topics; clockwork minimalism (marimba, pizzicato, woodblock, glockenspiel). Mickey-mouse details: a rising whistle for growth, pings for signals, a harp run for a fall.+- **Techniques to pick from**: adding one instrument per step of a mechanism; a key change when the frame of reference changes; a full stop into silence before a surprise; the previous cue reversed and squeezed for a rewind; two copies of one figure at two tempi (phasing) for anything that diverges, snapping into unison when resolved.+- **Mix**: voice on top (compressed, light room), music well under voice and ducked further under speech, foley ~11 dB under voice; −14 LUFS.++## 8. Native moves++A menu: use the ones your story needs.++- **Writing in stroke order.** The reveal is the explanation: a formula term by term as it is spoken. *Fits content like:* compound interest; the Drake equation; a recipe's ratios.+- **The pen leads the camera.** Transitions are drawn lines the camera rides. *Fits content like:* a nerve signal; a supply chain; the water cycle.+- **Magnets.** The only things allowed to move on a board: give the hero to a magnet; slide, lift, drop, sink it. *Fits content like:* a delivery truck on a route; a cell in a bloodstream; a player on a pitch.+- **The eraser rewinds.** Wiping a trail backwards reads as undoing time. *Fits content like:* an undo in software; reversing a chemical reaction; "what if we hadn't…".+- **Two pens at once.** A live duet comparing two quantities. *Fits content like:* two savings plans; two runners; a population vs its food supply.+- **Ghosts of the old lesson.** A faint previous drawing becomes relevant. *Fits content like:* a theory replaced; last year's forecast; a first draft.+- **The full-board view.** Every region seen at once as one picture. *Fits content like:* a system diagram; a history; a map of a field.++## 9. Pitfalls of the medium++- **One pen, too many jobs** drifts later and later → give each drawing a deadline window and let overlapping jobs go to another pen.+- **Minimum stroke duration × many dashes** makes a dashed line take seconds → dashes need their own floor.+- **A pooled-ink dot bigger than the stroke start** leaves halos on every letter → keep it inside.+- **Punctuation vanishes** (a font period is a 1 px stroke) → render sub-width strokes as dots.+- **Labels half-cut by a push-in** look sloppy.+- **Motion blur with few sub-frames** strobes text.+- **Eraser paths** crossing labels you want to keep.+- **Voice and phoneme set mismatch** (a British voice with US phonemes) mispronounces → match the language code to the voice; ASR-check.++## 10. Engine++`demo/engine/wb.js`: hand-drawn shapes (`line`, `curve`, `poly`, `arc`, `circle`, `rect`, `arrow`, `dashed`, `hatch`), `text()` in writing order from a single-line font (`loadFont`), `Stroke`, floating `Pen`s, `Timeline.draw(pen, shapes, t, {by})` (solves hand speed to a deadline), `Timeline.erase`, `Timeline.cue`, keyed `Camera`, `Board` (ink multiply, dry texture, erasers, sheen, props), prop drawers. API table and a minimal example that draws something new: [DEMO.md](DEMO.md#engine-reference).++## 11. Variation space++You decide the topic's object, the board layout, the colours within the logic, the voice, the music family, the camera route, the opening, the ending and the length.++All far from our demo:++- Structures: **a proof** (one claim at the top, the board fills downward step by step, each step boxed when proven); **a debate** (two pens, two halves of the board, each drawing its side until the drawings meet in the middle); **a timeline** (one long horizontal line ridden left to right, with events hanging off it).+- Openings: **a question mark** drawn huge in the centre, then shrunk to become a dot in the first diagram; **an erased board** where the ghost of a wrong answer is still visible; **a magnet dropping** onto an empty board with a clack.+- Endings: **the answer circled** twice and the pen capped; **the board wiped** except for one line that survives; **a push into the smallest symbol** on the board, which becomes the title.++----**This version has no hands.** Markers float (with a real cast shadow that grows when they lift), park outside the frame between phrases and fly back in. Physical props (magnets, eraser) move on their own. Don't draw a hand, an arm, or a cursor.--## 2. Story: what fits this style--| Native power | Story use |-|---|---|-| **Writing in stroke order** | The reveal *is* the explanation: an equation appears term by term exactly when the narrator says the term. |-| **One board, one camera** | Distance on the board = distance in the argument. Returning to an earlier drawing is a free callback (the demo returns to its first equation to compute 38 μs × c ≈ 11 km). |-| **The pen leads the camera** | Transitions are drawn: an orbit, a signal line, a trail. The camera follows the line to the next idea. |-| **Magnets** | The only objects allowed to *move* on a whiteboard. Give the hero (the "you are here" pin) to a magnet; it can be lifted off, dropped, slid, sunk. |-| **The eraser rewinds** | Wiping a trail backwards reads as undoing time. Use it once, right after the joke. |-| **Two pens at once** | A duet: two quantities compared live (the demo: ground clock vs orbit clock ticking at two tempi). |-| **Full-board reveal** | The ending: pull back past the frame to the wall and the pen tray. Every earlier scene reappears at once. |--**Story shape (proven in the demo):** hook on one tiny object (the pin) → scale reveal → title on the first downbeat → mechanism in 3 steps → **silence + "But, there's a catch."** → the twist explained with a visual duet → a joke that shows the consequence (the pin drifts one day per beat into the sea) → the eraser rewinds → the fix, in sync → pull back to the whole board → end card written under the title.--Adapting any topic: find **one object the viewer owns** (the phone, a loaf, a lightbulb), one number that surprises, and one consequence you can *walk* across the board. Put the surprise in the middle, after a silence.--## 3. Visual language--- **Board**: warm white `#fbfbf9 → #eeede9` gradient, a faint scuff/micro-scratch tile, ~46 **ghost marks** (old words, circles, arrows) at 5–10 % in grey `#9aa0a8` / pale blue `#8aa0c8`. A soft diagonal **window sheen** (white, 10–16 %) that moves at 0.35× the camera — this one detail sells "glossy".-- **Ink**: black `#23262c`, blue `#2a5cb3`, orange `#d97757`, alpha 0.94, composited with **multiply** so overlaps darken like real marker. Width 6–11 px for drawing, 13 % of cap height for lettering.- - Colour semantics: **black** = things and structure, **blue** = signals, light, measurement, **orange** = you / time / the thing that matters (one accent per scene). Monochrome variant: keep one element orange (the "only colour").-- **Stroke character**: resampled every ~0.6 × width; low-frequency hand wobble along the normal (±2.6 px, wavelength ~220 px) plus a finer tremor; chisel-tip width modulation by direction (0.8–1.0); pressure ramp at the start (0.72 → 1) and a 12 % taper at the end; circles start at an angle and **overlap past closure**; rectangles are 4 strokes with small corner overshoot; a darker pooled dot just inside the start of every long stroke.-- **Dry-marker texture**: a 512 px tile of speckles and short streaks subtracted from the ink layer (destination-out), locked to board space, faded out when the camera is wide.-- **Lettering**: single-line font **EMS Tech** (OFL, a single-stroke version of Architects Daughter), every glyph with ±2° rotation, ±3.5 % baseline and scale jitter. Missing glyphs (μ ≈ → × − ✓ ² ↓ ° ± .) are hand-defined in the engine. Title 200 / 120 px cap height, labels 30–70 px.-- **Props**: dry-erase markers (white barrel, colour band and posted cap in the ink colour, felt nib), a charcoal felt eraser with a small orange label, one glossy orange **map-pin magnet** (radial gradient, white dot, specular highlight, soft cast shadow). Aluminium frame and pen tray only appear in the final wide shot, on a warm grey wall `#d8d3ca`.--## 4. Motion language--- **Hand speed**: every stroke follows `u − sin(2πu)/2π × 0.8` — slow landing, fast middle, slow lift. Strokes are scheduled into a **time window** (the engine solves the speed), so writing always finishes on the word.-- **Pen hops** between strokes: lift proportional to distance (shadow slides away and blurs), 35 % of the window max. Gaps > 0.75 s: the pen flies off to a parking spot outside the frame and returns 0.42 s before its next stroke.-- **Magnet**: drop = 0.3 s with lift → 0 and a big shadow shrinking; slide = smoothstep per step with a small lift; sink = tilt 0.5 rad and drop 40 px.-- **Eraser**: follows a path at constant speed, wipes a 90–230 px band at 90 % strength (a 10 % ghost always remains).-- **Speed**: title 3 s, a label 0.3–0.8 s, a full satellite ~1 s. Faster than real hands — this is a sped-up lesson — but never so fast that the stroke order is lost.--## 5. Camera language--- A 2D camera over an 8000 × 4500 board: position, zoom (interpolated in 1/z so pushes feel like dollies), a little roll.-- **Grammar**: (1) pull back to reveal scale; (2) ride the line the pen is drawing; (3) hold still whenever the viewer must read; (4) one whip into a new idea after a silence; (5) one final pull-back beyond the frame.-- Real 180° **motion blur**: when the camera moves more than 14 px per frame, render up to 12 sub-frames and average them.-- Keep the bottom 12 % of the frame for subtitles in every shot.--## 6. Sound--- **Every stroke sounds**: band-passed felt-on-gloss noise (2.2–7.5 kHz hiss + 0.5–1.5 kHz body) with the stroke's own speed curve as envelope, a 4 ms nib tick at the start, random stick-slip grains, and on ~28 % of long strokes the **dry-erase squeak** (a 1.5–2.6 kHz sine with 7–13 Hz vibrato). Blue marker slightly darker, orange slightly brighter. Pan = the stroke's screen x; closer camera = louder.-- **Props**: magnet on a steel board = click + metal modes (830/1370/2210/3120 Hz) + 140 Hz board thump; eraser = 250–2600 Hz felt rub modulated by its zig-zag; tray = plastic bounces + aluminium ring; cap off/on.-- **Room**: low room tone and a **wall clock that ticks the ground clock's seconds** — it is the only sound during the silence.-- **Score**: clockwork minimalism at 120 BPM, D major / B minor: marimba 8th-note arpeggio, cello + bass pizzicato, woodblock tick on every beat, glockenspiel theme, shaker/claps only in loud sections. Signals get glockenspiel pings, a falling signal gets a harp run, a drifting object gets a staccato march (tuba + bassoon, chromatic descent). For any "two quantities that diverge" moment, run **the same figure at two tempi** (phasing), then snap them into unison at the fix. Rewind = the previous cue reversed and squeezed.-- **Mix**: VO on top (compressed, light room), score 6.5 dB under VO RMS and ducked another 9 dB under speech, foley ~11 dB under VO; −14 LUFS.--## 7. Subtitles & titles--- Title and end card are **written on the board** in the same single-line hand; the end card is written under the title so the film ends where it began.-- Burned subtitles: off-white rounded label (90 %), Architects Daughter 44 px, dark ink text, a short orange marker dash bottom-left. Split at clauses, ≤ 44 chars per line, short clauses merged, two lines above 1250 px.--## 8. Pitfalls we hit--- **One pen, too many jobs**: a single pen scheduled back-to-back drifts later and later (satellites arrived 12 s late). Give every drawing a window (`by:`) and let overlapping jobs go to another pen.-- **Minimum stroke duration × dashes**: a 60-dash line with a 0.09 s floor takes 6 s. Dashes need their own tiny floor.-- **Pooled-ink dot bigger than the stroke start** → grey halos on every letter. Keep the dot inside the stroke.-- **Punctuation vanishes**: a font period is a 1 px stroke. Render sub-width strokes as dots.-- **Labels half-cut by a push-in** look sloppy: a label must be either fully in or fully out of every shot it appears in.-- **Motion blur with few sub-frames** strobes text. Step ≤ 4 px between sub-frames.-- **British voice + US phonemes**: Kokoro `bm_george` with `lang: en-us` said "clocks" like "Clarks". Use `en-gb` for British voices; check with `medium.en`.-- Keep eraser paths off labels you want to keep (it wiped half of "orbit" once).--## 9. Production recipe (this repo)--1. Write the script as short lines (`demo/lines.json`), synthesize with `core/tts/tts.py` (voice `bm_george`, `lang: en-gb`), check with `demo/tools/asr_check.py` (`WM=medium.en`) → `voices/words.json` word times.-2. Lay out the board (regions for each idea), then write `demo/film.js`: VO start times, drawings hung on spoken words with `at(id, word)`, pens, camera keys.-3. `node core/render/events.mjs demo` → `events.json` (every stroke, wipe, magnet, cue anchors).-4. `music.py` (reads the same events) → `mix.py` (foley generated from events + VO + ducked score).-5. `node core/render/video.mjs demo --fps 24` → `core/render/mux.sh … 24 2`. Whole film renders in ~30 s.-6. `demo/build.sh` does steps 3–5 plus subtitles, poster and stills; `--vo` also redoes step 1.--## 10. Engine usage (`demo/engine/wb.js`)--| Function | What it does |-|---|---|-| `loadFont(name, url)` | Load a single-line font converted by `demo/tools/svgfont2json.py` (`'tech'` = EMS Tech) |-| `line / curve / poly / arc / circle / rect / roundRect / arrow / dashed / hatch` | Hand-drawn shapes → `Stroke` / `Stroke[]`. Options: `w`, `color`, `jitter`, `over` (overshoot), `bow`, `lap` (circle overlap), `clip` (rounded rect), `alpha` |-| `text(str, x, y, {h, align, w, color, font})` | Handwritten text as strokes in writing order (`h` = cap height) |-| `new Stroke(points, opts)` | Any path (flat `[x,y,…]`) in marker style |-| `new Pen(id, color, {park})` | A floating marker; `park` = its off-frame spot in screen px |-| `Timeline.draw(pen, shapes, t, {by, speed, minGap, maxGap})` | Schedule strokes; with `by` the hand speed is solved to finish on time |-| `Timeline.erase(path, t, dur, {width, strength})` | Felt eraser along a path (leaves a ghost) |-| `Timeline.cue(t, type, extra)` | Extra sound/music anchors exported to `events.json` |-| `new Camera([[t, x, y, zoom, roll, ease], …])` | Keyed 2D camera; ease `io` `i` `o` `l` `s` |-| `new Board(tl, {ghosts})` · `board.render(ctx, t, cam)` | Board, ink (multiply + dry texture + erasers), sheen, `objs` (world props) and `overlays` (screen) |-| `penPose / drawMarker / drawEraser / drawPinMagnet` | The physical props |--Minimal call — draw a warm-orange four-point sparkle with a short cursor tail, in marker:--```js-import * as W from './engine/wb.js';-await W.loadFont('tech', 'fonts/EMSTech.json');-const tl = new W.Timeline(), O = new W.Pen('orange', '#D97757');-const star = [], cx = 960, cy = 540, R = 120, r = 26;-for (let i = 0; i <= 8; i++) { const a = i * Math.PI / 4 - Math.PI / 2, q = i % 2 ? r : R; star.push([cx + Math.cos(a) * q, cy + Math.sin(a) * q]); }-tl.draw(O, [W.poly(star, { w: 10 }), W.line(cx + 150, cy + 60, cx + 150, cy + 150, { w: 10 })], 0.5, { by: 1.6 });-tl.draw(O, W.text('ready', cx + 190, cy + 150, { h: 60 }), 1.7, { by: 2.4 });-tl.end();-const board = new W.Board(tl), cam = new W.Camera([[0, 960, 540, 1]]);-board.objs.push({ draw: (ctx, t, c) => W.drawMarker(ctx, O, W.penPose(O, t, cam), c, t) });-window.render = t => board.render(ctx, t, cam); // ctx = your 1920×1080 canvas 2D context-```-Single-colour variant: draw everything with the black pen and give only the element that matters `{ color: '#D97757' }`.+How our demo was made (story, shots, score, end card, build): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/whiteboard/TREATMENT.md b/styles/whiteboard/TREATMENT.mddeleted file mode 100644index aeeefe1..0000000--- a/styles/whiteboard/TREATMENT.md+++ /dev/null@@ -1,110 +0,0 @@-# TREATMENT · Whiteboard Explainer v2 ·《Einstein in Your Pocket》--> 111 秒 · 英文旁白(Kokoro bm_george,en-gb)· 1920×1080 / 24fps · 全片一块白板,**画面里没有手**-> 2026-09-26 起为本风格正式 demo(替换了旧版《Why Bread Rises》)。--## 1. 对标(只学语法)--| 对标 | 学什么 | 刻意不学 |-|---|---|---|-| RSA Animate《Changing Education Paradigms》(Cognitive Media) | 一整块连续白板,镜头在板上长途移动而不是翻页;文字本身就是图形;片尾拉远看到"整堂课"的全貌 | 画手(本片禁止出现手);它的人物画风、密集涂鸦 |-| minutephysics | 一句话配一张图,口播密度高但每张图只讲一件事;用最简单的几何讲物理 | 它的角色和画风 |-| Steve Reich《Piano Phase》 | 同一段音型、两个速度 → 相位漂移本身就是结构 | 旋律与音型(全部原创) |-| Edgar Wright 的声画卡点 | 一个动作 = 一个声音 = 一个剪辑点 | — |--## 2. 一句话故事与情绪弧--**你的手机不是在看地图,而是在"听天上的钟"。相对论让那些钟每天快 38 微秒——不修正,你的位置一天漂 11 公里;所以工程师在发射前就把钟调慢了。**--主体 = 那枚橙色的"你在这里"图钉磁铁。目标 = 被找到、并待在对的位置。-好奇(你在这里)→ 理解(延迟 = 距离,三个圆交于一点,图钉"啪"地落下)→ **转折(静音:"But, there's a catch.")** → 紧张(两个钟、两支笔的二重奏渐渐错拍)→ 笑点(图钉一天一格地溜出手机,周日掉进海里,鱼冒出一个问号)→ 解决(板擦倒带把图钉拉回家;轨道钟被擦掉重画,两层音乐"咔"地对齐)→ **回响(全板拉远:整堂课挂在墙上,笔一支支落回笔槽;片名旁补写署名)**--## 3. 原生招式(只有白板能做到的)--1. **单线字体一笔一画写出**:用 EMS Tech(Architects Daughter 的单线版,OFL),每个字母按真实书写顺序出现,而不是遮罩擦出来。-2. **一块板、一镜到底**:片头的图钉、片名、卫星、公式、时钟、大海都在同一块 8000×4500 的板上,镜头只在板上移动;片尾拉远一次揭示全部。-3. **板擦 = 时间倒流**(情绪最高点之后):板擦沿着漂移轨迹倒着擦回去,图钉被拖回手机,配乐是漂移进行曲**倒放 + 3.5 倍速**的磁带回卷声。-4. **两支笔的二重奏 = 两个钟**:黑笔按地面钟的拍子画刻度,橙笔按轨道钟(快 7.3%)的拍子画刻度,画面与两层马林巴同时错位。-5. **磁铁是板上唯一的"实物"**:图钉磁铁有高光、有投影,能被拿走、落下、滑动,这是白板上唯一能合法"动"的东西,所以漂移、落水、倒带都交给它。-6. **擦不干净的鬼影**:擦掉的笔迹留 10% 残影;板上还散落着"上几节课"没擦净的痕迹(f(x)、lab 3、TUE……)。--## 4. 镜头表--| # | 时间 | 景别 / 角度 | 运动 | 为什么 |-|---|---|---|---|---|-| 1 | 0–8.9 | 特写图钉 → 全景手机 | **一镜拉远**(2.7× → 0.7×):图钉 → 街道 → 手机 | 尺度揭示:先给观众"你",再给"你在哪",最后给"用什么知道" |-| 2 | 8.9–10 | — | **快速上摇**(带运动模糊)到片名 | "to ticking clocks" 的最后一个词把镜头甩上去,落在音乐第一拍 |-| 3 | 10–14.5 | 中景片名 | 缓推 | 片名在音乐里写完,不配旁白,给呼吸 |-| 4 | 14.5–18.9 | 远景轨道 | **横摇**,黑笔同时沿轨道画虚线 | 笔领着镜头走,"镜头跟笔"是全片的转场语法 |-| 5 | 18.9–24 | 近景卫星 | 推近到原子钟 | 让"原子钟"成为第一个特写物件,为后面的时钟段埋伏笔 |-| 6 | 24.9–29.3 | 中景 | **跟信号下行**:镜头追着蓝笔画的虚线从卫星滑到手机 | 信号的旅程就是镜头的旅程 |-| 7 | 30.3–33.9 | 中景公式 | 固定微推 | 公式需要读,镜头让位 |-| 8 | 35–43.6 | 全景手机屏幕 | 固定 | 三个圆逐个画出,**观众要看清交点**,所以不动 |-| 9 | 43.6–45.9 | 近景图钉 | **慢推 + 轻微荷兰角** | 静音里的"But, there's a catch.",唯一一次倾斜 |-| 10 | 45.9–46.45 | — | **甩镜**(全片最快的一次)到右上角 | 静音后的第一个声音(管钟)落在甩镜落地 |-| 11 | 46.5–56 | 中景两钟 + 两把尺 | 固定 | 二重奏段不说话,只让画面和音乐说话 |-| 12 | 56–70 | 中景算式 | 下移、固定 | −7 / +45 / = +38 逐项写出 |-| 13 | 70–76 | 中景公式(回调) | 回到第 7 镜的位置 | 首尾呼应:同一条公式算出 11 公里 |-| 14 | 77.6–85 | 中景 | **长距离跟拍**图钉(7 天 = 7 拍) | 签名镜头之一:一天一格,慢慢滑向画框外的大海 |-| 15 | 85–87 | 近景大海 | 停住、微推 | 笑点给足 2 秒:落水 → 鱼 → "?" |-| 16 | 87–89 | — | **倒带甩镜**,跟板擦回到手机 | 倒放的时间 |-| 17 | 90–96.2 | 中景两把尺 | 固定 | 重新对齐要看清 |-| 18 | 96.2–102.8 | 大远景 | **最大一次拉远**:整块板、铝框、笔槽、墙 | 签名镜头:整堂课就是一张"路线图" |-| 19 | 102.8–111 | 中景片名 + 署名 | 推回片名 | 首尾呼应:结束在片头写下的片名上 |--运动种类:推、拉、横摇、上摇、跟拍、甩镜、荷兰角、尺度揭示;快门 180° 的真运动模糊(每帧最多 12 个子帧)。--## 5. 节拍表(秒)与 cue map(120 BPM,T0 = 10.0 为第 1 小节第 1 拍)--| 时间 | 画面 | 旁白 | 音乐 |-|---|---|---|---|-| 0.3 | 笔帽拔开(画外) | — | 无音乐;房间底噪 + 墙上挂钟每秒一响 |-| 0.55 | 图钉磁铁落板 | — | — |-| 0.9–4.8 | "you are here"、街道、±5 m 圈 | v01 | — |-| 5.7–9.3 | 画手机、画地面 | v02a / v02b "to ticking clocks" | 8.0–9.5 四下木鱼渐强 + 钟琴上行琶音(弱起) |-| **10.0** | 片名第一笔 | — | **第 1 小节**:定音鼓 + 镲 + 马林巴/拨弦/钟琴主题 |-| 14.2–24 | 轨道、三颗卫星、原子钟、广播涟漪 | v03 v04 | 主题减弱让位人声;每道涟漪一个钟琴 ping |-| 24.6–27.6 | 信号虚线下行 | v05 | 竖琴下行刮奏,音符跟着虚线一段一段落下 |-| 30.3–33.6 | 公式 | v06 | 公式写完:四个拨弦上行"ta-da" |-| 35–41 | 三个圆 | v07–v09a | 每个圆一个颤音琴和弦,一个比一个高 |-| **42.0** | 图钉"啪"落在交点(卡在拍上) | "here" | 全奏落点:定音鼓 + 镲 + 竖琴 + 弦乐 |-| **43.6–46.4** | 推近、荷兰角 | v10 | **静音**:只剩房间和挂钟(44/45/46) |-| **46.45** | 甩镜落地 | — | 静音后的第一个声音:管钟 D5 + 大鼓 + 弓奏颤音琴 |-| 50.0–56.0 | 两支笔的二重奏 | (无) | **两层马林巴相位漂移**:左 = 地面 120 BPM,右 = 轨道 ×1.073;木鱼高低两声各跟各的笔 |-| 56–70 | −7、+45、= +38 | v12–v14 | 相位层继续;−7 拨弦下行,+45 钟琴上行,+38 和弦重音,画圈时吊镲滚奏 |-| 70–76 | 回到公式:"≈ 11 km" | v15 | 只剩地面层(轨道层退出);76–78 低音拨弦上行进入 |-| 78–85 | 图钉一天一格漂走(Mon…Sun) | v16 v17 | **小进行曲**:大号 + 巴松一拍一步,半音下行,军鼓轻敲 |-| **85.0** | 落水 | — | 音乐停;落水声、水杯琴气泡、单簧管的"问号" |-| 87–89 | 板擦倒带 | — | 进行曲倒放 + 加速的"磁带回卷" |-| 89–91.5 | 擦掉轨道刻度 | v18 | 两层马林巴再次错拍(提醒问题还在) |-| **91.5** | 橙笔按八分音符重画刻度,与黑尺对齐 | v18 | **"咔"地对齐**:两层变成一层,木鱼高低同时响 |-| 94.5 | "✓" | — | 钟琴 D6+A6 |-| 96–101.5 | 拉远到全板 | v19 | 终曲:主题全奏 + 弦乐 + 圆号,渐强 |-| 101.5 / 102.0 / 102.5 | 橙笔、蓝笔、板擦落回笔槽 | — | 三下塑料/铝槽碰撞正好落在三个拍上;**102.0 落点和弦** |-| 103.3–106 | 黑笔在片名下写署名 | — | 钟琴主题轻声再现 |-| 107.3 | 笔帽扣上(画外) | — | 108.0 最后一个和弦;挂钟 107–110 渐弱 |--卡点自检:`demo/tools/cuecheck.py`(19 个关键动作在网格上,2 个按词卡:片头落磁铁、拿走磁铁)。--## 6. 声音设计表--| 段落 | 环境底 | 主要拟音 | 音乐状态 |-|---|---|---|---|-| 片头 0–10 | 房间底噪 + 挂钟每秒一响 | 笔帽、磁铁落在钢板上(金属共鸣 + 板体闷响)、马克笔摩擦 | 无 → 弱起 |-| 片名 | 被音乐盖住 | 大字母的长笔画 | 全奏 |-| 卫星 / 公式 | 同上 | 虚线"嗒嗒嗒"、写字的沙沙声、偶发的白板笔"吱" | 让位人声(-9 dB) |-| 三圆定位 | 同上 | 长弧线摩擦;磁铁拿走(抽离)与落下(大) | 稀疏 → 全奏落点 |-| **静音** | 只有房间 + 挂钟 | — | 0 |-| 相对论 | 同上 | 两支笔同时画刻度(左右声像分开) | 相位漂移 |-| 漂移 / 落水 | 同上 | 虚线轨迹、落水、气泡 | 进行曲 → 停 |-| 倒带 | — | 板擦快速摩擦(9 Hz 抖动) | 倒放进行曲 |-| 校准 | 同上 | 板擦擦尺、橙笔八分音符刻度 | 对齐 |-| 片尾 | 挂钟回来 | 三次落槽、笔帽扣上 | 终曲 → 尾音 |--- **每一笔都有自己的声音**:拟音由引擎导出的 999 个事件生成,摩擦声的包络就是引擎里"慢起—快中—慢收"的手速曲线;声像跟笔画在画面里的横向位置;镜头越近越响。-- **两处真正的静音**:43.6–46.4(只剩挂钟),85.0 落水之后(音乐停,只剩气泡)。-- **声音转场**:J-cut——"to ticking clocks" 下面已经响起四下木鱼,进入片名;L-cut——落点和弦的余音盖住推近镜头进入静音;倒带声把落水段拉回手机。--## 7. 字幕设计--白色圆角标签(90% 不透明、轻投影)+ 左下一小段橙色马克笔划线,字体 Architects Daughter(与板上手写同源的 OFL 字体)。按从句拆句,单行 ≤ 44 字符,短从句并入上一句;超过 1250 px 自动折成两行。字幕在画面底部 60 px 以内,所有镜头都给底部留了空。diff --git a/styles/whiteboard/demo/fonts/EMSFelix.svg b/styles/whiteboard/demo/fonts/EMSFelix.svgdeleted file mode 100644index 99950b8..0000000--- a/styles/whiteboard/demo/fonts/EMSFelix.svg+++ /dev/null@@ -1,216 +0,0 @@-<?xml version="1.0" encoding="UTF-8" ?>-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >--<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">--<metadata>-Font name: EMS Felix-License: SIL Open Font License http://scripts.sil.org/OFL-Created by: Sheldon B. Michaels-SVG font conversion by: Windell H. Oskay-A derivative of: Felipa-Designer: Fontstage-Link: https://twitter.com/fontstage-Google font page: https://fonts.google.com/specimen/Felipa-</metadata>-<defs>-<font id="EMSFelix" horiz-adv-x="378" >-<font-face-font-family="EMS Felix"-units-per-em="1000"-ascent="800"-descent="-200"-cap-height="500"-x-height="300"-/>-<missing-glyph horiz-adv-x="378" />-<glyph unicode=" " glyph-name="space" horiz-adv-x="378" />-<glyph unicode="!" glyph-name="exclam" horiz-adv-x="482" d="M 408 759 L 389 583 L 345 381 L 314 243 L 285 167 M 263 72.4 L 232 40.9 L 260 0 L 292 34.6 L 263 72.4" />-<glyph unicode=""" glyph-name="quotedbl" horiz-adv-x="476" d="M 186 784 L 145 614 M 346 791 L 312 608" />-<glyph unicode="#" glyph-name="numbersign" horiz-adv-x="728" d="M 252 -28.4 L 331 551 M 491 551 L 416 -31.5 M 576 164 L 161 167 M 161 391 L 595 391" />-<glyph unicode="$" glyph-name="dollar" horiz-adv-x="463" d="M 306 432 L 315 444 L 230 444 L 246 561 L 230 450 L 161 432 L 120 394 L 107 350 L 142 293 L 186 249 L 239 183 L 274 123 L 277 81.9 L 252 44.1 L 208 25.2 L 170 18.9 L 154 -117 L 170 18.9 L 110 18.9 L 69.3 40.9" />-<glyph unicode="%" glyph-name="percent" horiz-adv-x="885" d="M 145 15.8 L 299 198 L 479 435 L 680 715 M 249 702 L 176 668 L 135 602 L 123 536 L 148 463 L 198 422 L 261 435 L 343 495 L 369 567 L 365 633 L 337 677 L 309 699 L 249 702 M 621 302 L 542 261 L 501 186 L 495 120 L 517 53.6 L 580 22.1 L 662 44.1 L 718 104 L 747 180 L 728 252 L 684 293 L 621 302" />-<glyph unicode="&" glyph-name="ampersand" horiz-adv-x="800" d="M 406 107 L 337 40.9 L 290 12.6 L 205 34.6 L 148 113 L 126 233 L 142 372 L 205 520 L 290 621 L 391 668 L 441 652 L 450 605 L 419 548 L 365 498 L 309 460 L 173 391 L 252 425 L 340 435 L 469 435 L 586 441 L 643 435 L 491 438 L 454 321 L 441 236 L 432 142 L 450 63 L 488 12.6 L 510 -3.15 L 583 56.7 L 665 148 L 769 277" />-<glyph unicode="'" glyph-name="quotesingle" horiz-adv-x="340" d="M 211 794 L 170 611" />-<glyph unicode="(" glyph-name="parenleft" horiz-adv-x="539" d="M 410 743 L 302 624 L 246 517 L 202 369 L 195 208 L 214 94.5 L 252 15.8 L 331 -72.5" />-<glyph unicode=")" glyph-name="parenright" horiz-adv-x="501" d="M 186 740 L 265 643 L 312 526 L 324 397 L 299 239 L 249 101 L 189 18.9 L 94.5 -72.5" />-<glyph unicode="*" glyph-name="asterisk" horiz-adv-x="589" d="M 268 416 L 328 690 M 161 485 L 432 624 M 198 649 L 387 472" />-<glyph unicode="+" glyph-name="plus" horiz-adv-x="721" d="M 132 290 L 558 290 M 346 504 L 346 72.4" />-<glyph unicode="," glyph-name="comma" horiz-adv-x="400" d="M 192 3.15 L 142 53.6 L 176 91.4 L 224 40.9 L 195 -28.4 L 148 -101" />-<glyph unicode="-" glyph-name="hyphen" horiz-adv-x="513" d="M 126 293 L 268 296 L 375 318" />-<glyph unicode="." glyph-name="period" horiz-adv-x="400" d="M 186 94.5 L 151 59.9 L 189 18.9 L 224 50.4 L 186 94.5" />-<glyph unicode="/" glyph-name="slash" horiz-adv-x="551" d="M 428 743 L 284 337 L 129 -44.1" />-<glyph unicode="0" glyph-name="zero" horiz-adv-x="633" d="M 318 460 L 208 416 L 142 321 L 113 227 L 123 120 L 164 34.6 L 255 12.6 L 369 56.7 L 444 148 L 476 265 L 466 378 L 419 444 L 365 460 L 318 460" />-<glyph unicode="1" glyph-name="one" horiz-adv-x="438" d="M 120 369 L 249 463 L 180 12.6" />-<glyph unicode="2" glyph-name="two" horiz-adv-x="548" d="M 123 403 L 202 441 L 287 454 L 346 425 L 362 350 L 334 261 L 258 170 L 167 85.1 L 78.8 12.6 L 164 12.6 L 312 18.9 L 353 15.8 L 375 18.9 L 419 47.2" />-<glyph unicode="3" glyph-name="three" horiz-adv-x="536" d="M 117 397 L 198 438 L 290 444 L 331 406 L 350 343 L 328 280 L 277 230 L 217 189 L 284 183 L 331 148 L 350 91.4 L 343 28.4 L 312 -25.2 L 255 -75.6 L 176 -85 L 94.5 -72.5 L 31.5 -47.2" />-<glyph unicode="4" glyph-name="four" horiz-adv-x="567" d="M 277 -123 L 365 460 L 287 365 L 217 233 L 120 117 L 56.7 28.4 L 296 28.4 L 378 34.6 L 447 53.6" />-<glyph unicode="5" glyph-name="five" horiz-adv-x="583" d="M 81.9 -81.9 L 195 -120 L 290 -117 L 365 -63 L 394 31.5 L 391 110 L 346 161 L 271 180 L 214 161 L 151 142 L 195 413 L 233 444 L 422 441" />-<glyph unicode="6" glyph-name="six" horiz-adv-x="605" d="M 195 274 L 258 309 L 331 318 L 391 293 L 416 243 L 422 167 L 400 101 L 346 31.5 L 268 6.3 L 183 28.4 L 139 75.6 L 113 167 L 126 277 L 170 387 L 239 482 L 328 542 L 416 567 L 491 561" />-<glyph unicode="7" glyph-name="seven" horiz-adv-x="532" d="M 186 -110 L 243 88.2 L 318 258 L 378 369 L 410 435 L 268 432 L 126 447" />-<glyph unicode="8" glyph-name="eight" horiz-adv-x="595" d="M 258 18.9 L 170 53.6 L 142 88.2 L 132 151 L 176 246 L 350 391 L 410 472 L 422 545 L 372 586 L 287 576 L 224 539 L 192 479 L 227 394 L 356 284 L 416 214 L 428 139 L 387 63 L 331 28.4 L 258 18.9" />-<glyph unicode="9" glyph-name="nine" horiz-adv-x="605" d="M 117 -81.9 L 224 -63 L 318 -6.3 L 384 66.1 L 413 170 L 428 258 L 419 350 L 387 416 L 315 460 L 211 441 L 145 381 L 110 296 L 123 214 L 173 158 L 261 148 L 309 161 L 343 189" />-<glyph unicode=":" glyph-name="colon" horiz-adv-x="425" d="M 205 444 L 167 400 L 205 359 L 243 397 L 205 444 M 170 85.1 L 132 47.2 L 170 12.6 L 202 44.1 L 170 85.1" />-<glyph unicode=";" glyph-name="semicolon" horiz-adv-x="425" d="M 198 435 L 164 400 L 198 365 L 230 397 L 198 435 M 176 3.15 L 129 50.4 L 167 88.2 L 208 44.1 L 186 -12.6 L 123 -94.5" />-<glyph unicode="<" glyph-name="less" horiz-adv-x="775" d="M 561 416 L 365 337 L 195 236 L 413 107 L 580 28.4" />-<glyph unicode="=" glyph-name="equal" horiz-adv-x="715" d="M 154 315 L 576 315 M 117 132 L 545 132" />-<glyph unicode=">" glyph-name="greater" horiz-adv-x="724" d="M 148 31.5 L 331 120 L 523 233 L 362 331 L 164 416" />-<glyph unicode="?" glyph-name="question" horiz-adv-x="558" d="M 198 78.8 L 164 44.1 L 208 0 L 239 31.5 L 198 78.8 M 180 176 L 167 252 L 195 324 L 268 400 L 343 469 L 397 539 L 425 627 L 413 693 L 369 734 L 293 731 L 233 696" />-<glyph unicode="@" glyph-name="at" horiz-adv-x="854" d="M 731 59.9 L 636 -15.8 L 517 -59.9 L 356 -44.1 L 220 34.6 L 148 151 L 154 346 L 208 463 L 299 564 L 428 624 L 602 627 L 712 573 L 775 447 L 765 306 L 696 198 L 608 148 L 510 139 L 570 435 L 523 328 L 466 249 L 381 183 L 337 161 L 337 252 L 365 362 L 428 428 L 504 438 L 570 432" />-<glyph unicode="A" glyph-name="A" horiz-adv-x="769" d="M 18.9 9.45 L 104 9.45 L 151 31.5 L 205 81.9 L 526 662 L 353 662 L 246 621 L 183 551 L 161 485 L 154 406 M 539 665 L 526 284 L 324 284 L 526 284 L 529 129 L 542 50.4 L 573 12.6 L 598 6.3 L 665 40.9" />-<glyph unicode="B" glyph-name="B" horiz-adv-x="699" d="M 81.9 343 L 101 457 L 142 551 L 220 621 L 315 658 L 416 665 L 504 655 L 586 617 L 608 545 L 595 491 L 558 428 L 504 391 L 454 378 L 435 381 L 513 369 L 580 331 L 611 271 L 605 186 L 567 117 L 498 59.9 L 419 28.4 L 214 25.2 L 186 12.6 L 236 69.3 L 274 142 L 365 655" />-<glyph unicode="C" glyph-name="C" horiz-adv-x="592" d="M 545 639 L 450 668 L 306 624 L 211 507 L 154 391 L 129 284 L 132 183 L 183 75.6 L 236 18.9 L 324 6.3 L 381 40.9 L 460 110" />-<glyph unicode="D" glyph-name="D" horiz-adv-x="696" d="M 107 353 L 120 469 L 192 589 L 287 643 L 384 668 L 504 662 L 602 624 L 671 520 L 680 397 L 652 268 L 595 167 L 520 78.8 L 438 40.9 L 369 22.1 L 217 28.4 L 195 18.9 L 236 56.7 L 280 135 L 375 655" />-<glyph unicode="E" glyph-name="E" horiz-adv-x="677" d="M 75.6 403 L 97.6 536 L 129 586 L 180 633 L 249 658 L 598 658 L 343 658 L 309 517 L 290 384 L 510 384 L 287 384 L 268 246 L 249 145 L 214 72.4 L 195 37.8 L 158 9.45 L 202 31.5 L 495 28.4 L 554 66.1" />-<glyph unicode="F" glyph-name="F" horiz-adv-x="646" d="M 129 9.45 L 217 12.6 L 268 44.1 L 302 113 L 346 381 L 551 381 L 346 381 L 394 665 L 646 665 L 359 665 L 274 652 L 220 621 L 170 576 L 139 504 L 139 460 L 142 410" />-<glyph unicode="G" glyph-name="G" horiz-adv-x="602" d="M 570 662 L 447 684 L 334 655 L 230 573 L 167 472 L 117 359 L 104 252 L 120 123 L 173 44.1 L 246 12.6 L 328 31.5 L 400 91.4 L 444 139 M 359 369 L 491 369 L 466 296 L 432 72.4 L 406 -9.45 L 369 -78.8 L 331 -132 L 296 -167 L 495 -167" />-<glyph unicode="H" glyph-name="H" horiz-adv-x="797" d="M 41 400 L 37.8 482 L 66.1 558 L 117 621 L 176 652 L 230 662 L 340 665 L 359 671 L 334 646 L 306 545 L 277 334 L 252 145 L 220 72.4 L 180 25.2 L 132 6.3 L 66.1 12.6 M 564 665 L 702 665 L 677 655 L 643 520 L 627 378 L 293 378 L 624 378 L 608 268 L 592 173 L 576 120 L 564 88.2 L 536 50.4 L 495 12.6 L 517 25.2 L 649 25.2 L 718 72.4" />-<glyph unicode="I" glyph-name="I" horiz-adv-x="457" d="M 28.4 400 L 28.4 482 L 63 564 L 120 627 L 189 662 L 255 665 L 340 668 L 321 662 L 290 539 L 255 350 L 233 195 L 217 120 L 189 72.4 L 154 31.5 L 126 0 L 158 25.2 L 315 22.1 L 372 69.3" />-<glyph unicode="J" glyph-name="J" horiz-adv-x="450" d="M -34.6 -107 L 31.5 -151 L 117 -164 L 202 -104 L 246 -6.3 L 340 586 L 356 636 L 384 674 L 369 662 L 230 658 L 145 614 L 97.6 548 L 81.9 495 L 78.8 403" />-<glyph unicode="K" glyph-name="K" horiz-adv-x="788" d="M 50.4 403 L 53.5 498 L 110 608 L 192 662 L 265 668 L 369 668 L 353 655 L 309 510 L 280 280 L 246 94.5 L 217 44.1 L 180 12.6 L 126 3.15 L 69.3 9.45 M 674 646 L 617 658 L 554 646 L 463 583 L 410 488 L 394 410 L 394 340 L 498 151 L 668 -88.2" />-<glyph unicode="L" glyph-name="L" horiz-adv-x="542" d="M 463 639 L 391 674 L 321 658 L 249 598 L 211 529 L 176 261 L 158 126 L 135 85.1 L 56.7 12.6 L 104 31.5 L 173 22.1 L 261 -34.6 L 362 -107 L 472 -158 L 554 -161 L 602 -117" />-<glyph unicode="M" glyph-name="M" horiz-adv-x="986" d="M 75.6 403 L 85 501 L 129 595 L 192 643 L 261 662 L 353 665 L 463 658 M 22 9.45 L 107 9.45 L 183 47.2 L 217 88.2 L 447 658 L 472 652 L 466 47.2 L 539 198 L 621 384 L 696 529 L 737 598 L 806 662 L 794 586 L 775 362 L 772 198 L 784 12.6 L 863 63" />-<glyph unicode="N" glyph-name="N" horiz-adv-x="728" d="M 63 406 L 75.6 504 L 113 592 L 173 646 L 246 665 L 381 665 M 94.5 25.2 L 173 25.2 L 217 50.4 L 255 107 L 271 186 L 293 315 L 353 665 L 384 662 L 441 498 L 576 75.6 L 586 47.2 L 573 9.45 L 608 72.4 L 630 158 L 696 523 L 706 598 L 734 665 L 753 677 L 712 665 L 602 665" />-<glyph unicode="O" glyph-name="O" horiz-adv-x="517" d="M 220 22.1 L 170 40.9 L 135 72.4 L 85 167 L 78.8 290 L 110 416 L 161 507 L 224 580 L 280 633 L 356 662 L 419 627 L 476 529 L 488 397 L 469 287 L 428 192 L 356 101 L 293 50.4 L 220 22.1" />-<glyph unicode="P" glyph-name="P" horiz-adv-x="548" d="M 18.9 369 L 37.8 498 L 101 583 L 202 646 L 287 665 L 381 668 L 476 649 L 539 598 L 561 517 L 529 432 L 457 362 L 406 350 L 369 353 M 312 665 L 274 558 L 252 387 L 202 132 L 186 85.1 L 158 40.9 L 104 3.15 L 135 18.9 L 284 22.1 L 340 53.6" />-<glyph unicode="Q" glyph-name="Q" horiz-adv-x="608" d="M 161 233 L 110 277 L 81.9 384 L 110 498 L 158 570 L 230 633 L 315 655 L 381 662 L 457 617 L 498 536 L 507 447 L 491 331 L 450 249 L 365 148 L 296 91.4 L 227 53.6 L 158 37.8 L 44.1 34.6 L 63 44.1 L 198 28.4 L 277 -12.6 L 353 -53.5 L 416 -72.5 L 495 -59.9 L 561 -25.2" />-<glyph unicode="R" glyph-name="R" horiz-adv-x="684" d="M 356 59.9 L 296 25.2 L 176 31.5 L 148 12.6 L 183 53.6 L 233 123 L 315 595 L 337 662 M 44.1 356 L 50.4 447 L 97.6 551 L 164 617 L 243 652 L 328 662 L 400 665 L 498 649 L 554 611 L 586 539 L 576 472 L 532 413 L 479 375 L 432 365 L 369 365 L 460 208 L 583 22.1 L 674 -91.4" />-<glyph unicode="S" glyph-name="S" horiz-adv-x="504" d="M 59.9 47.2 L 139 12.6 L 265 18.9 L 315 63 L 353 123 L 369 198 L 353 268 L 192 482 L 173 548 L 192 621 L 249 655 L 312 674 L 384 668 L 457 652" />-<glyph unicode="T" glyph-name="T" horiz-adv-x="617" d="M 34.6 406 L 34.6 488 L 69.3 570 L 120 627 L 180 658 L 592 658 L 359 658 L 331 551 L 302 324 L 271 148 L 230 66.1 L 205 34.6 L 161 6.3 L 195 18.9 L 346 25.2 L 400 63" />-<glyph unicode="U" glyph-name="U" horiz-adv-x="813" d="M 34.6 400 L 34.6 485 L 66.1 564 L 123 633 L 176 658 L 299 662 L 350 665 L 334 658 L 293 529 L 265 315 L 246 142 L 268 53.6 L 302 25.2 L 356 25.2 L 416 63 L 482 158 L 526 233 L 567 309 L 583 337 L 646 649 L 665 665 L 646 646 L 570 284 L 558 148 L 567 81.9 L 598 34.6 L 630 28.4 L 671 25.2 L 709 63" />-<glyph unicode="V" glyph-name="V" horiz-adv-x="709" d="M 15.8 400 L 28.4 491 L 69.3 586 L 139 639 L 214 662 L 280 652 L 315 589 L 340 485 L 350 362 L 353 239 L 356 126 L 350 22.1 L 428 164 L 520 334 L 617 529 L 658 630 L 643 655 L 576 655" />-<glyph unicode="W" glyph-name="W" horiz-adv-x="970" d="M 34.6 403 L 50.4 495 L 97.6 592 L 183 652 L 258 665 L 309 639 L 346 567 L 365 472 L 365 120 L 359 31.5 L 413 129 L 504 299 L 586 501 L 630 605 L 674 636 L 639 589 L 627 469 L 630 296 L 662 28.4 L 750 192 L 819 331 L 882 472 L 914 567 L 920 624 L 904 646 L 844 646" />-<glyph unicode="X" glyph-name="X" horiz-adv-x="803" d="M 34.6 25.2 L 129 22.1 L 189 50.4 L 268 123 L 359 252 L 498 485 L 576 608 L 617 652 L 649 665 L 699 665 L 743 649 M 107 444 L 113 513 L 145 592 L 189 646 L 261 665 L 309 668 L 343 624 L 369 576 L 454 227 L 520 63 L 554 22.1 L 589 6.3 L 636 28.4 L 699 75.6" />-<glyph unicode="Y" glyph-name="Y" horiz-adv-x="699" d="M 41 454 L 56.7 545 L 91.4 621 L 135 662 L 211 665 L 252 624 L 290 510 L 321 403 L 359 261 L 394 151 M 554 649 L 627 646 L 639 621 L 608 542 L 413 186 L 318 18.9 L 227 -94.5 L 170 -135 L 120 -139 L 15.8 -81.9" />-<glyph unicode="Z" glyph-name="Z" horiz-adv-x="709" d="M 126 488 L 126 548 L 161 627 L 195 668 L 277 684 L 343 668 L 416 649 L 482 636 L 548 636 L 595 662 L 536 605 L 387 410 L 268 258 L 183 164 L 59.9 63 L 81.9 69.3 L 161 63 L 233 25.2 L 428 -94.5 L 513 -117 L 564 -107 L 621 -41" />-<glyph unicode="[" glyph-name="bracketleft" horiz-adv-x="536" d="M 444 747 L 299 747 L 189 -75.6 L 334 -72.5" />-<glyph unicode="\" glyph-name="backslash" horiz-adv-x="592" d="M 139 731 L 287 255 L 394 -44.1" />-<glyph unicode="]" glyph-name="bracketright" horiz-adv-x="529" d="M 202 747 L 340 747 L 230 -69.3 L 91.4 -75.6" />-<glyph unicode="^" glyph-name="asciicircum" horiz-adv-x="772" d="M 139 309 L 378 614 L 592 306" />-<glyph unicode="_" glyph-name="underscore" horiz-adv-x="731" d="M 139 -25.2 L 602 -25.2" />-<glyph unicode="`" glyph-name="grave" horiz-adv-x="526" d="M 167 687 L 233 662 L 274 627 L 334 558" />-<glyph unicode="a" glyph-name="a" horiz-adv-x="413" d="M 271 425 L 161 432 L 81.9 397 L 25.2 296 L 3.15 167 L 3.15 66.1 L 12.6 15.8 L 72.5 75.6 L 158 195 L 211 284 L 252 369 L 271 413 L 227 217 L 205 120 L 198 66.1 L 192 12.6 L 255 53.6 L 365 186 L 413 252" />-<glyph unicode="b" glyph-name="b" horiz-adv-x="381" d="M 252 759 L 167 750 L 88.2 684 L 50.4 598 L 3.15 186 L -9.45 94.5 L -15.8 44.1 L -3.15 3.15 L 59.9 12.6 L 161 81.9 L 211 192 L 233 290 L 236 375 L 230 444 L 145 359 L 56.7 233 L -6.3 97.6" />-<glyph unicode="c" glyph-name="c" horiz-adv-x="309" d="M 239 435 L 198 457 L 132 444 L 59.9 365 L 31.5 302 L 6.3 236 L 3.15 161 L 9.45 88.2 L 31.5 34.6 L 75.6 -6.3 L 148 59.9 L 227 145 L 309 255" />-<glyph unicode="d" glyph-name="d" horiz-adv-x="410" d="M 476 753 L 400 753 L 331 712 L 290 643 L 268 548 L 252 432 L 243 369 L 195 277 L 129 161 L 66.1 72.4 L 0 12.6 L -12.6 129 L 3.15 268 L 41 356 L 72.5 400 L 120 425 L 170 438 L 220 432 L 243 406 L 230 290 L 217 151 L 189 6.3 L 261 63 L 346 167 L 413 255" />-<glyph unicode="e" glyph-name="e" horiz-adv-x="290" d="M 3.15 214 L 72.5 258 L 158 343 L 189 387 L 198 435 L 180 454 L 139 457 L 72.5 413 L 22 340 L -6.3 233 L -18.9 148 L -3.15 78.8 L 31.5 28.4 L 63 -3.15 L 170 107 L 239 186 L 287 255" />-<glyph unicode="f" glyph-name="f" horiz-adv-x="233" d="M -135 -173 L -78.8 -180 L -18.9 -158 L 37.8 -94.5 L 59.9 -22 L 94.5 243 L 117 432 L 37.8 432 L 249 441 L 117 435 L 126 526 L 145 624 L 192 709 L 236 750 L 293 762 L 315 759 L 356 750" />-<glyph unicode="g" glyph-name="g" horiz-adv-x="334" d="M -63 -167 L -53.6 -167 L 34.6 -170 L 101 -151 L 142 -110 L 180 -18.9 L 236 435 L 129 438 L 75.6 410 L 25.2 350 L 0 261 L -15.8 173 L -22.1 129 L -22.1 81.9 L -15.8 15.8 L 41 59.9 L 113 158 L 170 239 L 208 328 L 236 397" />-<glyph unicode="h" glyph-name="h" horiz-adv-x="397" d="M 246 759 L 180 759 L 120 731 L 53.5 643 L 37.8 545 L 18.9 425 L 0 280 L -15.8 164 L -40.9 22.1 L 9.45 139 L 81.9 265 L 154 369 L 211 428 L 236 435 L 246 381 L 217 255 L 192 139 L 176 69.3 L 167 0 L 258 78.8 L 350 186 L 394 255" />-<glyph unicode="i" glyph-name="i" horiz-adv-x="195" d="M -34.6 384 L 15.8 432 L 41 444 L -3.15 180 L -22.1 88.2 L -22.1 12.6 L 53.5 78.8 L 113 145 L 198 255 M 66.1 636 L 66.1 583 L 56.7 573" />-<glyph unicode="j" glyph-name="j" horiz-adv-x="129" d="M -239 -170 L -154 -167 L -91.4 -120 L -53.6 -56.7 L -28.4 44.1 L -3.15 189 L 12.6 324 L 28.4 450 L -25.2 413 L -47.2 387 M 72.5 643 L 63 605 L 47.2 589" />-<glyph unicode="k" glyph-name="k" horiz-adv-x="416" d="M 255 756 L 186 756 L 120 721 L 69.3 662 L 44.1 576 L -31.5 9.45 L 22 246 L 91.4 369 L 142 428 L 202 454 L 243 454 L 261 432 L 258 378 L 217 321 L 176 284 L 107 243 L 198 9.45 L 287 91.4 L 356 170 L 416 255" />-<glyph unicode="l" glyph-name="l" horiz-adv-x="192" d="M 252 753 L 205 762 L 132 734 L 69.3 658 L 47.2 564 L -22.1 107 L -31.5 3.15 L 44.1 69.3 L 142 186 L 192 255" />-<glyph unicode="m" glyph-name="m" horiz-adv-x="576" d="M -50.4 394 L 28.4 454 L 12.6 334 L -9.45 202 L -25.2 88.2 L -34.6 31.5 L 28.4 170 L 91.4 293 L 151 381 L 202 435 L 227 444 L 243 425 L 220 328 L 186 158 L 158 9.45 L 189 113 L 243 220 L 315 334 L 369 413 L 413 447 L 435 435 L 403 274 L 372 142 L 356 59.9 L 353 3.15 L 441 78.8 L 513 167 L 576 255" />-<glyph unicode="n" glyph-name="n" horiz-adv-x="447" d="M -3.15 391 L 56.7 441 L 85 460 L 69.3 384 L 50.4 252 L 31.5 161 L 18.9 75.6 L 12.6 22.1 L 15.8 6.3 L 12.6 72.4 L 78.8 164 L 129 261 L 186 343 L 246 413 L 277 450 L 293 450 L 302 384 L 277 261 L 255 167 L 236 94.5 L 220 3.15 L 277 50.4 L 359 135 L 403 198 L 447 255" />-<glyph unicode="o" glyph-name="o" horiz-adv-x="315" d="M 53.5 3.15 L 66.1 3.15 L 123 31.5 L 176 91.4 L 224 180 L 249 271 L 243 359 L 214 406 L 192 450 L 97.6 406 L 37.8 328 L -3.15 239 L -9.45 161 L 3.15 81.9 L 22 44.1 L 53.5 3.15" />-<glyph unicode="p" glyph-name="p" horiz-adv-x="290" d="M -44.1 397 L 34.6 454 L -47.2 -81.9 L -72.4 -161 L -167 -227 L 9.45 -132 M 0 167 L 9.45 173 L 37.8 271 L 104 362 L 164 425 L 198 450 L 214 362 L 211 271 L 189 173 L 158 88.2 L 120 34.6 L 69.3 15.8 L 28.4 22.1 L 3.15 40.9 L -22.1 81.9" />-<glyph unicode="q" glyph-name="q" horiz-adv-x="299" d="M 284 450 L 236 381 L 186 268 L 110 132 L 63 69.3 L -3.15 12.6 L -15.8 139 L 6.3 280 L 37.8 359 L 85 416 L 170 441 L 230 444 L 261 435 L 198 94.5 L 161 -129 L 142 -170 L 53.5 -230 L 230 -139" />-<glyph unicode="r" glyph-name="r" horiz-adv-x="230" d="M -50.4 387 L 6.3 435 L 37.8 457 L 6.3 287 L -18.9 132 L -22.1 56.7 L -22.1 25.2 L 6.3 126 L 50.4 224 L 88.2 324 L 135 403 L 161 435 L 195 450 L 236 447" />-<glyph unicode="s" glyph-name="s" horiz-adv-x="318" d="M 261 435 L 202 463 L 151 454 L 101 416 L 81.9 369 L 101 309 L 148 252 L 189 195 L 214 139 L 211 88.2 L 173 40.9 L 120 9.45 L 75.6 -3.15 L 18.9 22.1" />-<glyph unicode="t" glyph-name="t" horiz-adv-x="183" d="M 28.4 504 L 25.2 444 L -47.2 438 L 25.2 447 L 158 450 L 25.2 447 L 6.3 274 L -12.6 158 L -31.5 88.2 L -53.6 3.15 L 18.9 63 L 110 164 L 176 255" />-<glyph unicode="u" glyph-name="u" horiz-adv-x="394" d="M -47.2 397 L 18.9 444 L 37.8 457 L 9.45 331 L -3.15 211 L -12.6 139 L -12.6 47.2 L -12.6 12.6 L 41 63 L 113 158 L 161 246 L 211 346 L 255 447 L 224 321 L 198 192 L 183 85.1 L 176 9.45 L 252 72.4 L 324 161 L 397 255" />-<glyph unicode="v" glyph-name="v" horiz-adv-x="252" d="M -91.4 391 L -88.2 391 L -47.2 435 L -3.15 457 L 6.3 117 L 15.8 31.5 L 63 88.2 L 113 180 L 158 287 L 176 346 L 189 457" />-<glyph unicode="w" glyph-name="w" horiz-adv-x="410" d="M -97.6 394 L -47.2 438 L -9.45 457 L 3.15 447 L -3.15 158 L 3.15 44.1 L 6.3 18.9 L 66.1 94.5 L 113 186 L 151 287 L 170 328 L 211 457 L 186 432 L 195 94.5 L 202 25.2 L 258 88.2 L 309 183 L 350 280 L 372 356 L 381 435 L 375 457" />-<glyph unicode="x" glyph-name="x" horiz-adv-x="428" d="M 59.9 394 L 110 435 L 151 457 L 296 6.3 L 346 34.6 L 378 72.4 M 28.4 15.8 L 75.6 22.1 L 101 44.1 L 135 88.2 L 252 274 L 321 403 L 356 435 L 406 444" />-<glyph unicode="y" glyph-name="y" horiz-adv-x="284" d="M -50.4 397 L -40.9 400 L 6.3 435 L 37.8 457 L 6.3 280 L -12.6 120 L -3.15 22.1 L 75.6 107 L 142 211 L 189 299 L 252 441 L 220 293 L 192 81.9 L 167 -56.7 L 139 -120 L 101 -154 L 44.1 -173 L -59.9 -164" />-<glyph unicode="z" glyph-name="z" horiz-adv-x="391" d="M 88.2 391 L 154 435 L 195 441 L 277 432 L 334 432 L 37.8 6.3 L 101 31.5 L 183 25.2 L 268 9.45 L 302 3.15 L 343 34.6" />-<glyph unicode="{" glyph-name="braceleft" horiz-adv-x="491" d="M 403 750 L 331 718 L 290 646 L 271 529 L 261 425 L 243 369 L 220 356 L 170 340 L 208 318 L 252 271 L 252 208 L 217 72.4 L 205 -15.8 L 220 -66.1 L 271 -104" />-<glyph unicode="|" glyph-name="bar" horiz-adv-x="384" d="M 176 806 L 176 -167" />-<glyph unicode="}" glyph-name="braceright" horiz-adv-x="479" d="M 205 750 L 268 715 L 280 677 L 274 580 L 261 491 L 258 413 L 268 369 L 296 350 L 328 334 L 280 318 L 243 287 L 217 227 L 208 129 L 208 34.6 L 198 -31.5 L 167 -72.5 L 123 -107 L 101 -110" />-<glyph unicode="~" glyph-name="asciitilde" horiz-adv-x="825" d="M 148 239 L 224 280 L 293 296 L 369 280 L 450 255 L 510 233 L 580 230 L 655 265" />-<glyph unicode=" " glyph-name="nbspace" horiz-adv-x="378" />-<glyph unicode="¡" glyph-name="exclamdown" horiz-adv-x="482" d="M 135 0 L 154 176 L 198 378 L 230 517 L 258 592 M 280 687 L 312 718 L 284 759 L 252 724 L 280 687" />-<glyph unicode="¢" glyph-name="cent" horiz-adv-x="551" d="M 239 435 L 198 457 L 132 444 L 59.9 365 L 31.5 302 L 6.3 236 L 3.15 161 L 9.45 88.2 L 31.5 34.6 L 75.6 -6.3 L 148 59.9 L 227 145 L 309 255 M 271 680 L 126 274 L -28.4 -107" />-<glyph unicode="£" glyph-name="sterling" horiz-adv-x="542" d="M 63 293 L 205 296 L 312 318 M 463 639 L 391 674 L 321 658 L 249 598 L 211 529 L 176 261 L 158 126 L 135 85.1 L 56.7 12.6 L 104 31.5 L 173 22.1 L 261 -34.6 L 362 -107 L 472 -158 L 554 -161 L 602 -117" />-<glyph unicode="¥" glyph-name="yen" horiz-adv-x="460" d="M 78.8 702 L 47.2 693 L 50.4 649 L 97.6 498 L 151 365 L 164 324 L 142 192 L 117 113 L 94.5 66.1 L 107 63 L 135 117 L 132 148 M 164 337 L 170 337 L 274 428 L 391 551 L 450 633 L 491 715 M 53.5 173 L 34.6 151 L 227 158 M 53.5 299 L 34.6 277 L 227 284" />-<glyph unicode="¦" glyph-name="brokenbar" horiz-adv-x="115" d="M 223 242 L 223 -50.1 M 223 714 L 223 422" />-<glyph unicode="¨" glyph-name="dieresis" horiz-adv-x="567" d=" M 203 743 L 169 708 L 206 667 L 241 699 L 203 743 M 446 754 L 412 719 L 449 678 L 484 710 L 446 754" />-<glyph unicode="©" glyph-name="copyright" horiz-adv-x="687" d="M 104 450 L 85 343 L 97.6 243 L 142 139 L 230 50.4 L 346 9.45 L 472 22.1 L 558 72.4 L 630 173 L 655 287 L 655 400 L 627 507 L 586 589 L 532 636 L 450 665 L 356 674 L 258 649 L 176 580 L 104 450 M 472 202 L 449 180 L 421 165 L 375 159 L 320 175 L 276 209 L 249 255 L 239 304 L 243 356 L 252 402 L 285 454 L 329 484 L 370 491 L 402 493 L 430 485 L 450 472 L 465 461" />-<glyph unicode="ª" glyph-name="ordfeminine" horiz-adv-x="206" d="M 261 795 L 206 799 L 167 781 L 139 731 L 128 666 L 128 616 L 132 591 L 162 621 L 205 680 L 232 724 L 252 767 L 261 789 L 239 691 L 228 643 L 225 616 L 222 589 L 254 610 L 309 676 L 332 709" />-<glyph unicode="«" glyph-name="guillemotleft" horiz-adv-x="465" d="M 224 333 L 146 270 L 78.1 189 L 165 85.7 L 232 22.7 M 350 333 L 272 270 L 204 189 L 291 85.7 L 358 22.7" />-<glyph unicode="®" glyph-name="registered" horiz-adv-x="687" d="M 104 450 L 85 343 L 97.6 243 L 142 139 L 230 50.4 L 346 9.45 L 472 22.1 L 558 72.4 L 630 173 L 655 287 L 655 400 L 627 507 L 586 589 L 532 636 L 450 665 L 356 674 L 258 649 L 176 580 L 104 450 M 263 162 L 266 484 L 238 471 L 280 488 L 320 495 L 370 495 L 413 469 L 436 433 L 443 392 L 422 350 L 395 324 L 373 315 L 324 324 L 269 315 L 313 307 L 369 313 L 384 266 L 414 213 L 441 173 L 452 165 L 469 167" />-<glyph unicode="°" glyph-name="degree" horiz-adv-x="186" d="M 189 545 L 174 551 L 163 560 L 148 589 L 146 626 L 156 663 L 171 691 L 190 713 L 207 729 L 230 737 L 249 727 L 266 697 L 269 658 L 264 625 L 251 596 L 230 569 L 211 554 L 189 545" />-<glyph unicode="±" glyph-name="plusminus" horiz-adv-x="577" d="M 554 45.4 L 668 47.9 L 753 65.5 M 559 421 L 900 421 M 731 592 L 731 247" />-<glyph unicode="²" glyph-name="twosuperior" horiz-adv-x="274" d="M 187 784 L 227 803 L 269 810 L 299 795 L 307 758 L 293 713 L 255 668 L 209 625 L 165 589 L 208 589 L 282 592 L 302 591 L 313 592 L 335 606" />-<glyph unicode="³" glyph-name="threesuperior" horiz-adv-x="268" d="M 184 781 L 225 802 L 271 805 L 291 786 L 301 754 L 290 723 L 265 698 L 235 677 L 268 674 L 291 657 L 301 628 L 298 597 L 282 570 L 254 545 L 214 540 L 173 547 L 142 559" />-<glyph unicode="´" glyph-name="acute" horiz-adv-x="378" d=" M 307 763 L 301 725 L 282 678 L 260 643 L 238 615" />-<glyph unicode="·" glyph-name="middot" horiz-adv-x="480" d="M 299 416 L 257 374 L 302 325 L 344 363 L 299 416" />-<glyph unicode="¹" glyph-name="onesuperior" horiz-adv-x="219" d="M 186 767 L 250 814 L 216 589" />-<glyph unicode="º" glyph-name="ordmasculine" horiz-adv-x="186" d="M 189 545 L 174 551 L 163 560 L 148 589 L 146 626 L 156 663 L 171 691 L 190 713 L 207 729 L 230 737 L 249 727 L 266 697 L 269 658 L 264 625 L 251 596 L 230 569 L 211 554 L 189 545" />-<glyph unicode="»" glyph-name="guillemotright" horiz-adv-x="435" d="M 59.2 25.2 L 132 95.8 L 209 186 L 145 265 L 65.5 333 M 185 25.2 L 258 95.8 L 335 186 L 271 265 L 192 333" />-<glyph unicode="¼" glyph-name="onequarter" horiz-adv-x="543" d="M 71.8 599 L 149 656 L 108 386 M 586 743 L 441 337 L 287 -44.1 M 639 -73.7 L 692 276 L 644 219 L 603 140 L 544 69.9 L 507 17 L 650 17 L 699 20.8 L 741 32.1" />-<glyph unicode="½" glyph-name="onehalf" horiz-adv-x="532" d="M 71.8 599 L 149 656 L 108 386 M 586 743 L 441 337 L 287 -44.1 M 546 242 L 593 265 L 644 272 L 680 255 L 690 210 L 673 157 L 627 102 L 573 51 L 520 7.56 L 571 7.56 L 660 11.3 L 684 9.45 L 697 11.3 L 724 28.3" />-<glyph unicode="¾" glyph-name="threequarters" horiz-adv-x="595" d="M 69.9 616 L 119 641 L 174 644 L 198 622 L 210 584 L 197 546 L 166 516 L 130 491 L 170 488 L 198 467 L 210 433 L 206 395 L 187 363 L 153 333 L 106 327 L 56.7 335 L 18.9 350 M 586 743 L 441 337 L 287 -44.1 M 639 -73.7 L 692 276 L 644 219 L 603 140 L 544 69.9 L 507 17 L 650 17 L 699 20.8 L 741 32.1" />-<glyph unicode="¿" glyph-name="questiondown" horiz-adv-x="558" d="M 391 655 L 425 690 L 381 734 L 350 702 L 391 655 M 410 558 L 422 482 L 394 410 L 321 334 L 246 265 L 192 195 L 164 107 L 176 41 L 220 2.84e-14 L 296 3.15 L 356 37.8" />-<glyph unicode="À" glyph-name="Agrave" horiz-adv-x="769" d="M 18.9 9.45 L 104 9.45 L 151 31.5 L 205 81.9 L 526 662 L 353 662 L 246 621 L 183 551 L 161 485 L 154 406 M 539 665 L 526 284 L 324 284 L 526 284 L 529 129 L 542 50.4 L 573 12.6 L 598 6.3 L 665 40.9 M 340 924 L 365 877 L 419 827" />-<glyph unicode="Á" glyph-name="Aacute" horiz-adv-x="769" d="M 18.9 9.45 L 104 9.45 L 151 31.5 L 205 81.9 L 526 662 L 353 662 L 246 621 L 183 551 L 161 485 L 154 406 M 539 665 L 526 284 L 324 284 L 526 284 L 529 129 L 542 50.4 L 573 12.6 L 598 6.3 L 665 40.9 M 601 1019.4 L 595 982 L 576 934 L 554 900 L 532 871" />-<glyph unicode="Â" glyph-name="Acircumflex" horiz-adv-x="769" d="M 18.9 9.45 L 104 9.45 L 151 31.5 L 205 81.9 L 526 662 L 353 662 L 246 621 L 183 551 L 161 485 L 154 406 M 539 665 L 526 284 L 324 284 L 526 284 L 529 129 L 542 50.4 L 573 12.6 L 598 6.3 L 665 40.9 M 431 833 L 549 927 L 675 833" />-<glyph unicode="Ã" glyph-name="Atilde" horiz-adv-x="769" d="M 18.9 9.45 L 104 9.45 L 151 31.5 L 205 81.9 L 526 662 L 353 662 L 246 621 L 183 551 L 161 485 L 154 406 M 539 665 L 526 284 L 324 284 L 526 284 L 529 129 L 542 50.4 L 573 12.6 L 598 6.3 L 665 40.9 M 284 828 L 338 858 L 389 870 L 444 858 L 503 840 L 546 824 L 597 822 L 651 847" />-<glyph unicode="Ä" glyph-name="Adieresis" horiz-adv-x="769" d="M 18.9 9.45 L 104 9.45 L 151 31.5 L 205 81.9 L 526 662 L 353 662 L 246 621 L 183 551 L 161 485 L 154 406 M 539 665 L 526 284 L 324 284 L 526 284 L 529 129 L 542 50.4 L 573 12.6 L 598 6.3 L 665 40.9 M 365 927 L 330 892 L 368 851 L 402 883 L 365 927 M 586 922 L 551 887 L 589 847 L 624 878 L 586 922" />-<glyph unicode="Å" glyph-name="Aring" horiz-adv-x="769" d="M 18.9 9.45 L 104 9.45 L 151 31.5 L 205 81.9 L 526 662 L 353 662 L 246 621 L 183 551 L 161 485 L 154 406 M 539 665 L 526 284 L 324 284 L 526 284 L 529 129 L 542 50.4 L 573 12.6 L 598 6.3 L 665 40.9 M 486 857 L 471 863 L 460 872 L 445 901 L 443 937 L 453 975 L 468 1002.6 L 487 1024.4 L 504 1040.4 L 526 1048.9 L 545 1038.6 L 562 1009.3 L 566 970 L 560 936 L 548 908 L 526 881 L 507 866 L 486 857" />-<glyph unicode="È" glyph-name="Egrave" horiz-adv-x="677" d="M 75.6 403 L 97.6 536 L 129 586 L 180 633 L 249 658 L 598 658 L 343 658 L 309 517 L 290 384 L 510 384 L 287 384 L 268 246 L 249 145 L 214 72.4 L 195 37.8 L 158 9.45 L 202 31.5 L 495 28.4 L 554 66.1 M 299 899 L 325 852 L 378 802" />-<glyph unicode="É" glyph-name="Eacute" horiz-adv-x="677" d="M 75.6 403 L 97.6 536 L 129 586 L 180 633 L 249 658 L 598 658 L 343 658 L 309 517 L 290 384 L 510 384 L 287 384 L 268 246 L 249 145 L 214 72.4 L 195 37.8 L 158 9.45 L 202 31.5 L 495 28.4 L 554 66.1 M 559 996 L 552 958 L 533 911 L 511 876 L 489 848" />-<glyph unicode="Ê" glyph-name="Ecircumflex" horiz-adv-x="677" d="M 75.6 403 L 97.6 536 L 129 586 L 180 633 L 249 658 L 598 658 L 343 658 L 309 517 L 290 384 L 510 384 L 287 384 L 268 246 L 249 145 L 214 72.4 L 195 37.8 L 158 9.45 L 202 31.5 L 495 28.4 L 554 66.1 M 280 787 L 391 876 L 509 787" />-<glyph unicode="Ë" glyph-name="Edieresis" horiz-adv-x="677" d="M 75.6 403 L 97.6 536 L 129 586 L 180 633 L 249 658 L 598 658 L 343 658 L 309 517 L 290 384 L 510 384 L 287 384 L 268 246 L 249 145 L 214 72.4 L 195 37.8 L 158 9.45 L 202 31.5 L 495 28.4 L 554 66.1 M 292 931 L 258 896 L 295 855 L 330 887 L 292 931 M 577 957 L 542 923 L 580 882 L 614 913 L 577 957" />-<glyph unicode="Ì" glyph-name="Igrave" horiz-adv-x="457" d="M 28.4 400 L 28.4 482 L 63 564 L 120 627 L 189 662 L 255 665 L 340 668 L 321 662 L 290 539 L 255 350 L 233 195 L 217 120 L 189 72.4 L 154 31.5 L 126 0 L 158 25.2 L 315 22.1 L 372 69.3 M 180 908 L 205 860 L 258 810" />-<glyph unicode="Í" glyph-name="Iacute" horiz-adv-x="457" d="M 28.4 400 L 28.4 482 L 63 564 L 120 627 L 189 662 L 255 665 L 340 668 L 321 662 L 290 539 L 255 350 L 233 195 L 217 120 L 189 72.4 L 154 31.5 L 126 0 L 158 25.2 L 315 22.1 L 372 69.3 M 432 1011.8 L 426 974 L 407 927 L 385 892 L 363 864" />-<glyph unicode="Î" glyph-name="Icircumflex" horiz-adv-x="457" d="M 28.4 400 L 28.4 482 L 63 564 L 120 627 L 189 662 L 255 665 L 340 668 L 321 662 L 290 539 L 255 350 L 233 195 L 217 120 L 189 72.4 L 154 31.5 L 126 0 L 158 25.2 L 315 22.1 L 372 69.3 M 201 827 L 317 920 L 442 827" />-<glyph unicode="Ï" glyph-name="Idieresis" horiz-adv-x="457" d="M 28.4 400 L 28.4 482 L 63 564 L 120 627 L 189 662 L 255 665 L 340 668 L 321 662 L 290 539 L 255 350 L 233 195 L 217 120 L 189 72.4 L 154 31.5 L 126 0 L 158 25.2 L 315 22.1 L 372 69.3 M 198 924 L 164 890 L 201 849 L 236 880 L 198 924 M 470 930 L 435 895 L 473 854 L 508 886 L 470 930" />-<glyph unicode="Ð" glyph-name="Eth" horiz-adv-x="696" d="M 189 293 L 331 296 L 438 318 M 107 353 L 120 469 L 192 589 L 287 643 L 384 668 L 504 662 L 602 624 L 671 520 L 680 397 L 652 268 L 595 167 L 520 78.8 L 438 40.9 L 369 22.1 L 217 28.4 L 195 18.9 L 236 56.7 L 280 135 L 375 655" />-<glyph unicode="Ñ" glyph-name="Ntilde" horiz-adv-x="728" d="M 63 406 L 75.6 504 L 113 592 L 173 646 L 246 665 L 381 665 M 94.5 25.2 L 173 25.2 L 217 50.4 L 255 107 L 271 186 L 293 315 L 353 665 L 384 662 L 441 498 L 576 75.6 L 586 47.2 L 573 9.45 L 608 72.4 L 630 158 L 696 523 L 706 598 L 734 665 L 753 677 L 712 665 L 602 665 M 344 809 L 397 837 L 445 848 L 497 837 L 554 820 L 596 804 L 644 802 L 696 826" />-<glyph unicode="Ò" glyph-name="Ograve" horiz-adv-x="517" d="M 220 22.1 L 170 40.9 L 135 72.4 L 85 167 L 78.8 290 L 110 416 L 161 507 L 224 580 L 280 633 L 356 662 L 419 627 L 476 529 L 488 397 L 469 287 L 428 192 L 356 101 L 293 50.4 L 220 22.1 M 217 899 L 242 852 L 295 801" />-<glyph unicode="Ó" glyph-name="Oacute" horiz-adv-x="517" d="M 220 22.1 L 170 40.9 L 135 72.4 L 85 167 L 78.8 290 L 110 416 L 161 507 L 224 580 L 280 633 L 356 662 L 419 627 L 476 529 L 488 397 L 469 287 L 428 192 L 356 101 L 293 50.4 L 220 22.1 M 485 1034.8 L 479 997 L 460 950 L 438 915 L 416 887" />-<glyph unicode="Ô" glyph-name="Ocircumflex" horiz-adv-x="517" d="M 220 22.1 L 170 40.9 L 135 72.4 L 85 167 L 78.8 290 L 110 416 L 161 507 L 224 580 L 280 633 L 356 662 L 419 627 L 476 529 L 488 397 L 469 287 L 428 192 L 356 101 L 293 50.4 L 220 22.1 M 224 774 L 332 860 L 447 774" />-<glyph unicode="Õ" glyph-name="Otilde" horiz-adv-x="517" d="M 220 22.1 L 170 40.9 L 135 72.4 L 85 167 L 78.8 290 L 110 416 L 161 507 L 224 580 L 280 633 L 356 662 L 419 627 L 476 529 L 488 397 L 469 287 L 428 192 L 356 101 L 293 50.4 L 220 22.1 M 189 846 L 245 876 L 296 888 L 352 876 L 413 858 L 458 841 L 509 839 L 565 865" />-<glyph unicode="Ö" glyph-name="Odieresis" horiz-adv-x="517" d="M 220 22.1 L 170 40.9 L 135 72.4 L 85 167 L 78.8 290 L 110 416 L 161 507 L 224 580 L 280 633 L 356 662 L 419 627 L 476 529 L 488 397 L 469 287 L 428 192 L 356 101 L 293 50.4 L 220 22.1 M 221 951 L 186 916 L 224 875 L 258 907 L 221 951 M 490 967 L 456 932 L 493 891 L 528 923 L 490 967" />-<glyph unicode="×" glyph-name="multiply" horiz-adv-x="428" d="M 59.9 394 L 110 435 L 151 457 L 296 6.3 L 346 34.6 L 378 72.4 M 28.4 15.8 L 75.6 22.1 L 101 44.1 L 135 88.2 L 252 274 L 321 403 L 356 435 L 406 444" />-<glyph unicode="Ø" glyph-name="Oslash" horiz-adv-x="517" d="M 220 22.1 L 170 40.9 L 135 72.4 L 85 167 L 78.8 290 L 110 416 L 161 507 L 224 580 L 280 633 L 356 662 L 419 627 L 476 529 L 488 397 L 469 287 L 428 192 L 356 101 L 293 50.4 L 220 22.1 M 429 769 L 272 330 L 105 -81.6" />-<glyph unicode="Ù" glyph-name="Ugrave" horiz-adv-x="813" d="M 34.6 400 L 34.6 485 L 66.1 564 L 123 633 L 176 658 L 299 662 L 350 665 L 334 658 L 293 529 L 265 315 L 246 142 L 268 53.6 L 302 25.2 L 356 25.2 L 416 63 L 482 158 L 526 233 L 567 309 L 583 337 L 646 649 L 665 665 L 646 646 L 570 284 L 558 148 L 567 81.9 L 598 34.6 L 630 28.4 L 671 25.2 L 709 63 M 342 922 L 367 875 L 421 825" />-<glyph unicode="Ú" glyph-name="Uacute" horiz-adv-x="813" d="M 34.6 400 L 34.6 485 L 66.1 564 L 123 633 L 176 658 L 299 662 L 350 665 L 334 658 L 293 529 L 265 315 L 246 142 L 268 53.6 L 302 25.2 L 356 25.2 L 416 63 L 482 158 L 526 233 L 567 309 L 583 337 L 646 649 L 665 665 L 646 646 L 570 284 L 558 148 L 567 81.9 L 598 34.6 L 630 28.4 L 671 25.2 L 709 63 M 618 1031.7 L 612 994 L 593 947 L 571 912 L 549 884" />-<glyph unicode="Û" glyph-name="Ucircumflex" horiz-adv-x="813" d="M 34.6 400 L 34.6 485 L 66.1 564 L 123 633 L 176 658 L 299 662 L 350 665 L 334 658 L 293 529 L 265 315 L 246 142 L 268 53.6 L 302 25.2 L 356 25.2 L 416 63 L 482 158 L 526 233 L 567 309 L 583 337 L 646 649 L 665 665 L 646 646 L 570 284 L 558 148 L 567 81.9 L 598 34.6 L 630 28.4 L 671 25.2 L 709 63 M 337 772 L 445 858 L 560 772" />-<glyph unicode="Ü" glyph-name="Udieresis" horiz-adv-x="813" d="M 34.6 400 L 34.6 485 L 66.1 564 L 123 633 L 176 658 L 299 662 L 350 665 L 334 658 L 293 529 L 265 315 L 246 142 L 268 53.6 L 302 25.2 L 356 25.2 L 416 63 L 482 158 L 526 233 L 567 309 L 583 337 L 646 649 L 665 665 L 646 646 L 570 284 L 558 148 L 567 81.9 L 598 34.6 L 630 28.4 L 671 25.2 L 709 63 M 353 935 L 319 900 L 357 859 L 391 891 L 353 935 M 610 962 L 575 927 L 613 886 L 648 918 L 610 962" />-<glyph unicode="Ý" glyph-name="Yacute" horiz-adv-x="699" d="M 41 454 L 56.7 545 L 91.4 621 L 135 662 L 211 665 L 252 624 L 290 510 L 321 403 L 359 261 L 394 151 M 554 649 L 627 646 L 639 621 L 608 542 L 413 186 L 318 18.9 L 227 -94.5 L 170 -135 L 120 -139 L 15.8 -81.9 M 569 999 L 563 961 L 544 914 L 522 879 L 500 851" />-<glyph unicode="à" glyph-name="agrave" horiz-adv-x="413" d="M 271 425 L 161 432 L 81.9 397 L 25.2 296 L 3.15 167 L 3.15 66.1 L 12.6 15.8 L 72.5 75.6 L 158 195 L 211 284 L 252 369 L 271 413 L 227 217 L 205 120 L 198 66.1 L 192 12.6 L 255 53.6 L 365 186 L 413 252 M 51.2 683 L 76.4 636 L 130 585" />-<glyph unicode="á" glyph-name="aacute" horiz-adv-x="413" d="M 271 425 L 161 432 L 81.9 397 L 25.2 296 L 3.15 167 L 3.15 66.1 L 12.6 15.8 L 72.5 75.6 L 158 195 L 211 284 L 252 369 L 271 413 L 227 217 L 205 120 L 198 66.1 L 192 12.6 L 255 53.6 L 365 186 L 413 252 M 317 749 L 310 712 L 291 664 L 269 630 L 247 601" />-<glyph unicode="â" glyph-name="acircumflex" horiz-adv-x="413" d="M 271 425 L 161 432 L 81.9 397 L 25.2 296 L 3.15 167 L 3.15 66.1 L 12.6 15.8 L 72.5 75.6 L 158 195 L 211 284 L 252 369 L 271 413 L 227 217 L 205 120 L 198 66.1 L 192 12.6 L 255 53.6 L 365 186 L 413 252 M 62.7 605 L 180 699 L 304 605" />-<glyph unicode="ã" glyph-name="atilde" horiz-adv-x="413" d="M 271 425 L 161 432 L 81.9 397 L 25.2 296 L 3.15 167 L 3.15 66.1 L 12.6 15.8 L 72.5 75.6 L 158 195 L 211 284 L 252 369 L 271 413 L 227 217 L 205 120 L 198 66.1 L 192 12.6 L 255 53.6 L 365 186 L 413 252 M 22.6 585 L 74.5 613 L 122 624 L 174 613 L 230 595 L 271 580 L 319 578 L 371 602" />-<glyph unicode="ä" glyph-name="adieresis" horiz-adv-x="413" d="M 271 425 L 161 432 L 81.9 397 L 25.2 296 L 3.15 167 L 3.15 66.1 L 12.6 15.8 L 72.5 75.6 L 158 195 L 211 284 L 252 369 L 271 413 L 227 217 L 205 120 L 198 66.1 L 192 12.6 L 255 53.6 L 365 186 L 413 252 M 162 745 L 128 710 L 166 669 L 200 700 L 162 745 M 376 713 L 342 678 L 379 637 L 414 669 L 376 713" />-<glyph unicode="å" glyph-name="aring" horiz-adv-x="413" d="M 271 425 L 161 432 L 81.9 397 L 25.2 296 L 3.15 167 L 3.15 66.1 L 12.6 15.8 L 72.5 75.6 L 158 195 L 211 284 L 252 369 L 271 413 L 227 217 L 205 120 L 198 66.1 L 192 12.6 L 255 53.6 L 365 186 L 413 252 M 161 621 L 146 627 L 135 636 L 120 664 L 118 701 L 128 739 L 143 766 L 162 788 L 179 804 L 201 813 L 220 802 L 237 773 L 241 733 L 235 700 L 223 672 L 201 644 L 182 629 L 161 621" />-<glyph unicode="è" glyph-name="egrave" horiz-adv-x="290" d="M 3.15 214 L 72.5 258 L 158 343 L 189 387 L 198 435 L 180 454 L 139 457 L 72.5 413 L 22 340 L -6.3 233 L -18.9 148 L -3.15 78.8 L 31.5 28.4 L 63 -3.15 L 170 107 L 239 186 L 287 255 M -11.9 690 L 13.3 643 L 66.8 592" />-<glyph unicode="é" glyph-name="eacute" horiz-adv-x="290" d="M 3.15 214 L 72.5 258 L 158 343 L 189 387 L 198 435 L 180 454 L 139 457 L 72.5 413 L 22 340 L -6.3 233 L -18.9 148 L -3.15 78.8 L 31.5 28.4 L 63 -3.15 L 170 107 L 239 186 L 287 255 M 262 775 L 256 737 L 237 690 L 215 655 L 193 627" />-<glyph unicode="ê" glyph-name="ecircumflex" horiz-adv-x="290" d="M 3.15 214 L 72.5 258 L 158 343 L 189 387 L 198 435 L 180 454 L 139 457 L 72.5 413 L 22 340 L -6.3 233 L -18.9 148 L -3.15 78.8 L 31.5 28.4 L 63 -3.15 L 170 107 L 239 186 L 287 255 M 18.9 581 L 134 673 L 257 581" />-<glyph unicode="ë" glyph-name="edieresis" horiz-adv-x="290" d="M 3.15 214 L 72.5 258 L 158 343 L 189 387 L 198 435 L 180 454 L 139 457 L 72.5 413 L 22 340 L -6.3 233 L -18.9 148 L -3.15 78.8 L 31.5 28.4 L 63 -3.15 L 170 107 L 239 186 L 287 255 M 42 716 L 7.36 681 L 45.2 641 L 79.8 672 L 42 716 M 308 730 L 273 696 L 311 655 L 345 686 L 308 730" />-<glyph unicode="ì" glyph-name="igrave" horiz-adv-x="195" d="M -34.6 384 L 15.8 432 L 41 444 L -3.15 180 L -22.1 88.2 L -22.1 12.6 L 53.5 78.8 L 113 145 L 198 255 M -50.4 680 L -25.2 633 L 28.3 583" />-<glyph unicode="í" glyph-name="iacute" horiz-adv-x="195" d="M -34.6 384 L 15.8 432 L 41 444 L -3.15 180 L -22.1 88.2 L -22.1 12.6 L 53.5 78.8 L 113 145 L 198 255 M 210 778 L 204 740 L 185 693 L 163 658 L 141 630" />-<glyph unicode="î" glyph-name="icircumflex" horiz-adv-x="195" d="M -34.6 384 L 15.8 432 L 41 444 L -3.15 180 L -22.1 88.2 L -22.1 12.6 L 53.5 78.8 L 113 145 L 198 255 M -22.3 559 L 86.6 646 L 203 559" />-<glyph unicode="ï" glyph-name="idieresis" horiz-adv-x="195" d="M -34.6 384 L 15.8 432 L 41 444 L -3.15 180 L -22.1 88.2 L -22.1 12.6 L 53.5 78.8 L 113 145 L 198 255 M 44.8 739 L 10.1 705 L 47.9 664 L 82.6 695 L 44.8 739 M 281 755 L 246 720 L 284 679 L 319 711 L 281 755" />-<glyph unicode="ñ" glyph-name="ntilde" horiz-adv-x="447" d="M -3.15 391 L 56.7 441 L 85 460 L 69.3 384 L 50.4 252 L 31.5 161 L 18.9 75.6 L 12.6 22.1 L 15.8 6.3 L 12.6 72.4 L 78.8 164 L 129 261 L 186 343 L 246 413 L 277 450 L 293 450 L 302 384 L 277 261 L 255 167 L 236 94.5 L 220 3.15 L 277 50.4 L 359 135 L 403 198 L 447 255 M 23.6 582 L 77 611 L 126 622 L 179 611 L 237 593 L 279 578 L 328 575 L 381 600" />-<glyph unicode="ò" glyph-name="ograve" horiz-adv-x="315" d="M 53.5 3.15 L 66.1 3.15 L 123 31.5 L 176 91.4 L 224 180 L 249 271 L 243 359 L 214 406 L 192 450 L 97.6 406 L 37.8 328 L -3.15 239 L -9.45 161 L 3.15 81.9 L 22 44.1 L 53.5 3.15 M 7.13 691 L 32.3 643 L 85.9 593" />-<glyph unicode="ó" glyph-name="oacute" horiz-adv-x="315" d="M 53.5 3.15 L 66.1 3.15 L 123 31.5 L 176 91.4 L 224 180 L 249 271 L 243 359 L 214 406 L 192 450 L 97.6 406 L 37.8 328 L -3.15 239 L -9.45 161 L 3.15 81.9 L 22 44.1 L 53.5 3.15 M 280 790 L 274 752 L 255 705 L 233 670 L 211 642" />-<glyph unicode="ô" glyph-name="ocircumflex" horiz-adv-x="315" d="M 53.5 3.15 L 66.1 3.15 L 123 31.5 L 176 91.4 L 224 180 L 249 271 L 243 359 L 214 406 L 192 450 L 97.6 406 L 37.8 328 L -3.15 239 L -9.45 161 L 3.15 81.9 L 22 44.1 L 53.5 3.15 M 26.2 585 L 143 679 L 267 585" />-<glyph unicode="õ" glyph-name="otilde" horiz-adv-x="315" d="M 53.5 3.15 L 66.1 3.15 L 123 31.5 L 176 91.4 L 224 180 L 249 271 L 243 359 L 214 406 L 192 450 L 97.6 406 L 37.8 328 L -3.15 239 L -9.45 161 L 3.15 81.9 L 22 44.1 L 53.5 3.15 M 4.21 620 L 59.6 650 L 110 661 L 166 650 L 226 631 L 270 615 L 320 613 L 376 638" />-<glyph unicode="ö" glyph-name="odieresis" horiz-adv-x="315" d="M 53.5 3.15 L 66.1 3.15 L 123 31.5 L 176 91.4 L 224 180 L 249 271 L 243 359 L 214 406 L 192 450 L 97.6 406 L 37.8 328 L -3.15 239 L -9.45 161 L 3.15 81.9 L 22 44.1 L 53.5 3.15 M 87.1 696 L 52.4 662 L 90.2 621 L 125 652 L 87.1 696 M 360 699 L 325 664 L 363 623 L 397 655 L 360 699" />-<glyph unicode="÷" glyph-name="divide" horiz-adv-x="805" d="M 426 428 L 420 381 L 464 381 L 470 425 L 426 428 M 455 145 L 449 97.6 L 493 97.6 L 499 142 L 455 145 M 258 258 L 270 258 L 448 277 L 571 271 L 694 287" />-<glyph unicode="ø" glyph-name="oslash" horiz-adv-x="315" d="M 53.5 3.15 L 66.1 3.15 L 123 31.5 L 176 91.4 L 224 180 L 249 271 L 243 359 L 214 406 L 192 450 L 97.6 406 L 37.8 328 L -3.15 239 L -9.45 161 L 3.15 81.9 L 22 44.1 L 53.5 3.15 M 234 520 L 132 236 L 24.3 -30.9" />-<glyph unicode="ù" glyph-name="ugrave" horiz-adv-x="394" d="M -47.2 397 L 18.9 444 L 37.8 457 L 9.45 331 L -3.15 211 L -12.6 139 L -12.6 47.2 L -12.6 12.6 L 41 63 L 113 158 L 161 246 L 211 346 L 255 447 L 224 321 L 198 192 L 183 85.1 L 176 9.45 L 252 72.4 L 324 161 L 397 255 M 54.7 687 L 79.9 639 L 133 589" />-<glyph unicode="ú" glyph-name="uacute" horiz-adv-x="394" d="M -47.2 397 L 18.9 444 L 37.8 457 L 9.45 331 L -3.15 211 L -12.6 139 L -12.6 47.2 L -12.6 12.6 L 41 63 L 113 158 L 161 246 L 211 346 L 255 447 L 224 321 L 198 192 L 183 85.1 L 176 9.45 L 252 72.4 L 324 161 L 397 255 M 302 773 L 296 735 L 277 688 L 255 653 L 233 625" />-<glyph unicode="û" glyph-name="ucircumflex" horiz-adv-x="394" d="M -47.2 397 L 18.9 444 L 37.8 457 L 9.45 331 L -3.15 211 L -12.6 139 L -12.6 47.2 L -12.6 12.6 L 41 63 L 113 158 L 161 246 L 211 346 L 255 447 L 224 321 L 198 192 L 183 85.1 L 176 9.45 L 252 72.4 L 324 161 L 397 255 M 43.3 569 L 153 656 L 270 569" />-<glyph unicode="ü" glyph-name="udieresis" horiz-adv-x="394" d="M -47.2 397 L 18.9 444 L 37.8 457 L 9.45 331 L -3.15 211 L -12.6 139 L -12.6 47.2 L -12.6 12.6 L 41 63 L 113 158 L 161 246 L 211 346 L 255 447 L 224 321 L 198 192 L 183 85.1 L 176 9.45 L 252 72.4 L 324 161 L 397 255 M 93.1 696 L 58.5 661 L 96.3 620 L 131 652 L 93.1 696 M 412 703 L 377 669 L 415 628 L 450 659 L 412 703" />-<glyph unicode="ý" glyph-name="yacute" horiz-adv-x="284" d="M -50.4 397 L -40.9 400 L 6.3 435 L 37.8 457 L 6.3 280 L -12.6 120 L -3.15 22.1 L 75.6 107 L 142 211 L 189 299 L 252 441 L 220 293 L 192 81.9 L 167 -56.7 L 139 -120 L 101 -154 L 44.1 -173 L -59.9 -164 M 264 787 L 258 749 L 239 702 L 217 667 L 195 639" />-<glyph unicode="ÿ" glyph-name="ydieresis" horiz-adv-x="284" d="M -50.4 397 L -40.9 400 L 6.3 435 L 37.8 457 L 6.3 280 L -12.6 120 L -3.15 22.1 L 75.6 107 L 142 211 L 189 299 L 252 441 L 220 293 L 192 81.9 L 167 -56.7 L 139 -120 L 101 -154 L 44.1 -173 L -59.9 -164 M 116 748 L 80.9 713 L 119 672 L 153 704 L 116 748 M 340 725 L 305 690 L 343 650 L 377 681 L 340 725" />-<glyph unicode="–" glyph-name="endash" horiz-adv-x="770" d="M 189 293 L 402 296 L 562 318" />-<glyph unicode="—" glyph-name="emdash" horiz-adv-x="1026.9" d="M 252 293 L 536 296 L 750 318" />-<glyph unicode="“" glyph-name="quotedblleft" horiz-adv-x="472" d="M 72.3 706 L 75.1 680 L 85.1 646 L 109 598 M 214 706 L 217 680 L 227 646 L 251 598" />-<glyph unicode="”" glyph-name="quotedblright" horiz-adv-x="472" d="M 196 717 L 193 683 L 184 641 L 174 610 L 164 584 M 337 717 L 335 683 L 326 641 L 316 610 L 306 584" />-<glyph unicode="‹" glyph-name="guilsinglleft" horiz-adv-x="310" d="M 224 333 L 146 270 L 78.1 189 L 165 85.7 L 232 22.7" />-<glyph unicode="›" glyph-name="guilsinglright" horiz-adv-x="290" d="M 59.2 25.2 L 132 95.8 L 209 186 L 145 265 L 65.5 333" />-<glyph unicode="€" glyph-name="Euro" horiz-adv-x="592" d="M 545 639 L 450 668 L 306 624 L 211 507 L 154 391 L 129 284 L 132 183 L 183 75.6 L 236 18.9 L 324 6.3 L 381 40.9 L 460 110 M 126 230 L 268 233 L 375 255 M 126 356 L 268 359 L 375 381" />-<glyph unicode="Ÿ" glyph-name="Ydieresis" horiz-adv-x="699" d="M 41 454 L 56.7 545 L 91.4 621 L 135 662 L 211 665 L 252 624 L 290 510 L 321 403 L 359 261 L 394 151 M 554 649 L 627 646 L 639 621 L 608 542 L 413 186 L 318 18.9 L 227 -94.5 L 170 -135 L 120 -139 L 15.8 -81.9 M 317 929 L 282 894 L 320 854 L 355 885 L 317 929 M 579 961 L 545 926 L 582 885 L 617 917 L 579 961" />-<glyph unicode="ß" glyph-name="germandbls" horiz-adv-x="350" d="M-125.85517 -55.469964C-125.85517 -55.469964 -27.057765000000003 -28.928451999999997 -21.838144999999997 22.72011700000001C-0.33722294999999747 219.49844000000002 22.925906000000005 269.40151000000003 56.628870000000006 608.8901099999999C108.33162000000002 799.3099599999999 272.4135 710.2179699999999 268.37901999999997 561.8008399999999C264.34452999999996 413.3837099999999 87.90561999999997 322.86239999999987 134.71868999999998 342.0434299999999C181.53176 361.2244599999999 271.45619999999997 302.57457999999986 198.59564999999998 150.90379999999988C125.73512 -0.7669682 21.458486 10.708895 21.458486 10.708895" />-<glyph unicode="¸" glyph-name="cedilla" horiz-adv-x="592" d="M338.41662 13.980296L338.41662 -7.9892106C338.41662 -16.208421 339.07143 -24.605691 337.68223 -32.775321C335.49993 -45.609050999999994 318.7493 -81.994991 309.04115 -91.924021C297.17807 -104.05699 260.62822 -119.35343 239.27441000000002 -113.89353" />-<glyph unicode="ç" glyph-name="ccedilla" horiz-adv-x="309" d="M75.6 -6.3L75.6 -28.269507C75.6 -36.488717 76.25480999999999 -44.885987 74.86560999999999 -53.055617C72.68330999999999 -65.889347 55.93267999999999 -102.27529 46.22452999999999 -112.20432C34.36144999999999 -124.33729 -2.1884000000000157 -139.63372999999999 -23.54221000000001 -134.17383M239.0 435.0L198.0 457.0L132.0 444.0L59.900000000000006 365.0L31.500000000000007 302.0L6.300000000000008 236.0L3.150000000000008 161.0L9.450000000000008 88.2L31.500000000000007 34.6L75.60000000000001 -6.299999999999997L148.0 59.900000000000006L227.0 145.0L309.0 255.0" />-<glyph unicode="Ç" glyph-name="Ccedilla" horiz-adv-x="592" d="M338.41662 13.980296L338.41662 -7.9892106C338.41662 -16.208421 339.07143 -24.605691 337.68223 -32.775321C335.49993 -45.609050999999994 318.7493 -81.994991 309.04115 -91.924021C297.17807 -104.05699 260.62822 -119.35343 239.27441000000002 -113.89353M545.0 639.0L450.0 668.0L306.0 624.0L211.0 507.0L154.0 391.0L129.0 284.0L132.0 183.0L183.0 75.6L236.0 18.89999999999999L324.0 6.299999999999992L381.0 40.89999999999999L460.0 109.99999999999999" />-</font>-</defs>-</svg>\ No newline at end of filediff --git a/styles/whiteboard/demo/fonts/EMSReadability.svg b/styles/whiteboard/demo/fonts/EMSReadability.svgdeleted file mode 100644index c9c5174..0000000--- a/styles/whiteboard/demo/fonts/EMSReadability.svg+++ /dev/null@@ -1,216 +0,0 @@-<?xml version="1.0" encoding="UTF-8" ?>-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >--<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">--<metadata>-Font name: EMS Readability-License: SIL Open Font License http://scripts.sil.org/OFL-Created by: Sheldon B. Michaels-SVG font conversion by: Windell H. Oskay-A derivative of: Source Sans Pro-Light-Designer: Paul D. Hunt, Adobe-Link: http://www.adobe.com-Google font page: https://fonts.google.com/specimen/Source+Sans+Pro-</metadata>-<defs>-<font id="EMSReadability" horiz-adv-x="378" >-<font-face-font-family="EMS Readability"-units-per-em="1000"-ascent="800"-descent="-200"-cap-height="500"-x-height="300"-/>-<missing-glyph horiz-adv-x="378" />-<glyph unicode=" " glyph-name="space" horiz-adv-x="378" />-<glyph unicode="!" glyph-name="exclam" horiz-adv-x="280" d="M 195 674 L 195 192 M 173 69.3 L 173 18.9 L 220 18.9 L 220 69.3 L 173 69.3" />-<glyph unicode=""" glyph-name="quotedbl" horiz-adv-x="381" d="M 117 693 L 120 491 M 255 693 L 261 491" />-<glyph unicode="#" glyph-name="numbersign" horiz-adv-x="501" d="M 202 649 L 123 15.8 M 381 649 L 302 15.8 M 72.5 447 L 450 447 M 53.5 246 L 428 246" />-<glyph unicode="$" glyph-name="dollar" horiz-adv-x="501" d="M 391 580 L 340 624 L 287 636 L 255 639 L 255 747 L 255 639 L 189 627 L 139 580 L 120 526 L 123 460 L 148 413 L 198 375 L 309 318 L 353 284 L 387 249 L 406 192 L 406 145 L 391 85.1 L 337 40.9 L 271 18.9 L 255 18.9 L 255 -85 L 255 18.9 L 205 25.2 L 142 50.4 L 94.5 88.2" />-<glyph unicode="%" glyph-name="percent" horiz-adv-x="828" d="M 192 284 L 239 293 L 277 324 L 302 375 L 315 444 L 318 495 L 302 564 L 277 617 L 246 649 L 208 665 L 167 662 L 120 633 L 91.4 589 L 78.8 536 L 75.6 428 L 85 372 L 107 328 L 139 299 L 164 287 L 192 284 M 633 12.6 L 680 22.1 L 715 56.7 L 743 104 L 753 173 L 756 224 L 743 296 L 718 350 L 687 381 L 646 397 L 605 391 L 561 365 L 529 321 L 520 268 L 513 161 L 526 101 L 548 59.9 L 576 31.5 L 605 15.8 L 633 12.6 M 233 9.45 L 592 671" />-<glyph unicode="&" glyph-name="ampersand" horiz-adv-x="598" d="M 558 22.1 L 485 53.6 L 406 120 L 324 198 L 271 265 L 205 369 L 173 444 L 164 542 L 173 598 L 208 643 L 258 662 L 318 652 L 353 621 L 369 570 L 359 517 L 328 463 L 287 428 L 167 337 L 126 299 L 88.2 249 L 69.3 195 L 78.8 135 L 110 69.3 L 173 31.5 L 252 15.8 L 312 31.5 L 381 72.4 L 432 132 L 476 192 L 510 271 L 536 340" />-<glyph unicode="'" glyph-name="quotesingle" horiz-adv-x="249" d="M 117 693 L 123 491" />-<glyph unicode="(" glyph-name="parenleft" horiz-adv-x="302" d="M 239 -148 L 189 -53.5 L 145 69.3 L 129 145 L 120 255 L 120 359 L 135 450 L 158 539 L 192 633 L 220 687 L 243 718" />-<glyph unicode=")" glyph-name="parenright" horiz-adv-x="302" d="M 63 -151 L 117 -50.4 L 158 56.7 L 176 161 L 189 290 L 173 416 L 161 498 L 139 573 L 101 649 L 63 721" />-<glyph unicode="*" glyph-name="asterisk" horiz-adv-x="422" d="M 139 488 L 208 589 L 321 627 L 208 589 L 208 709 L 208 589 L 94.5 627 L 208 589 L 287 485" />-<glyph unicode="+" glyph-name="plus" horiz-adv-x="501" d="M 249 554 L 249 123 M 56.7 340 L 450 340" />-<glyph unicode="," glyph-name="comma" horiz-adv-x="249" d="M 142 25.2 L 104 25.2 L 104 75.6 L 142 75.6 L 158 18.9 L 154 -28.4 L 135 -69.3 L 110 -94.5 L 81.9 -120" />-<glyph unicode="-" glyph-name="hyphen" horiz-adv-x="328" d="M 56.7 261 L 261 261" />-<glyph unicode="." glyph-name="period" horiz-adv-x="249" d="M 97.6 72.4 L 97.6 22.1 L 148 22.1 L 148 72.4 L 97.6 72.4" />-<glyph unicode="/" glyph-name="slash" horiz-adv-x="381" d="M 44.1 -142 L 343 709" />-<glyph unicode="0" glyph-name="zero" horiz-adv-x="501" d="M 246 18.9 L 306 31.5 L 369 94.5 L 397 161 L 410 236 L 416 340 L 410 438 L 387 532 L 356 592 L 306 630 L 261 646 L 224 643 L 164 608 L 123 551 L 94.5 460 L 85 365 L 81.9 271 L 94.5 183 L 126 94.5 L 164 53.6 L 202 22.1 L 246 18.9" />-<glyph unicode="1" glyph-name="one" horiz-adv-x="504" d="M 265 598 L 161 595 L 268 636 L 268 31.5 L 110 31.5 L 422 31.5" />-<glyph unicode="2" glyph-name="two" horiz-adv-x="504" d="M 75.6 558 L 117 598 L 167 630 L 230 646 L 284 636 L 340 608 L 375 561 L 391 491 L 387 432 L 356 359 L 299 277 L 230 192 L 167 126 L 110 63 L 81.9 31.5 L 438 31.5" />-<glyph unicode="3" glyph-name="three" horiz-adv-x="498" d="M 88.2 576 L 139 614 L 205 643 L 258 643 L 315 627 L 362 589 L 384 539 L 394 479 L 378 425 L 324 384 L 265 353 L 214 343 L 176 343 L 224 343 L 274 337 L 324 318 L 378 277 L 403 239 L 413 195 L 410 148 L 400 110 L 369 66.1 L 324 37.8 L 268 22.1 L 208 22.1 L 151 37.8 L 94.5 69.3 L 59.9 101" />-<glyph unicode="4" glyph-name="four" horiz-adv-x="504" d="M 340 15.8 L 340 630 L 47.2 220 L 444 220" />-<glyph unicode="5" glyph-name="five" horiz-adv-x="501" d="M 59.9 97.6 L 101 63 L 145 37.8 L 195 18.9 L 243 15.8 L 315 34.6 L 365 75.6 L 406 135 L 422 205 L 413 287 L 378 350 L 306 391 L 233 397 L 180 384 L 126 356 L 120 365 L 139 630 L 397 630" />-<glyph unicode="6" glyph-name="six" horiz-adv-x="498" d="M 85 265 L 132 315 L 189 359 L 246 378 L 309 378 L 356 356 L 391 324 L 416 265 L 425 195 L 410 123 L 375 63 L 321 25.2 L 258 15.8 L 202 34.6 L 151 72.4 L 110 135 L 91.4 224 L 85 318 L 97.6 438 L 120 510 L 148 567 L 195 614 L 255 639 L 315 643 L 372 624 L 413 589" />-<glyph unicode="7" glyph-name="seven" horiz-adv-x="504" d="M 224 18.9 L 236 186 L 261 306 L 296 410 L 340 491 L 387 567 L 435 633 L 72.5 633" />-<glyph unicode="8" glyph-name="eight" horiz-adv-x="501" d="M 296 321 L 359 372 L 397 428 L 406 482 L 403 539 L 362 605 L 299 639 L 249 643 L 173 621 L 123 570 L 110 513 L 126 435 L 176 387 L 265 340 L 346 296 L 400 255 L 425 198 L 419 129 L 400 78.8 L 340 31.5 L 265 15.8 L 205 25.2 L 142 53.6 L 94.5 104 L 78.8 158 L 85 236 L 135 306 L 176 334 L 230 359" />-<glyph unicode="9" glyph-name="nine" horiz-adv-x="501" d="M 88.2 75.6 L 123 40.9 L 180 22.1 L 239 15.8 L 302 47.2 L 362 107 L 397 198 L 413 309 L 413 413 L 391 510 L 353 586 L 293 630 L 224 643 L 151 617 L 107 573 L 81.9 517 L 75.6 460 L 78.8 397 L 113 331 L 176 290 L 252 280 L 334 315 L 384 362 L 416 403" />-<glyph unicode=":" glyph-name="colon" horiz-adv-x="249" d="M 97.6 454 L 97.6 406 L 145 406 L 145 454 L 97.6 454 M 97.6 72.4 L 97.6 25.2 L 145 25.2 L 145 72.4 L 97.6 72.4" />-<glyph unicode=";" glyph-name="semicolon" horiz-adv-x="246" d="M 97.6 454 L 97.6 403 L 148 403 L 148 454 L 97.6 454 M 142 25.2 L 104 25.2 L 104 75.6 L 142 75.6 L 158 18.9 L 154 -28.4 L 139 -69.3 L 110 -94.5 L 81.9 -120" />-<glyph unicode="<" glyph-name="less" horiz-adv-x="504" d="M 450 183 L 53.5 343 L 450 504" />-<glyph unicode="=" glyph-name="equal" horiz-adv-x="504" d="M 50.4 441 L 450 441 M 50.4 239 L 450 239" />-<glyph unicode=">" glyph-name="greater" horiz-adv-x="498" d="M 56.7 183 L 450 346 L 56.7 504" />-<glyph unicode="?" glyph-name="question" horiz-adv-x="428" d="M 170 72.4 L 170 22.1 L 220 22.1 L 220 72.4 L 170 72.4 M 189 202 L 195 261 L 220 324 L 290 419 L 331 485 L 340 542 L 328 598 L 296 643 L 258 668 L 205 674 L 151 665 L 107 643 L 69.3 608" />-<glyph unicode="@" glyph-name="at" horiz-adv-x="832" d="M 545 413 L 504 173 L 454 123 L 403 97.6 L 343 94.5 L 290 135 L 274 202 L 293 302 L 346 381 L 419 419 L 482 406 L 513 378 L 532 340 L 504 167 L 510 129 L 564 88.2 L 636 94.5 L 696 145 L 737 211 L 750 293 L 747 378 L 721 469 L 677 536 L 621 586 L 529 617 L 432 624 L 346 608 L 249 558 L 180 491 L 132 419 L 94.5 324 L 81.9 243 L 81.9 173 L 104 78.8 L 142 3.15 L 220 -66.1 L 290 -97.6 L 387 -117 L 479 -113 L 564 -69.3" />-<glyph unicode="A" glyph-name="A" horiz-adv-x="548" d="M 41 15.8 L 277 662 L 416 255 L 132 255 L 416 255 L 501 15.8" />-<glyph unicode="B" glyph-name="B" horiz-adv-x="602" d="M 129 28.4 L 129 646 L 312 646 L 365 643 L 419 621 L 463 580 L 476 532 L 476 476 L 454 425 L 406 391 L 365 372 L 309 362 L 135 362 L 312 362 L 365 353 L 428 337 L 479 302 L 507 271 L 517 227 L 517 164 L 491 104 L 447 66.1 L 369 34.6 L 312 28.4 L 135 28.4" />-<glyph unicode="C" glyph-name="C" horiz-adv-x="589" d="M 520 97.6 L 454 47.2 L 365 15.8 L 277 28.4 L 195 72.4 L 132 148 L 101 227 L 91.4 346 L 101 457 L 142 548 L 205 617 L 277 652 L 359 658 L 432 643 L 482 611 L 498 592" />-<glyph unicode="D" glyph-name="D" horiz-adv-x="627" d="M 132 31.5 L 132 646 L 309 646 L 381 627 L 435 598 L 472 561 L 517 488 L 532 406 L 532 356 L 529 290 L 520 214 L 495 161 L 450 94.5 L 381 53.6 L 315 34.6 L 265 31.5 L 135 31.5" />-<glyph unicode="E" glyph-name="E" horiz-adv-x="539" d="M 466 31.5 L 132 31.5 L 132 356 L 410 356 L 132 356 L 132 643 L 454 643" />-<glyph unicode="F" glyph-name="F" horiz-adv-x="501" d="M 132 18.9 L 132 346 L 413 346 L 132 346 L 132 643 L 454 643" />-<glyph unicode="G" glyph-name="G" horiz-adv-x="624" d="M 346 315 L 520 315 L 520 81.9 L 479 53.6 L 391 22.1 L 328 18.9 L 265 31.5 L 208 63 L 142 139 L 97.6 233 L 88.2 343 L 101 450 L 142 545 L 208 617 L 274 649 L 350 662 L 432 649 L 482 621 L 517 592" />-<glyph unicode="H" glyph-name="H" horiz-adv-x="668" d="M 132 22.1 L 132 652 L 132 359 L 532 359 L 532 649 L 532 22.1" />-<glyph unicode="I" glyph-name="I" horiz-adv-x="268" d="M 132 18.9 L 132 652" />-<glyph unicode="J" glyph-name="J" horiz-adv-x="488" d="M 78.8 101 L 110 63 L 148 34.6 L 198 15.8 L 261 25.2 L 321 66.1 L 350 126 L 356 173 L 356 655" />-<glyph unicode="K" glyph-name="K" horiz-adv-x="583" d="M 132 18.9 L 132 655 M 491 649 L 142 255 M 293 425 L 529 18.9" />-<glyph unicode="L" glyph-name="L" horiz-adv-x="491" d="M 132 655 L 132 31.5 L 447 31.5" />-<glyph unicode="M" glyph-name="M" horiz-adv-x="731" d="M 129 15.8 L 129 655 L 161 655 L 365 97.6 L 570 652 L 592 652 L 592 18.9" />-<glyph unicode="N" glyph-name="N" horiz-adv-x="655" d="M 126 22.1 L 126 649 L 148 649 L 523 22.1 L 523 652" />-<glyph unicode="O" glyph-name="O" horiz-adv-x="677" d="M 334 22.1 L 416 34.6 L 498 88.2 L 554 173 L 583 284 L 583 387 L 567 472 L 536 542 L 485 608 L 416 649 L 346 662 L 287 652 L 220 627 L 158 573 L 110 482 L 94.5 410 L 91.4 302 L 104 220 L 135 145 L 180 85.1 L 230 44.1 L 284 25.2 L 334 22.1" />-<glyph unicode="P" glyph-name="P" horiz-adv-x="580" d="M 135 15.8 L 135 649 L 359 649 L 416 633 L 457 602 L 488 561 L 501 498 L 498 441 L 472 378 L 425 340 L 359 315 L 284 312 L 132 312" />-<glyph unicode="Q" glyph-name="Q" horiz-adv-x="674" d="M 331 15.8 L 400 31.5 L 472 69.3 L 532 132 L 567 220 L 580 296 L 580 384 L 567 476 L 542 539 L 485 608 L 413 649 L 346 665 L 277 652 L 211 624 L 154 567 L 120 507 L 97.6 413 L 88.2 340 L 94.5 271 L 117 189 L 151 120 L 195 72.4 L 249 37.8 L 302 22.1 L 331 18.9 L 359 -37.8 L 400 -78.8 L 444 -104 L 501 -120 L 551 -123 L 598 -113" />-<glyph unicode="R" glyph-name="R" horiz-adv-x="580" d="M 129 18.9 L 129 649 L 340 649 L 391 633 L 447 605 L 488 542 L 488 488 L 479 428 L 441 375 L 394 346 L 318 328 L 132 328 L 312 328 L 495 18.9" />-<glyph unicode="S" glyph-name="S" horiz-adv-x="545" d="M 78.8 107 L 132 63 L 183 37.8 L 246 25.2 L 318 22.1 L 397 53.6 L 450 101 L 469 164 L 466 220 L 432 277 L 359 324 L 230 381 L 158 428 L 120 479 L 117 542 L 142 608 L 214 652 L 284 662 L 350 655 L 400 630 L 447 595" />-<glyph unicode="T" glyph-name="T" horiz-adv-x="548" d="M 274 22.1 L 274 649 L 56.7 649 L 495 649" />-<glyph unicode="U" glyph-name="U" horiz-adv-x="662" d="M 135 655 L 135 217 L 145 161 L 173 101 L 211 59.9 L 268 28.4 L 321 15.8 L 387 25.2 L 454 59.9 L 501 117 L 523 167 L 529 236 L 529 652" />-<glyph unicode="V" glyph-name="V" horiz-adv-x="513" d="M 44.1 655 L 255 18.9 L 466 652" />-<glyph unicode="W" glyph-name="W" horiz-adv-x="791" d="M 66.1 655 L 214 18.9 L 227 22.1 L 391 652 L 403 652 L 570 18.9 L 583 18.9 L 724 655" />-<glyph unicode="X" glyph-name="X" horiz-adv-x="507" d="M 56.7 18.9 L 435 655 M 75.6 658 L 447 18.9" />-<glyph unicode="Y" glyph-name="Y" horiz-adv-x="472" d="M 44.1 655 L 236 274 L 236 22.1 L 236 277 L 425 652" />-<glyph unicode="Z" glyph-name="Z" horiz-adv-x="561" d="M 101 649 L 479 649 L 78.8 28.4 L 491 28.4" />-<glyph unicode="[" glyph-name="bracketleft" horiz-adv-x="306" d="M 261 -123 L 129 -123 L 129 699 L 261 699" />-<glyph unicode="\" glyph-name="backslash" horiz-adv-x="384" d="M 41 706 L 340 -142" />-<glyph unicode="]" glyph-name="bracketright" horiz-adv-x="306" d="M 44.1 -120 L 176 -120 L 176 702 L 44.1 702" />-<glyph unicode="^" glyph-name="asciicircum" horiz-adv-x="504" d="M 101 312 L 249 674 L 400 302" />-<glyph unicode="_" glyph-name="underscore" horiz-adv-x="529" d="M 28.4 -81.9 L 501 -81.9" />-<glyph unicode="`" glyph-name="grave" horiz-adv-x="558" d="M 220 709 L 312 586" />-<glyph unicode="a" glyph-name="a" horiz-adv-x="520" d="M 117 428 L 183 466 L 239 482 L 296 488 L 340 472 L 378 438 L 403 387 L 406 318 L 406 107 L 406 22.1 L 403 107 L 362 78.8 L 318 47.2 L 268 25.2 L 211 15.8 L 164 31.5 L 126 56.7 L 97.6 97.6 L 97.6 158 L 120 205 L 170 246 L 220 265 L 280 284 L 337 293 L 372 296 L 400 296" />-<glyph unicode="b" glyph-name="b" horiz-adv-x="564" d="M 123 718 L 123 15.8 L 123 101 L 158 72.4 L 211 37.8 L 268 22.1 L 324 18.9 L 391 56.7 L 432 101 L 463 164 L 476 243 L 472 321 L 457 394 L 410 454 L 369 476 L 312 488 L 252 476 L 192 444 L 129 394" />-<glyph unicode="c" glyph-name="c" horiz-adv-x="472" d="M 413 72.4 L 362 34.6 L 287 18.9 L 217 28.4 L 145 75.6 L 104 142 L 88.2 220 L 88.2 302 L 113 378 L 164 438 L 224 472 L 290 482 L 346 472 L 384 454 L 400 435" />-<glyph unicode="d" glyph-name="d" horiz-adv-x="567" d="M 438 715 L 438 22.1 L 438 117 L 394 72.4 L 334 31.5 L 274 15.8 L 224 25.2 L 173 47.2 L 123 101 L 91.4 173 L 85 261 L 107 365 L 161 444 L 236 482 L 296 488 L 359 466 L 400 441 L 441 403" />-<glyph unicode="e" glyph-name="e" horiz-adv-x="504" d="M 88.2 265 L 435 265 L 435 321 L 419 394 L 372 450 L 324 482 L 258 485 L 192 466 L 135 419 L 113 372 L 88.2 312 L 81.9 249 L 97.6 173 L 126 104 L 183 47.2 L 236 22.1 L 302 15.8 L 359 31.5 L 413 59.9" />-<glyph unicode="f" glyph-name="f" horiz-adv-x="290" d="M 135 18.9 L 135 472 L 59.9 472 L 255 472 L 132 472 L 132 611 L 142 658 L 173 706 L 220 724 L 261 718 L 290 706" />-<glyph unicode="g" glyph-name="g" horiz-adv-x="510" d="M 170 40.9 L 123 -3.15 L 91.4 -56.7 L 85 -113 L 129 -161 L 202 -192 L 287 -202 L 362 -183 L 438 -132 L 466 -85 L 463 -31.5 L 435 18.9 L 365 37.8 L 173 37.8 L 132 66.1 L 113 110 L 123 151 L 176 211 L 211 189 L 265 180 L 331 202 L 378 246 L 400 299 L 400 362 L 375 419 L 356 444 L 312 472 L 463 472 L 312 472 L 265 482 L 192 476 L 142 435 L 113 378 L 110 315 L 123 265 L 148 233 L 176 208" />-<glyph unicode="h" glyph-name="h" horiz-adv-x="554" d="M 126 22.1 L 126 715 L 126 365 L 173 416 L 214 454 L 274 479 L 334 485 L 403 447 L 428 403 L 441 331 L 441 18.9" />-<glyph unicode="i" glyph-name="i" horiz-adv-x="252" d="M 126 15.8 L 126 479 M 97.6 671 L 97.6 621 L 148 621 L 148 671 L 97.6 671" />-<glyph unicode="j" glyph-name="j" horiz-adv-x="261" d="M -9.45 -186 L -3.15 -186 L 31.5 -195 L 78.8 -192 L 120 -164 L 132 -113 L 132 482 M 104 668 L 104 621 L 154 621 L 154 668 L 104 668" />-<glyph unicode="k" glyph-name="k" horiz-adv-x="485" d="M 123 15.8 L 123 718 M 400 479 L 126 148 M 255 306 L 435 15.8" />-<glyph unicode="l" glyph-name="l" horiz-adv-x="265" d="M 129 715 L 129 63 L 135 40.9 L 145 28.4 L 161 18.9 L 183 18.9" />-<glyph unicode="m" glyph-name="m" horiz-adv-x="835" d="M 123 15.8 L 123 479 L 123 375 L 167 413 L 208 447 L 246 472 L 293 485 L 334 479 L 362 466 L 394 435 L 416 381 L 422 315 L 422 15.8 L 422 365 L 435 391 L 501 450 L 551 476 L 592 488 L 636 476 L 665 460 L 699 419 L 715 337 L 715 18.9" />-<glyph unicode="n" glyph-name="n" horiz-adv-x="558" d="M 126 15.8 L 126 482 L 126 369 L 170 413 L 211 450 L 243 469 L 290 482 L 321 485 L 369 472 L 397 454 L 419 422 L 438 378 L 438 15.8" />-<glyph unicode="o" glyph-name="o" horiz-adv-x="561" d="M 287 18.9 L 290 18.9 L 353 34.6 L 413 75.6 L 450 139 L 466 208 L 469 274 L 460 334 L 438 387 L 406 428 L 362 466 L 315 482 L 271 485 L 220 476 L 173 447 L 132 400 L 110 356 L 91.4 290 L 91.4 239 L 97.6 180 L 113 126 L 151 75.6 L 195 40.9 L 243 22.1 L 287 18.9" />-<glyph unicode="p" glyph-name="p" horiz-adv-x="567" d="M 123 -195 L 123 482 L 123 381 L 176 435 L 239 469 L 293 479 L 359 479 L 410 450 L 454 387 L 476 315 L 476 233 L 466 164 L 432 91.4 L 381 44.1 L 343 25.2 L 284 22.1 L 236 31.5 L 183 59.9 L 132 94.5" />-<glyph unicode="q" glyph-name="q" horiz-adv-x="558" d="M 438 -192 L 438 479 L 438 410 L 381 450 L 321 476 L 246 482 L 176 454 L 129 397 L 97.6 328 L 85 271 L 88.2 214 L 94.5 154 L 120 94.5 L 161 53.6 L 205 28.4 L 265 15.8 L 331 34.6 L 391 72.4 L 435 110" />-<glyph unicode="r" glyph-name="r" horiz-adv-x="340" d="M 129 18.9 L 129 482 L 129 340 L 158 397 L 202 454 L 249 476 L 293 482 L 321 479" />-<glyph unicode="s" glyph-name="s" horiz-adv-x="428" d="M 66.1 78.8 L 123 40.9 L 186 22.1 L 236 15.8 L 299 37.8 L 346 75.6 L 362 132 L 350 189 L 293 236 L 214 268 L 142 299 L 101 340 L 91.4 387 L 107 432 L 158 476 L 220 485 L 284 472 L 337 441" />-<glyph unicode="t" glyph-name="t" horiz-adv-x="334" d="M 299 37.8 L 265 22.1 L 220 22.1 L 180 34.6 L 145 75.6 L 139 145 L 139 469 L 47.2 469 L 290 469 L 139 469 L 139 611" />-<glyph unicode="u" glyph-name="u" horiz-adv-x="554" d="M 425 476 L 425 18.9 L 425 139 L 391 97.6 L 350 56.7 L 293 25.2 L 239 15.8 L 183 31.5 L 145 63 L 123 104 L 120 183 L 120 476" />-<glyph unicode="v" glyph-name="v" horiz-adv-x="460" d="M 53.5 485 L 227 15.8 L 239 15.8 L 413 485" />-<glyph unicode="w" glyph-name="w" horiz-adv-x="702" d="M 59.9 482 L 198 9.45 L 211 9.45 L 343 482 L 362 482 L 495 9.45 L 507 9.45 L 643 482" />-<glyph unicode="x" glyph-name="x" horiz-adv-x="435" d="M 50.4 9.45 L 365 485 M 69.3 485 L 387 9.45" />-<glyph unicode="y" glyph-name="y" horiz-adv-x="460" d="M 53.5 479 L 243 3.15 M 406 476 L 211 -78.8 L 189 -126 L 158 -161 L 120 -183 L 53.5 -183" />-<glyph unicode="z" glyph-name="z" horiz-adv-x="425" d="M 78.8 466 L 359 466 L 63 31.5 L 381 31.5" />-<glyph unicode="{" glyph-name="braceleft" horiz-adv-x="309" d="M 265 -123 L 217 -126 L 167 -101 L 145 -50.4 L 158 214 L 145 249 L 120 274 L 97.6 284 L 56.7 287 L 107 299 L 145 321 L 151 362 L 148 627 L 158 671 L 202 699 L 265 699" />-<glyph unicode="|" glyph-name="bar" horiz-adv-x="255" d="M 120 -220 L 120 740" />-<glyph unicode="}" glyph-name="braceright" horiz-adv-x="309" d="M 44.1 -123 L 104 -120 L 148 -97.6 L 161 -37.8 L 154 208 L 167 255 L 192 277 L 230 290 L 246 290 L 208 302 L 173 315 L 158 350 L 158 441 L 167 630 L 139 684 L 97.6 702 L 47.2 702" />-<glyph unicode="~" glyph-name="asciitilde" horiz-adv-x="504" d="M 75.6 324 L 110 365 L 151 384 L 202 384 L 249 343 L 302 302 L 334 290 L 372 296 L 400 321 L 428 350" />-<glyph unicode=" " glyph-name="nbspace" horiz-adv-x="378" />-<glyph unicode="¡" glyph-name="exclamdown" horiz-adv-x="280" d="M 142 18.9 L 142 501 M 164 624 L 164 674 L 117 674 L 117 624 L 164 624" />-<glyph unicode="¢" glyph-name="cent" horiz-adv-x="255" d="M 413 72.4 L 362 34.6 L 287 18.9 L 217 28.4 L 145 75.6 L 104 142 L 88.2 220 L 88.2 302 L 113 378 L 164 438 L 224 472 L 290 482 L 346 472 L 384 454 L 400 435 M 246 -220 L 246 740" />-<glyph unicode="¥" glyph-name="yen" horiz-adv-x="472" d="M 44.1 655 L 236 274 L 236 22.1 L 236 277 L 425 652 M 151 198 L 356 198 M 151 324 L 356 324" />-<glyph unicode="¦" glyph-name="brokenbar" horiz-adv-x="76.5" d="M 206 -66.1 L 206 222 M 206 406 L 206 695" />-<glyph unicode="¨" glyph-name="dieresis" horiz-adv-x="567" d=" M 190 702 L 190 652 L 241 652 L 241 702 L 190 702 M 446 702 L 446 652 L 496 652 L 496 702 L 446 702" />-<glyph unicode="©" glyph-name="copyright" horiz-adv-x="677" d="M 334 22.1 L 416 34.6 L 498 88.2 L 554 173 L 583 284 L 583 387 L 567 472 L 536 542 L 485 608 L 416 649 L 346 662 L 287 652 L 220 627 L 158 573 L 110 482 L 94.5 410 L 91.4 302 L 104 220 L 135 145 L 180 85.1 L 230 44.1 L 284 25.2 L 334 22.1 M 449 206 L 416 181 L 372 165 L 328 172 L 287 194 L 255 232 L 239 271 L 235 331 L 239 386 L 260 432 L 291 466 L 328 484 L 369 487 L 405 479 L 430 463 L 438 454" />-<glyph unicode="ª" glyph-name="ordfeminine" horiz-adv-x="260" d="M 216 813 L 249 832 L 277 839 L 306 843 L 328 835 L 346 817 L 359 792 L 361 758 L 361 652 L 361 610 L 359 652 L 339 638 L 317 622 L 291 611 L 263 606 L 239 614 L 220 627 L 206 647 L 206 677 L 217 701 L 243 721 L 268 731 L 298 740 L 326 745 L 343 747 L 358 747" />-<glyph unicode="«" glyph-name="guillemotleft" horiz-adv-x="274" d="M 145 -7.56 L 34 212 L 140 423 M 271 -7.56 L 160 212 L 266 423" />-<glyph unicode="®" glyph-name="registered" horiz-adv-x="677" d="M 334 22.1 L 416 34.6 L 498 88.2 L 554 173 L 583 284 L 583 387 L 567 472 L 536 542 L 485 608 L 416 649 L 346 662 L 287 652 L 220 627 L 158 573 L 110 482 L 94.5 410 L 91.4 302 L 104 220 L 135 145 L 180 85.1 L 230 44.1 L 284 25.2 L 334 22.1 M 254 167 L 254 482 L 359 482 L 384 474 L 413 460 L 433 428 L 433 402 L 428 372 L 410 345 L 386 331 L 348 321 L 255 321 L 345 321 L 436 167" />-<glyph unicode="°" glyph-name="degree" horiz-adv-x="244" d="M 242 574 L 266 577 L 291 593 L 308 619 L 317 652 L 317 683 L 312 709 L 302 730 L 287 749 L 266 762 L 246 765 L 228 763 L 208 755 L 189 739 L 175 712 L 170 690 L 169 658 L 173 633 L 182 610 L 196 593 L 211 580 L 227 575 L 242 574" />-<glyph unicode="±" glyph-name="plusminus" horiz-adv-x="401" d="M 499 20.2 L 663 20.2 M 653 633 L 653 287 M 499 461 L 814 461" />-<glyph unicode="²" glyph-name="twosuperior" horiz-adv-x="252" d="M 195 877 L 216 898 L 241 914 L 272 921 L 299 917 L 328 902 L 345 879 L 353 844 L 351 814 L 335 778 L 307 737 L 272 695 L 241 662 L 213 630 L 198 614 L 376 614" />-<glyph unicode="³" glyph-name="threesuperior" horiz-adv-x="249" d="M 202 887 L 227 906 L 260 920 L 287 920 L 315 912 L 339 893 L 350 868 L 354 838 L 346 811 L 320 791 L 290 775 L 265 770 L 246 770 L 269 770 L 295 767 L 320 758 L 346 737 L 359 718 L 364 696 L 362 673 L 358 654 L 342 632 L 320 617 L 291 610 L 261 610 L 233 617 L 205 633 L 187 649" />-<glyph unicode="´" glyph-name="acute" horiz-adv-x="378" d=" M 335 787 L 209 616" />-<glyph unicode="·" glyph-name="middot" horiz-adv-x="328" d="M 193 389 L 193 329 L 253 329 L 253 389 L 193 389" />-<glyph unicode="¹" glyph-name="onesuperior" horiz-adv-x="252" d="M 290 898 L 238 896 L 291 917 L 291 614 L 213 614 L 369 614" />-<glyph unicode="º" glyph-name="ordmasculine" horiz-adv-x="244" d="M 242 574 L 266 577 L 291 593 L 308 619 L 317 652 L 317 683 L 312 709 L 302 730 L 287 749 L 266 762 L 246 765 L 228 763 L 208 755 L 189 739 L 175 712 L 170 690 L 169 658 L 173 633 L 182 610 L 196 593 L 211 580 L 227 575 L 242 574" />-<glyph unicode="»" glyph-name="guillemotright" horiz-adv-x="319" d="M 61.7 -10.1 L 173 239 L 37.8 426 M 188 -10.1 L 299 239 L 164 426" />-<glyph unicode="¼" glyph-name="onequarter" horiz-adv-x="544" d="M 159 737 L 96.4 735 L 161 760 L 161 397 L 66.1 397 L 253 397 M 265 -78.8 L 564 772 M 677 9.45 L 677 378 L 501 132 L 739 132" />-<glyph unicode="½" glyph-name="onehalf" horiz-adv-x="544" d="M 159 737 L 96.4 735 L 161 760 L 161 397 L 66.1 397 L 253 397 M 265 -78.8 L 564 772 M 518 335 L 542 359 L 573 378 L 610 387 L 643 382 L 677 365 L 697 336 L 707 295 L 705 259 L 686 215 L 652 166 L 610 115 L 573 75.6 L 539 37.8 L 522 18.9 L 735 18.9" />-<glyph unicode="¾" glyph-name="threequarters" horiz-adv-x="541" d="M 52.9 724 L 83.2 747 L 123 764 L 155 764 L 189 754 L 217 731 L 231 701 L 236 665 L 227 633 L 195 609 L 159 590 L 129 584 L 106 584 L 134 584 L 164 580 L 195 569 L 227 544 L 242 522 L 248 495 L 246 467 L 240 444 L 221 418 L 195 401 L 161 391 L 125 391 L 90.7 401 L 56.7 420 L 35.9 438 M 265 -78.8 L 564 772 M 677 9.45 L 677 378 L 501 132 L 739 132" />-<glyph unicode="¿" glyph-name="questiondown" horiz-adv-x="428" d="M 239 624 L 239 674 L 189 674 L 189 624 L 239 624 M 220 495 L 214 435 L 189 372 L 120 277 L 78.8 211 L 69.3 154 L 81.9 97.7 L 113 53.6 L 151 28.4 L 205 22.1 L 258 31.5 L 302 53.6 L 340 88.2" />-<glyph unicode="À" glyph-name="Agrave" horiz-adv-x="548" d="M 41 15.8 L 277 662 L 416 255 L 132 255 L 416 255 L 501 15.8 M 148 992 L 239 869" />-<glyph unicode="Á" glyph-name="Aacute" horiz-adv-x="548" d="M 41 15.8 L 277 662 L 416 255 L 132 255 L 416 255 L 501 15.8 M 452 989 L 326 819" />-<glyph unicode="Â" glyph-name="Acircumflex" horiz-adv-x="548" d="M 41 15.8 L 277 662 L 416 255 L 132 255 L 416 255 L 501 15.8 M 219 817 L 293 999 L 369 813" />-<glyph unicode="Ã" glyph-name="Atilde" horiz-adv-x="548" d="M 41 15.8 L 277 662 L 416 255 L 132 255 L 416 255 L 501 15.8 M 181 822 L 205 851 L 234 864 L 269 864 L 302 836 L 340 807 L 362 798 L 388 803 L 408 820 L 428 840" />-<glyph unicode="Ä" glyph-name="Adieresis" horiz-adv-x="548" d="M 41 15.8 L 277 662 L 416 255 L 132 255 L 416 255 L 501 15.8 M 147 923 L 147 873 L 197 873 L 197 923 L 147 923 M 407 923 L 407 873 L 458 873 L 458 923 L 407 923" />-<glyph unicode="Å" glyph-name="Aring" horiz-adv-x="548" d="M 41 15.8 L 277 662 L 416 255 L 132 255 L 416 255 L 501 15.8 M 312 857 L 336 861 L 361 877 L 378 902 L 387 936 L 387 967 L 382 992 L 372 1013.0 L 357 1032.9 L 336 1045.2 L 316 1048.9 L 298 1046.1 L 278 1038.6 L 259 1022.5 L 245 995 L 240 973 L 239 941 L 243 917 L 252 894 L 266 876 L 281 864 L 297 858 L 312 857" />-<glyph unicode="È" glyph-name="Egrave" horiz-adv-x="539" d="M 466 31.5 L 132 31.5 L 132 356 L 410 356 L 132 356 L 132 643 L 454 643 M 143 992 L 235 869" />-<glyph unicode="É" glyph-name="Eacute" horiz-adv-x="539" d="M 466 31.5 L 132 31.5 L 132 356 L 410 356 L 132 356 L 132 643 L 454 643 M 446 963 L 320 793" />-<glyph unicode="Ê" glyph-name="Ecircumflex" horiz-adv-x="539" d="M 466 31.5 L 132 31.5 L 132 356 L 410 356 L 132 356 L 132 643 L 454 643 M 217 817 L 291 999 L 366 813" />-<glyph unicode="Ë" glyph-name="Edieresis" horiz-adv-x="539" d="M 466 31.5 L 132 31.5 L 132 356 L 410 356 L 132 356 L 132 643 L 454 643 M 140 923 L 140 873 L 191 873 L 191 923 L 140 923 M 405 923 L 405 873 L 455 873 L 455 923 L 405 923" />-<glyph unicode="Ì" glyph-name="Igrave" horiz-adv-x="268" d="M 132 18.9 L 132 652 M 7.88 992 L 99.2 869" />-<glyph unicode="Í" glyph-name="Iacute" horiz-adv-x="268" d="M 132 18.9 L 132 652 M 305 988 L 179 817" />-<glyph unicode="Î" glyph-name="Icircumflex" horiz-adv-x="268" d="M 132 18.9 L 132 652 M 102 817 L 176 999 L 251 813" />-<glyph unicode="Ï" glyph-name="Idieresis" horiz-adv-x="268" d="M 132 18.9 L 132 652 M 12.9 923 L 12.9 873 L 63.3 873 L 63.3 923 L 12.9 923 M 261 923 L 261 873 L 312 873 L 312 923 L 261 923" />-<glyph unicode="Ð" glyph-name="Eth" horiz-adv-x="627" d="M 56.7 261 L 261 261 M 132 31.5 L 132 646 L 309 646 L 381 627 L 435 598 L 472 561 L 517 488 L 532 406 L 532 356 L 529 290 L 520 214 L 495 161 L 450 94.5 L 381 53.6 L 315 34.6 L 265 31.5 L 135 31.5" />-<glyph unicode="Ñ" glyph-name="Ntilde" horiz-adv-x="655" d="M 126 22.1 L 126 649 L 148 649 L 523 22.1 L 523 652 M 206 822 L 230 851 L 259 864 L 294 864 L 327 836 L 365 807 L 387 798 L 413 803 L 433 820 L 453 840" />-<glyph unicode="Ò" glyph-name="Ograve" horiz-adv-x="677" d="M 334 22.1 L 416 34.6 L 498 88.2 L 554 173 L 583 284 L 583 387 L 567 472 L 536 542 L 485 608 L 416 649 L 346 662 L 287 652 L 220 627 L 158 573 L 110 482 L 94.5 410 L 91.4 302 L 104 220 L 135 145 L 180 85.1 L 230 44.1 L 284 25.2 L 334 22.1 M 213 992 L 304 869" />-<glyph unicode="Ó" glyph-name="Oacute" horiz-adv-x="677" d="M 334 22.1 L 416 34.6 L 498 88.2 L 554 173 L 583 284 L 583 387 L 567 472 L 536 542 L 485 608 L 416 649 L 346 662 L 287 652 L 220 627 L 158 573 L 110 482 L 94.5 410 L 91.4 302 L 104 220 L 135 145 L 180 85.1 L 230 44.1 L 284 25.2 L 334 22.1 M 520 981 L 394 811" />-<glyph unicode="Ô" glyph-name="Ocircumflex" horiz-adv-x="677" d="M 334 22.1 L 416 34.6 L 498 88.2 L 554 173 L 583 284 L 583 387 L 567 472 L 536 542 L 485 608 L 416 649 L 346 662 L 287 652 L 220 627 L 158 573 L 110 482 L 94.5 410 L 91.4 302 L 104 220 L 135 145 L 180 85.1 L 230 44.1 L 284 25.2 L 334 22.1 M 251 817 L 325 999 L 401 813" />-<glyph unicode="Õ" glyph-name="Otilde" horiz-adv-x="677" d="M 334 22.1 L 416 34.6 L 498 88.2 L 554 173 L 583 284 L 583 387 L 567 472 L 536 542 L 485 608 L 416 649 L 346 662 L 287 652 L 220 627 L 158 573 L 110 482 L 94.5 410 L 91.4 302 L 104 220 L 135 145 L 180 85.1 L 230 44.1 L 284 25.2 L 334 22.1 M 211 822 L 235 851 L 264 864 L 299 864 L 332 836 L 370 807 L 392 798 L 418 803 L 438 820 L 458 840" />-<glyph unicode="Ö" glyph-name="Odieresis" horiz-adv-x="677" d="M 334 22.1 L 416 34.6 L 498 88.2 L 554 173 L 583 284 L 583 387 L 567 472 L 536 542 L 485 608 L 416 649 L 346 662 L 287 652 L 220 627 L 158 573 L 110 482 L 94.5 410 L 91.4 302 L 104 220 L 135 145 L 180 85.1 L 230 44.1 L 284 25.2 L 334 22.1 M 211 923 L 211 873 L 261 873 L 261 923 L 211 923 M 473 923 L 473 873 L 523 873 L 523 923 L 473 923" />-<glyph unicode="×" glyph-name="multiply" horiz-adv-x="435" d="M 50.4 9.45 L 365 485 M 69.3 485 L 387 9.45" />-<glyph unicode="Ø" glyph-name="Oslash" horiz-adv-x="677" d="M 334 22.1 L 416 34.6 L 498 88.2 L 554 173 L 583 284 L 583 387 L 567 472 L 536 542 L 485 608 L 416 649 L 346 662 L 287 652 L 220 627 L 158 573 L 110 482 L 94.5 410 L 91.4 302 L 104 220 L 135 145 L 180 85.1 L 230 44.1 L 284 25.2 L 334 22.1 M 184 -119 L 507 799" />-<glyph unicode="Ù" glyph-name="Ugrave" horiz-adv-x="662" d="M 135 655 L 135 217 L 145 161 L 173 101 L 211 59.9 L 268 28.4 L 321 15.8 L 387 25.2 L 454 59.9 L 501 117 L 523 167 L 529 236 L 529 652 M 205 992 L 296 869" />-<glyph unicode="Ú" glyph-name="Uacute" horiz-adv-x="662" d="M 135 655 L 135 217 L 145 161 L 173 101 L 211 59.9 L 268 28.4 L 321 15.8 L 387 25.2 L 454 59.9 L 501 117 L 523 167 L 529 236 L 529 652 M 498 980 L 372 810" />-<glyph unicode="Û" glyph-name="Ucircumflex" horiz-adv-x="662" d="M 135 655 L 135 217 L 145 161 L 173 101 L 211 59.9 L 268 28.4 L 321 15.8 L 387 25.2 L 454 59.9 L 501 117 L 523 167 L 529 236 L 529 652 M 247 817 L 321 999 L 397 813" />-<glyph unicode="Ü" glyph-name="Udieresis" horiz-adv-x="662" d="M 135 655 L 135 217 L 145 161 L 173 101 L 211 59.9 L 268 28.4 L 321 15.8 L 387 25.2 L 454 59.9 L 501 117 L 523 167 L 529 236 L 529 652 M 208 923 L 208 873 L 259 873 L 259 923 L 208 923 M 459 923 L 459 873 L 510 873 L 510 923 L 459 923" />-<glyph unicode="Ý" glyph-name="Yacute" horiz-adv-x="472" d="M 44.1 655 L 236 274 L 236 22.1 L 236 277 L 425 652 M 408 998 L 282 827" />-<glyph unicode="à" glyph-name="agrave" horiz-adv-x="520" d="M 117 428 L 183 466 L 239 482 L 296 488 L 340 472 L 378 438 L 403 387 L 406 318 L 406 107 L 406 22.1 L 403 107 L 362 78.8 L 318 47.2 L 268 25.2 L 211 15.8 L 164 31.5 L 126 56.7 L 97.6 97.6 L 97.6 158 L 120 205 L 170 246 L 220 265 L 280 284 L 337 293 L 372 296 L 400 296 M 165 772 L 257 649" />-<glyph unicode="á" glyph-name="aacute" horiz-adv-x="520" d="M 117 428 L 183 466 L 239 482 L 296 488 L 340 472 L 378 438 L 403 387 L 406 318 L 406 107 L 406 22.1 L 403 107 L 362 78.8 L 318 47.2 L 268 25.2 L 211 15.8 L 164 31.5 L 126 56.7 L 97.6 97.6 L 97.6 158 L 120 205 L 170 246 L 220 265 L 280 284 L 337 293 L 372 296 L 400 296 M 390 810 L 264 640" />-<glyph unicode="â" glyph-name="acircumflex" horiz-adv-x="520" d="M 117 428 L 183 466 L 239 482 L 296 488 L 340 472 L 378 438 L 403 387 L 406 318 L 406 107 L 406 22.1 L 403 107 L 362 78.8 L 318 47.2 L 268 25.2 L 211 15.8 L 164 31.5 L 126 56.7 L 97.6 97.6 L 97.6 158 L 120 205 L 170 246 L 220 265 L 280 284 L 337 293 L 372 296 L 400 296 M 180 644 L 254 825 L 330 639" />-<glyph unicode="ã" glyph-name="atilde" horiz-adv-x="520" d="M 117 428 L 183 466 L 239 482 L 296 488 L 340 472 L 378 438 L 403 387 L 406 318 L 406 107 L 406 22.1 L 403 107 L 362 78.8 L 318 47.2 L 268 25.2 L 211 15.8 L 164 31.5 L 126 56.7 L 97.6 97.6 L 97.6 158 L 120 205 L 170 246 L 220 265 L 280 284 L 337 293 L 372 296 L 400 296 M 152 646 L 176 675 L 205 688 L 240 688 L 273 659 L 311 631 L 333 622 L 359 626 L 379 644 L 399 664" />-<glyph unicode="ä" glyph-name="adieresis" horiz-adv-x="520" d="M 117 428 L 183 466 L 239 482 L 296 488 L 340 472 L 378 438 L 403 387 L 406 318 L 406 107 L 406 22.1 L 403 107 L 362 78.8 L 318 47.2 L 268 25.2 L 211 15.8 L 164 31.5 L 126 56.7 L 97.6 97.6 L 97.6 158 L 120 205 L 170 246 L 220 265 L 280 284 L 337 293 L 372 296 L 400 296 M 169 702 L 169 652 L 220 652 L 220 702 L 169 702 M 420 702 L 420 652 L 470 652 L 470 702 L 420 702" />-<glyph unicode="å" glyph-name="aring" horiz-adv-x="520" d="M 117 428 L 183 466 L 239 482 L 296 488 L 340 472 L 378 438 L 403 387 L 406 318 L 406 107 L 406 22.1 L 403 107 L 362 78.8 L 318 47.2 L 268 25.2 L 211 15.8 L 164 31.5 L 126 56.7 L 97.6 97.6 L 97.6 158 L 120 205 L 170 246 L 220 265 L 280 284 L 337 293 L 372 296 L 400 296 M 242 668 L 266 672 L 291 688 L 308 713 L 317 747 L 317 778 L 312 803 L 302 824 L 287 844 L 266 856 L 246 860 L 228 857 L 208 850 L 189 833 L 175 806 L 170 784 L 169 752 L 173 728 L 182 705 L 196 687 L 211 675 L 227 669 L 242 668" />-<glyph unicode="è" glyph-name="egrave" horiz-adv-x="504" d="M 88.2 265 L 435 265 L 435 321 L 419 394 L 372 450 L 324 482 L 258 485 L 192 466 L 135 419 L 113 372 L 88.2 312 L 81.9 249 L 97.6 173 L 126 104 L 183 47.2 L 236 22.1 L 302 15.8 L 359 31.5 L 413 59.9 M 158 772 L 249 649" />-<glyph unicode="é" glyph-name="eacute" horiz-adv-x="504" d="M 88.2 265 L 435 265 L 435 321 L 419 394 L 372 450 L 324 482 L 258 485 L 192 466 L 135 419 L 113 372 L 88.2 312 L 81.9 249 L 97.6 173 L 126 104 L 183 47.2 L 236 22.1 L 302 15.8 L 359 31.5 L 413 59.9 M 387 766 L 261 596" />-<glyph unicode="ê" glyph-name="ecircumflex" horiz-adv-x="504" d="M 88.2 265 L 435 265 L 435 321 L 419 394 L 372 450 L 324 482 L 258 485 L 192 466 L 135 419 L 113 372 L 88.2 312 L 81.9 249 L 97.6 173 L 126 104 L 183 47.2 L 236 22.1 L 302 15.8 L 359 31.5 L 413 59.9 M 176 644 L 250 825 L 326 639" />-<glyph unicode="ë" glyph-name="edieresis" horiz-adv-x="504" d="M 88.2 265 L 435 265 L 435 321 L 419 394 L 372 450 L 324 482 L 258 485 L 192 466 L 135 419 L 113 372 L 88.2 312 L 81.9 249 L 97.6 173 L 126 104 L 183 47.2 L 236 22.1 L 302 15.8 L 359 31.5 L 413 59.9 M 162 702 L 162 652 L 212 652 L 212 702 L 162 702 M 411 702 L 411 652 L 462 652 L 462 702 L 411 702" />-<glyph unicode="ì" glyph-name="igrave" horiz-adv-x="252" d="M 126 15.8 L 126 479 M 31.5 772 L 123 649" />-<glyph unicode="í" glyph-name="iacute" horiz-adv-x="252" d="M 126 15.8 L 126 479 M 278 800 L 152 629" />-<glyph unicode="î" glyph-name="icircumflex" horiz-adv-x="252" d="M 126 15.8 L 126 479 M 66.1 644 L 140 825 L 216 639" />-<glyph unicode="ï" glyph-name="idieresis" horiz-adv-x="252" d="M 126 15.8 L 126 479 M 42.4 702 L 42.4 652 L 92.8 652 L 92.8 702 L 42.4 702 M 279 702 L 279 652 L 329 652 L 329 702 L 279 702" />-<glyph unicode="ñ" glyph-name="ntilde" horiz-adv-x="558" d="M 126 15.8 L 126 482 L 126 369 L 170 413 L 211 450 L 243 469 L 290 482 L 321 485 L 369 472 L 397 454 L 419 422 L 438 378 L 438 15.8 M 161 646 L 185 675 L 214 688 L 249 688 L 282 659 L 320 631 L 342 622 L 368 626 L 388 644 L 408 664" />-<glyph unicode="ò" glyph-name="ograve" horiz-adv-x="561" d="M 287 18.9 L 290 18.9 L 353 34.6 L 413 75.6 L 450 139 L 466 208 L 469 274 L 460 334 L 438 387 L 406 428 L 362 466 L 315 482 L 271 485 L 220 476 L 173 447 L 132 400 L 110 356 L 91.4 290 L 91.4 239 L 97.6 180 L 113 126 L 151 75.6 L 195 40.9 L 243 22.1 L 287 18.9 M 186 772 L 277 649" />-<glyph unicode="ó" glyph-name="oacute" horiz-adv-x="561" d="M 287 18.9 L 290 18.9 L 353 34.6 L 413 75.6 L 450 139 L 466 208 L 469 274 L 460 334 L 438 387 L 406 428 L 362 466 L 315 482 L 271 485 L 220 476 L 173 447 L 132 400 L 110 356 L 91.4 290 L 91.4 239 L 97.6 180 L 113 126 L 151 75.6 L 195 40.9 L 243 22.1 L 287 18.9 M 407 804 L 281 634" />-<glyph unicode="ô" glyph-name="ocircumflex" horiz-adv-x="561" d="M 287 18.9 L 290 18.9 L 353 34.6 L 413 75.6 L 450 139 L 466 208 L 469 274 L 460 334 L 438 387 L 406 428 L 362 466 L 315 482 L 271 485 L 220 476 L 173 447 L 132 400 L 110 356 L 91.4 290 L 91.4 239 L 97.6 180 L 113 126 L 151 75.6 L 195 40.9 L 243 22.1 L 287 18.9 M 191 644 L 265 825 L 340 639" />-<glyph unicode="õ" glyph-name="otilde" horiz-adv-x="561" d="M 287 18.9 L 290 18.9 L 353 34.6 L 413 75.6 L 450 139 L 466 208 L 469 274 L 460 334 L 438 387 L 406 428 L 362 466 L 315 482 L 271 485 L 220 476 L 173 447 L 132 400 L 110 356 L 91.4 290 L 91.4 239 L 97.6 180 L 113 126 L 151 75.6 L 195 40.9 L 243 22.1 L 287 18.9 M 162 646 L 186 675 L 215 688 L 250 688 L 283 659 L 320 631 L 343 622 L 369 626 L 389 644 L 409 664" />-<glyph unicode="ö" glyph-name="odieresis" horiz-adv-x="561" d="M 287 18.9 L 290 18.9 L 353 34.6 L 413 75.6 L 450 139 L 466 208 L 469 274 L 460 334 L 438 387 L 406 428 L 362 466 L 315 482 L 271 485 L 220 476 L 173 447 L 132 400 L 110 356 L 91.4 290 L 91.4 239 L 97.6 180 L 113 126 L 151 75.6 L 195 40.9 L 243 22.1 L 287 18.9 M 197 702 L 197 652 L 247 652 L 247 702 L 197 702 M 433 702 L 433 652 L 484 652 L 484 702 L 433 702" />-<glyph unicode="÷" glyph-name="divide" horiz-adv-x="737" d="M 350 545 L 350 495 L 400 495 L 400 545 L 350 545 M 350 230 L 350 180 L 400 180 L 400 230 L 350 230 M 128 356 L 588 356" />-<glyph unicode="ø" glyph-name="oslash" horiz-adv-x="561" d="M 287 18.9 L 290 18.9 L 353 34.6 L 413 75.6 L 450 139 L 466 208 L 469 274 L 460 334 L 438 387 L 406 428 L 362 466 L 315 482 L 271 485 L 220 476 L 173 447 L 132 400 L 110 356 L 91.4 290 L 91.4 239 L 97.6 180 L 113 126 L 151 75.6 L 195 40.9 L 243 22.1 L 287 18.9 M 185 -55.1 L 395 540" />-<glyph unicode="ù" glyph-name="ugrave" horiz-adv-x="554" d="M 425 476 L 425 18.9 L 425 139 L 391 97.6 L 350 56.7 L 293 25.2 L 239 15.8 L 183 31.5 L 145 63 L 123 104 L 120 183 L 120 476 M 183 772 L 274 649" />-<glyph unicode="ú" glyph-name="uacute" horiz-adv-x="554" d="M 425 476 L 425 18.9 L 425 139 L 391 97.6 L 350 56.7 L 293 25.2 L 239 15.8 L 183 31.5 L 145 63 L 123 104 L 120 183 L 120 476 M 409 817 L 283 647" />-<glyph unicode="û" glyph-name="ucircumflex" horiz-adv-x="554" d="M 425 476 L 425 18.9 L 425 139 L 391 97.6 L 350 56.7 L 293 25.2 L 239 15.8 L 183 31.5 L 145 63 L 123 104 L 120 183 L 120 476 M 189 644 L 263 825 L 339 639" />-<glyph unicode="ü" glyph-name="udieresis" horiz-adv-x="554" d="M 425 476 L 425 18.9 L 425 139 L 391 97.6 L 350 56.7 L 293 25.2 L 239 15.8 L 183 31.5 L 145 63 L 123 104 L 120 183 L 120 476 M 182 702 L 182 652 L 233 652 L 233 702 L 182 702 M 441 702 L 441 652 L 492 652 L 492 702 L 441 702" />-<glyph unicode="ý" glyph-name="yacute" horiz-adv-x="460" d="M 53.5 479 L 243 3.15 M 406 476 L 211 -78.8 L 189 -126 L 158 -161 L 120 -183 L 53.5 -183 M 358 801 L 232 630" />-<glyph unicode="ÿ" glyph-name="ydieresis" horiz-adv-x="460" d="M 53.5 479 L 243 3.15 M 406 476 L 211 -78.8 L 189 -126 L 158 -161 L 120 -183 L 53.5 -183 M 139 702 L 139 652 L 189 652 L 189 702 L 139 702 M 390 702 L 390 652 L 441 652 L 441 702 L 390 702" />-<glyph unicode="–" glyph-name="endash" horiz-adv-x="491" d="M 85.1 261 L 392 261" />-<glyph unicode="—" glyph-name="emdash" horiz-adv-x="655" d="M 113 261 L 523 261" />-<glyph unicode="“" glyph-name="quotedblleft" horiz-adv-x="326" d="M 128 695 L 169 584 M 269 695 L 310 584" />-<glyph unicode="”" glyph-name="quotedblright" horiz-adv-x="326" d="M 126 695 L 85 584 M 268 695 L 227 584" />-<glyph unicode="‹" glyph-name="guilsinglleft" horiz-adv-x="183" d="M 145 -7.56 L 34 212 L 140 423" />-<glyph unicode="›" glyph-name="guilsinglright" horiz-adv-x="213" d="M 61.7 -10.1 L 173 239 L 37.8 426" />-<glyph unicode="€" glyph-name="Euro" horiz-adv-x="589" d="M 520 97.6 L 454 47.2 L 365 15.8 L 277 28.4 L 195 72.4 L 132 148 L 101 227 L 91.4 346 L 101 457 L 142 548 L 205 617 L 277 652 L 359 658 L 432 643 L 482 611 L 498 592 M 56.7 198 L 261 198 M 56.7 324 L 261 324" />-<glyph unicode="Ÿ" glyph-name="Ydieresis" horiz-adv-x="472" d="M 44.1 655 L 236 274 L 236 22.1 L 236 277 L 425 652 M 107 923 L 107 873 L 158 873 L 158 923 L 107 923 M 372 923 L 372 873 L 422 873 L 422 923 L 372 923" />-<glyph unicode="¸" glyph-name="cedilla" horiz-adv-x="589" d="M365.0 15.8L352.24393 -43.902925999999994C438.73366999999996 -47.72974599999999 405.24908999999997 -107.36712 339.24111 -107.36712" />-<glyph unicode="ç" glyph-name="ccedilla" horiz-adv-x="472" d="M277.71328 19.601733L268.48252 -23.666169C331.06968 -26.439542 306.83901000000003 -69.659938 259.07320000000004 -69.659938M413.0 72.4L362.0 34.60000000000001L287.0 18.90000000000001L217.0 28.40000000000001L145.0 75.60000000000001L104.0 142.0L88.2 220.0L88.2 302.0L113.0 378.0L164.0 438.0L224.0 472.0L290.0 482.0L346.0 472.0L384.0 454.0L400.0 435.0" />-<glyph unicode="£" glyph-name="sterling" horiz-adv-x="491" d="M56.7 261.0L261.0 261.0M447.0 31.5L132.0 31.5L132.0 390.08C132.0 559.43746 154.24526 652.20124 265.96571 655.0C377.68617 657.79876 379.93143 466.08000000000004 379.93143 466.08000000000004" />-<glyph unicode="ß" glyph-name="germandbls" horiz-adv-x="602" d="M128.91822 28.208918L128.91822 500.19508C133.23529 613.32871 192.36745 687.62914 283.72247 687.62914C375.07741999999996 687.62914 405.09824 638.04912 405.09824 574.009C405.09824 496.10541 297.91582 438.6562 297.91582 367.02946000000003C297.91582 268.83108000000004 507.84388 311.39449 507.84388 168.83781000000002C507.84388 26.281142000000017 286.90529000000004 -3.2111632999999813 223.55559 66.21377100000002" />-<glyph unicode="Ç" glyph-name="Ccedilla" horiz-adv-x="589" d="M365.0 15.8L352.24393 -43.902925999999994C438.73366999999996 -47.72974599999999 405.24908999999997 -107.36712 339.24111 -107.36712M520.0 97.6L454.0 47.199999999999996L365.0 15.799999999999997L277.0 28.4L195.0 72.4L132.0 148.0L101.0 227.0L91.4 346.0L101.0 457.0L142.0 548.0L205.0 617.0L277.0 652.0L359.0 658.0L432.0 643.0L482.0 611.0L498.0 592.0" />-</font>-</defs>-</svg>\ No newline at end of filediff --git a/styles/whiteboard/demo/fonts/EMSTech.svg b/styles/whiteboard/demo/fonts/EMSTech.svgdeleted file mode 100644index 8ab5d67..0000000--- a/styles/whiteboard/demo/fonts/EMSTech.svg+++ /dev/null@@ -1,217 +0,0 @@-<?xml version="1.0" encoding="UTF-8" ?>-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >--<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">--<metadata>--Font name: EMS Tech-License: SIL Open Font License http://scripts.sil.org/OFL-Created by: Sheldon B. Michaels-SVG font conversion by: Windell H. Oskay-A derivative of: Architects Daughter-Designer: Kimberly Geswein, Kimberly Geswein Fonts-Link: http://www.kimberlygeswein.com/-Google font page: https://fonts.google.com/specimen/Architects+Daughter-</metadata>-<defs>-<font id="EMSTech" horiz-adv-x="378" >-<font-face-font-family="EMS Tech"-units-per-em="1000"-ascent="800"-descent="-200"-cap-height="500"-x-height="300"-/>-<missing-glyph horiz-adv-x="378" />-<glyph unicode=" " glyph-name="space" horiz-adv-x="378" />-<glyph unicode="!" glyph-name="exclam" horiz-adv-x="88.2" d="M 122 684 L 118 202 M 137 25.2 L 115 9.45" />-<glyph unicode=""" glyph-name="quotedbl" horiz-adv-x="224" d="M 142 772 L 139 589 L 148 561 M 243 772 L 239 583 L 246 564" />-<glyph unicode="#" glyph-name="numbersign" horiz-adv-x="677" d="M 249 605 L 258 104 M 447 630 L 472 110 M 91.4 444 L 375 472 L 665 485 M 123 246 L 400 284 L 665 309" />-<glyph unicode="$" glyph-name="dollar" horiz-adv-x="586" d="M 561 592 L 356 583 L 246 558 L 151 510 L 110 460 L 107 413 L 135 365 L 205 346 L 384 346 L 510 359 L 583 340 L 598 299 L 583 252 L 504 205 L 419 161 L 296 139 L 154 132 M 318 816 L 387 -53.5" />-<glyph unicode="%" glyph-name="percent" horiz-adv-x="639" d="M 224 621 L 158 605 L 142 545 L 148 510 L 176 488 L 249 491 L 306 523 L 312 583 L 284 608 L 224 621 M 595 671 L 230 15.8 M 523 151 L 501 88.2 L 523 37.8 L 570 34.6 L 617 40.9 L 674 85.1 L 674 135 L 652 161 L 598 167 L 523 151" />-<glyph unicode="&" glyph-name="ampersand" horiz-adv-x="728" d="M 750 309 L 690 233 L 605 164 L 488 88.2 L 375 31.5 L 271 3.15 L 186 6.3 L 142 28.4 L 145 91.4 L 170 145 L 334 362 L 400 482 L 416 548 L 425 617 L 410 665 L 381 687 L 337 680 L 280 649 L 239 598 L 220 554 L 217 466 L 233 397 L 277 331 L 315 284 L 391 214 L 498 123 L 602 66.1 L 662 40.9 L 687 40.9" />-<glyph unicode="'" glyph-name="quotesingle" horiz-adv-x="142" d="M 148 611 L 107 479" />-<glyph unicode="(" glyph-name="parenleft" horiz-adv-x="299" d="M 299 813 L 230 734 L 173 624 L 135 517 L 113 400 L 104 299 L 123 192 L 161 66.1 L 217 -34.6" />-<glyph unicode=")" glyph-name="parenright" horiz-adv-x="353" d="M 113 788 L 208 709 L 268 611 L 321 485 L 343 381 L 346 287 L 331 195 L 293 113 L 265 59.9 L 195 -18.9" />-<glyph unicode="*" glyph-name="asterisk" horiz-adv-x="536" d="M 324 419 L 410 668 L 372 428 L 573 488 L 365 397 L 416 154 L 315 359 L 176 167 L 290 406 L 135 529 L 324 444" />-<glyph unicode="+" glyph-name="plus" horiz-adv-x="551" d="M 306 479 L 318 306 L 337 126 L 346 53.6 M 101 255 L 192 274 L 302 293 L 422 309 L 558 312" />-<glyph unicode="," glyph-name="comma" horiz-adv-x="167" d="M 158 50.4 L 113 -50.4 L 85 -88.2" />-<glyph unicode="-" glyph-name="hyphen" horiz-adv-x="318" d="M 110 233 L 227 252 L 309 261" />-<glyph unicode="." glyph-name="period" horiz-adv-x="110" d="M 97.6 9.45 L 113 12.6" />-<glyph unicode="/" glyph-name="slash" horiz-adv-x="488" d="M 532 674 L 410 482 L 334 353 L 271 261 L 195 145 L 104 6.3" />-<glyph unicode="0" glyph-name="zero" horiz-adv-x="646" d="M 400 668 L 466 662 L 548 627 L 611 551 L 643 466 L 658 369 L 643 246 L 598 148 L 517 59.9 L 428 18.9 L 293 9.45 L 180 40.9 L 120 104 L 94.5 183 L 110 324 L 148 450 L 214 567 L 271 627 L 337 665 L 400 668" />-<glyph unicode="1" glyph-name="one" horiz-adv-x="239" d="M 173 671 L 154 15.8" />-<glyph unicode="2" glyph-name="two" horiz-adv-x="551" d="M 117 558 L 186 617 L 258 658 L 346 680 L 397 680 L 447 646 L 466 595 L 457 523 L 432 450 L 375 340 L 299 217 L 208 107 L 129 18.9 L 230 18.9 L 356 31.5 L 463 53.6 L 561 78.8" />-<glyph unicode="3" glyph-name="three" horiz-adv-x="523" d="M 101 608 L 139 614 L 268 658 L 362 674 L 441 677 L 488 668 L 513 633 L 510 580 L 479 529 L 391 454 L 280 378 L 186 328 L 309 378 L 416 394 L 485 369 L 513 328 L 510 265 L 457 183 L 372 104 L 284 47.2 L 176 9.45 L 139 3.15" />-<glyph unicode="4" glyph-name="four" horiz-adv-x="517" d="M 432 0 L 428 532 L 419 639 L 394 674 L 324 621 L 164 416 L 101 328 L 406 340 L 539 362" />-<glyph unicode="5" glyph-name="five" horiz-adv-x="548" d="M 580 668 L 447 627 L 318 592 L 230 583 L 126 573 L 132 677 L 110 331 L 180 337 L 299 359 L 413 362 L 495 353 L 554 293 L 564 217 L 545 151 L 469 91.4 L 372 47.2 L 261 22.1 L 113 9.45 L 113 37.8" />-<glyph unicode="6" glyph-name="six" horiz-adv-x="671" d="M 438 668 L 356 643 L 280 586 L 211 504 L 161 432 L 126 334 L 123 233 L 139 161 L 195 81.9 L 277 28.4 L 337 9.45 L 406 6.3 L 498 15.8 L 595 66.1 L 662 145 L 680 192 L 677 249 L 652 287 L 598 290 L 513 255 L 425 186 L 369 139 L 318 88.2 L 284 47.2" />-<glyph unicode="7" glyph-name="seven" horiz-adv-x="567" d="M 97.6 636 L 246 639 L 422 671 L 576 687 L 520 621 L 444 472 L 384 340 L 353 208 L 337 132 L 331 47.2" />-<glyph unicode="8" glyph-name="eight" horiz-adv-x="658" d="M 397 668 L 293 621 L 233 561 L 211 488 L 224 432 L 268 394 L 328 378 L 419 406 L 476 422 L 564 432 L 649 397 L 706 315 L 699 224 L 633 123 L 545 53.6 L 444 15.8 L 321 9.45 L 227 28.4 L 151 101 L 139 173 L 164 239 L 217 306 L 284 362 L 324 381 L 532 432 L 611 485 L 665 529 L 671 586 L 646 633 L 608 658 L 510 680 L 397 668" />-<glyph unicode="9" glyph-name="nine" horiz-adv-x="532" d="M 576 454 L 454 422 L 353 406 L 249 400 L 167 416 L 120 447 L 117 498 L 145 558 L 239 630 L 340 662 L 435 671 L 495 643 L 542 595 L 573 523 L 570 400 L 545 302 L 504 205 L 444 107 L 375 47.2 L 318 18.9" />-<glyph unicode=":" glyph-name="colon" horiz-adv-x="161" d="M 120 343 L 142 340 M 164 117 L 183 117" />-<glyph unicode=";" glyph-name="semicolon" horiz-adv-x="91.3" d="M 94.5 331 L 110 331 M 117 59.9 L 91.4 -56.7 L 72.5 -110 L 50.4 -151" />-<glyph unicode="<" glyph-name="less" horiz-adv-x="504" d="M 463 441 L 265 284 L 195 224 L 268 167 L 391 117 L 438 97.7 L 476 78.8" />-<glyph unicode="=" glyph-name="equal" horiz-adv-x="498" d="M 132 299 L 438 337 M 139 158 L 334 186 L 460 208" />-<glyph unicode=">" glyph-name="greater" horiz-adv-x="498" d="M 158 419 L 268 378 L 346 343 L 460 306 L 410 258 L 331 198 L 268 151 L 176 81.9" />-<glyph unicode="?" glyph-name="question" horiz-adv-x="517" d="M 94.5 646 L 195 668 L 306 680 L 384 680 L 466 655 L 520 621 L 536 576 L 529 526 L 485 482 L 428 438 L 321 365 L 214 315 L 236 290 L 299 277 L 353 277 M 321 18.9 L 346 18.9" />-<glyph unicode="@" glyph-name="at" horiz-adv-x="1137.2" d="M 718 472 L 639 485 L 513 447 L 457 391 L 441 346 L 447 296 L 491 271 L 567 293 L 646 346 L 690 387 L 718 435 L 756 378 L 810 346 L 879 356 L 936 387 L 951 425 L 945 501 L 901 580 L 838 630 L 706 680 L 551 684 L 419 646 L 321 589 L 249 523 L 189 432 L 142 337 L 126 224 L 167 117 L 265 47.2 L 387 12.6 L 513 -3.15 L 662 9.45 L 825 37.8 L 958 78.8 L 1061.6 135 L 1137.2 205" />-<glyph unicode="A" glyph-name="A" horiz-adv-x="674" d="M 107 3.15 L 227 318 L 302 526 L 356 671 L 372 668 L 432 570 L 520 391 L 583 233 L 639 94.5 L 687 9.45 M 195 243 L 312 268 L 447 309 L 561 331 L 668 356" />-<glyph unicode="B" glyph-name="B" horiz-adv-x="756" d="M 135 655 L 139 369 L 151 192 L 173 6.3 L 334 18.9 L 504 56.7 L 639 110 L 734 170 L 750 230 L 728 293 L 639 343 L 545 356 L 438 369 L 315 359 L 180 346 L 372 397 L 495 450 L 580 501 L 608 551 L 602 605 L 570 630 L 491 665 L 378 684 L 265 687 L 94.5 677" />-<glyph unicode="C" glyph-name="C" horiz-adv-x="747" d="M 580 646 L 542 680 L 447 693 L 328 655 L 220 580 L 154 485 L 120 403 L 104 312 L 101 217 L 151 129 L 214 63 L 290 28.4 L 391 15.8 L 513 34.6 L 611 85.1 L 696 151 L 756 202" />-<glyph unicode="D" glyph-name="D" horiz-adv-x="684" d="M 123 674 L 126 0 L 217 12.6 L 328 47.2 L 444 107 L 539 173 L 614 249 L 674 337 L 693 410 L 684 491 L 617 570 L 507 630 L 400 658 L 290 665 L 208 655 L 126 636" />-<glyph unicode="E" glyph-name="E" horiz-adv-x="621" d="M 539 668 L 129 655 L 126 309 L 548 356 L 129 309 L 142 22.1 L 627 53.6" />-<glyph unicode="F" glyph-name="F" horiz-adv-x="734" d="M 759 662 L 542 649 L 394 624 L 258 611 L 154 589 L 135 680 L 167 529 L 195 372 L 195 284 L 132 255 L 252 302 L 482 340 L 693 375 L 249 302 L 195 277 L 192 9.45" />-<glyph unicode="G" glyph-name="G" horiz-adv-x="747" d="M 548 680 L 457 671 L 359 624 L 287 561 L 230 501 L 170 394 L 129 280 L 123 176 L 142 101 L 189 47.2 L 280 9.45 L 375 25.2 L 488 78.8 L 561 132 L 617 186 L 630 211 L 636 403 L 331 350 L 743 419 L 639 400 L 639 -44.1" />-<glyph unicode="H" glyph-name="H" horiz-adv-x="602" d="M 154 677 L 142 343 L 142 189 L 164 0 L 145 328 L 91.4 309 L 220 334 L 365 350 L 548 359 L 548 674 L 545 280 L 558 129 L 573 50.4 L 592 12.6" />-<glyph unicode="I" glyph-name="I" horiz-adv-x="107" d="M 129 671 L 126 410 L 123 277 L 126 164 L 126 22.1" />-<glyph unicode="J" glyph-name="J" horiz-adv-x="548" d="M 532 671 L 539 309 L 532 173 L 510 88.2 L 479 44.1 L 416 18.9 L 340 22.1 L 268 34.6 L 183 63 L 126 107 L 88.2 145 L 81.9 173" />-<glyph unicode="K" glyph-name="K" horiz-adv-x="605" d="M 142 655 L 126 422 L 123 268 L 123 9.45 M 595 665 L 428 536 L 315 450 L 198 387 L 145 346 L 126 265 L 239 220 L 387 154 L 498 101 L 586 44.1 L 627 18.9" />-<glyph unicode="L" glyph-name="L" horiz-adv-x="617" d="M 148 671 L 148 665 L 151 391 L 151 227 L 142 85.1 L 139 28.4 L 340 28.4 L 627 22.1" />-<glyph unicode="M" glyph-name="M" horiz-adv-x="841" d="M 113 28.4 L 145 346 L 170 573 L 192 662 L 211 668 L 255 636 L 331 482 L 410 331 L 479 189 L 523 252 L 639 469 L 743 671 L 765 655 L 788 564 L 810 410 L 835 246 L 860 12.6" />-<glyph unicode="N" glyph-name="N" horiz-adv-x="655" d="M 120 28.4 L 129 243 L 132 428 L 132 627 L 148 658 L 255 542 L 381 378 L 545 167 L 633 47.2 L 636 164 L 636 391 L 633 677" />-<glyph unicode="O" glyph-name="O" horiz-adv-x="693" d="M 403 677 L 321 662 L 233 605 L 164 520 L 110 410 L 104 280 L 148 145 L 217 78.8 L 293 37.8 L 400 28.4 L 532 40.9 L 639 113 L 706 230 L 709 350 L 693 466 L 630 564 L 592 617 L 532 652 L 460 677 L 403 677" />-<glyph unicode="P" glyph-name="P" horiz-adv-x="677" d="M 145 28.4 L 145 205 L 154 450 L 161 551 L 189 621 L 277 665 L 413 687 L 548 684 L 665 639 L 699 602 L 696 526 L 655 463 L 564 406 L 450 372 L 343 356 L 151 350" />-<glyph unicode="Q" glyph-name="Q" horiz-adv-x="762" d="M 633 107 L 677 158 L 712 265 L 724 403 L 702 523 L 627 611 L 510 668 L 403 665 L 306 624 L 239 558 L 173 463 L 139 353 L 113 246 L 145 117 L 217 50.4 L 302 6.3 L 403 -9.45 L 488 3.15 L 561 31.5 L 643 97.7 L 747 31.5 L 586 142 L 441 274 L 422 277" />-<glyph unicode="R" glyph-name="R" horiz-adv-x="693" d="M 123 665 L 132 353 L 139 22.1 L 148 422 L 129 605 L 230 665 L 350 684 L 447 671 L 523 668 L 580 655 L 614 621 L 624 580 L 573 539 L 482 504 L 397 466 L 302 435 L 145 387 L 139 362 L 255 299 L 346 236 L 485 154 L 699 12.6 L 721 9.45" />-<glyph unicode="S" glyph-name="S" horiz-adv-x="674" d="M 630 665 L 501 643 L 369 608 L 249 573 L 198 532 L 173 501 L 164 472 L 189 428 L 321 384 L 444 340 L 570 290 L 639 252 L 680 217 L 677 183 L 624 120 L 501 56.7 L 356 9.45 L 249 3.15 L 173 12.6 L 129 34.6 L 113 66.1" />-<glyph unicode="T" glyph-name="T" horiz-adv-x="652" d="M 75.6 671 L 268 662 L 438 652 L 605 652 L 684 671 M 331 652 L 309 337 L 299 170 L 299 28.4" />-<glyph unicode="U" glyph-name="U" horiz-adv-x="580" d="M 148 655 L 110 441 L 91.4 277 L 91.4 173 L 129 85.1 L 176 31.5 L 290 22.1 L 400 72.4 L 488 154 L 542 306 L 567 438 L 561 662 L 561 25.2" />-<glyph unicode="V" glyph-name="V" horiz-adv-x="633" d="M 85 662 L 365 44.1 L 403 37.8 L 526 350 L 668 671" />-<glyph unicode="W" glyph-name="W" horiz-adv-x="1017.4" d="M 110 671 L 372 31.5 L 450 211 L 598 551 L 639 510 L 709 400 L 819 176 L 895 34.6 L 945 176 L 989 369 L 1039.5 662" />-<glyph unicode="X" glyph-name="X" horiz-adv-x="639" d="M 104 668 L 284 422 L 510 186 L 665 44.1 M 649 684 L 419 391 L 261 202 L 132 34.6 L 123 31.5" />-<glyph unicode="Y" glyph-name="Y" horiz-adv-x="536" d="M 110 671 L 180 608 L 274 501 L 416 346 L 536 671 L 567 699 L 539 671 L 403 299 L 315 18.9" />-<glyph unicode="Z" glyph-name="Z" horiz-adv-x="658" d="M 123 668 L 684 671 L 602 545 L 384 284 L 192 56.7 L 173 34.6 L 274 9.45 L 384 6.3 L 709 25.2" />-<glyph unicode="[" glyph-name="bracketleft" horiz-adv-x="450" d="M 375 847 L 123 788 L 139 328 L 170 -63 L 438 -22.1" />-<glyph unicode="\" glyph-name="backslash" horiz-adv-x="517" d="M 85 589 L 277 315 L 416 132 L 523 12.6" />-<glyph unicode="]" glyph-name="bracketright" horiz-adv-x="576" d="M 101 765 L 249 794 L 422 816 L 479 822 L 488 510 L 498 296 L 507 56.7 L 513 -50.4 L 416 -72.5 L 299 -85 L 205 -91.4" />-<glyph unicode="^" glyph-name="asciicircum" horiz-adv-x="293" d="M 104 340 L 129 391 L 217 454 L 274 419 L 340 346" />-<glyph unicode="_" glyph-name="underscore" horiz-adv-x="740" d="M 142 3.15 L 306 31.5 L 479 44.1 L 731 66.1" />-<glyph unicode="`" glyph-name="grave" horiz-adv-x="142" d="M 104 605 L 170 551" />-<glyph unicode="a" glyph-name="a" horiz-adv-x="532" d="M 536 277 L 479 151 L 387 66.1 L 321 28.4 L 258 6.3 L 170 15.8 L 123 47.2 L 110 145 L 158 243 L 220 337 L 321 406 L 397 441 L 454 441 L 523 428 L 536 381 L 548 3.15" />-<glyph unicode="b" glyph-name="b" horiz-adv-x="589" d="M 145 671 L 151 40.9 L 198 22.1 L 280 37.8 L 403 88.2 L 554 208 L 614 312 L 636 394 L 617 438 L 570 457 L 460 447 L 362 381 L 255 306 L 158 167" />-<glyph unicode="c" glyph-name="c" horiz-adv-x="602" d="M 536 416 L 504 444 L 410 454 L 309 416 L 224 353 L 132 233 L 104 107 L 164 34.6 L 287 -3.15 L 419 3.15 L 513 25.2 L 614 78.8" />-<glyph unicode="d" glyph-name="d" horiz-adv-x="558" d="M 554 652 L 539 387 L 532 217 L 539 78.8 L 542 18.9 L 536 183 L 444 85.1 L 296 18.9 L 192 12.6 L 120 53.6 L 97.6 161 L 151 265 L 280 353 L 397 372 L 485 359 L 542 299" />-<glyph unicode="e" glyph-name="e" horiz-adv-x="532" d="M 139 296 L 265 299 L 410 302 L 504 318 L 520 353 L 507 387 L 425 460 L 321 460 L 227 425 L 161 365 L 113 243 L 97.6 170 L 94.5 120 L 148 50.4 L 236 6.3 L 337 12.6 L 444 37.8 L 520 75.6 L 548 110" />-<glyph unicode="f" glyph-name="f" horiz-adv-x="602" d="M 611 542 L 523 636 L 419 684 L 350 690 L 268 636 L 230 551 L 230 460 L 246 375 L 280 183 L 293 25.2 L 268 255 L 81.9 227 L 435 274 L 598 296" />-<glyph unicode="g" glyph-name="g" horiz-adv-x="551" d="M 554 261 L 488 148 L 369 53.6 L 239 6.3 L 148 6.3 L 120 53.6 L 158 173 L 252 315 L 359 403 L 428 438 L 498 428 L 554 384 L 570 -63 L 558 -214 L 523 -309 L 479 -372 L 438 -406 L 384 -416 L 343 -419 L 230 -416" />-<glyph unicode="h" glyph-name="h" horiz-adv-x="517" d="M 139 668 L 129 356 L 139 6.3 L 164 271 L 243 372 L 334 428 L 416 425 L 472 378 L 529 271 L 539 167 L 542 28.4" />-<glyph unicode="i" glyph-name="i" horiz-adv-x="252" d="M 180 636 L 198 636 M 205 447 L 214 44.1 L 233 25.2" />-<glyph unicode="j" glyph-name="j" horiz-adv-x="167" d="M 72.5 633 L 88.2 655 M 94.5 491 L 94.5 312 L 107 104 L 117 -195 L 107 -312 L 75.6 -359 L 37.8 -372 L 9.45 -372 L -72.4 -353 L -123 -312" />-<glyph unicode="k" glyph-name="k" horiz-adv-x="501" d="M 91.4 674 L 110 293 L 110 12.6 L 117 246 L 205 321 L 432 472 L 126 258 L 246 170 L 517 22.1" />-<glyph unicode="l" glyph-name="l" horiz-adv-x="202" d="M 167 690 L 176 249 L 183 40.9" />-<glyph unicode="m" glyph-name="m" horiz-adv-x="847" d="M 123 463 L 129 3.15 L 167 318 L 230 413 L 340 460 L 406 463 L 450 435 L 485 350 L 472 3.15 L 507 324 L 583 410 L 690 460 L 781 460 L 838 435 L 850 356 L 854 208 L 860 12.6" />-<glyph unicode="n" glyph-name="n" horiz-adv-x="485" d="M 91.4 450 L 94.5 18.9 L 91.4 324 L 208 400 L 321 454 L 394 460 L 447 454 L 482 416 L 507 306 L 504 9.45" />-<glyph unicode="o" glyph-name="o" horiz-adv-x="554" d="M 346 469 L 220 413 L 154 318 L 110 224 L 132 97.7 L 173 28.4 L 306 6.3 L 416 34.6 L 529 107 L 592 224 L 570 369 L 520 425 L 463 460 L 346 469" />-<glyph unicode="p" glyph-name="p" horiz-adv-x="517" d="M 107 441 L 113 -378 L 110 378 L 224 441 L 353 469 L 498 447 L 545 378 L 536 271 L 491 198 L 400 120 L 306 72.4 L 117 25.2" />-<glyph unicode="q" glyph-name="q" horiz-adv-x="517" d="M 526 406 L 498 454 L 428 463 L 302 413 L 211 328 L 148 227 L 117 135 L 126 50.4 L 208 3.15 L 299 9.45 L 406 56.7 L 463 113 L 501 180 L 529 353 L 545 -406" />-<glyph unicode="r" glyph-name="r" horiz-adv-x="523" d="M 129 469 L 117 15.8 L 148 271 L 224 369 L 321 425 L 400 457 L 435 460 L 539 450 L 551 441" />-<glyph unicode="s" glyph-name="s" horiz-adv-x="466" d="M 501 428 L 469 460 L 375 460 L 268 438 L 170 387 L 129 321 L 129 249 L 170 217 L 261 217 L 359 236 L 422 233 L 472 214 L 504 186 L 495 139 L 397 63 L 271 28.4 L 198 0 L 167 3.15" />-<glyph unicode="t" glyph-name="t" horiz-adv-x="419" d="M 277 671 L 293 6.3 L 284 378 L 91.4 378 L 450 381" />-<glyph unicode="u" glyph-name="u" horiz-adv-x="501" d="M 135 460 L 110 315 L 101 148 L 139 50.4 L 217 9.45 L 350 18.9 L 425 66.1 L 466 85.1 L 507 142 L 536 202 L 513 472 L 545 12.6" />-<glyph unicode="v" glyph-name="v" horiz-adv-x="539" d="M 123 466 L 337 56.7 L 362 15.8 L 425 167 L 561 450" />-<glyph unicode="w" glyph-name="w" horiz-adv-x="775" d="M 110 460 L 180 236 L 249 97.7 L 296 25.2 L 315 37.8 L 403 312 L 419 372 L 460 343 L 621 47.2 L 662 22.1 L 806 457" />-<glyph unicode="x" glyph-name="x" horiz-adv-x="485" d="M 104 447 L 321 214 L 523 12.6 L 315 214 L 485 447 L 321 211 L 195 69.3 L 126 3.15" />-<glyph unicode="y" glyph-name="y" horiz-adv-x="589" d="M 113 425 L 438 -37.8 L 617 435 L 290 -425" />-<glyph unicode="z" glyph-name="z" horiz-adv-x="504" d="M 120 454 L 132 454 L 520 450 L 539 435 L 438 321 L 255 158 L 145 50.4 L 135 18.9 L 239 18.9 L 532 18.9 L 558 9.45" />-<glyph unicode="{" glyph-name="braceleft" horiz-adv-x="350" d="M 419 822 L 369 819 L 312 788 L 280 731 L 271 655 L 277 526 L 271 507 L 189 438 L 161 403 L 158 362 L 176 318 L 255 258 L 299 220 L 302 94.5 L 321 -12.6 L 365 -69.3 L 416 -97.6 L 463 -104" />-<glyph unicode="|" glyph-name="bar" horiz-adv-x="139" d="M 139 715 L 148 -37.8" />-<glyph unicode="}" glyph-name="braceright" horiz-adv-x="413" d="M 154 822 L 233 803 L 284 753 L 299 621 L 287 498 L 369 447 L 425 400 L 438 356 L 406 331 L 284 236 L 287 139 L 277 25.2 L 239 -41 L 192 -75.6 L 110 -101" />-<glyph unicode="~" glyph-name="asciitilde" horiz-adv-x="450" d="M 110 284 L 148 343 L 192 375 L 227 375 L 280 337 L 346 284 L 397 293 L 438 309 L 491 387" />-<glyph unicode=" " glyph-name="nbspace" horiz-adv-x="378" />-<glyph unicode="¡" glyph-name="exclamdown" horiz-adv-x="88.2" d="M 113 9.45 L 117 491 M 97.6 668 L 120 684" />-<glyph unicode="¢" glyph-name="cent" horiz-adv-x="139" d="M 536 416 L 504 444 L 410 454 L 309 416 L 224 353 L 132 233 L 104 107 L 164 34.6 L 287 -3.15 L 419 3.15 L 513 25.2 L 614 78.8 M 328 652 L 337 -101" />-<glyph unicode="¥" glyph-name="yen" horiz-adv-x="536" d="M 110 671 L 180 608 L 274 501 L 416 346 L 536 671 L 567 699 L 539 671 L 403 299 L 315 18.9 M 299 170 L 416 189 L 498 198 M 299 296 L 416 315 L 498 324" />-<glyph unicode="¦" glyph-name="brokenbar" horiz-adv-x="41.6" d="M 287 215 L 290 -11.3 M 287 687 L 290 461" />-<glyph unicode="¨" glyph-name="dieresis" horiz-adv-x="567" d=" M 274 656 L 289 659 M 489 638 L 505 641" />-<glyph unicode="©" glyph-name="copyright" horiz-adv-x="693" d="M 403 677 L 321 662 L 233 605 L 164 520 L 110 410 L 104 280 L 148 145 L 217 78.8 L 293 37.8 L 400 28.4 L 532 40.9 L 639 113 L 706 230 L 709 350 L 693 466 L 630 564 L 592 617 L 532 652 L 460 677 L 403 677 M 479 480 L 460 498 L 413 504 L 353 485 L 299 447 L 266 400 L 249 359 L 241 313 L 239 266 L 265 222 L 296 189 L 334 172 L 384 165 L 446 175 L 495 200 L 537 233 L 567 258" />-<glyph unicode="ª" glyph-name="ordfeminine" horiz-adv-x="266" d="M 410 769 L 381 706 L 335 663 L 302 644 L 271 633 L 227 638 L 203 654 L 197 702 L 220 751 L 252 799 L 302 833 L 340 850 L 369 850 L 403 844 L 410 821 L 416 632" />-<glyph unicode="«" glyph-name="guillemotleft" horiz-adv-x="302" d="M 185 353 L 106 227 L 78.1 179 L 107 134 L 156 93.2 L 175 78.1 L 190 63 M 311 353 L 232 227 L 204 179 L 233 134 L 282 93.2 L 301 78.1 L 316 63" />-<glyph unicode="®" glyph-name="registered" horiz-adv-x="693" d="M 403 677 L 321 662 L 233 605 L 164 520 L 110 410 L 104 280 L 148 145 L 217 78.8 L 293 37.8 L 400 28.4 L 532 40.9 L 639 113 L 706 230 L 709 350 L 693 466 L 630 564 L 592 617 L 532 652 L 460 677 L 403 677 M 250 490 L 255 334 L 258 169 L 263 369 L 254 460 L 304 490 L 364 499 L 413 493 L 450 491 L 479 485 L 496 468 L 501 447 L 476 427 L 430 410 L 387 391 L 340 375 L 261 351 L 258 339 L 317 307 L 362 276 L 432 235 L 539 164 L 550 162" />-<glyph unicode="°" glyph-name="degree" horiz-adv-x="249" d="M 253 770 L 229 765 L 202 748 L 181 723 L 165 690 L 163 651 L 177 610 L 198 591 L 220 578 L 252 576 L 292 579 L 324 601 L 344 636 L 345 672 L 340 707 L 321 736 L 310 752 L 292 763 L 270 770 L 253 770" />-<glyph unicode="±" glyph-name="plusminus" horiz-adv-x="441" d="M 542 -2.52 L 635 12.6 L 701 20.2 M 698 572 L 708 433 L 723 290 L 731 232 M 534 393 L 607 408 L 696 423 L 791 436 L 900 438" />-<glyph unicode="²" glyph-name="twosuperior" horiz-adv-x="276" d="M 200 909 L 235 939 L 271 959 L 315 970 L 340 970 L 365 953 L 375 928 L 370 891 L 358 855 L 329 800 L 291 739 L 246 684 L 206 639 L 257 639 L 320 646 L 373 657 L 422 669" />-<glyph unicode="³" glyph-name="threesuperior" horiz-adv-x="261" d="M 192 934 L 211 937 L 276 959 L 323 967 L 362 969 L 386 964 L 398 947 L 397 920 L 381 895 L 337 857 L 282 819 L 235 794 L 296 819 L 350 827 L 384 814 L 398 794 L 397 762 L 370 721 L 328 682 L 284 654 L 230 635 L 211 632" />-<glyph unicode="´" glyph-name="acute" horiz-adv-x="378" d=" M 371 841 L 277 646" />-<glyph unicode="·" glyph-name="middot" horiz-adv-x="132" d="M 193 314 L 212 318" />-<glyph unicode="¹" glyph-name="onesuperior" horiz-adv-x="120" d="M 228 965 L 219 638" />-<glyph unicode="º" glyph-name="ordmasculine" horiz-adv-x="249" d="M 253 770 L 229 765 L 202 748 L 181 723 L 165 690 L 163 651 L 177 610 L 198 591 L 220 578 L 252 576 L 292 579 L 324 601 L 344 636 L 345 672 L 340 707 L 321 736 L 310 752 L 292 763 L 270 770 L 253 770" />-<glyph unicode="»" glyph-name="guillemotright" horiz-adv-x="299" d="M 63 335 L 107 302 L 139 275 L 184 244 L 164 207 L 132 159 L 107 121 L 70.6 65.5 M 189 335 L 233 302 L 265 275 L 310 244 L 290 207 L 258 159 L 233 121 L 197 65.5" />-<glyph unicode="¼" glyph-name="onequarter" horiz-adv-x="408" d="M 104 781 L 92.6 387 M 627 674 L 504 482 L 428 353 L 365 261 L 290 145 L 198 6.3 M 731 0 L 730 319 L 724 384 L 709 404 L 667 372 L 571 249 L 533 197 L 716 204 L 796 217" />-<glyph unicode="½" glyph-name="onehalf" horiz-adv-x="427" d="M 104 781 L 92.6 387 M 627 674 L 504 482 L 428 353 L 365 261 L 290 145 L 198 6.3 M 542 335 L 584 370 L 627 395 L 680 408 L 711 408 L 741 387 L 752 357 L 747 314 L 731 270 L 697 204 L 652 130 L 597 64.3 L 550 11.3 L 610 11.3 L 686 18.9 L 750 32.1 L 809 47.2" />-<glyph unicode="¾" glyph-name="threequarters" horiz-adv-x="561" d="M 60.5 743 L 83.2 747 L 161 773 L 217 782 L 265 784 L 293 779 L 308 758 L 306 726 L 287 696 L 234 650 L 168 605 L 112 575 L 185 605 L 249 614 L 291 599 L 308 575 L 306 537 L 274 488 L 223 440 L 170 406 L 106 384 L 83.2 380 M 627 674 L 504 482 L 428 353 L 365 261 L 290 145 L 198 6.3 M 731 0 L 730 319 L 724 384 L 709 404 L 667 372 L 571 249 L 533 197 L 716 204 L 796 217" />-<glyph unicode="¿" glyph-name="questiondown" horiz-adv-x="517" d="M 536 53.5 L 435 31.5 L 324 18.9 L 246 18.9 L 164 44.1 L 110 78.7 L 94.5 123 L 101 173 L 145 217 L 202 261 L 309 334 L 416 384 L 394 409 L 331 422 L 277 422 M 309 680 L 284 680" />-<glyph unicode="À" glyph-name="Agrave" horiz-adv-x="674" d="M 107 3.15 L 227 318 L 302 526 L 356 671 L 372 668 L 432 570 L 520 391 L 583 233 L 639 94.5 L 687 9.45 M 195 243 L 312 268 L 447 309 L 561 331 L 668 356 M 190 1124.2 L 206 1073.8 L 291 945" />-<glyph unicode="Á" glyph-name="Aacute" horiz-adv-x="674" d="M 107 3.15 L 227 318 L 302 526 L 356 671 L 372 668 L 432 570 L 520 391 L 583 233 L 639 94.5 L 687 9.45 M 195 243 L 312 268 L 447 309 L 561 331 L 668 356 M 478 1093.1 L 384 898" />-<glyph unicode="Â" glyph-name="Acircumflex" horiz-adv-x="674" d="M 107 3.15 L 227 318 L 302 526 L 356 671 L 372 668 L 432 570 L 520 391 L 583 233 L 639 94.5 L 687 9.45 M 195 243 L 312 268 L 447 309 L 561 331 L 668 356 M 258 817 L 278 858 L 349 908 L 395 881 L 448 822" />-<glyph unicode="Ã" glyph-name="Atilde" horiz-adv-x="674" d="M 107 3.15 L 227 318 L 302 526 L 356 671 L 372 668 L 432 570 L 520 391 L 583 233 L 639 94.5 L 687 9.45 M 195 243 L 312 268 L 447 309 L 561 331 L 668 356 M 261 803 L 289 846 L 320 869 L 345 869 L 384 842 L 432 803 L 468 810 L 498 821 L 537 878" />-<glyph unicode="Ä" glyph-name="Adieresis" horiz-adv-x="674" d="M 107 3.15 L 227 318 L 302 526 L 356 671 L 372 668 L 432 570 L 520 391 L 583 233 L 639 94.5 L 687 9.45 M 195 243 L 312 268 L 447 309 L 561 331 L 668 356 M 250 884 L 265 887 M 474 865 L 490 869" />-<glyph unicode="Å" glyph-name="Aring" horiz-adv-x="674" d="M 107 3.15 L 227 318 L 302 526 L 356 671 L 372 668 L 432 570 L 520 391 L 583 233 L 639 94.5 L 687 9.45 M 195 243 L 312 268 L 447 309 L 561 331 L 668 356 M 370 1053.7 L 346 1048.9 L 319 1031.9 L 299 1006.4 L 283 973 L 281 935 L 294 894 L 315 874 L 337 862 L 369 859 L 409 863 L 441 885 L 461 919 L 462 955 L 457 990 L 438 1019.7 L 427 1035.7 L 409 1046.1 L 387 1053.7 L 370 1053.7" />-<glyph unicode="È" glyph-name="Egrave" horiz-adv-x="621" d="M 539 668 L 129 655 L 126 309 L 548 356 L 129 309 L 142 22.1 L 627 53.6 M 158 1126.0 L 174 1075.6 L 259 946" />-<glyph unicode="É" glyph-name="Eacute" horiz-adv-x="621" d="M 539 668 L 129 655 L 126 309 L 548 356 L 129 309 L 142 22.1 L 627 53.6 M 473 1057.5 L 378 862" />-<glyph unicode="Ê" glyph-name="Ecircumflex" horiz-adv-x="621" d="M 539 668 L 129 655 L 126 309 L 548 356 L 129 309 L 142 22.1 L 627 53.6 M 226 769 L 245 808 L 313 856 L 357 829 L 407 774" />-<glyph unicode="Ë" glyph-name="Edieresis" horiz-adv-x="621" d="M 539 668 L 129 655 L 126 309 L 548 356 L 129 309 L 142 22.1 L 627 53.6 M 254 844 L 270 847 M 520 835 L 536 838" />-<glyph unicode="Ì" glyph-name="Igrave" horiz-adv-x="107" d="M 129 671 L 126 410 L 123 277 L 126 164 L 126 22.1 M -91.6 1115.2 L -75.9 1064.8 L 9.16 936" />-<glyph unicode="Í" glyph-name="Iacute" horiz-adv-x="107" d="M 129 671 L 126 410 L 123 277 L 126 164 L 126 22.1 M 211 1037.3 L 117 842" />-<glyph unicode="Î" glyph-name="Icircumflex" horiz-adv-x="107" d="M 129 671 L 126 410 L 123 277 L 126 164 L 126 22.1 M 37.4 811 L 57.4 851 L 128 901 L 173 874 L 226 816" />-<glyph unicode="Ï" glyph-name="Idieresis" horiz-adv-x="107" d="M 129 671 L 126 410 L 123 277 L 126 164 L 126 22.1 M 19.9 850 L 35.7 853 M 214 852 L 229 855" />-<glyph unicode="Ð" glyph-name="Eth" horiz-adv-x="684" d="M 23.6 350 L 198 378 L 321 392 M 123 674 L 126 0 L 217 12.6 L 328 47.2 L 444 107 L 539 173 L 614 249 L 674 337 L 693 410 L 684 491 L 617 570 L 507 630 L 400 658 L 290 665 L 208 655 L 126 636" />-<glyph unicode="Ñ" glyph-name="Ntilde" horiz-adv-x="655" d="M 120 28.4 L 129 243 L 132 428 L 132 627 L 148 658 L 255 542 L 381 378 L 545 167 L 633 47.2 L 636 164 L 636 391 L 633 677 M 240 754 L 266 795 L 296 816 L 320 816 L 356 790 L 401 754 L 436 760 L 464 771 L 500 825" />-<glyph unicode="Ò" glyph-name="Ograve" horiz-adv-x="693" d="M 403 677 L 321 662 L 233 605 L 164 520 L 110 410 L 104 280 L 148 145 L 217 78.8 L 293 37.8 L 400 28.4 L 532 40.9 L 639 113 L 706 230 L 709 350 L 693 466 L 630 564 L 592 617 L 532 652 L 460 677 L 403 677 M 201 1128.4 L 217 1078.0 L 302 949" />-<glyph unicode="Ó" glyph-name="Oacute" horiz-adv-x="693" d="M 403 677 L 321 662 L 233 605 L 164 520 L 110 410 L 104 280 L 148 145 L 217 78.8 L 293 37.8 L 400 28.4 L 532 40.9 L 639 113 L 706 230 L 709 350 L 693 466 L 630 564 L 592 617 L 532 652 L 460 677 L 403 677 M 492 1040.3 L 397 845" />-<glyph unicode="Ô" glyph-name="Ocircumflex" horiz-adv-x="693" d="M 403 677 L 321 662 L 233 605 L 164 520 L 110 410 L 104 280 L 148 145 L 217 78.8 L 293 37.8 L 400 28.4 L 532 40.9 L 639 113 L 706 230 L 709 350 L 693 466 L 630 564 L 592 617 L 532 652 L 460 677 L 403 677 M 250 805 L 270 846 L 342 897 L 387 869 L 441 810" />-<glyph unicode="Õ" glyph-name="Otilde" horiz-adv-x="693" d="M 403 677 L 321 662 L 233 605 L 164 520 L 110 410 L 104 280 L 148 145 L 217 78.8 L 293 37.8 L 400 28.4 L 532 40.9 L 639 113 L 706 230 L 709 350 L 693 466 L 630 564 L 592 617 L 532 652 L 460 677 L 403 677 M 251 742 L 276 783 L 306 804 L 329 804 L 365 778 L 409 742 L 443 749 L 470 759 L 506 812" />-<glyph unicode="Ö" glyph-name="Odieresis" horiz-adv-x="693" d="M 403 677 L 321 662 L 233 605 L 164 520 L 110 410 L 104 280 L 148 145 L 217 78.8 L 293 37.8 L 400 28.4 L 532 40.9 L 639 113 L 706 230 L 709 350 L 693 466 L 630 564 L 592 617 L 532 652 L 460 677 L 403 677 M 272 854 L 287 857 M 526 873 L 541 876" />-<glyph unicode="×" glyph-name="multiply" horiz-adv-x="485" d="M 104 447 L 321 214 L 523 12.6 L 315 214 L 485 447 L 321 211 L 195 69.3 L 126 3.15" />-<glyph unicode="Ø" glyph-name="Oslash" horiz-adv-x="693" d="M 403 677 L 321 662 L 233 605 L 164 520 L 110 410 L 104 280 L 148 145 L 217 78.8 L 293 37.8 L 400 28.4 L 532 40.9 L 639 113 L 706 230 L 709 350 L 693 466 L 630 564 L 592 617 L 532 652 L 460 677 L 403 677 M 660 715 L 516 490 L 428 339 L 354 232 L 265 95.8 L 158 -66.3" />-<glyph unicode="Ù" glyph-name="Ugrave" horiz-adv-x="580" d="M 148 655 L 110 441 L 91.4 277 L 91.4 173 L 129 85.1 L 176 31.5 L 290 22.1 L 400 72.4 L 488 154 L 542 306 L 567 438 L 561 662 L 561 25.2 M 166 1122.2 L 181 1071.8 L 266 943" />-<glyph unicode="Ú" glyph-name="Uacute" horiz-adv-x="580" d="M 148 655 L 110 441 L 91.4 277 L 91.4 173 L 129 85.1 L 176 31.5 L 290 22.1 L 400 72.4 L 488 154 L 542 306 L 567 438 L 561 662 L 561 25.2 M 429 1049.9 L 334 855" />-<glyph unicode="Û" glyph-name="Ucircumflex" horiz-adv-x="580" d="M 148 655 L 110 441 L 91.4 277 L 91.4 173 L 129 85.1 L 176 31.5 L 290 22.1 L 400 72.4 L 488 154 L 542 306 L 567 438 L 561 662 L 561 25.2 M 205 768 L 224 806 L 291 854 L 335 828 L 385 773" />-<glyph unicode="Ü" glyph-name="Udieresis" horiz-adv-x="580" d="M 148 655 L 110 441 L 91.4 277 L 91.4 173 L 129 85.1 L 176 31.5 L 290 22.1 L 400 72.4 L 488 154 L 542 306 L 567 438 L 561 662 L 561 25.2 M 225 838 L 241 841 M 467 889 L 483 892" />-<glyph unicode="Ý" glyph-name="Yacute" horiz-adv-x="536" d="M 110 671 L 180 608 L 274 501 L 416 346 L 536 671 L 567 699 L 539 671 L 403 299 L 315 18.9 M 407 1050.6 L 312 855" />-<glyph unicode="à" glyph-name="agrave" horiz-adv-x="532" d="M 536 277 L 479 151 L 387 66.1 L 321 28.4 L 258 6.3 L 170 15.8 L 123 47.2 L 110 145 L 158 243 L 220 337 L 321 406 L 397 441 L 454 441 L 523 428 L 536 381 L 548 3.15 M 268 858 L 283 808 L 369 678" />-<glyph unicode="á" glyph-name="aacute" horiz-adv-x="532" d="M 536 277 L 479 151 L 387 66.1 L 321 28.4 L 258 6.3 L 170 15.8 L 123 47.2 L 110 145 L 158 243 L 220 337 L 321 406 L 397 441 L 454 441 L 523 428 L 536 381 L 548 3.15 M 442 818 L 348 623" />-<glyph unicode="â" glyph-name="acircumflex" horiz-adv-x="532" d="M 536 277 L 479 151 L 387 66.1 L 321 28.4 L 258 6.3 L 170 15.8 L 123 47.2 L 110 145 L 158 243 L 220 337 L 321 406 L 397 441 L 454 441 L 523 428 L 536 381 L 548 3.15 M 244 612 L 265 653 L 337 705 L 384 677 L 438 617" />-<glyph unicode="ã" glyph-name="atilde" horiz-adv-x="532" d="M 536 277 L 479 151 L 387 66.1 L 321 28.4 L 258 6.3 L 170 15.8 L 123 47.2 L 110 145 L 158 243 L 220 337 L 321 406 L 397 441 L 454 441 L 523 428 L 536 381 L 548 3.15 M 211 618 L 239 662 L 272 685 L 297 685 L 337 657 L 386 618 L 423 625 L 453 636 L 493 694" />-<glyph unicode="ä" glyph-name="adieresis" horiz-adv-x="532" d="M 536 277 L 479 151 L 387 66.1 L 321 28.4 L 258 6.3 L 170 15.8 L 123 47.2 L 110 145 L 158 243 L 220 337 L 321 406 L 397 441 L 454 441 L 523 428 L 536 381 L 548 3.15 M 249 617 L 265 620 M 501 653 L 517 656" />-<glyph unicode="å" glyph-name="aring" horiz-adv-x="532" d="M 536 277 L 479 151 L 387 66.1 L 321 28.4 L 258 6.3 L 170 15.8 L 123 47.2 L 110 145 L 158 243 L 220 337 L 321 406 L 397 441 L 454 441 L 523 428 L 536 381 L 548 3.15 M 357 770 L 333 765 L 306 748 L 285 723 L 269 690 L 267 651 L 281 610 L 301 591 L 324 578 L 356 576 L 396 579 L 428 601 L 448 636 L 449 672 L 444 707 L 425 736 L 414 752 L 396 763 L 374 770 L 357 770" />-<glyph unicode="è" glyph-name="egrave" horiz-adv-x="532" d="M 139 296 L 265 299 L 410 302 L 504 318 L 520 353 L 507 387 L 425 460 L 321 460 L 227 425 L 161 365 L 113 243 L 97.6 170 L 94.5 120 L 148 50.4 L 236 6.3 L 337 12.6 L 444 37.8 L 520 75.6 L 548 110 M 244 888 L 260 838 L 345 709" />-<glyph unicode="é" glyph-name="eacute" horiz-adv-x="532" d="M 139 296 L 265 299 L 410 302 L 504 318 L 520 353 L 507 387 L 425 460 L 321 460 L 227 425 L 161 365 L 113 243 L 97.6 170 L 94.5 120 L 148 50.4 L 236 6.3 L 337 12.6 L 444 37.8 L 520 75.6 L 548 110 M 456 826 L 362 630" />-<glyph unicode="ê" glyph-name="ecircumflex" horiz-adv-x="532" d="M 139 296 L 265 299 L 410 302 L 504 318 L 520 353 L 507 387 L 425 460 L 321 460 L 227 425 L 161 365 L 113 243 L 97.6 170 L 94.5 120 L 148 50.4 L 236 6.3 L 337 12.6 L 444 37.8 L 520 75.6 L 548 110 M 231 570 L 250 608 L 317 655 L 359 629 L 409 575" />-<glyph unicode="ë" glyph-name="edieresis" horiz-adv-x="532" d="M 139 296 L 265 299 L 410 302 L 504 318 L 520 353 L 507 387 L 425 460 L 321 460 L 227 425 L 161 365 L 113 243 L 97.6 170 L 94.5 120 L 148 50.4 L 236 6.3 L 337 12.6 L 444 37.8 L 520 75.6 L 548 110 M 253 649 L 268 652 M 515 626 L 530 629" />-<glyph unicode="ì" glyph-name="igrave" horiz-adv-x="252" d="M 205 447 L 214 44.1 L 233 25.2 M 98.2 884 L 114 834 L 199 705" />-<glyph unicode="í" glyph-name="iacute" horiz-adv-x="252" d="M 205 447 L 214 44.1 L 233 25.2 M 294 810 L 199 615" />-<glyph unicode="î" glyph-name="icircumflex" horiz-adv-x="252" d="M 205 447 L 214 44.1 L 233 25.2 M 146 612 L 167 654 L 240 706 L 287 677 L 342 617" />-<glyph unicode="ï" glyph-name="idieresis" horiz-adv-x="252" d="M 205 447 L 214 44.1 L 233 25.2 M 64.1 635 L 79.9 638 M 363 644 L 379 647" />-<glyph unicode="ñ" glyph-name="ntilde" horiz-adv-x="485" d="M 91.4 450 L 94.5 18.9 L 91.4 324 L 208 400 L 321 454 L 394 460 L 447 454 L 482 416 L 507 306 L 504 9.45 M 185 568 L 210 608 L 240 629 L 263 629 L 299 603 L 343 568 L 377 574 L 405 584 L 440 637" />-<glyph unicode="ò" glyph-name="ograve" horiz-adv-x="554" d="M 346 469 L 220 413 L 154 318 L 110 224 L 132 97.7 L 173 28.4 L 306 6.3 L 416 34.6 L 529 107 L 592 224 L 570 369 L 520 425 L 463 460 L 346 469 M 278 883 L 293 832 L 379 703" />-<glyph unicode="ó" glyph-name="oacute" horiz-adv-x="554" d="M 346 469 L 220 413 L 154 318 L 110 224 L 132 97.7 L 173 28.4 L 306 6.3 L 416 34.6 L 529 107 L 592 224 L 570 369 L 520 425 L 463 460 L 346 469 M 447 786 L 353 591" />-<glyph unicode="ô" glyph-name="ocircumflex" horiz-adv-x="554" d="M 346 469 L 220 413 L 154 318 L 110 224 L 132 97.7 L 173 28.4 L 306 6.3 L 416 34.6 L 529 107 L 592 224 L 570 369 L 520 425 L 463 460 L 346 469 M 270 625 L 292 667 L 366 721 L 414 691 L 471 630" />-<glyph unicode="õ" glyph-name="otilde" horiz-adv-x="554" d="M 346 469 L 220 413 L 154 318 L 110 224 L 132 97.7 L 173 28.4 L 306 6.3 L 416 34.6 L 529 107 L 592 224 L 570 369 L 520 425 L 463 460 L 346 469 M 193 574 L 218 615 L 248 636 L 271 636 L 307 610 L 351 574 L 385 581 L 413 591 L 449 644" />-<glyph unicode="ö" glyph-name="odieresis" horiz-adv-x="554" d="M 346 469 L 220 413 L 154 318 L 110 224 L 132 97.7 L 173 28.4 L 306 6.3 L 416 34.6 L 529 107 L 592 224 L 570 369 L 520 425 L 463 460 L 346 469 M 236 640 L 251 643 M 526 627 L 542 630" />-<glyph unicode="÷" glyph-name="divide" horiz-adv-x="811" d="M 520 450 L 535 454 M 508 198 L 524 202 M 281 328 L 578 346 L 787 356" />-<glyph unicode="ø" glyph-name="oslash" horiz-adv-x="554" d="M 346 469 L 220 413 L 154 318 L 110 224 L 132 97.7 L 173 28.4 L 306 6.3 L 416 34.6 L 529 107 L 592 224 L 570 369 L 520 425 L 463 460 L 346 469 M 542 556 L 430 381 L 361 264 L 304 181 L 235 74.5 L 152 -51.6" />-<glyph unicode="ù" glyph-name="ugrave" horiz-adv-x="501" d="M 135 460 L 110 315 L 101 148 L 139 50.4 L 217 9.45 L 350 18.9 L 425 66.1 L 466 85.1 L 507 142 L 536 202 L 513 472 L 545 12.6 M 249 876 L 265 825 L 350 696" />-<glyph unicode="ú" glyph-name="uacute" horiz-adv-x="501" d="M 135 460 L 110 315 L 101 148 L 139 50.4 L 217 9.45 L 350 18.9 L 425 66.1 L 466 85.1 L 507 142 L 536 202 L 513 472 L 545 12.6 M 433 816 L 339 621" />-<glyph unicode="û" glyph-name="ucircumflex" horiz-adv-x="501" d="M 135 460 L 110 315 L 101 148 L 139 50.4 L 217 9.45 L 350 18.9 L 425 66.1 L 466 85.1 L 507 142 L 536 202 L 513 472 L 545 12.6 M 246 617 L 266 659 L 339 710 L 385 682 L 440 622" />-<glyph unicode="ü" glyph-name="udieresis" horiz-adv-x="501" d="M 135 460 L 110 315 L 101 148 L 139 50.4 L 217 9.45 L 350 18.9 L 425 66.1 L 466 85.1 L 507 142 L 536 202 L 513 472 L 545 12.6 M 229 636 L 245 639 M 506 634 L 522 638" />-<glyph unicode="ý" glyph-name="yacute" horiz-adv-x="589" d="M 113 425 L 438 -37.8 L 617 435 L 290 -425 M 468 822 L 373 627" />-<glyph unicode="ÿ" glyph-name="ydieresis" horiz-adv-x="589" d="M 113 425 L 438 -37.8 L 617 435 L 290 -425 M 272 636 L 288 639 M 511 632 L 526 636" />-<glyph unicode="–" glyph-name="endash" horiz-adv-x="477" d="M 165 233 L 340 252 L 463 261" />-<glyph unicode="—" glyph-name="emdash" horiz-adv-x="636" d="M 220 233 L 454 252 L 617 261" />-<glyph unicode="“" glyph-name="quotedblleft" horiz-adv-x="364" d="M 4.25 658 L 34 610 M 146 658 L 176 610" />-<glyph unicode="”" glyph-name="quotedblright" horiz-adv-x="364" d="M 137 635 L 119 516 M 279 635 L 261 516" />-<glyph unicode="‹" glyph-name="guilsinglleft" horiz-adv-x="202" d="M 185 353 L 106 227 L 78.1 179 L 107 134 L 156 93.2 L 175 78.1 L 190 63" />-<glyph unicode="›" glyph-name="guilsinglright" horiz-adv-x="199" d="M 63 335 L 107 302 L 139 275 L 184 244 L 164 207 L 132 159 L 107 121 L 70.6 65.5" />-<glyph unicode="€" glyph-name="Euro" horiz-adv-x="747" d="M 580 646 L 542 680 L 447 693 L 328 655 L 220 580 L 154 485 L 120 403 L 104 312 L 101 217 L 151 129 L 214 63 L 290 28.4 L 391 15.8 L 513 34.6 L 611 85.1 L 696 151 L 756 202 M 132 204 L 272 227 L 370 238 M 132 355 L 272 378 L 370 389" />-<glyph unicode="Ÿ" glyph-name="Ydieresis" horiz-adv-x="536" d="M 110 671 L 180 608 L 274 501 L 416 346 L 536 671 L 567 699 L 539 671 L 403 299 L 315 18.9 M 193 836 L 209 839 M 499 882 L 515 885" />-<glyph unicode="Ç" glyph-name="Ccedilla" horiz-adv-x="747" d="M391.0 15.8C384.02814 -57.881322 455.9706 -137.54023999999998 312.15494 -123.18363000000001M580.0 646.0L542.0 680.0L447.0 693.0L328.0 655.0L220.0 580.0L154.0 485.0L120.0 403.0L104.0 312.0L101.0 217.0L151.0 129.0L214.0 63.0L290.0 28.4L391.0 15.799999999999999L513.0 34.6L611.0 85.1L696.0 151.0L756.0 202.0" />-<glyph unicode="ß" glyph-name="germandbls" horiz-adv-x="756" d="M184.31421 -116.16633C178.23808 15.422489999999996 133.85347000000002 482.062 138.11948 626.99826C141.25730000000001 733.6048099999999 602.8237 713.63398 602.8237 559.6755499999999C602.8237 405.71710999999993 176.21952000000005 359.3293399999999 265.95139 363.3755499999999C355.68327 367.4217499999999 746.39671 384.5665499999999 746.39671 227.78540999999993C746.39671 71.00427799999991 264.15443 15.46480399999993 264.15443 15.46480399999993" />-<glyph unicode="ç" glyph-name="ccedilla" horiz-adv-x="602" d="M376.88693 0.94413329C369.91507 -72.737189 441.85753 -152.39611 298.04187 -138.0395M536.0 416.0L504.0 444.0L410.0 454.0L309.0 416.0L224.0 353.0L132.0 233.0L104.0 107.0L164.0 34.599999999999994L287.0 -3.1500000000000057L419.0 3.149999999999994L513.0 25.199999999999996L614.0 78.8" />-<glyph unicode="£" glyph-name="sterling" horiz-adv-x="617" d="M85.019582 277.45604C183.93631 295.87469 392.07856000000004 306.61661999999995 491.88562 317.97677M627.0 22.1C464.35381 27.635379 301.70834 28.400000000000002 139.0 28.400000000000002C148.30827 152.57026 151.03246000000001 283.45856 151.0 391.0C165.2122 664.82146 312.89608 685.29112 439.17023 674.70866C540.01775 661.32583 601.64905 605.06218 601.64905 521.6006600000001" />-<glyph unicode="¸" glyph-name="cedilla" horiz-adv-x="747" d="M391.0 15.8C384.02814 -57.881322 455.9706 -137.54023999999998 312.15494 -123.18363000000001" />-</font>-</defs>-</svg>\ No newline at end of filediff --git a/styles/whiteboard/style.json b/styles/whiteboard/style.jsonnew file mode 100644index 0000000..73362ba--- /dev/null+++ b/styles/whiteboard/style.json@@ -0,0 +1,18 @@+{+ "slug": "whiteboard",+ "num": "06",+ "en": "Whiteboard Explainer",+ "cn": "白板讲解",+ "category_en": "Hand-drawn & Painting",+ "category_cn": "手绘与绘画",+ "film": "Einstein in Your Pocket",+ "line": "How your phone knows where you are: GPS, atomic clocks, and the 38 microseconds relativity adds every day.",+ "line_cn": "手机怎么知道你在哪:GPS、原子钟,和相对论每天多出的 38 微秒。",+ "uses": [+ "Explainers",+ "Online courses",+ "Science"+ ],+ "frame_sec": 55.5,+ "dur": 111.0+}diff --git a/styles/woodcut/DEMO.md b/styles/woodcut/DEMO.mdnew file mode 100644index 0000000..b39d1bb--- /dev/null+++ b/styles/woodcut/DEMO.md@@ -0,0 +1,139 @@+# Woodcut Print — our demo++One example among many. Don't reuse its story, arc, shots, props or timings.++Demo: *The Bell Founder* (58.5 s) · `woodcut.mp4` · source in [`demo/`](demo/)+++Brief the demo was made to: a 40–60 second film in the Woodcut Print style.++## Story & structure++A village with an empty belfry; a founder casts its first bell, fails, sacrifices something of his own, and succeeds. How the native powers were used in this story:++| Native power | Story use |+|---|---|+| **Light is carved** | Stories about fire, dawn, discovery, a lamp being lit: the moment of light can literally *be* a burst of radial cuts. |+| **Carving = time** | The picture growing cut by cut is patient work on screen. It suits craft, labour, perseverance, and first times. |+| **The mirrored block → the true print** | A reveal or a change of heart: the audience reads a backwards word, the sheet is pulled, and it reads true. |+| **Snow = stab cuts** | White dots are wounds in the wood. They can freeze mid-air, or be "inked back in" until the sky is clean. That makes an ending no other medium has. |+| **One colour plate** | Save it for the one thing that matters (molten metal, a heart, a flame). Let it spread at the climax and shrink to a single highlight afterwards. |+| **Wordless-novel sequencing** | Four or five spoken lines at most. Plates carry the story; the gap after a failure can be completely silent. |++**Story shape of this film:** first knife stroke in the dark (the horizon) → the world carved → the first print pulled (mirror → true) → a long close-up of hands → a quick montage of small offerings → a first attempt that **fails in close-up** → a silent plate → a personal sacrifice → a second attempt where the colour plate floods the frame → the longest silence → the payoff sound → the colour withdraws to one highlight → the white marks are inked back in → the last cut is the horizon again.++How we adapted the topic: find the one thing that should *glow* (the colour plate: molten copper), the one thing that is *made by hand* (the long close-up: the founder's hands), and the one thing that should *disappear* at the end (the stab-cut texture: snow). That was one reading of this story; other topics find other answers or none.++## Shots++"The knife is the camera": the knife tip, or later the brightest cut, was always the focus.++| Beat | Camera |+|---|---|+| Hook (0–3 s) | Extreme close-up on a black block; tracking with the knife as it cuts one white line (the horizon). |+| World | Pull back 3.5× → 1× as mountains, roofs and the empty tower are carved: a line becomes a world. |+| First print | Locked off for the ink / paper / baren / peel; then tilt down and push in to the empty belfry. |+| Breath | 4 s near-static macro on the founder's hands (slow push 1.0 → 1.13). |+| Montage | Hard cuts on every beat, speeding up (1 / 1 / 1 / .5 / .5 / .25 / .25 s), each landing with a jolt. |+| First colour | Push in on the crucible as the copper turns orange, so the first colour lands in close-up. |+| Failure | Snap zoom (0.2 s) to the bell wall and hold 1.3 s while the crack climbs. |+| Silence | Frame in a frame: the workshop door, villagers outside, the founder's back, the hammer slowly lowering. Nothing moves but snow. |+| Climax | Start on the stream only (z 2.4), radial cuts burst from the mould, then crane up and out to show both faces lit. |+| Signature | 8× → 1× continuous pull-back from the bell wall to the whole valley as the bell rings: the sound travels as far as the camera does. |++Why this route, for this story: the knife-drawn horizon was both the first and the last cut, so the film closed a circle; the ringing bell and the pull-back had to travel the same distance. Each of these is one choice from STYLE.md §6, not the style's default opening or ending.++Demo action timings: hammer lean-back 4 frames → strike 2 frames → settle + 3-frame camera shake; bellows push with the whole body; the throw is clutch → release → hand holding in the air. Impression jolt: [5,−3] then [−2,1] px.++## Score structure++- **Grid first**: 60 BPM, switching to 90 BPM through a 3:2 metric modulation (60's triplet eighth = 90's eighth) for the forge. `timeline.json` is the single source of truth. `tools/cuecheck.py` checks score cues against picture events and both silences (demo: 25 cues, max offset 0 ms).+- **Score**: low strings only (contrabass, cellos, spiccato, pizz; violas only after the bell) + wood and skin (log drum, woodblock, frame drum) + gran cassa / timpani + one tam-tam + a **synthesised anvil** (modal numpy: 3–5 inharmonic partials + hammer transient). **No bell timbre anywhere before the bell rings**: the village "has no voice", so the first bell is the climax. D minor, turning to D major in the bell's decay.+- **Foley of this film**, all synthesised: knife into wood, chips, brayer tack, paper air, baren rasp, the wet peel; brass by size (pot = low, wide; keys and ring = high, pure); clay scrape and smash; bellows leather + air; molten bubbles, pour roar, hiss into the mould; the bell as a modal model (hum 0.5, prime 1, tierce 1.2, quint 1.5, nominal 2, 2.5, 3, 4 with their own decays and beating) + two valley echoes.+- **Two real silences**: 29.7–32.3 s (−40 dB distant wind only; the first sound after it is the compass lid's *click*) and 44.3–47.3 s (**digital silence**, measured −91 dB; the first sound after it is the bell, the loudest moment of the film).+- **J/L cuts**: fire crackle enters before the hands shot; outdoor wind carries into the workshop muffled; wind leads the peel into the belfry; the bell's tail runs under the end card.+- **Mix**: music ducks ~8 dB under voice (6 dB after the bell) and 4 dB under key foley. **Foley ducks too** (−5 dB, −9 dB under a line that shares its beats with metal hits). Narrator: Kokoro `am_onyx` at 0.88, 4 lines.++## Palette & props++- **Palette**: ink `#111111` · paper `#EFE8D8` · the wood block itself `#D8C29C` (only in shots that show the block) · one colour plate "copper" `#C8502A`.+- **Print frame**: 1920×1080, printed image area `36, 36, 1848×912`. The bottom paper margin (132 px) holds captions. Fixed 3 px colour-plate misregistration.+- **Props and cast**: the founder and his apprentice (parts rig, poses, expressions), the valley (mountains, village, empty tower, snow), the workshop, crucible, pour, sparks and mould, the bell, bellows, the villagers' brass gifts, the compass, sound rings. The demo's hands, the compass and the filter still were made with height-field sculpts + `woodcutFilter`.+- Captions: IM Fell English 42 px, ink `#111`.++## End card++Title carved *mirrored* into the block (IM Fell English SC), readable only once the first print is pulled. End card: a fresh print: title carved out of a black panel, a small bell keeping the film's last copper highlight, then *A Woodcut Print*, Lemo-Opuscar, LemoLab × Claude Opus 5.5 and credits in letterpress. The final knife cut under the title echoes the first sound of the film. The "LemoLab × Claude Opus 5.5" sign-off belongs to this library's demo only; a user's film carries no LemoLab credit and no copy of this card.++## Build notes++```+styles/woodcut/demo/+ engine/ index.js (shape, cutAlong, flecks, rays, plate…), knife.js (strokes), hatch.js (regions, streamline hatching),+ print.js (WebGL2 print/block compositor), filter.js (image → woodcut)+ stage.js print frame, camera, caption world.js the valley (mountains, village, tower, snow)+ chars.js rig.js views.js founder & apprentice (parts rig, poses, expressions) hands.js height-field sculpts → filter+ interior.js fx.js workshop, crucible, pour, sparks, mould; bell, bellows, gifts, villagers, sound rings+ trans.js paper curl / peel shots.js shots2.js the 17 shots film.js main.js assembly, captions, events+ timeline.json tempo grid + every cue music/score.py original score mix.py foley + ambience + voice + ducking + bell+ tools/ cuecheck.py subs.py final_asr.py mux.sh test.js ?test=char|hands|pour|village|sheetA|sheetB|filter|spark+```+1. Write `timeline.json` (grid + cue keys) and the cue table first; hand them to a music sub-agent; draw in parallel.+2. Build the engine and one style frame before any story. Get the carve + print look right on a still.+3. `sh demo/build.sh` rebuilds everything: TTS → whisper → score → events → cue check → mix → srt → render (4 workers ≈ 45 s for 1404 frames) → mux (−14 LUFS, grain 6, CRF 28) → whisper on the film → styleframe / poster / engine example.+4. Review twice with 1–2 fps contact sheets from the film itself, plus full-size frames of every key action (peel, smash, crack, rays, bell pull-back, end card).++Pitfalls tied to this demo's props:++- **Snow on white snow is invisible.** Add black snowbanks and wind-carved ground; flakes read on the sky and on dark masses.+- **The first bell** turned into zig-zag chevrons from short hatch segments with a tonal sine wobble; fixed with long cuts and one broad highlight band.+- **Steam from the mould** drawn on top read as flames; moved behind the subject.+- **Lazily cached strokes** (`X.coatFolds || []`) broke determinism across render workers.+- **Metal gift hits masked the narrator** (whisper heard "is had" for "it had"). Foley has to duck under voice too. Pan the offending hit away from centre.+- **File size**: fine hatching + per-impression ink noise + grain 6 made a 58 s film 326 MB at CRF 19. Re-encode at CRF 28 with `-tune grain`: 93 MB, and no visible difference at a 1:1 crop.+- The structure tensor NaN came from the box blur leaving tiny negative sums in flat areas.+- `still.mjs` can fail when many renders run at once. Retry up to 3 times.++## Engine reference+++`demo/engine/index.js` is self-contained (it only imports `/core/lib.js`). It draws **any path or shape** as a carved relief and prints it. You always work on two canvases: a **mask** (fill black = uncut block; draw white = cut away) and an optional **colour plate** (alpha = plate density), then call the printer.++| Function | What it does | Key options |+|---|---|---|+| `canvas(w=1920, h=1080)` | → `[canvas, ctx]` | |+| `shape(polys, o)` | A carved solid: black silhouette + white halo + form-following hatching lit by `light`. Returns `{ draw(g, t), strokes, halo, reg, tone }`. | `light` (`light(x,y,z)`), `sp` spacing, `wmax`, `lo/hi` tone range, `dir` (`'contour'` / angle / `dirRing(cx,cy,sy)` / `dirRadial(cx,cy)` / fn), `halo` px, `white` (white part with black cuts), `tone(reg)→(x,y)=>0..1` override, `seg`, `gap`, `reveal:{t0,t1,key,speed}` |+| `cutAlong(path, o)` | Breaks a path into hand-cut knife strokes (outlines, rules, rope, cracks). | `w` (number or `(u,pt)=>w`), `kind` `'k'|'v'|'u'`, `closed`, `seg:[a,b]`, `gap:[a,b]`, `reveal:{t0,t1,speed}` |+| `hatch(region, o)` | Streamline hatching of any `Region` (evenly spaced, direction and width fields). | `dir(x,y)`, `tone(x,y)`, `sp`, `wmax`, `seg`, `gap`, `kind`, `reveal` |+| `flecks(pts, o)` | Stab cuts (snow, sparks, chips). `pts = [[x,y,r],…]` | `angle`, `seed` |+| `rays(cx, cy, o)` | A burst of carved light. | `n`, `r0`, `r1:[a,b]`, `w`, `jit`, `bend`, `a0/a1`, `reveal:{t0,t1,jit}` |+| `drawStrokes(g, strokes, {t, color})` | Draws strokes onto the mask at time `t` (a reveal-timed stroke is carved progressively, knife tip and all). `color:'#000'` re-inks. | |+| `plate(c, polys, a)` | Paints the **one colour** plate. It shows only where the mask is cut white. | |+| `woodcutFilter(img, o)` | **Image / video frame → woodcut.** Luminance sets cut width, the structure tensor sets cut direction; returns strokes with reveal times. | `rect:[x,y,w,h]`, `sp`, `black/white/gamma` levels, `res`, `region`, `reveal:{t0,t1,mode:'light'|'radial'|'down'|fn,speed}` |+| `makePrinter(W,H).render(mask, plate, o)` | WebGL2 compositor → canvas. | `mode:'print'|'block'`, `seed` (paper), `inkSeed` (per impression), `plate:'#hex'` (the one colour), `ink`, `paper`, `reg:[dx,dy]` misregistration, `edge` burr, `sheen`, `wetX` |+| `light(x,y,z)`, `Region(polys | drawFn, {res,bbox})`, `mkStroke`, `spline`, `offsetPoly`, `ellipse`, `rect` | helpers | |++Demo-level, reusable: `demo/trans.js` `curl(g, front, back, xf, r)` + `peelState(u)` (the paper peel); `demo/hands.js` `Sculpt` (capsule / blob / plank / creases → `shade(light)`) for close-ups.++**Minimal example**: a warm orange `#D97757` four-point spark with a cursor tail, carved in and kept in its own colour. It is exactly `?test=spark` in `demo/test.js`; the result is `demo/stills/engine_example.jpg`.++```js+import * as WC from './engine/index.js';+const [mask, m] = WC.canvas(), [plate, c] = WC.canvas(), P = WC.makePrinter();+const star = []; for (let i = 0; i < 8; i++) { const a = i / 8 * Math.PI * 2 - Math.PI / 2, r = i % 2 ? 70 : 260; star.push([960 + Math.cos(a) * r, 500 + Math.sin(a) * r]); }+const spark = WC.shape([star], { light: WC.light(.5, -.6, .6), sp: 9, halo: 8,+ reveal: { t0: 0, t1: .8, key: (x, y) => Math.hypot(x - 960, y - 500) / 300 } }); // carved from the centre out+const tail = WC.cutAlong([[1030, 590], [1090, 680], [1110, 770]], { w: 24, kind: 'u', seg: [300, 400], reveal: { t0: .8, t1: 1.1, speed: 900 } });++function frame(g, t) {+ m.fillStyle = '#000'; m.fillRect(0, 0, 1920, 1080); // the uncut block+ c.clearRect(0, 0, 1920, 1080);+ WC.drawStrokes(m, WC.rays(960, 500, { n: 36, r0: 300, r1: [420, 640], w: 10, seed: 2, reveal: { t0: .5, t1: 1.0 } }), { t });+ spark.draw(m, t);+ WC.drawStrokes(m, tail, { t });+ WC.plate(c, [star], t > .8 ? 1 : 0); // the one colour+ g.drawImage(P.render(mask, plate, { seed: 4, plate: '#D97757' }), 0, 0);+}+```++**Filter on a photo or film frame** (for re-drawing footage): `const F = WC.woodcutFilter(video, { rect: [36, 36, 1848, 912], sp: 5, reveal: { t0, t1, mode: 'light' } }); m.fillStyle = '#000'; m.fillRect(…); WC.drawStrokes(m, F.strokes, { t });` then print. About 1,900 cuts and 140 ms for a 1080p frame. See `demo/stills/filter_v1.jpg` and `?test=filter&img=…`. For a moving shot, re-run it on twos (12 fps) with the same `seed` so the cuts stay stable where the image does.diff --git a/styles/woodcut/STYLE.md b/styles/woodcut/STYLE.mdindex e383256..ea4f2ac 100644--- a/styles/woodcut/STYLE.md+++ b/styles/woodcut/STYLE.md@@ -1,45 +1,23 @@# Woodcut Print — Style Prompt> A relief print that carves itself: every frame is a black wood block, and light only exists where a knife has cut it away. One colour at most, and only for the thing that burns.-> Demo: *The Bell Founder* (58.5 s) · `woodcut.mp4` · source in `demo/`> References (grammar only): Frans Masereel *Passionate Journey* (1919) and Lynd Ward *Gods' Man* (1929), wordless woodcut novels told as a sequence of self-contained plates; Käthe Kollwitz's woodcuts, where emotion lives in the direction of the gouge; Gustave Doré's engraving, where line spacing and direction build light and volume. Never copy their plates, figures, borders or titles.-You are directing a 40–60 second film in the **Woodcut Print** style. The user gives you a topic. You decide everything else (story, shots, timing, sound) and deliver a finished film. Follow this guide.-------## 1. What this style is+## 1. Essence, and what it is notEach shot is **one printed plate**: black ink on laid paper, framed by a paper margin. It follows three rules of real relief printing:-1. **Black is the wood surface, white is what the knife removed.** Light is not painted on. It is *carved*. A bright area is many wide cuts; a dark area is untouched wood.-2. **Pictures appear by being carved.** Nothing fades in. Cuts grow one stroke at a time along the form, coarse gouges first and fine lines after, the order a carver works in.-3. **The block is a mirror.** Letters on the block read backwards. Only when the paper is pulled do they read true, and that reversal is the style's own transition.--The one colour (a second block, "copper" `#C8502A` in the demo) is printed only where white has been carved, so it glows out of the cuts and never sits on the black.--## 2. Story: what fits this style+1. **Black is the wood, white is what the knife removed.** Light is *carved*: a bright area is many wide cuts, a dark area untouched wood.+2. **Pictures appear by being carved.** Nothing fades in: cuts grow stroke by stroke along the form, coarse gouges first, fine lines after.+3. **The block is a mirror.** Letters read backwards until the paper is pulled; that reversal is the style's own transition.-| Native power | Story use |-|---|---|-| **Light is carved** | Stories about fire, dawn, discovery, a lamp being lit: the moment of light can literally *be* a burst of radial cuts. |-| **Carving = time** | The picture growing cut by cut is patient work on screen. It suits craft, labour, perseverance, and first times. |-| **The mirrored block → the true print** | A reveal or a change of heart: the audience reads a backwards word, the sheet is pulled, and it reads true. |-| **Snow = stab cuts** | White dots are wounds in the wood. They can freeze mid-air, or be "inked back in" until the sky is clean. That makes an ending no other medium has. |-| **One colour plate** | Save it for the one thing that matters (molten metal, a heart, a flame). Let it spread at the climax and shrink to a single highlight afterwards. |-| **Wordless-novel sequencing** | Four or five spoken lines at most. Plates carry the story; the gap after a failure can be completely silent. |+Not copperplate engraving (no swelling burin lines on white, no crosshatch built up from white ground), not linocut poster art (no flat colour areas), not a black-and-white photo run through a threshold filter (the cuts must follow the form).-**Story shape (proven in the demo):** first knife stroke in the dark (the horizon) → the world carved → the first print pulled (mirror → true) → a long close-up of hands → a quick montage of small offerings → a first attempt that **fails in close-up** → a silent plate → a personal sacrifice → a second attempt where the colour plate floods the frame → the longest silence → the payoff sound → the colour withdraws to one highlight → the white marks are inked back in → the last cut is the horizon again.+## 2. Materials & rendering-Adapting any topic: find the one thing that should *glow* (that is your colour plate), the one thing that is *made by hand* (that is your long close-up), and the one thing that should *disappear* at the end (that is your stab-cut texture).+- **Print frame**: the printed image area sits inside a paper margin; the wider bottom margin holds captions. The image edge is the block edge: ragged ink, never a clean rectangle.+- **Knife classes** (widths in 1080p pixels at 1× camera):-## 3. Visual language--**Palette**: ink `#111111` · paper `#EFE8D8` · the wood block itself `#D8C29C` (only in shots that show the block) · one colour plate `#C8502A`. A colour plate over ink is nearly invisible, so plan it on carved white.--**Print frame**: 1920×1080, printed image area `36, 36, 1848×912`. The bottom paper margin (132 px) holds captions. The image edge is the block edge: ragged ink, never a clean rectangle.--**Knife classes** (widths in 1080p pixels at 1× camera):| Tool | Width | Use ||---|---|---|| Knife `k` | 1.2–2 | contours, the white outline that separates a black figure from a black ground |@@ -47,126 +25,96 @@ Adapting any topic: find the one thing that should *glow* (that is your colour p| U-gouge `u` | 10–22 | rays, sky sweeps, the first rough-out || Stab `stab` | r 3–8 | snow, sparks, flecks of loam, wood chips |-**Hatching (Doré grammar in wood)**: line **direction follows form** (a bell is wrapped in horizontal arcs, slopes follow the fall line, fire and light radiate, cloth follows its folds). **Width follows tone**: bright = wide cuts almost merging into white, mid-tone = thin cuts, dark = no cuts. Far = dense and fine, near = sparse and coarse. Every line is a separate cut, 30–160 px long, blunt at entry, tapered at exit, with small chips on its edge. Never a continuous machine line.--**Figures**: a black silhouette + a white knife halo against the ground + grazing-light hatching on the lit edge only (light vector with z ≈ 0.2, so flat areas stay black). **Skin is carved white and features are left black** (the wordless-novel rule). At small sizes a black face with white cuts is unreadable.--**Close-ups (hands, objects)**: don't hand-draw them. Sculpt a small height field (capsules, blobs, planks, creases), light it, and run the grey image through `woodcutFilter` (§10). The cuts then follow the isophotes the way an engraver follows a cheek. The demo's hands, the compass and the filter still are made this way.--**Printing**: the mask (white = cut) goes through a WebGL2 compositor: displaced and noise-thresholded edges (knife burr), ±6 % ink unevenness, wood-grain streaks, specks where ink didn't take, the colour plate with its own mottle and a fixed 3 px misregistration. Block mode shows the inked wood: glossy black with grain sheen, pale wood in the grooves.--## 4. Motion language--- **Characters step on twos (12 fps)**; camera, snow, fire and light run at 24 fps. Hatching is generated in each body part's local space, so cuts move with the limb and don't boil. Only fire and molten metal re-cut every 2 frames, which is deliberate boil.-- **Every key action has anticipation / action / follow-through**: hammer lean-back 4 frames → strike 2 frames → settle + 3-frame camera shake; bellows push with the whole body; the throw is clutch → release → hand holding in the air.-- **Carve reveal**: each stroke has its own start time and speed (0.08–0.35 s). Reveal keys: `light` (bright areas first, coarse to fine), `radial` (from a point: rays, the pour), `down`, or any function.-- **Hard cut = a new impression**: two frames of misregistration (`jolt`: [5,−3] then [−2,1] px).-- **Paper transitions** (the one transition grammar): brayer rolls ink (a wet highlight sweeps across) → paper lays down → baren spirals and the image soaks through the back → the sheet peels on a cylinder toward camera, heavy at first and fast at the end, showing the mirrored show-through on its back.--## 5. Camera language--The camera moves over the paper; the paper margin stays fixed. "The knife is the camera": the knife tip, or later the brightest cut, is always the focus.--| Beat | Camera |-|---|---|-| Hook (0–3 s) | Extreme close-up on a black block; tracking with the knife as it cuts one white line (the horizon). |-| World | Pull back 3.5× → 1× as mountains, roofs and the empty tower are carved: a line becomes a world. |-| First print | Locked off for the ink / paper / baren / peel; then tilt down and push in to the empty belfry. |-| Breath | 4 s near-static macro on the founder's hands (slow push 1.0 → 1.13). |-| Montage | Hard cuts on every beat, speeding up (1 / 1 / 1 / .5 / .5 / .25 / .25 s), each landing with a jolt. |-| First colour | Push in on the crucible as the copper turns orange, so the first colour lands in close-up. |-| Failure | Snap zoom (0.2 s) to the bell wall and hold 1.3 s while the crack climbs. |-| Silence | Frame in a frame: the workshop door, villagers outside, the founder's back, the hammer slowly lowering. Nothing moves but snow. |-| Climax | Start on the stream only (z 2.4), radial cuts burst from the mould, then crane up and out to show both faces lit. |-| Signature | 8× → 1× continuous pull-back from the bell wall to the whole valley as the bell rings: the sound travels as far as the camera does. |--## 6. Sound--- **Grid first**: 60 BPM, switching to 90 BPM through a 3:2 metric modulation (60's triplet eighth = 90's eighth) for the forge. `timeline.json` is the single source of truth. `tools/cuecheck.py` checks score cues against picture events and both silences (demo: 25 cues, max offset 0 ms).-- **Score**: low strings only (contrabass, cellos, spiccato, pizz; violas only after the bell) + wood and skin (log drum, woodblock, frame drum) + gran cassa / timpani + one tam-tam + a **synthesised anvil** (modal numpy: 3–5 inharmonic partials + hammer transient). **No bell timbre anywhere before the bell rings**: the village "has no voice", so the first bell is the climax. D minor, turning to D major in the bell's decay.-- **Foley follows the material**, all synthesised: knife into wood (short transient + band-passed fibre tearing modulated by knife speed), chips, brayer tack, paper air, baren rasp, the wet peel; brass by size (pot = low, wide; keys and ring = high, pure); clay scrape and smash; bellows leather + air; molten bubbles, pour roar, hiss into the mould; the bell as a modal model (hum 0.5, prime 1, tierce 1.2, quint 1.5, nominal 2, 2.5, 3, 4 with their own decays and beating) + two valley echoes.-- **Two real silences**: 29.7–32.3 s (−40 dB distant wind only; the first sound after it is the compass lid's *click*) and 44.3–47.3 s (**digital silence**, measured −91 dB; the first sound after it is the bell, the loudest moment of the film).-- **J/L cuts**: fire crackle enters before the hands shot; outdoor wind carries into the workshop muffled; wind leads the peel into the belfry; the bell's tail runs under the end card.-- **Mix**: music ducks ~8 dB under voice (6 dB after the bell) and 4 dB under key foley. **Foley ducks too** (−5 dB, −9 dB under a line that shares its beats with metal hits). Narrator: Kokoro `am_onyx` at 0.88, 4 lines.--## 7. Subtitles & titles--- **Captions are letterpress in the paper margin**, below the plate, like a plate caption in a woodcut novel. They never cover the image. IM Fell English 42 px, ink `#111`, pushed through the same print shader. The ink comes up in 0.1 s with no slide and fades over 0.15 s. Hold ≥ max(1.8 s, speech + 0.6 s).-- **Title**: carved *mirrored* into the block (IM Fell English SC), readable only once the first print is pulled.-- **End card**: a fresh print: title carved out of a black panel, a small bell keeping the film's last copper highlight, then *A Woodcut Print*, Lemo-Opuscar, LemoLab × Claude Opus 5.5 and credits in letterpress. The final knife cut under the title echoes the first sound of the film.--## 8. Pitfalls we hit--- **Snow on white snow is invisible.** White marks only read on black. Add black snowbanks and wind-carved ground; flakes read on the sky and on dark masses.-- **Hatching every surface looks like fur or rain.** Use grazing light so flat planes stay black and only 3–6 cuts sit on the lit edge.-- **Black faces with white cuts don't read small.** Carve skin white and leave features black, and outline white parts with a black keep-line.-- **Hand-drawn polygons for hands and props look like mittens and blobs.** Sculpt a height field and use `woodcutFilter` for anything seen close.-- **Short hatch segments with a tonal sine wobble turn into zig-zag chevrons** (the first bell). Use long cuts (14–50 × spacing), a smooth tone with one broad highlight band and a thin rim light, and a stronger halo so the shadow side still has an edge.-- **Steam drawn on top of the subject reads as flames.** Draw it *behind* the subject so only wisps escape past the silhouette.-- **The baren show-through built from stacked translucent discs** leaves a grey ring. Start with a faint overall soak and add soft radial-gradient dabs along an inward spiral.-- **Lazily cached strokes shared between shots** (`X.coatFolds || []`) make frames depend on which render worker drew which shot first. Every cache must build itself on first use.-- **Metal gift hits masked the narrator** (whisper heard "is had" for "it had"). Foley has to duck under voice too. Pan the offending hit away from centre.-- **File size**: fine hatching + per-impression ink noise + grain 6 made a 58 s film 326 MB at CRF 19. Re-encode at CRF 28 with `-tune grain`: 93 MB, and no visible difference at a 1:1 crop.-- The structure tensor in `woodcutFilter` produced NaN in flat areas (box blur leaves tiny negative sums). Clamp before `sqrt`.-- `still.mjs` can fail when many renders run at once. Retry up to 3 times.--## 9. Production recipe (this repo)--```-styles/woodcut/demo/- engine/ index.js (shape, cutAlong, flecks, rays, plate…), knife.js (strokes), hatch.js (regions, streamline hatching),- print.js (WebGL2 print/block compositor), filter.js (image → woodcut)- stage.js print frame, camera, caption world.js the valley (mountains, village, tower, snow)- chars.js rig.js views.js founder & apprentice (parts rig, poses, expressions) hands.js height-field sculpts → filter- interior.js fx.js workshop, crucible, pour, sparks, mould; bell, bellows, gifts, villagers, sound rings- trans.js paper curl / peel shots.js shots2.js the 17 shots film.js main.js assembly, captions, events- timeline.json tempo grid + every cue music/score.py original score mix.py foley + ambience + voice + ducking + bell- tools/ cuecheck.py subs.py final_asr.py mux.sh test.js ?test=char|hands|pour|village|sheetA|sheetB|filter|spark-```-1. Write `timeline.json` (grid + cue keys) and the cue table first; hand them to a music sub-agent; draw in parallel.-2. Build the engine and one style frame before any story. Get the carve + print look right on a still.-3. `sh demo/build.sh` rebuilds everything: TTS → whisper → score → events → cue check → mix → srt → render (4 workers ≈ 45 s for 1404 frames) → mux (−14 LUFS, grain 6, CRF 28) → whisper on the film → styleframe / poster / engine example.-4. Review twice with 1–2 fps contact sheets from the film itself, plus full-size frames of every key action (peel, smash, crack, rays, bell pull-back, end card).--## 10. Engine usage--`demo/engine/index.js` is self-contained (it only imports `/core/lib.js`). It draws **any path or shape** as a carved relief and prints it. You always work on two canvases: a **mask** (fill black = uncut block; draw white = cut away) and an optional **colour plate** (alpha = plate density), then call the printer.--| Function | What it does | Key options |+- **Hatching (Doré grammar in wood)**: line **direction follows form** (a round object is wrapped in arcs, slopes follow the fall line, fire and light radiate, cloth follows its folds). **Width follows tone**: bright = wide cuts almost merging into white, mid-tone = thin cuts, dark = no cuts. Far = dense and fine, near = sparse and coarse. Every line is a separate cut (30–160 px, blunt entry, tapered exit, chipped edge), never a continuous machine line.+- **Figures**: black silhouette + white knife halo + grazing-light hatching on the lit edge only (light z ≈ 0.2, so flat areas stay black). **Skin carved white, features left black** (the wordless-novel rule).+- **Close-ups (hands, objects)**: sculpt a small height field (capsules, blobs, planks, creases), light it and run it through `woodcutFilter` (§10), so cuts follow the isophotes like an engraver's.+- **Printing**: the mask (white = cut) goes through a WebGL2 compositor: knife burr on edges, ±6 % ink unevenness, wood-grain streaks, specks where ink didn't take, a mottled colour plate with a small fixed misregistration. Block mode: glossy inked wood with grain sheen, pale wood in the grooves.++## 3. Colour logic++- Two values carry everything: near-black ink and warm laid-paper white. The raw wood colour appears only in shots that show the block itself.+- **At most one colour plate**, printed only where white has been carved, so it glows out of the cuts and never sits on the black. A colour plate over ink is nearly invisible, so plan it on carved white.+- The colour is reserved for the one thing that matters (a flame, molten metal, a heart, a signal lamp). It can spread at a peak and shrink to a single highlight afterwards; it is never decoration.+- Examples of a plate: a burnt copper-orange for heat; a cold Prussian blue for water or night; a deep oxblood for a wound or a seal. Choose it from the topic.++## 4. Type & subtitles++- **Captions are letterpress in the paper margin**, below the plate, like a plate caption in a woodcut novel. They never cover the image. A letterpress old-style face (IM Fell English, OFL) around 40–44 px, in ink, pushed through the same print shader. The ink comes up in 0.1 s with no slide and fades over 0.15 s. Hold ≥ max(1.8 s, speech + 0.6 s).+- **Titles are carved, not typed**: cut into the block (IM Fell English SC), mirrored if the block is shown before the print is pulled.+- Any closing text is a fresh print: letterpress in the margin or carved out of a black panel.++## 5. Motion quality++- **Characters on twos (12 fps)**; camera, particles, fire and light on ones (24 fps). Hatching lives in each body part's local space, so cuts move with the limb and don't boil; only fire and liquids re-cut every 2 frames, as deliberate boil.+- **Anticipation / action / follow-through** on every key action: a few frames back → a 2-frame strike → settle + a short shake.+- **Carve reveal**: each stroke has its own start time and speed (0.08–0.35 s). Reveal keys: `light` (bright areas first, coarse to fine), `radial` (from a point: rays, a pour), `down`, or any function.+- **Hard cut = a new impression**: two frames of misregistration (a few pixels, then back).+- **Paper transition** (the one transition grammar): brayer rolls ink (a wet highlight sweeps) → paper lays down → baren spirals, the image soaks through → the sheet peels on a cylinder toward camera, heavy then fast, its back showing the mirrored show-through.+- What never moves: the paper margin.++## 6. Camera grammar++The camera moves over the paper; the margin stays fixed. The knife tip, or the brightest cut, is the focus.++| Move | What it expresses | Can serve ||---|---|---|-| `canvas(w=1920, h=1080)` | → `[canvas, ctx]` | |-| `shape(polys, o)` | A carved solid: black silhouette + white halo + form-following hatching lit by `light`. Returns `{ draw(g, t), strokes, halo, reg, tone }`. | `light` (`light(x,y,z)`), `sp` spacing, `wmax`, `lo/hi` tone range, `dir` (`'contour'` / angle / `dirRing(cx,cy,sy)` / `dirRadial(cx,cy)` / fn), `halo` px, `white` (white part with black cuts), `tone(reg)→(x,y)=>0..1` override, `seg`, `gap`, `reveal:{t0,t1,key,speed}` |-| `cutAlong(path, o)` | Breaks a path into hand-cut knife strokes (outlines, rules, rope, cracks). | `w` (number or `(u,pt)=>w`), `kind` `'k'|'v'|'u'`, `closed`, `seg:[a,b]`, `gap:[a,b]`, `reveal:{t0,t1,speed}` |-| `hatch(region, o)` | Streamline hatching of any `Region` (evenly spaced, direction and width fields). | `dir(x,y)`, `tone(x,y)`, `sp`, `wmax`, `seg`, `gap`, `kind`, `reveal` |-| `flecks(pts, o)` | Stab cuts (snow, sparks, chips). `pts = [[x,y,r],…]` | `angle`, `seed` |-| `rays(cx, cy, o)` | A burst of carved light. | `n`, `r0`, `r1:[a,b]`, `w`, `jit`, `bend`, `a0/a1`, `reveal:{t0,t1,jit}` |-| `drawStrokes(g, strokes, {t, color})` | Draws strokes onto the mask at time `t` (a reveal-timed stroke is carved progressively, knife tip and all). `color:'#000'` re-inks. | |-| `plate(c, polys, a)` | Paints the **one colour** plate. It shows only where the mask is cut white. | |-| `woodcutFilter(img, o)` | **Image / video frame → woodcut.** Luminance sets cut width, the structure tensor sets cut direction; returns strokes with reveal times. | `rect:[x,y,w,h]`, `sp`, `black/white/gamma` levels, `res`, `region`, `reveal:{t0,t1,mode:'light'|'radial'|'down'|fn,speed}` |-| `makePrinter(W,H).render(mask, plate, o)` | WebGL2 compositor → canvas. | `mode:'print'|'block'`, `seed` (paper), `inkSeed` (per impression), `plate:'#hex'` (the one colour), `ink`, `paper`, `reg:[dx,dy]` misregistration, `edge` burr, `sheen`, `wetX` |-| `light(x,y,z)`, `Region(polys | drawFn, {res,bbox})`, `mkStroke`, `spline`, `offsetPoly`, `ellipse`, `rect` | helpers | |--Demo-level, reusable: `demo/trans.js` `curl(g, front, back, xf, r)` + `peelState(u)` (the paper peel); `demo/hands.js` `Sculpt` (capsule / blob / plank / creases → `shade(light)`) for close-ups.--**Minimal example**: a warm orange `#D97757` four-point spark with a cursor tail, carved in and kept in its own colour. It is exactly `?test=spark` in `demo/test.js`; the result is `demo/stills/engine_example.jpg`.--```js-import * as WC from './engine/index.js';-const [mask, m] = WC.canvas(), [plate, c] = WC.canvas(), P = WC.makePrinter();-const star = []; for (let i = 0; i < 8; i++) { const a = i / 8 * Math.PI * 2 - Math.PI / 2, r = i % 2 ? 70 : 260; star.push([960 + Math.cos(a) * r, 500 + Math.sin(a) * r]); }-const spark = WC.shape([star], { light: WC.light(.5, -.6, .6), sp: 9, halo: 8,- reveal: { t0: 0, t1: .8, key: (x, y) => Math.hypot(x - 960, y - 500) / 300 } }); // carved from the centre out-const tail = WC.cutAlong([[1030, 590], [1090, 680], [1110, 770]], { w: 24, kind: 'u', seg: [300, 400], reveal: { t0: .8, t1: 1.1, speed: 900 } });--function frame(g, t) {- m.fillStyle = '#000'; m.fillRect(0, 0, 1920, 1080); // the uncut block- c.clearRect(0, 0, 1920, 1080);- WC.drawStrokes(m, WC.rays(960, 500, { n: 36, r0: 300, r1: [420, 640], w: 10, seed: 2, reveal: { t0: .5, t1: 1.0 } }), { t });- spark.draw(m, t);- WC.drawStrokes(m, tail, { t });- WC.plate(c, [star], t > .8 ? 1 : 0); // the one colour- g.drawImage(P.render(mask, plate, { seed: 4, plate: '#D97757' }), 0, 0);-}-```--**Filter on a photo or film frame** (for re-drawing footage): `const F = WC.woodcutFilter(video, { rect: [36, 36, 1848, 912], sp: 5, reveal: { t0, t1, mode: 'light' } }); m.fillStyle = '#000'; m.fillRect(…); WC.drawStrokes(m, F.strokes, { t });` then print. About 1,900 cuts and 140 ms for a 1080p frame. See `demo/stills/filter_v1.jpg` and `?test=filter&img=…`. For a moving shot, re-run it on twos (12 fps) with the same `seed` so the cuts stay stable where the image does.+| Track with the knife tip | Making; the line is the story | a first mark; a route drawn on a map; a signature |+| Continuous pull-back as cuts spread | A line becomes a world; scale | a city from one street; a family tree; a reach of sound or news |+| Locked plate | A page of a wordless novel; reading time | a decision; a portrait; the aftermath |+| Slow macro push on a sculpted close-up | Patience, touch, labour | hands at work; a tool; a letter being read |+| Snap zoom and hold | Shock; the detail that breaks | a crack; a wrong number; a face turning |+| Frame in a frame (door, window, arch) | Distance, exclusion, waiting | a crowd outside; a sickroom; a border |+| Hard cuts on the beat, each a new impression | Accumulation, a series of prints | offerings; days passing; a list of names |+| Crane up from a detail to the whole | Consequence | a flood reaching a village; a light reaching faces |+| Rack between two plates via the peel | One state printed over another | before/after; a promise kept; generations |++Opening and ending come from the topic. Framing: black masses on carved white or white on uncut black, never grey on grey; text only in the margin. Transitions: hard cut (new impression) or the peel; never a dissolve.++## 7. Sound palette++- **Instruments**: low strings (contrabass, cellos; spiccato, pizzicato), wood and skin (log drum, woodblock, frame drum), gran cassa, timpani, one tam-tam, synthesised struck metal (modal: 3–5 inharmonic partials + hammer transient); a bowed saw or hurdy-gurdy drone for a folk colour.+- **Options**: withhold the timbre of the story's object until it appears; a metric modulation instead of a tempo jump; a modal shift inside a long decay; one drone under a locked plate.+- **Foley follows the material**, all synthesisable: knife into wood (transient + band-passed fibre tearing tied to knife speed), chips, brayer tack, paper air, baren rasp, the wet peel; metals by size (large = low, small = high and pure); resonant objects as modal models plus echoes for distance.+- **Silence is a tool**: near-silence with one faint ambience, or true digital silence before the loudest moment; the first sound after it is chosen.+- **J/L cuts** carry sound across plates and peels.+- **Mix**: music ducks ~8 dB under voice and a little under key foley; **foley ducks too** under voice. Pan hard transients off centre. −14 LUFS.+- **Voice**: few lines, low and plain, like captions spoken; the plates tell the rest.++## 8. Native moves++A menu: use the ones your story needs.++- **Light is carved.** A burst of radial cuts from a point. *Fits content like:* a power grid switched on; a scientific insight; a lighthouse restored.+- **Carving = time.** Patient work on screen, cut by cut. *Fits content like:* a year of training; a building rising; a craft apprenticeship.+- **Mirrored block → true print.** A backwards word reads true when the sheet is pulled. *Fits content like:* a vote result; a name cleared; a misunderstanding put right.+- **Stab cuts as texture.** White dots can freeze mid-air or be inked back in until the black is clean. *Fits content like:* stars going out over a city; rain stopping; a disease receding on a map.+- **The one colour plate spreads and withdraws.** *Fits content like:* a blood donation; a sunrise over a harvest; a single lit window in a blackout.+- **Filter a sculpt or a frame** into form-following cuts. *Fits content like:* a portrait of a real person drawn from a photo; a machine part; an archive image re-cut.+- **Wordless-novel sequencing.** Self-contained plates, few or no lines; a gap can be silent. *Fits content like:* a migration; a strike; a life in seven plates.++## 9. Pitfalls of the medium++- **White marks on white areas are invisible** → stab cuts need dark masses behind them.+- **Hatching every surface looks like fur or rain** → grazing light; 3–6 cuts on the lit edge only.+- **Black faces with white cuts don't read small** → skin white, features black, a black keep-line around white parts.+- **Hand-drawn close-up props look like mittens and blobs** → height field + `woodcutFilter`.+- **Short hatch segments with a tonal wobble turn into zig-zag chevrons** → long cuts (14–50 × spacing), one broad highlight band, a thin rim light, a stronger halo.+- **Steam or smoke on top of the subject reads as flames** → draw it behind, so only wisps escape.+- **Lazily cached strokes shared between shots** make frames depend on the render worker → every cache builds itself on first use.+- **Fine hatching + ink noise + grain inflate the file** → a higher CRF with `-tune grain`; check a 1:1 crop. `woodcutFilter` NaN in flat areas → clamp before `sqrt`.++## 10. Engine++`demo/engine/index.js` (imports only `/core/lib.js`) carves and prints **any path or shape**, on two canvases: a **mask** (black = uncut, white = cut) and an optional **colour plate**. Main functions: `shape` (carved solid with halo and form-following hatching), `cutAlong` (a path as hand-cut strokes), `hatch` (streamline hatching of a region), `flecks` (stab cuts), `rays` (carved light), `drawStrokes`, `plate`, `woodcutFilter` (image or frame → cuts), `makePrinter(W,H).render` (print / block compositor). Reusable demo pieces: `demo/trans.js` (paper peel), `demo/hands.js` (height-field sculpts). Option table, a minimal example and the filter recipe: [DEMO.md](DEMO.md#engine-reference).++## 11. Variation space++You decide the story, characters (or none), plates, opening, ending, camera path, pacing and what the one colour is for. All far from our demo:++- Structures: **a book of hours** (seven locked plates, one per hour, no moves inside a plate); **the same block recut** (carved deeper each scene, the image changing as wood goes); **two blocks printed in turn** (two places alternate impressions until one sheet carries both).+- Openings: **the finished print on a wall** (then back into the block to see it cut); **white paper** (an inked block pressed onto it: the first image arrives whole); **wood grain** that becomes water or a field as the first cuts follow it.+- Endings: **the block cleaned** (ink washed off, pale carved wood remains); **a stack of prints** (rising over many sheets of one plate); **an uncarved corner** (holding on black wood the knife never reached).++---++How our demo was made (story, shots, score, end card, build, engine reference): [DEMO.md](DEMO.md). Read it after your treatment exists.diff --git a/styles/woodcut/TREATMENT.md b/styles/woodcut/TREATMENT.mddeleted file mode 100644index b55d64d..0000000--- a/styles/woodcut/TREATMENT.md+++ /dev/null@@ -1,248 +0,0 @@-# TREATMENT · 15 Woodcut Print ·《The Bell Founder》--> 2D Canvas + WebGL2 印刷合成 | 目标时长 ~58 s(说明参考 40–55 s,理由见第 11 节)| 1920×1080 · 24 fps 输出;角色 12 fps 步进,镜头、雪、光 24 fps 平滑 | 旁白 Kokoro `am_onyx` 0.88(4 句)| grain 6(纸纹、墨色不匀在画面里做,颗粒只给一层"印刷品被拍下来"的底)-------## 1. 一句话故事与情绪弧--**大雪封山的冬天,村里的钟楼是空的。老铸钟匠和学徒用村民捐出来的锅、钥匙、戒指熔铜铸钟;第一口钟敲下去是一声闷响——裂了,全村无声。学徒把脖子上那枚一直带他回家的铜指南针丢进坩埚。第二次浇铸,熔铜的光把整张版画"刻"亮。钟第一次敲响,雪停在半空听它,然后慢慢消失。**--- **主体**:学徒男孩(成长的那个人)+ 老铸钟匠(他的手,是全片的"刻刀")。-- **目标**:给没有声音的村子铸一口钟——雪天里,钟声是迷路人回家的方向。-- **转折**:第一口钟裂了。所有人都已经给过了;只剩男孩手里那枚指南针——"让我找到路的东西"换"让所有人找到路的东西"。-- **回响**:- - 开场第一刀刻出的一条白线是雪地的地平线 ↔ 结尾白点般的雪全部消失后,画面只剩那条地平线和钟;- - 开场雪是一片密集的白点(刻痕)↔ 钟声响起时白点**停在空中**,再一颗颗被墨"填回去";- - 全片第一个声音是刻刀入木 ↔ 最后一个声音是片尾卡上的最后一刀 + 钟的余音;- - 老匠人抹泥模的手(长特写)↔ 拉钟绳的同一双手,男孩的手搭上来。--**开场 3 秒的钩子**:全黑、只有极轻的风声;第 1 秒"笃"——刀尖咬进木头,一道白线沿着画面横着犁开。观众还不知道这是什么,只知道有人在黑暗里下了第一刀。-------## 2. 对标:学什么 / 刻意不学什么--| 对标 | 学什么(语法) | 刻意不学 |-|---|---|---|-| **Frans Masereel《Passionate Journey》(1919)**、**Lynd Ward《Gods' Man》(1929)** 无字木刻小说 | ① **每个镜头是一块"版"**:一张完整、自足的构图,靠画面序列讲故事,旁白压到最少(4 句);② 大块黑与大块白的对比做戏剧性,人物常被处理成白色刻线勾出的黑剪影;③ 城市/山谷用**放射状刻线**表达光、声音、情绪(光是"刻出来的");④ 画面四周留白纸边,页码/说明文字排在纸边上 | 不复刻任何一幅具体版画、人物造型、构图;不用 Ward 的装饰边框和 Masereel 的都市题材;片中不出现书名、作者名 |-| **Käthe Kollwitz 的木刻**(农民、哀悼系列) | 粗刀、强黑白、**情绪全靠刻痕方向**:人脸只刻受光一侧的几道白线,其余交给黑;群像的"静默"——一群人低头站着的剪影本身就是情绪(用在第一口钟裂开后的全村静默) | 不做她的悲恸母题和具体人物;我们的群像是雪地门口的村民,不是哀悼场景 |-| **Gustave Doré 的版画排线** | **用线的疏密和方向表现明暗与体积**:线宽随亮度变(亮处线宽、暗处线细到消失)、线的方向顺着形体(钟身是横向环绕的弧线、山坡顺坡向、天空横线、火焰放射);远景线细密、近景线粗疏 | 不做 Doré 的写实细密木口雕刻(那是 engraving 的细腻),我们保留木刻(woodcut)刀的粗犷与毛刺 |-| **实际木刻工艺**(参考语法) | 刀具分级:V 刀(细线)、U 刀(粗圆槽)、平刀(清底留下的刀痕脊)、刻刀(勾轮廓);**印版是反的**——字在版上是镜像,印到纸上才正;滚墨、覆纸、马连压印、揭纸 | 不做成剪纸(papercut-red:镂空红纸、纸影)、皮影(shadow-puppet:透光剪影);**不做 ukiyoe 那种"一版一版套色 + 見当对位"**——本片只有一块黑版 + 一块唯一的橙色版,转场是"揭纸翻面"而不是逐版叠印 |--**与已完成风格的区分**:ukiyoe 是平涂多色版 + 手卷平移;本片是**单黑版、排线表现明暗、白线即光**。唯一的颜色(熔铜橙)只在熔化的金属出现时才被"套印"上去。-------## 3. 原生招式(只有木刻能做到)--| 招式 | 位置 | 怎么做 / 为什么只有木刻能做 |-|---|---|---|-| **① 刻线生长**(贯穿) | 开场、手的特写、裂纹、放射光、片尾 | 画面不淡入,而是**被刻出来**:刀痕沿形体方向一刀刀出现,**先 U 刀粗槽、后 V 刀细线**(先大明暗后细节,符合真实刻版顺序)。每一刀是带锥形刀尖的独立笔触,起刀钝、收刀尖、边缘有崩口;刻的时候有木屑卷起飞走。黑是木头表面,白是刻掉的——**光是被刻出来的**。 |-| **② 反字印版 → 揭纸翻面**(统一转场语法) | 7.0 开场、43.0 进钟楼、55.0 片尾 | 开场在木版上刻的片名是**镜像反字**(观众先看到反着的字母),滚墨、覆纸、马连压印、揭起纸翻向镜头——**翻过来的纸上字是正的**,第一张印品出现时,世界才"活"过来:雪开始落。揭纸时带轻微套印错位(橙版相对黑版偏 3–6 px 再落定)和纸纹。 |-| **③ 放射刻线爆开 + 唯一的橙版**(情绪最高点) | 39.0 第二次浇铸 | 熔铜倒出的一瞬,**几十道放射状 U 刀刻线从坩埚口向整张版爆开**(从中心往外"刻",0.5 s),同时唯一的橙红色版 `#C8502A` 沿着这些刻线套印进来,铺满半个画面,照亮男孩和老人的脸(脸上的受光刻线也套上橙)。第一次浇铸只有 6 道短放射线,第二次是满版——同一招的升级。 |-| **④ 颜色退去,只留一道铜光** | 47.3 钟响之后 | 钟响的一刻橙版从全画面往钟身收缩,最后只剩钟身上一道铜色高光——"熔铜变成了钟"。此后全片只有这一道颜色,一直留到片尾卡。 |-| **⑤ 雪停在空中,再被墨填回去** | 47.3–55.0 | 雪在木刻里是刻掉的白点。钟声一响,所有白点冻结;然后一颗颗**被墨填回**(刻痕消失 = 雪消失),夜空变得干净,只剩地平线那一刀和钟。这是"刻痕即雪"才成立的结尾。 |-------## 4. 角色(关卡 1 交设定表 `demo/stills/modelsheet_v1.jpg`)--所有角色原创,按木刻语法设计:**剪影先读出来(大块黑),再用白刻线给受光面和结构**。光源默认来自右上(室内时来自右下的炉火)。--- **老铸钟匠(The Founder)**:高个、驼背,头比身体往前探;光头、**一大把白胡子**(胡子是一束束 V 刀白线,是他最亮的部位);深眼窝、鹰钩鼻,脸是黑的,只在受光一侧刻 4–6 道顺着颧骨和额头的白线,皱纹是短刻痕;厚皮围裙(横向粗刀纹)、卷起的袖子露出前臂;**一双过大的手**——指节粗、每道皱纹都是一刀。道具:铸锤、长柄钳、刮板。剪影标志:驼背 + 前探的头 + 胡子 + 围裙下摆。-- **学徒男孩(The Apprentice)**:12 岁左右,瘦小,穿一件**明显过大的旧外套**(袖子盖过手背、下摆到膝),羊毛帽、一条长围巾一端垂在身后;脸圆、眼睛大,白刻线少(孩子的脸"刻得少"= 更柔);**脖子上挂着一枚圆形铜指南针**(绳子 + 带盖的圆盒),整片他习惯性地摸它。剪影标志:大外套 + 帽子 + 围巾尾巴 + 胸前一个圆。-- **村民**:斗篷、头巾、帽子的简单剪影群像,白色轮廓刀勾边,脸只有一两道刻线。-- **表情**(换刻线组合,不做渐变):老匠人——专注 / 失落(眼窝全黑、嘴角下压)/ 点头认可 / 仰望;男孩——好奇 / 犹豫(手攥指南针)/ 决心(下巴收、眉线压低)/ 仰望惊喜。-- **关键姿势**:老匠人抡锤(预备后仰 → 砸 → 跟随下沉)、提坩埚浇铸(重心后坐)、拉钟绳;男孩拉风箱(全身压下)、丢指南针(攥 → 松手 → 手停在空中)、仰望。-- **色板**:墨黑 `#111111`(版面墨,带墨色不匀 ±6% 与木纹)· 纸白 `#EFE8D8`(带纤维与云斑)· 木版刻痕面 `#D8C29C`(只在"看到木版"的镜头)· 唯一套色 熔铜橙红 `#C8502A`(叠印在纸白上呈 `#C8502A`,叠在墨上几乎看不见——所以橙版永远落在刻白的地方)。-------## 5. 镜头表(每个镜头都有理由)--"摄影机 = 刻刀":刻刀的刀尖永远是画面的焦点;镜头运动在纸面上做(推拉平移都是 24 fps 平滑),纸边外框固定不动。--| # | 时间 (s) | 景别 / 角度 | 运动 | 内容 | 为什么这样拍 |-|---|---|---|---|---|---|-| 1 | 0.0–3.0 | 极近特写,俯视木版 | **跟移**(镜头跟着刀尖从左往右) | 全黑木版(斜光下能看到木纹),1.0 第一刀,一道白线横穿画面 | 刻刀就是摄影机;第一个画面就是这个媒介的第一个动作 |-| 2 | 3.0–7.0 | 极近 → 全景,俯视 | **拉**(3.5× → 1×,ease-out) | 以那条线为地平线,U 刀先刻出山脊、V 刀刻出屋顶和空钟楼、细线刻雪原;6.0 反字片名刻进天空,雪点一片片戳出 | 一条线长成一个世界:尺度的第一次揭示 |-| 3 | 7.0–9.0 | 全景,俯视 | 固定 | 滚墨(黑亮的墨刷过版面)→ 覆纸 → 马连压两圈 → 揭纸翻向镜头 | 媒介自己的转场;镜像 → 正字的"啊哈" |-| 4 | 9.0–15.0 | 全景 → 中景 | **降 + 推**(从片名天空向下摇到村子,再慢推到钟楼空拱) | 9.0 第一张印品:正字片名 + 雪村,雪开始落;11.0 起下摇推近,14.3 停在空的钟楼拱洞("the tower had no bell") | 建立世界;把"没有钟"落在一个具体的空洞上 |-| 5 | 15.0–19.0 | **大特写**:老匠人的手 | 慢**推**(1.0→1.15) | 双手用刮板抹泥模,炉火从右下打光;开头 0.6 s 手上的皱纹一刀刀刻出 | 全片的"呼吸":不说话,只看手;人物性格靠手 |-| 6 | 19.0–23.0 | 特写插入 ×7 | 硬切(每切一次新纸落下 2 帧的套印抖动) | 一只只手把铜锅、烛台、钥匙、戒指、勺子、手镯丢进坩埚;最后一格:男孩的手攥住胸前的指南针,没有放 | 一个动作 = 一个声音 = 一个剪辑点;越切越快(1/1/1/.5/.5/.25/.25 s);埋伏笔 |-| 7 | 23.0–25.0 | 中全景,侧面 | 固定,炉火闪 | 男孩压风箱、老匠人守炉;24.33 坩埚里的铜熔成**第一块橙色** | 速度换挡(90 BPM);颜色第一次出现要在一个稳定的画面里被看清 |-| 7b | 25.0–27.0 | 近景,**低机位仰拍** | 微推 | 长钳提起坩埚、倾倒,橙色铜流进泥模,6 道短放射刻线 + 火星 | 浇铸是动作高潮的"预演" |-| 8 | 27.0–28.33 | 中景 | **震**(锤击 3 帧抖动) | 老匠人抡锤砸开泥模(预备后仰 → 砸 → 泥壳碎落),钟露出来 | 失败前的期待 |-| 8b | 28.33–29.67 | 大特写:钟身 | **急推**(snap zoom 0.2 s)后停住 | 锤轻敲,一声闷"咚";一道锯齿白刻线从钟口向上爬,裂开 | 失败必须看得懂:裂纹是一刀刻出来的,给足 1.3 s |-| 9 | 29.67–32.33 | 全景,**画框中的画框** | 完全固定 | 从作坊里往外看:门框里是雪地里站着的村民剪影,前景老匠人背影,锤子慢慢垂下;雪从门口飘进来 | 静默:一切运动停下,只有雪在动 |-| 10 | 32.33–36.33 | 特写 → 近景 → 插入 | 固定 → **跟摇下**(跟着指南针落进坩埚) | 32.33 男孩的手合上指南针盖"咔";33.0 男孩脸(决心);35.5 指南针落进坩埚里的铜堆 | 转折要近、要安静;第一个声音是一个小小的"咔" |-| 11 | 36.33–41.67 | 近景,低机位 → 中全景 | **推 + 升**(倒出后机位升起、拉开) | 风箱加倍、火焰翻卷;39.0 第二次浇铸:**放射刻线满版爆开,橙版铺满**,照亮两人的脸 | 情绪最高点给原生招式;低机位让坩埚和人显得大 |-| 12 | 41.67–43.0 | 中景 | 固定 | 蒸汽嘶嘶,泥壳整片剥落,完整的钟亮相(仍带余温的橙) | 安静地给出成功,但不敲——把声音留到最后 |-| 13 | 43.0–44.33 | — | 揭纸翻面 | 作坊的版被一张新纸盖住、翻面:雪夜钟楼 | 同一转场语法,第二次使用 |-| 14 | 44.33–47.33 | 仰拍全景 → 特写 → 特写 | 固定(三个镜头各 1 s) | 钟挂在钟楼里、村民握着绳;老匠人的手握绳,男孩的手搭上来;钟舌静止 | **全片最长的静音**,三个静止画面像三页书 |-| 15 | 47.33–52.33 | 大特写 → 大远景 | **连续拉远 + 升**(8× → 1×,5 s,签名镜头) | 钟舌撞上钟口,镜头从钟身一路拉到钟楼、村子、整座山谷;雪点在撞击那一帧冻结;橙色收缩成钟上一道高光;刻线同心声波一圈圈荡开 | 声音传多远,镜头就拉多远:尺度揭示 |-| 16 | 52.33–55.0 | 大远景 | 固定 | 冻结的雪一颗颗被墨填回,夜空干净,只剩地平线与钟 | 回响:回到第一刀 |-| 17 | 55.0–58.5 | 片尾卡 | 刻线生长 | 最后一刀刻出片名下的横线(全片第一个声音的回声),片尾信息逐行刻出 | 首尾呼应 |--镜头运动种类:跟移、拉、降/摇、推、震、急推、跟摇、升、固定——9 种;景别从极近特写到大远景全覆盖。关键时刻主体占画面高度:手特写 ~70%、男孩脸 ~55%、浇铸坩埚 + 人 ~60%、钟身特写 ~90%、村民剪影 ~40%。-------## 6. 分镜节拍表(按秒)与 cue map--### 速度网格-- **A 段**(0–3.0)自由拍,没有音乐。-- **B 段 60 BPM**(3.0–23.0):1 拍 = 1.000 s,4/4,每个剪辑点都在整秒上。-- **C 段 90 BPM**(23.0–32.333):3:2 的**节拍转换**——60 BPM 的三连音八分音符(0.333 s)变成 90 BPM 的八分音符,1 拍 = 0.6667 s。"打铁节奏"进来,全片第一次明显加速。-- **D 段 60 BPM**(32.333–36.333):回到慢速,孤独的大提琴。-- **E 段 90 BPM**(36.333–44.333):打铁节奏加倍到十六分音符,第二次也是最强的加速。-- **F 段 真静音**(44.333–47.333,3.0 s,全片最长)。-- **G 段 钟**(47.333–):钟声本身,自由拍 → 余韵里弦乐以 60 BPM 进入。--### 节拍表--| 时间 (s) | 画面(镜头 #) | 声音 / 卡点 |-|---|---|---|-| 0.00–1.00 | #1 全黑木版,斜光下隐约木纹 | 只有极轻的风声(外面的雪),室内空气声 |-| **1.00** | 刀尖咬进木头,白线开始 | **"笃"**:刀入木(全片第一个重要声音) |-| 1.00–2.80 | 白线从左向右犁开,镜头跟移,木屑卷起 | 连续的刻木声(木纤维撕裂的"嘶——",随刀速起伏)|-| 2.80 | 线尾一挑,木屑飞出画 | 挑刀"嗒" + 木屑落 |-| **3.00** | #2 拉开:U 刀刻山脊(3.0–4.0) | 低音提琴 D 长音进入(pp);四刀一组的刻木声卡在 3.0 / 3.25 / 3.5 / 3.75 |-| 4.00 | V 刀刻屋顶、空钟楼 | 细刀声,更密、更亮 |-| 5.00 | 细线刻雪原、天空 | 细密"沙沙"刻线声 |-| 6.00–6.90 | 反字片名刻进天空;雪点一片片戳出(6.0/6.25/6.5/6.75) | 戳刀"嗒嗒嗒"四组 |-| **7.00** | #3 滚墨(7.0–7.6) | 墨辊的黏滞声"嘶啦" |-| 7.67 | 覆纸 | 纸落下的气流"噗" |-| 8.00–8.50 | 马连压两圈 | 两圈摩擦"沙——沙——" |-| 8.50–9.00 | 揭纸,翻向镜头 | 纸从墨上剥离的黏响"嚓啦" + 翻纸气流 |-| **9.00** | #4 第一张印品:正字片名 + 雪村,雪开始落 | 纸落定"啪";风声变成室外风雪;大提琴动机 A 第一次出现(pp) |-| 11.00–14.30 | 下摇推近到空钟楼 | 动机 A 继续;风声阵阵 |-| 11.10–14.90 | **L1** *That winter, the snow closed every road, and the tower had no bell.* | 音乐闪避 −8 dB |-| 14.50 | (J-cut)作坊的炉火噼啪先进来 | |-| **15.00** | #5 手的大特写,0.6 s 皱纹刻出 | 室外风声 L-cut 延续、闷掉(门外);炉火、泥刮声(15.6 / 17.6 两刮);独奏大提琴长音;框鼓心跳极轻 |-| **19.00** | #6 铜锅落进坩埚 | **"哐"**(厚铜锅,低沉) |-| 19.20–21.60 | **L2** *So every house gave what metal it had.* | 低音提琴拨奏每拍一下 |-| 20.00 | 烛台 | 黄铜"当" |-| 21.00 | 钥匙串 | "叮铃" |-| 21.50 | 戒指 | 细小清亮"叮" |-| 22.00 / 22.25 | 勺子、手镯 | "锵" / "嚓啷" |-| 22.50–23.00 | 男孩的手攥住指南针 | 绳子轻响;木块两声加速推进换挡 |-| **23.00** | #7 作坊中全景,风箱 | **90 BPM 打铁节奏进入**(合成铁砧 + 框鼓 + 大提琴跳弓),风箱每拍一"呼" |-| **24.33** | 坩埚熔成橙色(第一块颜色) | 熔铜咕嘟冒泡;低弦和弦膨胀 |-| **25.00** | #7b 长钳提坩埚 | 铁钳刮坩埚"锵" |-| **25.67** | 倒出!橙色铜流 + 6 道放射线 | 熔铜轰鸣 + 注入泥模的嘶响 + 火星噼啪;大鼓 |-| **27.00** | #8 抡锤砸泥模 | **"砰"**泥壳碎裂 + 碎块落地;画面震 3 帧 |-| 27.67 | 钟露出 | 泥灰簌簌 |-| **28.33** | #8b 急推钟身;锤轻敲 | **"咚"——闷、短、带破音的死响**;音乐在这一下**全部断掉** |-| 28.40–29.60 | 裂纹从钟口往上爬 | 金属裂开的细碎"咯——咯——"(随裂纹生长) |-| **29.67–32.33** | #9 门框里的村民、垂下的锤子、飘进来的雪 | **静音 1**:只有极远极轻的风(−40 dB),没有音乐、没有拟音 |-| **32.33** | #10 男孩合上指南针盖 | **"咔"**——静音后的第一个声音 |-| 32.60–36.35 | **L3** *The boy gave his compass, the one thing that always guided him home.* | 独奏大提琴动机 A(更脆弱)+ 低音提琴持续音 |-| **35.50** | 指南针落进坩埚铜堆 | 黄铜"叮"+ 滑落 |-| **36.33** | #11 风箱加倍、火焰翻卷 | **90 BPM 打铁节奏回来,十六分音符**;风箱每半拍一"呼" |-| 37.67 | 老匠人提起坩埚,橙光照上两人的脸 | 定音鼓 / 大鼓滚奏渐强 |-| **39.00** | **放射刻线满版爆开 + 橙版铺满**(情绪最高点) | 全低弦 ff + 低锣 + 铁砧重击 + 熔铜轰鸣;放射线"刷"地刻开(一组极快的 U 刀声从中心向外) |-| 39.00–41.67 | 铜流、机位推 + 升 | 轰鸣持续,铁砧十六分音符 |-| **41.67** | #12 泥壳剥落,钟完整亮相 | 蒸汽"嘶——";音乐落到持续低音 |-| **43.00** | #13 揭纸翻面 → 雪夜钟楼 | 纸剥离 + 翻纸气流;室外风声 J-cut 进来 |-| **44.33–47.33** | #14 钟楼 / 两双手握绳 / 静止的钟舌 | **静音 2(全片最长 3.0 s):数字静音**,连风声都切掉 |-| **47.33** | #15 钟舌撞钟,雪冻结,镜头开始拉 | **钟声**(全片最重要的声音,峰值最高)|-| 48.00 / 48.90 | 拉到钟楼 / 村子 | 山谷回声两次(低通、延迟),声音"走到了山那边" |-| **48.33** | | **弦乐在钟的余韵里进入**:大提琴 + 低音提琴 + 中提琴 D 大调(全片第一次大调);管钟、手摇钟第一次出现,轻轻呼应钟的分音 |-| 47.8–50.0 | 橙色收缩成钟身一道高光 | |-| 51.80–54.20 | **L4** *When it rang, the snow stopped to listen.* | 音乐闪避 −6 dB |-| 52.50–55.00 | #16 冻结的雪一颗颗被墨填回 | 极轻的"嗒"——像墨点落纸,逐渐稀疏 |-| **55.00** | #17 片尾卡:最后一刀 | **"笃——嘶"**:最后一刀(首尾呼应)|-| 55.0–58.5 | 片尾信息刻出 | 钟的余音 + 弦乐终止和弦(D 大三和弦 + 低音 D);58.5 结束 |--### Cue map(原创配乐;采样库 READY)--**配器白名单**:`contrabass`、`cellos`、`cellos_spic`、`cellos_pizz`、`contrabass_pizz`、`violas`(只在钟响后)、`log_drum`、`woodblock`、`frame_drum`(large / large_muted)、`gran_cassa`(roll)、`timpani`、`gong`(低锣,只用一次)、**合成铁砧**(numpy 模态合成:3–5 个不谐和分音 + 锤击瞬态)、`tubular_bells` / `hand_chimes`(**只在钟响之后**)。**不用钢琴、不用小提琴组旋律、不做"钢琴 + 弦乐"。**--**核心设计:钟响之前,配乐里一个钟的音色都没有。** 村子"没有声音"——前 47 秒的音乐只有低音弦和木、皮、铁的打击;第一口钟是一声死响;第一声真正的钟响之后,管钟和手摇钟才第一次出现。调性:D 小调(D 多利亚色彩)全片,钟响后转 D 大调。钟本身调到 D(hum D2 / prime D3)。--| Cue | 时间 | 速度 | 配器 | 情绪 | 卡点 |-|---|---|---|---|---|---|-| C0 第一刀 | 0–3.0 | 自由 | 无音乐 | 黑暗、专注 | — |-| C1 刻版 | 3.0–9.0 | 60 | 低音提琴 D1 持续音(pp,淡入);框鼓极轻 3.0 / 5.0 / 7.0 | 庄重的开始 | 3.0 进;9.0 纸落定 |-| C2 雪村 | 9.0–15.0 | 60 | **动机 A**(大提琴,D–F–E–A↓–D 的原创五音句,每音一拍半到两拍)+ 低音提琴;木鱼(log_drum lo)每小节第 1 拍 | 冷、空 | 9.0 动机起;L1 下闪避 |-| C3 手 | 15.0–19.0 | 60 | 独奏大提琴长音(A2 → D3),框鼓心跳(large_muted)每拍极轻 | 呼吸、专注 | — |-| C4 捐献 | 19.0–23.0 | 60 | 低音提琴拨奏每拍;木块在 22.0 起每 1/4 拍加速一串,推到 23.0 | 聚拢、加速 | 23.0 换挡 |-| C5 熔炉 | 23.0–28.33 | **90** | 合成铁砧"叮-叮-当"三连 + 框鼓八分 + 大提琴跳弓 D 小调固定音型;24.33 低弦和弦膨胀;25.67 大鼓 + 低弦 sfz | 劳动、希望 | 24.33 颜色;25.67 倒出;27.0 砸模重音 |-| C6 死响 | 28.33 | — | **全部断掉**(连混响尾一起切,20 ms 淡出) | 震惊 | 28.33 |-| C7 静音 1 | 28.33–32.33 | — | 无音乐 | 沉默 | — |-| C8 指南针 | 32.33–36.33 | 60 | 独奏大提琴动机 A(更弱、更高一个八度 D3–F3–E3–A2–D3),低音提琴 D 持续音 | 决定 | 35.5 指南针落 |-| C9 第二次浇铸 | 36.33–44.33 | **90** | 铁砧十六分音符 + 框鼓 + 大提琴跳弓加倍;37.67–39.0 定音鼓/大鼓滚奏渐强;**39.0 全低弦 ff + 低锣 + 铁砧重击**;41.67 落到 D 持续音;43.0 起淡出,44.33 前归零 | 爆发 → 屏息 | 36.33 / 37.67 / 39.0 / 41.67 |-| C10 静音 2 | 44.33–47.33 | — | **数字静音** | 最长的等待 | — |-| C11 钟 | 47.33–48.33 | 自由 | 只有钟声(拟音层合成) | 高潮 | 47.33 |-| C12 余韵 | 48.33–58.5 | 60 | 大提琴 + 低音提琴 + 中提琴 D 大调,动机 A 改成大调(D–F#–E–A↓–D)慢奏;管钟 D4 / A4 两下、手摇钟 D5 轻呼应钟的分音(49.33、51.33);55.0 终止和弦 | 释然、辽阔 | 48.33 弦乐进;55.0 终止 |--旁白期间音乐闪避约 −8 dB(钟响后 −6 dB),关键拟音(刀入木、死响、"咔"、钟)出现时音乐同样让路 −4 dB。-------## 7. 声音设计表(环境底 / 拟音 / 音乐)--拟音按材质合成(`mix.py`,numpy/scipy):**木**(刀入木的短瞬态 + 木纤维撕裂的带通噪声 + 刀速调制;木屑是极短高频"嗒")、**纸**(覆纸气流、马连摩擦、揭纸的黏滞剥离 = 带"撕扯颗粒"的中高频噪声)、**铜/黄铜**(模态合成:锅 = 低频宽谱多分音、钥匙/戒指 = 高频纯净少分音、手镯 = 多次碰撞)、**泥**(刮泥 = 湿润低通噪声、砸泥 = 宽频碎裂 + 碎块散落)、**火与熔铜**(炉火噼啪、风箱皮革吱呀 + 气流、熔铜咕嘟 = 低频泡泡、倒铜轰鸣、注入泥模的嘶响)、**钟**(模态合成:hum 0.5 / prime 1 / tierce 1.2 / quint 1.5 / nominal 2 / 2.5 / 3 / 4 各自的衰减与拍频 + 钟舌撞击瞬态 + 山谷回声)。--| 段落 | 环境底 | 主要拟音 | 音乐状态 |-|---|---|---|---|-| 0–3 第一刀 | 室内空气 + 极远的风(−44 dB) | 刀入木"笃"、刻木撕裂声、挑刀、木屑 | 无 |-| 3–7 刻版 | 同上 | 四刀一组的刻木声(U 刀低沉、V 刀清亮、细线沙沙)、戳雪点"嗒嗒" | 低音提琴持续音淡入 |-| 7–9 印刷 | 同上 | 墨辊黏滞、覆纸气流、马连摩擦、揭纸剥离、翻纸、纸落定 | 持续音 |-| 9–15 雪村 | **室外风雪**(阵风带通扫频 + 雪的细嘶),声像随镜头 | 远处木梁吱呀一声 | 动机 A;L1 下闪避 |-| 15–19 手 | 作坊:炉火噼啪 + 低频炉膛声;**门外风声 L-cut 延续**(低通闷掉) | 刮板抹泥两下、手掌按泥 | 独奏大提琴 + 心跳框鼓 |-| 19–23 捐献 | 作坊 + 门口的风 | 铜锅"哐"、烛台"当"、钥匙"叮铃"、戒指"叮"、勺子、手镯、指南针绳 | 低音提琴拨奏 → 木块加速 |-| 23–28.3 熔炉/第一次浇铸 | 炉膛轰鸣变大 | 风箱(每拍)、熔铜冒泡、铁钳、倒铜轰鸣、注模嘶响、火星、锤砸泥模、碎块落地、泥灰 | 90 BPM 打铁节奏 |-| 28.3–29.7 裂 | 炉火(压低) | **死响"咚"**、裂纹"咯——" | **断掉** |-| 29.7–32.3 静默 | 只有极远的风(−40 dB) | 无 | **静音 1** |-| 32.3–36.3 指南针 | 炉火重新起来 | **"咔"**、外套布料、指南针落铜堆 | 独奏大提琴 |-| 36.3–41.7 第二次浇铸 | 炉膛轰鸣最大 | 风箱加倍、火焰翻卷、提坩埚、倒铜轰鸣、放射刻线"刷"、火星雨 | 90 BPM 十六分音符 → ff |-| 41.7–43.0 亮相 | 炉火减弱 | 蒸汽嘶、泥壳剥落、泥块落地 | 持续低音 |-| 43.0–44.3 转场 | 室外风 J-cut 进来 | 揭纸、翻纸 | 淡出 |-| 44.3–47.3 等待 | **全部切掉** | 无 | **静音 2(最长)** |-| 47.3–52.3 钟 | 无风(雪停了) | **钟**(撞击 + 分音 + 拍频)+ 山谷回声两次 | 48.33 弦乐进入 |-| 52.3–55 雪消失 | 极轻的夜空气 | 墨点"嗒"(稀疏、越来越轻) | 弦乐大调;L4 闪避 |-| 55–58.5 片尾 | 同上 | 最后一刀"笃——嘶" | 终止和弦 + 钟的余音 |--**声音转场(J/L-cut)**:① 14.5 炉火先于画面进入(J);② 15.0 室外风声闷掉延续进作坊(L);③ 43.0 揭纸时室外风先进来(J);④ 钟的余音一直延续到片尾卡结束(L);⑤ 22.0 木块加速把音乐"推"进 90 BPM 的熔炉(J)。--**静音**:① 29.67–32.33 近乎静音(只有 −40 dB 的远风),之后第一个声音是指南针的"咔"(转折);② 44.33–47.33 **数字静音 3.0 s**(全片最长),之后第一个声音是钟(高潮,全片峰值)。另外 0–1 s 的开场只有风,是"准备"。-------## 8. 视觉语言--- **两个世界**:- - **木版**(0–9 s、片尾):满版黑墨(带光泽和木纹走向的墨色起伏),刻掉处露出淡木色 `#D8C29C`,刀槽里有纵向刀痕阴影和木纤维;图像是**镜像**的。- - **印品**(9 s 起):纸白 `#EFE8D8`(纤维 + 云斑 + 极细颗粒)上的墨黑 `#111`。版画四周留纸边(左右上 40 px,下 120 px,字幕排在下纸边),版面边缘是毛糙的墨边(木版的边)。-- **刀具分级(线宽,以 1080p 画面像素计)**:刻刀轮廓 1.2–2 px;V 刀细线 2–4 px;V 刀中线 4–8 px;U 刀粗槽 10–22 px;平刀清底 = 大面积白 + 残留的平行刀痕脊(黑)。**刻线生长永远先粗后细**。-- **排线规则(Doré 语法 → 木刻)**:线的**方向顺着形体**(钟身横向环绕弧线、山坡顺坡、天空横线、火焰和光放射、人物衣服顺褶皱);**线宽随亮度**(亮 → 宽白线几乎连成白,中间调 → 细线,暗 → 无线纯黑);远景线密而细,近景线疏而粗;每道线是独立的一刀(带锥形刀尖、起刀钝、收刀尖、长度 30–160 px 随机断开),不是连续的机械线。-- **印刷质感(WebGL2 合成)**:边缘毛刺(噪声扰动取样 + 噪声阈值 → 刀口崩边)、墨色不匀(大尺度 ±6% + 木纹走向的条纹 + 小块"没吃墨"的白点)、纸纹透出墨层、极轻压印凹凸;橙版单独一层,带自己的斑驳与 3 px 固定套印错位,只在刻白处显色(墨上几乎看不见)。-- **雪**:戳刀刻出的白点(小泪滴形,大小 3 档),12 fps 飘落(像逐张印出来),近处大、远处小。-- **人物**:剪影黑块 + 白色轮廓刀(人物与黑背景之间刻一圈白边分开)+ 受光面排线;脸只刻受光一侧。--## 9. 动作语言--- **角色 12 fps 步进**(on twos),镜头、雪、火焰、光 24 fps。每个关键动作做预备—动作—跟随:抡锤(后仰 4 帧 → 砸 2 帧 → 下沉跟随 + 3 帧画面震)、拉风箱(身体压下时围巾甩起、回弹)、丢指南针(攥紧 → 松手 → 手停在空中 0.5 s)、拉钟绳(两人同时下沉)。-- 排线在角色部件的**局部坐标**里生成,部件动时刻线跟着走、不"沸腾";只有火焰和熔铜的刻线每 2 帧重刻一次(有意的沸腾 = 火的生命)。-- 刻线生长:每一刀有自己的开始时间和刀速(0.08–0.35 s),刀尖有 3 px 亮点和飞出的木屑(只在木版世界)。--## 10. 字幕与片名设计--- **字幕 = 纸边上的铅字说明**(木刻小说的图版说明):排在版画下方的纸白边里,永远不压画面。字体 **IM Fell English**(OFL,17 世纪 Fell 铅字的数字化,带印刷的不规则),42 px,墨黑 `#111`,经过同一个印刷着色器(墨色不匀、边缘毛刺)。出现方式:像铅字被压印——0.1 s 内墨从浅到实,没有滑动;消失时同样 0.15 s 淡出。每句停留 ≥ max(1.8 s, 语音 + 0.6 s),不重叠。-- **片名**:*THE BELL FOUNDER*,在木版上**刻成反字**(IM Fell English SC 字形作骨架,刻刀沿字形轮廓一刀刀刻出),印到纸上才读正;片名下一道刻线横线。-- **片尾卡**:一张新印品——片名、*A Woodcut Print*、*Lemo-Opuscar*、*LemoLab × Claude Opus 5.5*、素材署名(Kokoro、VSCO 2 CE / VCSL、IM Fell 字体),钟的图案保留那一道铜色高光。-------## 11. 与风格说明的差异及理由--1. **时长 ~58 s(说明参考 40–55 s)**:本片要讲清楚两次浇铸(失败必须演出来:砸模、敲、裂纹爬 1.3 s)、两处静音(2.7 s + 3.0 s)、一个长特写(手 4 s)和签名拉镜(5 s)。压到 50 s 会让裂纹和静默变成看不懂的快闪。仍在 30–60 s 规格内。-2. **C 段 / E 段 90 BPM**(说明 60–72 BPM):主体仍是 60 BPM 的庄重慢板;两次浇铸用 3:2 节拍转换进入 90 BPM(60 BPM 的三连音 = 90 BPM 的八分音符),这就是说明里"浇铸段加入打铁节奏"——让节奏有真正的加速,而不是全片匀速。-3. **钟响之前配乐里不用任何钟**:说明的配器里有铜钟/管钟;我把它们全部留到钟响之后。前 47 秒只有低音弦和木、皮、铁——"村子没有声音"本身就是配乐的结构,钟声才会是高潮。-4. **指南针**:说明里学徒"把自己的东西也丢进坩埚",我把它具体成一枚一直带他回家的铜指南针,并在捐献蒙太奇的最后一格埋下伏笔(他攥住了,没给)。"让我找到路的东西"换"让所有人找到路的东西"——钟在雪天就是给迷路的人指方向的。-5. **旁白 4 句**(说明 4–5 句):向无字木刻小说致敬,第一口钟裂开后的段落完全不说话。-6. **字幕排在纸边**:每个镜头都是一张带纸边的印品,字幕是纸边上的铅字说明——风格的一部分,也保证永远不挡主体。-7. **补一个"反字"招式**:木刻印版是镜像的——开场片名刻成反字,揭纸后读正,是"印版翻转"转场的第一次、也是最有戏剧性的一次使用。diff --git a/styles/woodcut/demo/assets/bearded_man_cc0.jpg b/styles/woodcut/demo/assets/bearded_man_cc0.jpgdeleted file mode 100644index d1b0acb..0000000Binary files a/styles/woodcut/demo/assets/bearded_man_cc0.jpg and /dev/null differdiff --git a/styles/woodcut/style.json b/styles/woodcut/style.jsonnew file mode 100644index 0000000..3550da4--- /dev/null+++ b/styles/woodcut/style.json@@ -0,0 +1,18 @@+{+ "slug": "woodcut",+ "num": "15",+ "en": "Woodcut Print",+ "cn": "木刻版画",+ "category_en": "Print & Printmaking",+ "category_cn": "印刷与版画",+ "film": "The Bell Founder",+ "line": "A village spends a whole winter casting one bell; the first time it rings, the snow stops.",+ "line_cn": "村子用一整个冬天铸一口钟,钟声第一次响起,雪停了。",+ "uses": [+ "Folk tales",+ "Craft brands",+ "Book trailers"+ ],+ "frame_sec": 49.14,+ "dur": 58.5+}diff --git a/tools/assets.json b/tools/assets.jsonindex 0584d9b..bc0aa3f 100644--- a/tools/assets.json+++ b/tools/assets.json@@ -7,210 +7,35 @@"size": 353761280,"sha256": "6bc6536c9bc3283150a3bfd1859a9841c39ab4ee05e3df35933d9ab38ce327af"},- "instruments": {- "file": "instruments.tar",- "size": 1418014720,- "sha256": "d0ba9ebb83ae1d51b2696fa88bfc82f281281ed91fe7e0d9cc5c3c95ad1fa08f"- },"hdri": {"file": "hdri.tar","size": 12533760,"sha256": "3b1c41d5ef0b26f7dbdab4fff7bab4ed9a63daa701943375821229dd73029499"},- "demo-art-deco": {- "file": "demo-art-deco.tar",- "size": 29306880,- "sha256": "f199b848e11f24e48f29b5113300b0b092fae0f697cd6c59a2eb83d0edee63bf"- },- "demo-ascii-crt": {- "file": "demo-ascii-crt.tar",- "size": 23992320,- "sha256": "b1e0cb8017016fdd786afa194e53c73f34ba71f90fb77b1e37322c2611513cc7"- },- "demo-backrooms": {- "file": "demo-backrooms.tar",- "size": 25712640,- "sha256": "bcb026158a19c7156ebb61c80442f5b9586e84b75ff7c91a24441a4de6e91f1a"- },- "demo-blueprint": {- "file": "demo-blueprint.tar",- "size": 24412160,- "sha256": "0026c3346d83057a5ca7facccdf1313034fa9f6cd51243199a3e216e9dd9f6eb"- },- "demo-brick-toy": {- "file": "demo-brick-toy.tar",- "size": 73738240,- "sha256": "f32a567054b8595ba8ab965196ca22af2a149538c36ec060fa100a054fbbb0e2"- },- "demo-cel-anime-80s": {- "file": "demo-cel-anime-80s.tar",- "size": 38103040,- "sha256": "55cc520dca077ccac569c0d66edc2e5fd3f92eb47f1e698cd3ff79132d4d2c26"- },- "demo-crayon-book": {- "file": "demo-crayon-book.tar",- "size": 37488640,- "sha256": "e96e22a4e0f466e8d7d345aa42bc4f24dc342889c7b9d0690856f2dc3b1322db"- },- "demo-dark-keynote": {- "file": "demo-dark-keynote.tar",- "size": 21688320,- "sha256": "01eb204c9e2501cefe6bc457982cf5adb9d3f60fe5717432f9a11a5bf340cf57"- },- "demo-dataviz": {- "file": "demo-dataviz.tar",- "size": 21637120,- "sha256": "3a6599793ab5580b95ebaef645354f90c2408097a2894240b06330cd5863bb18"- },- "demo-game-show": {- "file": "demo-game-show.tar",- "size": 26255360,- "sha256": "d6ba66ff52833e5f62e096c5d0ab5143dad8c404b57285d100eeb8273fe06559"- },- "demo-glass-product": {- "file": "demo-glass-product.tar",- "size": 24842240,- "sha256": "1e4da598653784c5d7d451156130e85a984edfcb8c659e0dda9f356a27ade225"- },- "demo-halftone-dossier": {- "file": "demo-halftone-dossier.tar",- "size": 5304320,- "sha256": "e876564adcd01fcd508c085e53d5d4c9064ee66abdd32849bea2562108830931"- },- "demo-hd-2d": {- "file": "demo-hd-2d.tar",- "size": 57446400,- "sha256": "66f3cb197d35daec31b07cd44572fc5446cc88a81951e1a692adf183cb9f5605"- },- "demo-impasto": {- "file": "demo-impasto.tar",- "size": 15411200,- "sha256": "90ed4e74ed95f679cf8155cabf496199fbde10522b55d8d77ef43afad9af6a03"- },- "demo-ink-wash": {- "file": "demo-ink-wash.tar",- "size": 41768960,- "sha256": "8e85b746c8653cc4acf6f99631320e30a53f392f3d51c277e8a646f0d1699543"- },- "demo-iso-infographic": {- "file": "demo-iso-infographic.tar",- "size": 23531520,- "sha256": "f75e6c2cfc7afbda9ed2a3dd24ca1db0fbb94e3108b0353da17333521873843c"- },- "demo-living-screencast": {- "file": "demo-living-screencast.tar",- "size": 15319040,- "sha256": "853c66da23820270c5980dfd3c7f99e9f9360d3c3f70ddf7be40916d41dd1999"- },- "demo-lowpoly-island": {- "file": "demo-lowpoly-island.tar",- "size": 26030080,- "sha256": "e01913d080ff090ba87811ac28bb826d217031716042f0b81807ce31c15c4ba5"- },- "demo-microgame": {- "file": "demo-microgame.tar",- "size": 25026560,- "sha256": "78c557007b8a870203eb4926b11f05808705a953461bc93e016c1366f1ec7de9"- },- "demo-one-line": {- "file": "demo-one-line.tar",- "size": 19630080,- "sha256": "58f4a8e0adfb98f280108fb516e74ab0f2decd8f1bd0ccb080005ed08be28fbc"- },- "demo-paper-lantern": {- "file": "demo-paper-lantern.tar",- "size": 82667520,- "sha256": "246c6c80effa71499c01960c38cfb304e4b1f5ea33d53ec444ba4cbbfe6ea6e0"- },- "demo-paper-popup": {- "file": "demo-paper-popup.tar",- "size": 238172160,- "sha256": "1d10ab4f9f30bf29a6d4a44b89358f7e9729c4d62f8c71e3a40a5ec88d6cd2af"- },- "demo-papercut-red": {- "file": "demo-papercut-red.tar",- "size": 25896960,- "sha256": "3529a2d79625250886efe3fefae193af4b40723d8aa0a2039f5a44cde0036504"- },- "demo-pictogram-motion": {- "file": "demo-pictogram-motion.tar",- "size": 169410560,- "sha256": "6ddefef34fc1528251fe7bf6f8900dc9daa6896646e1cba81eab6e756ec2033c"- },- "demo-pixel-rpg": {- "file": "demo-pixel-rpg.tar",- "size": 37314560,- "sha256": "4905ecf9a5074d581cf697a6fb92789726eac7149d9c1ad5d3e833dd1bf494a6"- },- "demo-risograph": {- "file": "demo-risograph.tar",- "size": 16599040,- "sha256": "5908486eaf3aee6ebdca7b0b1de60bda8460b78c2e21199be6d0ad96eba58cda"- },- "demo-rubber-hose": {- "file": "demo-rubber-hose.tar",- "size": 25169920,- "sha256": "d34b6ca804f6fc26c078e412fda57086bbe1c040ecfbb3d1216d15737747d4da"- },- "demo-scifi-toon": {- "file": "demo-scifi-toon.tar",- "size": 24248320,- "sha256": "2a6770d6b470499e867c9c350629ccc4a967c17e0db408623d12c4f6ac32bbb2"- },- "demo-shadow-puppet": {- "file": "demo-shadow-puppet.tar",- "size": 39424000,- "sha256": "253235be861db5590f526d891caa0bbac5a69ba26ed8e06fea2b1d96b08d1f95"- },- "demo-silent-film": {- "file": "demo-silent-film.tar",- "size": 27822080,- "sha256": "699e1d8463a9baa1827319bab0876134462564480935804585137ae2cbf4ef71"- },- "demo-spy-titles": {- "file": "demo-spy-titles.tar",- "size": 22599680,- "sha256": "98ab47f8d7bdb8e7f77e54b68351bb9974a0ec730ad0efad458122e676dc9615"- },- "demo-stained-glass": {- "file": "demo-stained-glass.tar",- "size": 35440640,- "sha256": "7d8a0efc3c5173b4c4cdfc9a6b1e5b4866231ad21f0b6980cf26814c650e5b59"- },- "demo-swiss-motion": {- "file": "demo-swiss-motion.tar",- "size": 31406080,- "sha256": "a650d91a91936d29147681d3bebda5b8a671704b1cfdf21f6f5630e5363cdf41"- },- "demo-tilt-shift": {- "file": "demo-tilt-shift.tar",- "size": 15718400,- "sha256": "fbda5e63199870aee345a5cd20a5e6ef651aef4646d90fc428b2221de8142c9d"- },- "demo-ukiyoe": {- "file": "demo-ukiyoe.tar",- "size": 42086400,- "sha256": "7bc459ede528501f71a00e1e6ea52a09115286c9dd1d94f2b43a067d21220856"- },- "demo-urban-sketch": {- "file": "demo-urban-sketch.tar",- "size": 44124160,- "sha256": "32a743b4e78aad241aa2e7df5368a1cd4db0d33ce5184f788eed897e04f69fe4"- },- "demo-watercolor": {- "file": "demo-watercolor.tar",- "size": 158412800,- "sha256": "f3b7d4b1b4f55fefef73ec08abbe69600f8fd92cbbc5fd52cfea1297b43db7c5"- },- "demo-whiteboard": {- "file": "demo-whiteboard.tar",- "size": 67645440,- "sha256": "78a640f47169d0cd7f6cd58390c75ae34d08ec333b4f7218daaf65cb247cb9dc"- },- "demo-woodcut": {- "file": "demo-woodcut.tar",- "size": 34908160,- "sha256": "d2c7031b104d64bcd9146d222fad918c3018f5f2d9758ccf0431dc2967a797ff"+ "instruments-freepats": {+ "file": "instruments-freepats.tar",+ "size": 415959040,+ "sha256": "ae73707a7c88c8b985cedead751ff52ff8bfcaa3a48fa07ca6f45c0c6da00c83"+ },+ "instruments-karoryfer": {+ "file": "instruments-karoryfer.tar",+ "size": 77772800,+ "sha256": "b72822ac2f6569ed33b376448784d542bf039478fbf521db0c4bdc7ee766cac4"+ },+ "instruments-salamander": {+ "file": "instruments-salamander.tar",+ "size": 229150720,+ "sha256": "7c6a543de04daf6fdd7337ae08bf0484bec2a78b902ca80748bca927f42e189c"+ },+ "instruments-vcsl": {+ "file": "instruments-vcsl.tar",+ "size": 284682240,+ "sha256": "3ed8f753500e629485e323fc7f883b35aca6a77a1ab04522d1d47037d503f6e1"+ },+ "instruments-vsco2ce": {+ "file": "instruments-vsco2ce.tar",+ "size": 413911040,+ "sha256": "231297103cb4a3123707ddb7b284e5ea3aed0b8d77c0b891360b4d3efe8b586f"}}}\ No newline at end of filediff --git a/tools/fetch.sh b/tools/fetch.shindex 45223f6..d7cd2f8 100755--- a/tools/fetch.sh+++ b/tools/fetch.sh@@ -1,41 +1,106 @@#!/bin/sh# Download large assets that are not in git, from the "assets" release on GitHub.-# sh tools/fetch.sh voice Kokoro TTS model → core/tts/-# sh tools/fetch.sh instruments sample libraries → core/audio/instruments/-# sh tools/fetch.sh hdri Poly Haven HDRIs → core/assets/polyhaven/-# sh tools/fetch.sh demo <slug> inputs to rebuild one of our demos (fonts, music, voices…)+# An interrupted download resumes when you run the same command again. It needs about 2.2x the pack's size+# in free disk space (the download, then the unpacked files).set -ecd "$(dirname "$0")/.."+LIBS="freepats karoryfer salamander vcsl vsco2ce"+usage() {+ cat <<USAGE+usage: sh tools/fetch.sh voice | hdri | instruments <lib> | instruments all+ voice Kokoro TTS model (English, offline) → core/tts/+ hdri Poly Haven HDRIs → core/assets/polyhaven/+ instruments <lib> one sample library → core/audio/instruments/ (libs: $LIBS)+ instruments all every sample library (about 1.4 GB)+USAGE+ exit 1+}case "$1" in- voice|instruments|hdri) PACK="$1" ;;- demo) [ -n "$2" ] || { echo "usage: sh tools/fetch.sh demo <slug>"; exit 1; }; PACK="demo-$2" ;;- *) sed -n '2,7p' "$0"; exit 1 ;;+ voice|hdri) PACKS=$1 ;;+ instruments)+ case " $LIBS all " in *" $2 "*) ;; *) usage ;; esac+ if [ "$2" = all ]; then PACKS=""; for l in $LIBS; do PACKS="$PACKS instruments-$l"; done; else PACKS="instruments-$2"; fi ;;+ *) usage ;;esac-python3 - "$PACK" <<'PY'-import hashlib, json, os, sys, tarfile, urllib.request-pack = sys.argv[1]+# the library's own Python when it has one; the system's python3 otherwise (3.8+ is enough here)+if [ -x .venv/bin/python ]; then PY=.venv/bin/python; else PY=python3; fi+command -v "$PY" >/dev/null || { echo "✗ python3 is needed to run this script"; exit 1; }+"$PY" - $PACKS <<'PY'+import hashlib, json, os, shutil, subprocess, sys, tarfile, time, urllib.error, urllib.requestman = json.load(open('tools/assets.json'))-p = man['packs'].get(pack)-if not p: sys.exit(f"nothing to fetch for {pack}: everything it needs is already in git" if pack.startswith("demo-") else f"no pack {pack} (see tools/assets.json)")-url = f'https://github.com/{man["repo"]}/releases/download/{man["tag"]}/{p["file"]}'-tmp = os.path.join('.release', p['file'] + '.download')+packs = sys.argv[1:]+missing = [p for p in packs if p not in man['packs']]+if missing:+ sys.exit(f'✗ {", ".join(missing)} is not published yet (tools/assets.json has no entry). Refresh the library '+ f'(sh plugin/skills/lemo-opuscar/scripts/setup.sh, or git pull) and try again.')+++def sha256(path):+ h = hashlib.sha256()+ with open(path, 'rb') as f:+ for chunk in iter(lambda: f.read(1 << 20), b''): h.update(chunk)+ return h.hexdigest()+++def download(url, tmp, size):+ have = lambda: os.path.getsize(tmp) if os.path.exists(tmp) else 0+ if have() > size: os.remove(tmp) # not a partial copy of this pack+ if have() == size: return+ print(f'↓ {os.path.basename(url)} ({size / 1e6:.0f} MB){f", resuming at {have() / 1e6:.0f} MB" if have() else ""}', flush=True)+ if shutil.which('curl'): # resume, retries and a progress bar+ r = subprocess.run(['curl', '-L', '--fail', '--retry', '3', '--retry-delay', '2', '--connect-timeout', '20', '-C', '-', '-#', '-o', tmp, url])+ if r.returncode: sys.exit(f'✗ download failed (curl exit {r.returncode}); check the network and run the same command again to resume')+ return+ fails = 0+ try:+ while have() < size:+ req = urllib.request.Request(url, headers={'Range': f'bytes={have()}-'} if have() else {})+ try: r = urllib.request.urlopen(req, timeout=60)+ except urllib.error.HTTPError as e: # GitHub answers 5xx now and then: try again, resuming+ fails += 1+ if e.code < 500 or fails > 3: raise+ time.sleep(2 * fails); continue+ with r:+ append = have() > 0 and r.status == 206 # a server that ignores Range sends everything again+ with open(tmp, 'ab' if append else 'wb') as f:+ done = have() if append else 0+ while chunk := r.read(1 << 20):+ f.write(chunk); done += len(chunk)+ print(f'\r {done / size * 100:5.1f} %', end='', flush=True)+ print()+ except OSError as e:+ sys.exit(f'\n✗ download failed ({e}); check the network and run the same command again to resume')+++def extract(tmp):+ with tarfile.open(tmp) as t:+ if hasattr(tarfile, 'data_filter'): # Python 3.12+ and the patched 3.8-3.11+ t.extractall('.', filter='data')+ return+ root = os.path.realpath('.') # older Pythons: refuse anything that could leave the folder+ for m in t.getmembers():+ dest = os.path.realpath(os.path.join(root, m.name))+ link = os.path.realpath(os.path.join(os.path.dirname(dest), m.linkname)) if m.issym() else os.path.realpath(os.path.join(root, m.linkname)) if m.islnk() else dest+ if os.path.isabs(m.name) or m.isdev() or not all(x == root or x.startswith(root + os.sep) for x in (dest, link)):+ sys.exit(f'✗ the pack contains an unsafe entry ({m.name}); nothing was unpacked')+ t.extractall('.')++os.makedirs('.release', exist_ok=True)-print(f'↓ {p["file"]} ({p["size"] / 1e6:.0f} MB)')-hs = hashlib.sha256()-with urllib.request.urlopen(url) as r, open(tmp, 'wb') as f:- done = 0- while chunk := r.read(1 << 20):- f.write(chunk); hs.update(chunk); done += len(chunk)- print(f'\r {done / p["size"] * 100:5.1f} %', end='', flush=True)-print()-if hs.hexdigest() != p['sha256']: sys.exit('checksum mismatch, try again')-with tarfile.open(tmp) as t: t.extractall('.', filter='data')-os.remove(tmp)-# demos that keep their own copy of the TTS model use the shared one-if pack.startswith('demo-'):- d = os.path.join('styles', pack[5:], 'demo', 'tts')- for m in ('kokoro-v1.0.onnx', 'voices-v1.0.bin'):- if os.path.isdir(d) and not os.path.exists(os.path.join(d, m)) and os.path.exists(os.path.join('core/tts', m)):- os.link(os.path.join('core/tts', m), os.path.join(d, m))-print('✓ done')+for name in packs:+ p = man['packs'][name]+ size, tmp = p['size'], os.path.join('.release', p['file'] + '.download')+ need, free = int(size * 2.2) - (os.path.getsize(tmp) if os.path.exists(tmp) else 0), shutil.disk_usage('.').free+ if free < need:+ sys.exit(f'✗ not enough disk space: {p["file"]} is {size / 1e9:.2f} GB and needs about {need / 1e9:.1f} GB free here while it downloads and unpacks; {free / 1e9:.1f} GB is available')+ download(f'https://github.com/{man["repo"]}/releases/download/{man["tag"]}/{p["file"]}', tmp, size)+ if sha256(tmp) != p['sha256']:+ os.remove(tmp)+ sys.exit('✗ checksum mismatch. The pack on the release was probably updated after your copy of the library was.\n'+ ' Refresh the library (sh plugin/skills/lemo-opuscar/scripts/setup.sh, or git pull) and run this again. If it still fails, just retry.')+ extract(tmp)+ os.remove(tmp)+ print(f'✓ {name}')+try: os.rmdir('.release') # ours only when nothing else is staged there+except OSError: passPYdiff --git a/tools/publish.sh b/tools/publish.shindex 548ce88..86c3d88 100755--- a/tools/publish.sh+++ b/tools/publish.sh@@ -1,6 +1,7 @@#!/bin/sh-# Publish local changes: refresh the gallery data, check the repo, upload films and asset packs.-# After it passes: git add -A && git commit -m "…" && git push (the gallery on GitHub Pages rebuilds itself)+# Publish local changes: refresh the gallery data, check the repo, pack and upload films and asset packs, verify the releases.+# After it passes: git add -A && git commit -m "…" && git push (add -A: the new files must go in too)+# Don't commit tools/assets.json from a run that failed: it may point at packs that were never uploaded.set -ecd "$(dirname "$0")/.."python3 styleboard/build.py@@ -8,6 +9,7 @@ sh tools/web_cuts.shpython3 tools/release.py checkpython3 tools/release.py packpython3 tools/release.py upload+python3 tools/release.py verifyechogit status --short 2>/dev/null | head -30 || true-echo "Ready: git add -A && git commit && git push"+echo "Ready. Next: git add -A && git commit -m \"…\" && git push (-A, not -a: untracked files are part of the release)"diff --git a/tools/release.py b/tools/release.pyindex 7b68cca..8d62fd8 100644--- a/tools/release.py+++ b/tools/release.py@@ -1,30 +1,40 @@"""Maintainer tool: keep git small, put films and large assets on GitHub Releases.- python3 tools/release.py check what git would commit; fails on big files, local paths, secrets- python3 tools/release.py pack build .release/ (asset packs) and tools/assets.json (manifest)- python3 tools/release.py upload upload new/changed packs to release "assets" and films to release "films"+ python3 tools/release.py check [--strict] [slug ...]+ what git would commit: fails on big files, local paths, secrets and incomplete styles.+ Warnings (missing web cut, broken still links…) fail only with --strict, which also checks+ the style format (style.json, STYLE.md, DEMO.md, no sign-off in STYLE.md). Slugs limit+ the per-style checks to those styles: the gate for a new style is `check --strict <slug>`.+ python3 tools/release.py pack build the asset packs in .release/ and write tools/assets.json (their size and sha256)+ python3 tools/release.py upload upload what the releases lack: packs whose sha256 differs, films and web cuts whose size differs+ python3 tools/release.py verify list what upload would do; exit 1 if anything is missing or different. Changes nothing-Needs the GitHub CLI (`gh auth login`) for upload. Usually run through tools/publish.sh.+Needs the GitHub CLI (`gh auth login`) for upload and verify. Usually run through tools/publish.sh."""-import glob, hashlib, json, os, re, subprocess, sys, tarfile, tempfile+import glob, hashlib, json, os, re, shutil, subprocess, sys, tarfile, tempfileROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))REPO = 'lemomo-ai/lemo-opuscar'OUT = os.path.join(ROOT, '.release')MANIFEST = os.path.join(ROOT, 'tools', 'assets.json')MAX_MB = 5+SAMPLE_LIBS = ('freepats', 'karoryfer', 'salamander', 'vcsl', 'vsco2ce')-# Packs downloaded by tools/fetch.sh. Paths are relative to the repo root.-CORE_PACKS = {+# Packs downloaded by tools/fetch.sh (paths relative to the repo root). Every instruments pack carries index.json.+PACKS = {'voice': ['core/tts/kokoro-v1.0.onnx', 'core/tts/voices-v1.0.bin'],- 'instruments': ['core/audio/instruments'],'hdri': ['core/assets/polyhaven/lythwood_lounge_2k.hdr', 'core/assets/polyhaven/photo_studio_loft_hall_2k.hdr'],+ **{f'instruments-{lib}': ['core/audio/instruments/index.json', f'core/audio/instruments/{lib}'] for lib in SAMPLE_LIBS},}-# Ignored files that are NOT inputs of a demo: render caches, debug frames, films, internal notes, reference images we may not redistribute.-NOT_INPUT = re.compile(r'/(out[^/]*|node_modules|stems[^/]*|music_stems|chk|dbg|stills|ref|__pycache__)/|\.mp4$|\.log$|/HANDOFF\.md$|/PRODUCTION_LOG[^/]*$|/demo/tts/.*\.(onnx|bin)$|\.DS_Store$')-LOCAL_PATH = re.compile(rb'/Users/[A-Za-z0-9_.-]+/|/priv' rb'ate/tmp/|/home/[a-z0-9_-]+/')-SECRET = re.compile(rb'(sk-ant-[A-Za-z0-9_-]{20,}|sk-[A-Za-z0-9]{32,}|AIza[0-9A-Za-z_-]{30,}|ghp_[A-Za-z0-9]{30,}|github_pat_[A-Za-z0-9_]{30,}|xox[bp]-[A-Za-z0-9-]{10,}|AKIA[0-9A-Z]{16})')-TEXT = ('.js', '.mjs', '.cjs', '.py', '.sh', '.json', '.md', '.html', '.css', '.txt', '.yml', '.yaml', '.toml', '.srt')+STYLE_FIELDS = ('slug', 'en', 'cn', 'category_en', 'category_cn', 'film', 'line', 'line_cn', 'frame_sec')+SIGN_OFF = re.compile(r'(?i:lemolab)|Opus 5\.5|Sign-off')+# a home folder may be `Alice Smith` (up to three words, none ending in a dot, so a sentence isn't swallowed); /root/ counts when a path follows it+LOCAL_PATH = re.compile(rb'/Users/[A-Za-z0-9_](?:[A-Za-z0-9_.-]*[A-Za-z0-9_-])?(?: [A-Za-z0-9_](?:[A-Za-z0-9_.-]*[A-Za-z0-9_-])?){0,2}/|/priv' rb'ate/tmp/|/home/[A-Za-z0-9_][A-Za-z0-9_.-]*/|(?<![A-Za-z0-9_.~-])/ro' rb'ot/[A-Za-z0-9_.~-]|/Volum' rb'es/|[A-Z]:\\Users\\')+SECRET = re.compile(rb'(sk-ant-[A-Za-z0-9_-]{20,}|sk-proj-[A-Za-z0-9_-]{20,}|sk-[A-Za-z0-9]{32,}|AIza[0-9A-Za-z_-]{30,}|gh[opsur]_[A-Za-z0-9]{30,}|github_pat_[A-Za-z0-9_]{30,}|hf_[A-Za-z0-9]{30,}|xox[bp]-[A-Za-z0-9-]{10,}|AKIA[0-9A-Z]{16}|-----BEGIN [A-Z ]*PRIV' rb'ATE KEY-----)')+BINARY = re.compile(r'\.(jpe?g|png|gif|webp|ico|mp4|mov|mp3|wav|ogg|flac|woff2?|ttf|otf|hdr|exr|glb|bin|onnx|npy|npz|pyc|nbi|nbc|zip|tar|gz|tgz|pdf|wasm)$', re.I)+IMG = r'[A-Za-z0-9_.*?<>{}-]+(?:/[A-Za-z0-9_.*?<>{}-]+)*\.(?:jpe?g|png|webp|gif)'+STILL_PATH = re.compile(r'(?:styles/([a-z0-9-]+)/)?demo/stills/(' + IMG + ')', re.I)+STILL_NAME = re.compile(r'(?<![\w/.*-])([A-Za-z0-9_][A-Za-z0-9_.*-]*\.(?:jpe?g|png|webp|gif))(?![\w/*-])', re.I)def git(*a):@@ -42,25 +52,128 @@ def committed():return sorted(f for f in git('ls-files', '-z', '-co', '--exclude-standard') if f and os.path.isfile(os.path.join(ROOT, f)))-def ignored(prefix):- return sorted(f for f in git('ls-files', '-z', '-o', '-i', '--exclude-standard', '--', prefix) if f)+def style_slugs():+ """The styles of the library: every folder under styles/ with a STYLE.md (names starting with _ are templates or drafts)."""+ base = os.path.join(ROOT, 'styles')+ return sorted(s for s in os.listdir(base) if not s.startswith(('_', '.')) and os.path.isfile(os.path.join(base, s, 'STYLE.md')))+++def load(rel, default):+ p = os.path.join(ROOT, rel)+ return json.load(open(p, encoding='utf-8')) if os.path.isfile(p) else default+++def still_refs(slug, text):+ """{(style, path under demo/stills)} of the images a doc points to. A written-out path always counts. A bare file name+ on the same line counts when such a file exists in that style's demo/stills (so `poster.jpg` elsewhere isn't taken for one)."""+ refs = set()+ pattern = re.compile(r'[*?<>{}]') # `t_*.png`, `alt_<n>.jpg`: a pattern or a placeholder, not a file+ for line in text.splitlines():+ paths = STILL_PATH.findall(line)+ for other, ref in paths:+ if not pattern.search(ref): refs.add((other or slug, ref))+ if paths:+ style = paths[0][0] or slug+ for name in STILL_NAME.findall(line):+ if not pattern.search(name) and os.path.isfile(os.path.join(ROOT, 'styles', style, 'demo', 'stills', name)): refs.add((style, name))+ return refs+++def film_seconds(path):+ """Length of a film in seconds; None when ffprobe can't read it, 'no-ffprobe' when there is no ffprobe to ask."""+ if not shutil.which('ffprobe'): return 'no-ffprobe'+ r = subprocess.run(['ffprobe', '-v', 'error', '-show_entries', 'format=duration', '-of', 'csv=p=0', path], capture_output=True, text=True)+ try: d = float(r.stdout)+ except ValueError: return None+ return d if d > 0 else None+++def committed_catalog():+ """{slug: dur} of styleboard/catalog.json as it is in HEAD; {} when there is no HEAD or no such file."""+ r = subprocess.run(['git', '-C', ROOT, 'show', 'HEAD:styleboard/catalog.json'], capture_output=True, text=True)+ try: return {e['slug']: e.get('dur', 0) for e in json.loads(r.stdout)} if r.returncode == 0 else {}+ except (ValueError, KeyError, TypeError): return {}+++def style_format(slugs, bad):+ """--strict: the file layout every style folder must have (folders starting with _ are drafts and skipped)."""+ base = os.path.join(ROOT, 'styles')+ for slug in slugs:+ d, probs = os.path.join(base, slug), []+ for f in ('style.json', 'STYLE.md', 'DEMO.md'):+ if not os.path.isfile(os.path.join(d, f)): probs.append(f'no {f}')+ try:+ meta = json.load(open(os.path.join(d, 'style.json'), encoding='utf-8'))+ miss = [k for k in STYLE_FIELDS if meta.get(k) in (None, '')]+ if miss: probs.append('style.json lacks ' + ', '.join(miss))+ elif meta['slug'] != slug: probs.append(f'style.json says slug "{meta["slug"]}"')+ except FileNotFoundError: pass+ except ValueError as e: probs.append(f'style.json is not valid JSON ({e})')+ if os.path.isfile(os.path.join(d, 'STYLE.md')):+ hits = sorted({m.group(0) for m in SIGN_OFF.finditer(open(os.path.join(d, 'STYLE.md'), encoding='utf-8').read())})+ if hits: probs.append('STYLE.md mentions ' + ' / '.join(hits) + ' (the sign-off belongs in DEMO.md only)')+ if probs: bad.append(f'{slug}: not in the style format yet: ' + '; '.join(probs))+++def completeness(have, bad, warn, slugs):+ """Everything a style needs to be publishable. `have` = the files git would commit."""+ catalog = {e.get('slug'): e for e in load('styleboard/catalog.json', [])}+ before, ffprobe_warned = committed_catalog(), []+ if not any(e.get('dur', 0) > 0 for e in catalog.values()) and style_slugs():+ bad.append('styleboard/catalog.json lists no film for any style (every dur is 0): the gallery would have no videos. '+ 'build.py was probably run on a machine without the films; restore catalog.json (git checkout styleboard/catalog.json)')+ for slug in slugs:+ s = f'styles/{slug}'+ for rel, what in ((f'{s}/poster.jpg', 'poster.jpg'), (f'{s}/demo/stills/styleframe.jpg', 'demo/stills/styleframe.jpg (see .gitignore)'), (f'{s}/demo/CREDITS', 'demo/CREDITS')):+ if rel not in have: bad.append(f'{slug}: {what} is missing or ignored by git')+ if slug not in catalog: bad.append(f'{slug}: not in styleboard/catalog.json (run python3 styleboard/build.py)')+ film = os.path.join(ROOT, s, slug + '.mp4')+ if not os.path.isfile(film): warn.append(f'{slug}: no film {s}/{slug}.mp4 here')+ else:+ secs = film_seconds(film)+ if secs == 'no-ffprobe':+ if not ffprobe_warned: warn.append('ffprobe is not installed: the films could not be checked for readability'); ffprobe_warned.append(1)+ elif secs is None: bad.append(f'{slug}: {s}/{slug}.mp4 exists but ffprobe cannot read its duration (a half-rendered file?): render it again or move it away')+ if not os.path.isfile(os.path.join(OUT, 'web', slug + '.mp4')): warn.append(f'{slug}: no web cut in .release/web/ (sh tools/web_cuts.sh)')+ if before.get(slug, 0) > 0 and catalog.get(slug, {}).get('dur', 1) == 0:+ bad.append(f'{slug}: styleboard/catalog.json says dur 0 now, but the committed catalog has {before[slug]}: the gallery card would lose its video (build.py on a machine without the film?)')+ if glob.glob(os.path.join(ROOT, s, 'demo', 'voices', '*.wav')) and f'{s}/{slug}.srt' not in have:+ warn.append(f'{slug}: the demo has a voice track but no {slug}.srt')+ for doc in ('STYLE.md', 'DEMO.md', 'demo/TREATMENT.md', 'TREATMENT.md'): # stills the committed docs point to must be committable too+ if f'{s}/{doc}' not in have: continue+ text = open(os.path.join(ROOT, s, doc), encoding='utf-8', errors='replace').read()+ for other, ref in sorted(still_refs(slug, text)):+ path = f'styles/{other}/demo/stills/{ref}'+ if path in have: continue+ if not os.path.isfile(os.path.join(ROOT, path)): warn.append(f'{slug}: {doc} points to demo/stills/{ref}, which does not exist here')+ else: warn.append(f'{slug}: {doc} points to demo/stills/{ref}, which git would not commit (add `!{path}` to .gitignore)')def check():- files, bad = committed(), []+ args = [a for a in sys.argv[2:] if not a.startswith('--')]+ strict = '--strict' in sys.argv+ unknown = [a for a in args if not os.path.isdir(os.path.join(ROOT, 'styles', a))]+ if unknown: sys.exit(f'✗ no style called {", ".join(unknown)}')+ files, bad, warn = committed(), [], []+ have = set(files)size = 0for f in files:p = os.path.join(ROOT, f)n = os.path.getsize(p); size += nif n > MAX_MB * 1e6: bad.append(f'too big ({n / 1e6:.1f} MB): {f}')- if f.endswith(TEXT) and n < 2e6:+ elif not BINARY.search(f):b = open(p, 'rb').read()if LOCAL_PATH.search(b): bad.append(f'local path: {f}')if SECRET.search(b): bad.append(f'possible secret: {f}')print(f'git would hold {len(files)} files, {size / 1e6:.0f} MB')+ completeness(have, bad, warn, [s for s in style_slugs() if not args or s in args])+ if strict:+ style_format([s for s in style_slugs() if not args or s in args], bad)+ bad += [f'(--strict) {w}' for w in warn]; warn = []+ for w in warn: print(' !', w)for b in bad: print(' ✗', b)if bad: sys.exit(1)- print(' ✓ no files over %d MB, no local paths, no secrets' % MAX_MB)+ print(' ✓ no files over %d MB, no local paths, no secrets; every %sstyle has its poster, style frame, CREDITS and gallery entry%s' % (MAX_MB, 'selected ' if args else '', '; style format ok; no warnings' if strict else ''))def sha(p):@@ -81,49 +194,76 @@ def tar(name, paths):def pack():- man = {}- for name, paths in CORE_PACKS.items():- if all(os.path.exists(os.path.join(ROOT, p)) for p in paths):- dst = tar(f'{name}.tar', paths); man[name] = dict(file=f'{name}.tar', size=os.path.getsize(dst), sha256=sha(dst))- print(f' {name}.tar {man[name]["size"] / 1e6:.0f} MB')- for slug in sorted(os.listdir(os.path.join(ROOT, 'styles'))):- if not os.path.isfile(os.path.join(ROOT, 'styles', slug, 'STYLE.md')): continue- files = [f for f in ignored(f'styles/{slug}/') if not NOT_INPUT.search(f)]- if not files: continue- dst = tar(f'demo-{slug}.tar', files)- man[f'demo-{slug}'] = dict(file=f'demo-{slug}.tar', size=os.path.getsize(dst), sha256=sha(dst))- print(f' demo-{slug}.tar {man[f"demo-{slug}"]["size"] / 1e6:.0f} MB')+ old, man = load('tools/assets.json', {}).get('packs', {}), {}+ for name, paths in PACKS.items():+ if not all(os.path.exists(os.path.join(ROOT, p)) for p in paths):+ if name in old: man[name] = old[name]; print(f' ! {name}: its files are not here, keeping the published entry')+ else: print(f' ! {name}: its files are not here, so it is not in the manifest')+ continue+ dst = tar(f'{name}.tar', paths)+ man[name] = dict(file=f'{name}.tar', size=os.path.getsize(dst), sha256=sha(dst))+ print(f' {name}.tar {man[name]["size"] / 1e6:.0f} MB')json.dump(dict(repo=REPO, tag='assets', packs=man), open(MANIFEST, 'w'), indent=1)print(f'→ {os.path.relpath(MANIFEST, ROOT)}')def gh(*a, check=True):- return subprocess.run(['gh', *a, '--repo', REPO], cwd=ROOT, capture_output=True, text=True, check=check)+ r = subprocess.run(['gh', *a, '--repo', REPO], cwd=ROOT, capture_output=True, text=True)+ if check and r.returncode: sys.exit(f'✗ gh {" ".join(a[:3])} failed: {(r.stderr or r.stdout).strip()[:300]}')+ return r+++def remote(tag):+ """{name: (size, sha256 or None)} of a release; {} when the release doesn't exist yet."""+ r = gh('release', 'view', tag, '--json', 'assets', check=False)+ if r.returncode: return {}+ return {a['name']: (a['size'], (a.get('digest') or '').removeprefix('sha256:') or None) for a in json.loads(r.stdout).get('assets', [])}+++def plan():+ """[(tag, local path, why)] of everything the releases lack. Packs are compared by sha256 (a changed tar is often the+ same size), films and web cuts by size."""+ if not shutil.which('gh'): sys.exit('✗ the GitHub CLI (gh) is needed: https://cli.github.com, then gh auth login')+ rel = {t: remote(t) for t in ('assets', 'films', 'web')}+ todo = []+ styles = style_slugs()+ features = [os.path.basename(f)[:-4] for f in glob.glob(os.path.join(OUT, 'films', '*.mp4')) if os.path.basename(f)[:-4] not in styles]+ for slug in styles + sorted(features):+ film = os.path.join(ROOT, 'styles', slug, slug + '.mp4') if slug in styles else os.path.join(OUT, 'films', slug + '.mp4')+ if not os.path.isfile(film): continue # unfinished, or its film is on another machine+ for tag, path in (('films', film), ('web', os.path.join(OUT, 'web', slug + '.mp4'))):+ if not os.path.isfile(path): todo.append((tag, None, f'{slug}.mp4: no local file (sh tools/web_cuts.sh)')); continue+ have = rel[tag].get(slug + '.mp4')+ if not have or have[0] != os.path.getsize(path): todo.append((tag, path, 'missing' if not have else 'size differs'))+ for p in load('tools/assets.json', {}).get('packs', {}).values():+ have, path = rel['assets'].get(p['file']), os.path.join(OUT, p['file'])+ if have and (have[1] == p['sha256'] if have[1] else have[0] == p['size']): continue+ if not os.path.isfile(path) or os.path.getsize(path) != p['size']: todo.append(('assets', None, f'{p["file"]}: not built here (python3 tools/release.py pack)'))+ else: todo.append(('assets', path, 'missing' if not have else 'content differs'))+ return tododef upload():- state_p = os.path.join(OUT, 'uploaded.json')- state = json.load(open(state_p)) if os.path.exists(state_p) else {}+ todo = plan()+ blocked = [w for t, p, w in todo if p is None]+ if blocked: sys.exit('✗ nothing uploaded; first fix:\n ' + '\n '.join(blocked))for tag, title in (('assets', 'Assets (fetched by tools/fetch.sh)'), ('films', 'Films (full quality)'), ('web', 'Web cuts (720p, copied into the gallery)')):if gh('release', 'view', tag, check=False).returncode:gh('release', 'create', tag, '--title', title, '--notes', 'Rolling release, updated by tools/publish.sh.', '--latest=false')- todo = [] # films first: the gallery streams them- for slug in sorted(os.listdir(os.path.join(ROOT, 'styles'))):- mp4 = os.path.join(ROOT, 'styles', slug, slug + '.mp4')- if os.path.isfile(mp4) and os.path.isfile(os.path.join(ROOT, 'styles', slug, 'STYLE.md')): todo.append(('films', mp4, None)) # unfinished styles stay private- for mp4 in sorted(glob.glob(os.path.join(OUT, 'web', '*.mp4'))): # 720p cuts the gallery streams from Pages- if os.path.isfile(os.path.join(ROOT, 'styles', os.path.basename(mp4)[:-4], 'STYLE.md')): todo.append(('web', mp4, None))- todo += [('assets', os.path.join(OUT, p['file']), p['sha256']) for p in json.load(open(MANIFEST))['packs'].values()]- for tag, path, digest in todo:- key = f'{tag}/{os.path.basename(path)}'- digest = digest or sha(path)- if state.get(key) == digest: continue- print(f' ↑ {key} {os.path.getsize(path) / 1e6:.0f} MB')+ for tag, path, why in sorted(todo, key=lambda x: x[0] == 'assets'): # films first: the gallery streams them+ if tag == 'assets' and sha(path) != next(p['sha256'] for p in load('tools/assets.json', {})['packs'].values() if p['file'] == os.path.basename(path)):+ sys.exit(f'✗ {path} changed since `pack`: run python3 tools/release.py pack again')+ print(f' ↑ {tag}/{os.path.basename(path)} {os.path.getsize(path) / 1e6:.0f} MB ({why})')gh('release', 'upload', tag, path, '--clobber')- state[key] = digest- json.dump(state, open(state_p, 'w'), indent=1)print(' ✓ releases up to date')+def verify():+ todo = plan()+ for tag, path, why in todo: print(f' ✗ {tag}: ' + (f'{os.path.basename(path)} {why}' if path else why))+ if todo: sys.exit(1)+ print(' ✓ the releases hold every pack in tools/assets.json and every film and web cut on this machine')++if __name__ == '__main__':- {'check': check, 'pack': pack, 'upload': upload}[sys.argv[1] if len(sys.argv) > 1 else 'check']()+ {'check': check, 'pack': pack, 'upload': upload, 'verify': verify}[sys.argv[1] if len(sys.argv) > 1 else 'check']()diff --git a/tools/web_cuts.sh b/tools/web_cuts.shindex 6a20ca6..d207010 100755--- a/tools/web_cuts.sh+++ b/tools/web_cuts.sh@@ -1,11 +1,24 @@#!/bin/sh-# 720p web cuts for the gallery (served by GitHub Pages as video/mp4, which Safari needs)+# 720p web cuts for the gallery (served by GitHub Pages as video/mp4, which Safari needs).+# A cut is made when it doesn't exist yet or when its film is newer; a failing ffmpeg stops the run with exit 1.cd "$(dirname "$0")/.."mkdir -p .release/web+fail=0+webcut() { # webcut <film> <slug>+ src=$1; out=.release/web/$2.mp4+ [ -f "$out" ] && [ ! "$src" -nt "$out" ] && return 0+ if ffmpeg -v error -y -i "$src" -vf "scale=-2:720:flags=lanczos" -c:v libx264 -preset slow -crf 24 -maxrate 2M -bufsize 4M -pix_fmt yuv420p \+ -c:a aac -b:a 128k -movflags +faststart -f mp4 "$out.part"; then mv "$out.part" "$out"; echo "$2 $(du -h "$out" | cut -f1)"+ else rm -f "$out.part"; echo "✗ $2: ffmpeg could not make the web cut of $src" >&2; fail=1; fi+}for f in styles/*/STYLE.md; do- s=$(basename "$(dirname "$f")"); src=styles/$s/$s.mp4; out=.release/web/$s.mp4- [ -f "$src" ] || continue; [ -f "$out" ] && continue- ffmpeg -v error -y -i "$src" -vf "scale=-2:720:flags=lanczos" -c:v libx264 -preset slow -crf 24 -maxrate 2M -bufsize 4M -pix_fmt yuv420p \- -c:a aac -b:a 128k -movflags +faststart "$out.part.mp4" && mv "$out.part.mp4" "$out" && echo "$s $(du -h "$out" | cut -f1)"+ s=$(basename "$(dirname "$f")")+ [ -f "styles/$s/$s.mp4" ] && webcut "styles/$s/$s.mp4" "$s"+done+for f in .release/films/*.mp4; do # feature films (not a style), e.g. opuscar98+ [ -f "$f" ] || continue+ s=$(basename "$f" .mp4)+ [ -f "styles/$s/STYLE.md" ] || webcut "$f" "$s"donedu -sh .release/web+[ "$fail" = 0 ] || exit 1