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
Bilingual README with a frame grid; play gallery films from Pages
lemomo-ai10a8b358660b
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.ymlindex 464fa03..9c322cd 100644--- a/.github/workflows/pages.yml+++ b/.github/workflows/pages.yml@@ -1,5 +1,5 @@# Builds the style gallery (styleboard/) and publishes it to GitHub Pages on every push to main.-# Films are streamed from the "films" release; nothing large lives in git.+# Films: 720p cuts from the "web" release are copied into the site; full quality stays on the "films" release.name: galleryon:@@ -26,6 +26,10 @@ jobs:with:python-version: '3.12'- run: python3 styleboard/build.py --site _site+ # 720p cuts live on the "web" release; Pages serves them as video/mp4 (Safari won't play Release downloads)+ - run: gh release download web --repo "$GITHUB_REPOSITORY" --pattern '*.mp4' --dir _site/films+ env:+ GH_TOKEN: ${{ github.token }}- uses: actions/upload-pages-artifact@v3with:path: _sitediff --git a/README.md b/README.mdindex d6dec8b..b7167b0 100644--- a/README.md+++ b/README.md@@ -1,14 +1,33 @@+<div align="center">+# Lemo-Opuscar-**40 film styles, each with a short film made entirely in code.** Pick a style, bring your own topic, and let your coding agent direct the film.+**39 film styles, each with a short film made entirely in code.**<br>+**39 种影片风格,每种都配一支完全用代码做出来的短片。**++Pick a style, bring your own story, and let your coding agent direct the film.<br>+选一个风格,带上你自己的故事,让你的编程 agent 来当导演。++[**▶ Watch the gallery · 看图鉴**](https://lemomo-ai.github.io/lemo-opuscar/)++</div>++## 👋 About me · 关于我++I'm **Lemomo** ([@lemomo-ai](https://github.com/lemomo-ai)). More about me on my profile.<br>+我是 **Lemomo**,更多信息见我的 [GitHub 主页](https://github.com/lemomo-ai)。++> **Not an awesome list.** Every film here was made by me, with Claude Opus 5.5. The styles are tuned for Opus 5.5; other models may not reproduce them.+>+> **这不是一个 awesome 合集。** 这里所有的片子都是我自己用 Claude Opus 5.5 做的。风格是按 Opus 5.5 调出来的,换成其他模型不保证能做出同样的效果。-[**▶ Watch the gallery**](https://lemomo-ai.github.io/lemo-opuscar/) · [中文说明](README.zh-CN.md)+-+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.-Every film here was directed, drawn, scored and mixed by an AI agent (Claude Opus 5.5) 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.+每一支片子都是 AI agent 写代码导演、作画、配乐、混音的:Canvas 和 WebGL 页面逐帧渲染,用免费采样库写原创配乐,本地 TTS 配音。不用视频生成,也不用素材库画面。-## How to use it+## How to use · 怎么用```shgit clone https://github.com/lemomo-ai/lemo-opuscar.git@@ -16,95 +35,154 @@ cd lemo-opuscarclaude # or Codex, Cursor… any agent that reads AGENTS.md```-Then just ask:+Then just say what you want · 然后直接说:> Make a 45-second film in the **watercolor** style about the coffee farm my family runs. Warm female narrator.+>+> 用 **watercolor** 风格做一支 45 秒的片子,讲我家经营的咖啡园,温暖的女声旁白。-The agent reads three guides and works like a small studio:+The agent reads three guides and works like a small studio · agent 会读三份指南,像一个小工作室一样开工:-| File | What it gives the agent |+| File · 文件 | What it gives the agent · 给 agent 的东西 ||---|---|-| [`DIRECTOR.md`](DIRECTOR.md) | how to direct: story, sound, rhythm, camera, performance, self-checks |-| [`TECHNIQUE.md`](TECHNIQUE.md) | how to build: frame-by-frame rendering, voice, music, mixing |-| `styles/<style>/STYLE.md` | what this style looks and sounds like, and how our demo was made |--It stops twice for you: once to approve the **story and storyboard**, once to approve the **look**. Then it produces the film into `films/<name>/`.--Prefer to work in your own project? Point your agent at those three files instead.--**Good to know:** a film takes an agent roughly 30–60 minutes of work, so it uses a fair amount of tokens. You'll need Node 20+, Chrome, ffmpeg and Python 3.11+. Big assets (voice model, sample libraries) download only when a step needs them.--## The styles--<!-- styles:start -->+| [`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>这个风格长什么样、听起来什么样,以及样片是怎么做的 |-**Hand-drawn & Painting**+It stops twice for you: once to approve the **story and storyboard**, once to approve the **look**. Then it produces the film into `films/<name>/`. Prefer your own project? Point your agent at those three files.-- [Crayon Picture Book](styles/crayon-book/STYLE.md) · *The Moon Can't Sleep*: The moon can't sleep, so a little girl climbs onto the roof to sing it a lullaby.-- [Watercolor Brush](styles/watercolor/STYLE.md) · *Follow the Rain*: Follow the rain from Australia's red desert heart to its green coast in one unbroken painted walk.-- [Chinese Ink Wash](styles/ink-wash/STYLE.md) · *The Swordsman and the River*: A swordsman crosses the river on the water and splits the current with a single stroke.-- [Impasto Oil Painting](styles/impasto/STYLE.md) · *The Colour of Rain*: In a grey, rainy square one red umbrella opens, and a waltz paints the whole plaza in colour.-- [One-line Drawing](styles/one-line/STYLE.md) · *The Line That Never Lifted*: One unbroken line draws a whole life, then the pen passes to a child.-- [Whiteboard Explainer](styles/whiteboard/STYLE.md) · *Einstein in Your Pocket*: How your phone knows where you are: GPS, atomic clocks, and the 38 microseconds relativity adds every day.-- [Urban Sketch · Pen & Wash](styles/urban-sketch/STYLE.md) · *Where the Wind Went*: A park that is only a pen sketch; wherever the wind carries her straw hat, colour follows.+它会停下来找你两次:一次确认**故事和分镜**,一次确认**画面**,之后把成片做到 `films/<名字>/`。想在自己的项目里做?把这三个文件交给你的 agent 就行。-**East Asian Traditions**+**Good to know · 提前知道**: a film takes an agent about 30–60 minutes and a fair amount of tokens. You need Node 20+, Chrome, ffmpeg and Python 3.11+; big assets (voice model, sample libraries) download only when a step needs them.<br>+一支片子 agent 大约要工作 30–60 分钟,token 用量不小。需要 Node 20+、Chrome、ffmpeg 和 Python 3.11+;配音模型、采样库这类大文件用到时才下载。-- [Shadow Puppetry](styles/shadow-puppet/STYLE.md) · *Hou Yi Shoots the Suns*: Ten suns scorch the earth until the archer Hou Yi draws his bow, told with leather puppets on a lit screen.-- [Ukiyo-e](styles/ukiyoe/STYLE.md) · *A Journey Toward the Mountain*: A traveller walks toward a distant mountain; every shot is a woodblock print, ending in a great wave.-- [Red Paper-cut](styles/papercut-red/STYLE.md) · *Nian Comes to Town*: 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.-- [Paper-cut Lightbox](styles/paper-lantern/STYLE.md) · *A Mooncake's Longing*: A single mooncake tells the Mid-Autumn story of reunion and longing inside a glowing paper-cut lightbox.+## The styles · 风格-**Print & Printmaking**+Click a frame for its `STYLE.md` · 点图片看它的 `STYLE.md`。-- [Risograph Print](styles/risograph/STYLE.md) · *Sunday Ride*: A Sunday-morning bike ride through the city — bakery, park, riverside — in two misregistered inks.-- [Halftone Dossier](styles/halftone-dossier/STYLE.md) · *Case File: Chubby*: A chubby orange cat stands trial for testing gravity and 4 a.m. parkour, and walks free.-- [Woodcut Print](styles/woodcut/STYLE.md) · *The Bell Founder*: A village spends a whole winter casting one bell; the first time it rings, the snow stops.--**Graphic & Type**--- [Swiss Motion Graphics](styles/swiss-motion/STYLE.md) · *Five Rules for a Poster*: A concert poster lays itself out by five Swiss design rules; the fifth is to break just one.-- [60s Spy Title Sequence](styles/spy-titles/STYLE.md) · *The Velvet Cipher*: Opening titles for an imaginary 1964 spy film: a chase for a stolen key until the shapes lock into the title.-- [Art Deco](styles/art-deco/STYLE.md) · *Midnight at the Starlight Hotel*: A grand hotel, 1930: a bellboy races lifts and revolving doors to deliver one letter before midnight.-- [Blueprint](styles/blueprint/STYLE.md) · *Patent Pending: The Cloud Catcher*: An inventor's blueprint draws, explodes and assembles a cloud-catching machine, and its revision cloud starts to rain.-- [Stained Glass](styles/stained-glass/STYLE.md) · *The Dragon of the East Window*: Sunlight crosses a cathedral window from dawn to dusk, waking each pane of a knight-and-dragon tale.-- [Pictogram Motion](styles/pictogram-motion/STYLE.md) · *Aichi-Nagoya 2026 — All 43 Sports*: All 43 sports of the 2026 Asian Games as beat-locked geometric pictograms.-- [ASCII / CRT Terminal](styles/ascii-crt/STYLE.md) · *Tranquility.log*: A moon-base AI wakes after forty years to a signal from Earth, and replies by drawing “home” in characters.--**Information & Keynote**--- [Data Storytelling](styles/dataviz/STYLE.md) · *A Hundred Summers*: A hundred years of summer temperatures, where the chart itself tells the story.-- [Isometric Infographic](styles/iso-infographic/STYLE.md) · *From Bean to Cup*: A coffee's journey from the plantation to your hands, across one isometric world.-- [Dark Tech Keynote](styles/dark-keynote/STYLE.md) · *Room to Think*: Launch film for Tidy, a fictional app: one buried cursor snaps hundreds of windows back into place.-- [Living Screencast](styles/living-screencast/STYLE.md) · *Clawd Moves In*: 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.--**Cartoon & Anime**--- [1930s Rubber Hose Cartoon](styles/rubber-hose/STYLE.md) · *Coffee Cup Chase*: A coffee cup chases a runaway sugar cube around the kitchen, 1930s-cartoon style.-- [80s Cel Anime](styles/cel-anime-80s/STYLE.md) · *City Lights, 1987*: A courier girl rides through a rain-soaked neon city to deliver a tape before the dawn launch.-- [Sci-Fi Sitcom Toon](styles/scifi-toon/STYLE.md) · *Coffee Run*: A jaded genius opens a portal just to buy coffee and tumbles through ever-stranger universes.--**Games**--- [16-bit Pixel RPG](styles/pixel-rpg/STYLE.md) · *The Last Save Point*: At the final boss door a hero saves the game, and the save screen replays the whole journey.-- [HD-2D](styles/hd-2d/STYLE.md) · *The Lampbearer*: The lighthouse goes dark; a girl carries the last flame through a night forest and up the storm cliffs.-- [Microgame Frenzy](styles/microgame/STYLE.md) · *Five-Second Astronaut*: A clumsy cadet survives a five-second boot camp, faster and faster, until the boss: landing home.-- [Game Show Flat](styles/game-show/STYLE.md) · *Rhythm of AI, 1997 → 2026*: The history of AI as a rhythm game: models take the stage on the beat, and a report card closes the show.--**Cinema & Eras**--- [1920s Silent Film](styles/silent-film/STYLE.md) · *The Runaway Loaf*: A baker's boy chases a runaway loaf downhill, then breaks it in half for a hungry girl.-- [Liminal Found Footage](styles/backrooms/STYLE.md) · *Night Shift Orientation*: A new night-shift hire films their first night in an endless yellow office, following the rules on the wall.--**Materials & 3D**+<!-- styles:start -->-- [Brick Toy](styles/brick-toy/STYLE.md) · *Rocket from Spare Parts*: A brick astronaut builds a rocket from spare parts and flies to a brick moon.-- [Paper Pop-up Book](styles/paper-popup/STYLE.md) · *Pip's Paper Adventure*: A pop-up book opens on a desk; a sprite named Pip adventures through paper worlds and jumps out into ours.-- [Tilt-Shift Miniature](styles/tilt-shift/STYLE.md) · *Toy Town Rush Hour*: Morning rush hour in a town that looks like a model: traffic, trains and tiny people.-- [Low-poly Isometric Island](styles/lowpoly-island/STYLE.md) · *The Island That Grew*: An island and its village grow tile by tile from an empty sea, each tile a note, into a starry night.-- [Glass Product Render](styles/glass-product/STYLE.md) · *Aura — Hear the Light*: Unboxing and close-ups of Aura, fictional glass earbuds, in strip-light sweeps and caustics.+### Hand-drawn & Painting · 手绘与绘画++<table>+<tr>+<td width="33%" valign="top"><a href="styles/crayon-book/STYLE.md"><img src="docs/frames/crayon-book.jpg" alt="Crayon Picture Book"></a><br><b>Crayon Picture Book</b> · 蜡笔儿童绘本<br><i>The Moon Can't Sleep</i><br><sub>The moon can't sleep, so a little girl climbs onto the roof to sing it a lullaby.<br>月亮失眠了,小女孩爬上屋顶给它唱摇篮曲。</sub></td>+<td width="33%" valign="top"><a href="styles/watercolor/STYLE.md"><img src="docs/frames/watercolor.jpg" alt="Watercolor Brush"></a><br><b>Watercolor Brush</b> · 水彩笔刷<br><i>Follow the Rain</i><br><sub>Follow the rain from Australia's red desert heart to its green coast in one unbroken painted walk.<br>跟着降雨从澳洲红色腹地一路画到绿色海岸,一镜到底。</sub></td>+<td width="33%" valign="top"><a href="styles/ink-wash/STYLE.md"><img src="docs/frames/ink-wash.jpg" alt="Chinese Ink Wash"></a><br><b>Chinese Ink Wash</b> · 中国水墨<br><i>The Swordsman and the River</i><br><sub>A swordsman crosses the river on the water and splits the current with a single stroke.<br>侠客踏水过江,一剑断流。</sub></td>+</tr>+<tr>+<td width="33%" valign="top"><a href="styles/impasto/STYLE.md"><img src="docs/frames/impasto.jpg" alt="Impasto Oil Painting"></a><br><b>Impasto Oil Painting</b> · 油画厚涂<br><i>The Colour of Rain</i><br><sub>In a grey, rainy square one red umbrella opens, and a waltz paints the whole plaza in colour.<br>灰色雨中广场,第一把红伞撑开,圆舞曲把整个广场刷上颜色。</sub></td>+<td width="33%" valign="top"><a href="styles/one-line/STYLE.md"><img src="docs/frames/one-line.jpg" alt="One-line Drawing"></a><br><b>One-line Drawing</b> · 一笔画<br><i>The Line That Never Lifted</i><br><sub>One unbroken line draws a whole life, then the pen passes to a child.<br>一根不离纸的线画完一个人的一生,再把笔交给孩子。</sub></td>+<td width="33%" valign="top"><a href="styles/whiteboard/STYLE.md"><img src="docs/frames/whiteboard.jpg" alt="Whiteboard Explainer"></a><br><b>Whiteboard Explainer</b> · 白板讲解<br><i>Einstein in Your Pocket</i><br><sub>How your phone knows where you are: GPS, atomic clocks, and the 38 microseconds relativity adds every day.<br>手机怎么知道你在哪:GPS、原子钟,和相对论每天多出的 38 微秒。</sub></td>+</tr>+<tr>+<td width="33%" valign="top"><a href="styles/urban-sketch/STYLE.md"><img src="docs/frames/urban-sketch.jpg" alt="Urban Sketch · Pen & Wash"></a><br><b>Urban Sketch · Pen & Wash</b> · 钢笔淡彩<br><i>Where the Wind Went</i><br><sub>A park that is only a pen sketch; wherever the wind carries her straw hat, colour follows.<br>公园只是一张钢笔速写,风把草帽吹到哪里,哪里才有颜色。</sub></td>+</tr>+</table>++### East Asian Traditions · 东方传统++<table>+<tr>+<td width="33%" valign="top"><a href="styles/shadow-puppet/STYLE.md"><img src="docs/frames/shadow-puppet.jpg" alt="Shadow Puppetry"></a><br><b>Shadow Puppetry</b> · 皮影戏<br><i>Hou Yi Shoots the Suns</i><br><sub>Ten suns scorch the earth until the archer Hou Yi draws his bow, told with leather puppets on a lit screen.<br>十日炙烤大地,后羿张弓射日。</sub></td>+<td width="33%" valign="top"><a href="styles/ukiyoe/STYLE.md"><img src="docs/frames/ukiyoe.jpg" alt="Ukiyo-e"></a><br><b>Ukiyo-e</b> · 浮世绘<br><i>A Journey Toward the Mountain</i><br><sub>A traveller walks toward a distant mountain; every shot is a woodblock print, ending in a great wave.<br>旅人走向远山,每个镜头都是一幅版画,最后迎来一道巨浪。</sub></td>+<td width="33%" valign="top"><a href="styles/papercut-red/STYLE.md"><img src="docs/frames/papercut-red.jpg" alt="Red Paper-cut"></a><br><b>Red Paper-cut</b> · 红色窗花剪纸<br><i>Nian Comes to Town</i><br><sub>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.<br>除夕年兽进村,小女孩剪出的大窗花照亮全村,把它吓跑。</sub></td>+</tr>+<tr>+<td width="33%" valign="top"><a href="styles/paper-lantern/STYLE.md"><img src="docs/frames/paper-lantern.jpg" alt="Paper-cut Lightbox"></a><br><b>Paper-cut Lightbox</b> · 纸雕灯影<br><i>A Mooncake's Longing</i><br><sub>A single mooncake tells the Mid-Autumn story of reunion and longing inside a glowing paper-cut lightbox.<br>一枚月饼讲中秋的团圆与思念,纸雕灯箱层层透光。</sub></td>+</tr>+</table>++### Print & Printmaking · 印刷与版画++<table>+<tr>+<td width="33%" valign="top"><a href="styles/risograph/STYLE.md"><img src="docs/frames/risograph.jpg" alt="Risograph Print"></a><br><b>Risograph Print</b> · Risograph 丝网印刷<br><i>Sunday Ride</i><br><sub>A Sunday-morning bike ride through the city — bakery, park, riverside — in two misregistered inks.<br>周日早晨骑车穿过城市:面包店、公园、河边。</sub></td>+<td width="33%" valign="top"><a href="styles/halftone-dossier/STYLE.md"><img src="docs/frames/halftone-dossier.jpg" alt="Halftone Dossier"></a><br><b>Halftone Dossier</b> · 复古半调案卷<br><i>Case File: Chubby</i><br><sub>A chubby orange cat stands trial for testing gravity and 4 a.m. parkour, and walks free.<br>橘猫胖橘被立案审查:测试重力、凌晨跑酷,最后无罪释放。</sub></td>+<td width="33%" valign="top"><a href="styles/woodcut/STYLE.md"><img src="docs/frames/woodcut.jpg" alt="Woodcut Print"></a><br><b>Woodcut Print</b> · 木刻版画<br><i>The Bell Founder</i><br><sub>A village spends a whole winter casting one bell; the first time it rings, the snow stops.<br>村子用一整个冬天铸一口钟,钟声第一次响起,雪停了。</sub></td>+</tr>+</table>++### Graphic & Type · 图形与排版++<table>+<tr>+<td width="33%" valign="top"><a href="styles/swiss-motion/STYLE.md"><img src="docs/frames/swiss-motion.jpg" alt="Swiss Motion Graphics"></a><br><b>Swiss Motion Graphics</b> · 瑞士动态排版<br><i>Five Rules for a Poster</i><br><sub>A concert poster lays itself out by five Swiss design rules; the fifth is to break just one.<br>一张音乐会海报按瑞士设计的五条规则自己排版,第五条是只打破一条。</sub></td>+<td width="33%" valign="top"><a href="styles/spy-titles/STYLE.md"><img src="docs/frames/spy-titles.jpg" alt="60s Spy Title Sequence"></a><br><b>60s Spy Title Sequence</b> · 60s 间谍片头<br><i>The Velvet Cipher</i><br><sub>Opening titles for an imaginary 1964 spy film: a chase for a stolen key until the shapes lock into the title.<br>虚构 1964 年间谍片的片头:追一把被偷的钥匙,几何碎片最后拼成片名。</sub></td>+<td width="33%" valign="top"><a href="styles/art-deco/STYLE.md"><img src="docs/frames/art-deco.jpg" alt="Art Deco"></a><br><b>Art Deco</b> · 装饰艺术<br><i>Midnight at the Starlight Hotel</i><br><sub>A grand hotel, 1930: a bellboy races lifts and revolving doors to deliver one letter before midnight.<br>1930 年的大饭店,门童赶在午夜前把一封信送上顶楼。</sub></td>+</tr>+<tr>+<td width="33%" valign="top"><a href="styles/blueprint/STYLE.md"><img src="docs/frames/blueprint.jpg" alt="Blueprint"></a><br><b>Blueprint</b> · 蓝图 / 工程制图<br><i>Patent Pending: The Cloud Catcher</i><br><sub>An inventor's blueprint draws, explodes and assembles a cloud-catching machine, and its revision cloud starts to rain.<br>发明家的蓝图自己画出一台接云机器,修订云线变成了真的雨云。</sub></td>+<td width="33%" valign="top"><a href="styles/stained-glass/STYLE.md"><img src="docs/frames/stained-glass.jpg" alt="Stained Glass"></a><br><b>Stained Glass</b> · 彩色玻璃窗<br><i>The Dragon of the East Window</i><br><sub>Sunlight crosses a cathedral window from dawn to dusk, waking each pane of a knight-and-dragon tale.<br>阳光从清晨移到黄昏,照到哪一格花窗,哪一格的故事就动起来。</sub></td>+<td width="33%" valign="top"><a href="styles/pictogram-motion/STYLE.md"><img src="docs/frames/pictogram-motion.jpg" alt="Pictogram Motion"></a><br><b>Pictogram Motion</b> · 象形运动图形<br><i>Aichi-Nagoya 2026 — All 43 Sports</i><br><sub>All 43 sports of the 2026 Asian Games as beat-locked geometric pictograms.<br>2026 亚运会 43 个大项,几何象形人卡着节拍快闪。</sub></td>+</tr>+<tr>+<td width="33%" valign="top"><a href="styles/ascii-crt/STYLE.md"><img src="docs/frames/ascii-crt.jpg" alt="ASCII / CRT Terminal"></a><br><b>ASCII / CRT Terminal</b> · ASCII / CRT 终端<br><i>Tranquility.log</i><br><sub>A moon-base AI wakes after forty years to a signal from Earth, and replies by drawing “home” in characters.<br>月球基地的 AI 沉睡 40 年后被唤醒,用字符画出“家”来回复。</sub></td>+</tr>+</table>++### Information & Keynote · 信息与发布++<table>+<tr>+<td width="33%" valign="top"><a href="styles/dataviz/STYLE.md"><img src="docs/frames/dataviz.jpg" alt="Data Storytelling"></a><br><b>Data Storytelling</b> · 数据叙事<br><i>A Hundred Summers</i><br><sub>A hundred years of summer temperatures, where the chart itself tells the story.<br>一百年的夏季气温,图表本身就是故事。</sub></td>+<td width="33%" valign="top"><a href="styles/iso-infographic/STYLE.md"><img src="docs/frames/iso-infographic.jpg" alt="Isometric Infographic"></a><br><b>Isometric Infographic</b> · 等距信息图<br><i>From Bean to Cup</i><br><sub>A coffee's journey from the plantation to your hands, across one isometric world.<br>一杯咖啡从种植园到你手里的旅程。</sub></td>+<td width="33%" valign="top"><a href="styles/dark-keynote/STYLE.md"><img src="docs/frames/dark-keynote.jpg" alt="Dark Tech Keynote"></a><br><b>Dark Tech Keynote</b> · 暗色科技发布<br><i>Room to Think</i><br><sub>Launch film for Tidy, a fictional app: one buried cursor snaps hundreds of windows back into place.<br>虚构 app Tidy 的发布片:被埋掉的光标一键把几百个窗口归位。</sub></td>+</tr>+<tr>+<td width="33%" valign="top"><a href="styles/living-screencast/STYLE.md"><img src="docs/frames/living-screencast.jpg" alt="Living Screencast"></a><br><b>Living Screencast</b> · 活体实机录屏<br><i>Clawd Moves In</i><br><sub>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.<br>像素小人 Clawd 跳出终端、搬进 Claude 应用,在一镜到底的录屏里演示 Plan 模式、diff 评论和自检。</sub></td>+</tr>+</table>++### Cartoon & Anime · 卡通与动画++<table>+<tr>+<td width="33%" valign="top"><a href="styles/rubber-hose/STYLE.md"><img src="docs/frames/rubber-hose.jpg" alt="1930s Rubber Hose Cartoon"></a><br><b>1930s Rubber Hose Cartoon</b> · 1930s 橡皮管卡通<br><i>Coffee Cup Chase</i><br><sub>A coffee cup chases a runaway sugar cube around the kitchen, 1930s-cartoon style.<br>一只咖啡杯满厨房追一块逃跑的方糖。</sub></td>+<td width="33%" valign="top"><a href="styles/cel-anime-80s/STYLE.md"><img src="docs/frames/cel-anime-80s.jpg" alt="80s Cel Anime"></a><br><b>80s Cel Anime</b> · 80 年代赛璐璐动画<br><i>City Lights, 1987</i><br><sub>A courier girl rides through a rain-soaked neon city to deliver a tape before the dawn launch.<br>快递少女骑车穿过雨后霓虹都市,赶在黎明发射前送到一盘磁带。</sub></td>+<td width="33%" valign="top"><a href="styles/scifi-toon/STYLE.md"><img src="docs/frames/scifi-toon.jpg" alt="Sci-Fi Sitcom Toon"></a><br><b>Sci-Fi Sitcom Toon</b> · 科幻情景喜剧卡通<br><i>Coffee Run</i><br><sub>A jaded genius opens a portal just to buy coffee and tumbles through ever-stranger universes.<br>厌世天才开传送门只想买杯咖啡,却穿过越来越离谱的平行宇宙。</sub></td>+</tr>+</table>++### Games · 游戏++<table>+<tr>+<td width="33%" valign="top"><a href="styles/pixel-rpg/STYLE.md"><img src="docs/frames/pixel-rpg.jpg" alt="16-bit Pixel RPG"></a><br><b>16-bit Pixel RPG</b> · 16-bit 像素 RPG<br><i>The Last Save Point</i><br><sub>At the final boss door a hero saves the game, and the save screen replays the whole journey.<br>勇士在最终 Boss 门前存档,存档画面闪回一路冒险。</sub></td>+<td width="33%" valign="top"><a href="styles/hd-2d/STYLE.md"><img src="docs/frames/hd-2d.jpg" alt="HD-2D"></a><br><b>HD-2D</b><br><i>The Lampbearer</i><br><sub>The lighthouse goes dark; a girl carries the last flame through a night forest and up the storm cliffs.<br>灯塔熄灭,孙女提着最后一簇火穿过夜林、爬上风暴悬崖。</sub></td>+<td width="33%" valign="top"><a href="styles/microgame/STYLE.md"><img src="docs/frames/microgame.jpg" alt="Microgame Frenzy"></a><br><b>Microgame Frenzy</b> · 微游戏快闪(瓦里奥制造式)<br><i>Five-Second Astronaut</i><br><sub>A clumsy cadet survives a five-second boot camp, faster and faster, until the boss: landing home.<br>见习宇航员闯五秒训练营,越来越快,Boss 关亲手降落回地球。</sub></td>+</tr>+<tr>+<td width="33%" valign="top"><a href="styles/game-show/STYLE.md"><img src="docs/frames/game-show.jpg" alt="Game Show Flat"></a><br><b>Game Show Flat</b> · 综艺节奏扁平<br><i>Rhythm of AI, 1997 → 2026</i><br><sub>The history of AI as a rhythm game: models take the stage on the beat, and a report card closes the show.<br>把 AI 发展史做成一局节奏游戏,模型踩着拍登场,最后发成绩单。</sub></td>+</tr>+</table>++### Cinema & Eras · 电影与时代++<table>+<tr>+<td width="33%" valign="top"><a href="styles/silent-film/STYLE.md"><img src="docs/frames/silent-film.jpg" alt="1920s Silent Film"></a><br><b>1920s Silent Film</b> · 1920s 默片<br><i>The Runaway Loaf</i><br><sub>A baker's boy chases a runaway loaf downhill, then breaks it in half for a hungry girl.<br>面包店学徒追一个滚走的面包,最后掰成两半分给饿肚子的小女孩。</sub></td>+<td width="33%" valign="top"><a href="styles/backrooms/STYLE.md"><img src="docs/frames/backrooms.jpg" alt="Liminal Found Footage"></a><br><b>Liminal Found Footage</b> · 后室 / 新怪谈<br><i>Night Shift Orientation</i><br><sub>A new night-shift hire films their first night in an endless yellow office, following the rules on the wall.<br>新夜班员工拍下入职第一晚:无尽的黄色办公空间,和墙上的员工守则。</sub></td>+</tr>+</table>++### Materials & 3D · 材质与 3D++<table>+<tr>+<td width="33%" valign="top"><a href="styles/brick-toy/STYLE.md"><img src="docs/frames/brick-toy.jpg" alt="Brick Toy"></a><br><b>Brick Toy</b> · 积木玩具<br><i>Rocket from Spare Parts</i><br><sub>A brick astronaut builds a rocket from spare parts and flies to a brick moon.<br>积木宇航员用零件拼出火箭,飞向积木月亮。</sub></td>+<td width="33%" valign="top"><a href="styles/paper-popup/STYLE.md"><img src="docs/frames/paper-popup.jpg" alt="Paper Pop-up Book"></a><br><b>Paper Pop-up Book</b> · 纸片立体书<br><i>Pip's Paper Adventure</i><br><sub>A pop-up book opens on a desk; a sprite named Pip adventures through paper worlds and jumps out into ours.<br>立体书在书桌上打开,小精灵 Pip 在纸片世界冒险,最后跳出书外。</sub></td>+<td width="33%" valign="top"><a href="styles/tilt-shift/STYLE.md"><img src="docs/frames/tilt-shift.jpg" alt="Tilt-Shift Miniature"></a><br><b>Tilt-Shift Miniature</b> · 移轴微缩<br><i>Toy Town Rush Hour</i><br><sub>Morning rush hour in a town that looks like a model: traffic, trains and tiny people.<br>玩具城的早高峰,一切都像模型。</sub></td>+</tr>+<tr>+<td width="33%" valign="top"><a href="styles/lowpoly-island/STYLE.md"><img src="docs/frames/lowpoly-island.jpg" alt="Low-poly Isometric Island"></a><br><b>Low-poly Isometric Island</b> · 低多边形等距<br><i>The Island That Grew</i><br><sub>An island and its village grow tile by tile from an empty sea, each tile a note, into a starry night.<br>空海里一格格长出小岛和村庄,每放一块响一个音符,直到星空。</sub></td>+<td width="33%" valign="top"><a href="styles/glass-product/STYLE.md"><img src="docs/frames/glass-product.jpg" alt="Glass Product Render"></a><br><b>Glass Product Render</b> · 玻璃质感产品<br><i>Aura — Hear the Light</i><br><sub>Unboxing and close-ups of Aura, fictional glass earbuds, in strip-light sweeps and caustics.<br>虚构玻璃耳机 Aura 的开箱与特写。</sub></td>+</tr>+</table><!-- styles:end -->-## Credits and licence+## 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`.-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) and are listed in each demo's `CREDITS`.+**LemoLab × Claude Opus 5.5** 出品。代码采用 MIT;指南、`STYLE.md` 和成片采用 CC BY 4.0。第三方采样、字体、音乐沿用各自的授权(CC0、CC BY、OFL),逐条列在每个样片的 `CREDITS` 里。diff --git a/README.zh-CN.md b/README.zh-CN.mddeleted file mode 100644index 3bf2ab2..0000000--- a/README.zh-CN.md+++ /dev/null@@ -1,110 +0,0 @@-# Lemo-Opuscar--**40 种影片风格,每种都配一支完全用代码做出来的短片。** 选一个风格,带上你自己的主题,让你的编程 agent 来当导演。--[**▶ 看图鉴**](https://lemomo-ai.github.io/lemo-opuscar/) · [English](README.md)----这里的每一支片子,都是 AI agent(Claude Opus 5.5)写代码导演、作画、配乐、混音的:Canvas 和 WebGL 页面逐帧渲染,用免费采样库写原创配乐,本地 TTS 配音。不用视频生成,也不用素材库画面。--## 怎么用--```sh-git clone https://github.com/lemomo-ai/lemo-opuscar.git-cd lemo-opuscar-claude # 或 Codex、Cursor……任何会读 AGENTS.md 的 agent-```--然后直接说:--> 用 **watercolor** 风格做一支 45 秒的片子,讲我家经营的咖啡园,温暖的女声旁白。--agent 会读三份指南,像一个小工作室一样开工:--| 文件 | 给 agent 的东西 |-|---|---|-| [导演方法](docs/zh-CN/DIRECTOR.md) | 怎么导:故事、声音、节奏、镜头、表演、自检 |-| [技术方法](docs/zh-CN/TECHNIQUE.md) | 怎么做:逐帧渲染、配音、配乐、混音 |-| `styles/<风格>/STYLE.md` | 这个风格长什么样、听起来什么样,以及我们的样片是怎么做的 |--它会停下来找你两次:一次确认**故事和分镜**,一次确认**画面**。之后把成片做到 `films/<名字>/` 里。--想在自己的项目里做?把这三个文件交给你的 agent 就行。--**提前知道:** 一支片子 agent 大约要工作 30–60 分钟,token 用量不小。需要 Node 20+、Chrome、ffmpeg 和 Python 3.11+。配音模型、采样库这类大文件,用到的那一步才会下载。--## 风格清单--<!-- styles:start -->--**手绘与绘画 · Hand-drawn & Painting**--- [蜡笔儿童绘本 Crayon Picture Book](styles/crayon-book/STYLE.md) · 《The Moon Can't Sleep》: 月亮失眠了,小女孩爬上屋顶给它唱摇篮曲。-- [水彩笔刷 Watercolor Brush](styles/watercolor/STYLE.md) · 《Follow the Rain》: 跟着降雨从澳洲红色腹地一路画到绿色海岸,一镜到底。-- [中国水墨 Chinese Ink Wash](styles/ink-wash/STYLE.md) · 《The Swordsman and the River》: 侠客踏水过江,一剑断流。-- [油画厚涂 Impasto Oil Painting](styles/impasto/STYLE.md) · 《The Colour of Rain》: 灰色雨中广场,第一把红伞撑开,圆舞曲把整个广场刷上颜色。-- [一笔画 One-line Drawing](styles/one-line/STYLE.md) · 《The Line That Never Lifted》: 一根不离纸的线画完一个人的一生,再把笔交给孩子。-- [白板讲解 Whiteboard Explainer](styles/whiteboard/STYLE.md) · 《Einstein in Your Pocket》: 手机怎么知道你在哪:GPS、原子钟,和相对论每天多出的 38 微秒。-- [钢笔淡彩 Urban Sketch · Pen & Wash](styles/urban-sketch/STYLE.md) · 《Where the Wind Went》: 公园只是一张钢笔速写,风把草帽吹到哪里,哪里才有颜色。--**东方传统 · East Asian Traditions**--- [皮影戏 Shadow Puppetry](styles/shadow-puppet/STYLE.md) · 《Hou Yi Shoots the Suns》: 十日炙烤大地,后羿张弓射日。-- [浮世绘 Ukiyo-e](styles/ukiyoe/STYLE.md) · 《A Journey Toward the Mountain》: 旅人走向远山,每个镜头都是一幅版画,最后迎来一道巨浪。-- [红色窗花剪纸 Red Paper-cut](styles/papercut-red/STYLE.md) · 《Nian Comes to Town》: 除夕年兽进村,小女孩剪出的大窗花照亮全村,把它吓跑。-- [纸雕灯影 Paper-cut Lightbox](styles/paper-lantern/STYLE.md) · 《A Mooncake's Longing》: 一枚月饼讲中秋的团圆与思念,纸雕灯箱层层透光。--**印刷与版画 · Print & Printmaking**--- [Risograph 丝网印刷 Risograph Print](styles/risograph/STYLE.md) · 《Sunday Ride》: 周日早晨骑车穿过城市:面包店、公园、河边。-- [复古半调案卷 Halftone Dossier](styles/halftone-dossier/STYLE.md) · 《Case File: Chubby》: 橘猫胖橘被立案审查:测试重力、凌晨跑酷,最后无罪释放。-- [木刻版画 Woodcut Print](styles/woodcut/STYLE.md) · 《The Bell Founder》: 村子用一整个冬天铸一口钟,钟声第一次响起,雪停了。--**图形与排版 · Graphic & Type**--- [瑞士动态排版 Swiss Motion Graphics](styles/swiss-motion/STYLE.md) · 《Five Rules for a Poster》: 一张音乐会海报按瑞士设计的五条规则自己排版,第五条是只打破一条。-- [60s 间谍片头 60s Spy Title Sequence](styles/spy-titles/STYLE.md) · 《The Velvet Cipher》: 虚构 1964 年间谍片的片头:追一把被偷的钥匙,几何碎片最后拼成片名。-- [装饰艺术 Art Deco](styles/art-deco/STYLE.md) · 《Midnight at the Starlight Hotel》: 1930 年的大饭店,门童赶在午夜前把一封信送上顶楼。-- [蓝图 / 工程制图 Blueprint](styles/blueprint/STYLE.md) · 《Patent Pending: The Cloud Catcher》: 发明家的蓝图自己画出一台接云机器,修订云线变成了真的雨云。-- [彩色玻璃窗 Stained Glass](styles/stained-glass/STYLE.md) · 《The Dragon of the East Window》: 阳光从清晨移到黄昏,照到哪一格花窗,哪一格的故事就动起来。-- [象形运动图形 Pictogram Motion](styles/pictogram-motion/STYLE.md) · 《Aichi-Nagoya 2026 — All 43 Sports》: 2026 亚运会 43 个大项,几何象形人卡着节拍快闪。-- [ASCII / CRT 终端 ASCII / CRT Terminal](styles/ascii-crt/STYLE.md) · 《Tranquility.log》: 月球基地的 AI 沉睡 40 年后被唤醒,用字符画出“家”来回复。--**信息与发布 · Information & Keynote**--- [数据叙事 Data Storytelling](styles/dataviz/STYLE.md) · 《A Hundred Summers》: 一百年的夏季气温,图表本身就是故事。-- [等距信息图 Isometric Infographic](styles/iso-infographic/STYLE.md) · 《From Bean to Cup》: 一杯咖啡从种植园到你手里的旅程。-- [暗色科技发布 Dark Tech Keynote](styles/dark-keynote/STYLE.md) · 《Room to Think》: 虚构 app Tidy 的发布片:被埋掉的光标一键把几百个窗口归位。-- [活体实机录屏 Living Screencast](styles/living-screencast/STYLE.md) · 《Clawd Moves In》: 像素小人 Clawd 跳出终端、搬进 Claude 应用,在一镜到底的录屏里演示 Plan 模式、diff 评论和自检。--**卡通与动画 · Cartoon & Anime**--- [1930s 橡皮管卡通 1930s Rubber Hose Cartoon](styles/rubber-hose/STYLE.md) · 《Coffee Cup Chase》: 一只咖啡杯满厨房追一块逃跑的方糖。-- [80 年代赛璐璐动画 80s Cel Anime](styles/cel-anime-80s/STYLE.md) · 《City Lights, 1987》: 快递少女骑车穿过雨后霓虹都市,赶在黎明发射前送到一盘磁带。-- [科幻情景喜剧卡通 Sci-Fi Sitcom Toon](styles/scifi-toon/STYLE.md) · 《Coffee Run》: 厌世天才开传送门只想买杯咖啡,却穿过越来越离谱的平行宇宙。--**游戏 · Games**--- [16-bit 像素 RPG 16-bit Pixel RPG](styles/pixel-rpg/STYLE.md) · 《The Last Save Point》: 勇士在最终 Boss 门前存档,存档画面闪回一路冒险。-- [HD-2D](styles/hd-2d/STYLE.md) · 《The Lampbearer》: 灯塔熄灭,孙女提着最后一簇火穿过夜林、爬上风暴悬崖。-- [微游戏快闪(瓦里奥制造式) Microgame Frenzy](styles/microgame/STYLE.md) · 《Five-Second Astronaut》: 见习宇航员闯五秒训练营,越来越快,Boss 关亲手降落回地球。-- [综艺节奏扁平 Game Show Flat](styles/game-show/STYLE.md) · 《Rhythm of AI, 1997 → 2026》: 把 AI 发展史做成一局节奏游戏,模型踩着拍登场,最后发成绩单。--**电影与时代 · Cinema & Eras**--- [1920s 默片 1920s Silent Film](styles/silent-film/STYLE.md) · 《The Runaway Loaf》: 面包店学徒追一个滚走的面包,最后掰成两半分给饿肚子的小女孩。-- [后室 / 新怪谈 Liminal Found Footage](styles/backrooms/STYLE.md) · 《Night Shift Orientation》: 新夜班员工拍下入职第一晚:无尽的黄色办公空间,和墙上的员工守则。--**材质与 3D · Materials & 3D**--- [积木玩具 Brick Toy](styles/brick-toy/STYLE.md) · 《Rocket from Spare Parts》: 积木宇航员用零件拼出火箭,飞向积木月亮。-- [纸片立体书 Paper Pop-up Book](styles/paper-popup/STYLE.md) · 《Pip's Paper Adventure》: 立体书在书桌上打开,小精灵 Pip 在纸片世界冒险,最后跳出书外。-- [移轴微缩 Tilt-Shift Miniature](styles/tilt-shift/STYLE.md) · 《Toy Town Rush Hour》: 玩具城的早高峰,一切都像模型。-- [低多边形等距 Low-poly Isometric Island](styles/lowpoly-island/STYLE.md) · 《The Island That Grew》: 空海里一格格长出小岛和村庄,每放一块响一个音符,直到星空。-- [玻璃质感产品 Glass Product Render](styles/glass-product/STYLE.md) · 《Aura — Hear the Light》: 虚构玻璃耳机 Aura 的开箱与特写。-<!-- styles:end -->--## 署名与授权--**LemoLab × Claude Opus 5.5** 出品。代码采用 MIT;指南、`STYLE.md` 和成片采用 CC BY 4.0。第三方采样、字体、音乐沿用各自的授权(CC0、CC BY、OFL),逐条列在每个样片的 `CREDITS` 里。diff --git a/docs/cover.jpg b/docs/cover.jpgindex 2506c74..41347f4 100644Binary files a/docs/cover.jpg and b/docs/cover.jpg differdiff --git a/docs/frames/art-deco.jpg b/docs/frames/art-deco.jpgnew file mode 100644index 0000000..d37f06bBinary files /dev/null and b/docs/frames/art-deco.jpg differdiff --git a/docs/frames/ascii-crt.jpg b/docs/frames/ascii-crt.jpgnew file mode 100644index 0000000..191250cBinary files /dev/null and b/docs/frames/ascii-crt.jpg differdiff --git a/docs/frames/backrooms.jpg b/docs/frames/backrooms.jpgnew file mode 100644index 0000000..97174f3Binary files /dev/null and b/docs/frames/backrooms.jpg differdiff --git a/docs/frames/blueprint.jpg b/docs/frames/blueprint.jpgnew file mode 100644index 0000000..66baf32Binary files /dev/null and b/docs/frames/blueprint.jpg differdiff --git a/docs/frames/brick-toy.jpg b/docs/frames/brick-toy.jpgnew file mode 100644index 0000000..2363269Binary files /dev/null and b/docs/frames/brick-toy.jpg differdiff --git a/docs/frames/cel-anime-80s.jpg b/docs/frames/cel-anime-80s.jpgnew file mode 100644index 0000000..97eaeabBinary files /dev/null and b/docs/frames/cel-anime-80s.jpg differdiff --git a/docs/frames/crayon-book.jpg b/docs/frames/crayon-book.jpgnew file mode 100644index 0000000..e7b7abcBinary files /dev/null and b/docs/frames/crayon-book.jpg differdiff --git a/docs/frames/dark-keynote.jpg b/docs/frames/dark-keynote.jpgnew file mode 100644index 0000000..f0707e6Binary files /dev/null and b/docs/frames/dark-keynote.jpg differdiff --git a/docs/frames/dataviz.jpg b/docs/frames/dataviz.jpgnew file mode 100644index 0000000..9632dd8Binary files /dev/null and b/docs/frames/dataviz.jpg differdiff --git a/docs/frames/game-show.jpg b/docs/frames/game-show.jpgnew file mode 100644index 0000000..bf9858bBinary files /dev/null and b/docs/frames/game-show.jpg differdiff --git a/docs/frames/glass-product.jpg b/docs/frames/glass-product.jpgnew file mode 100644index 0000000..cd12f55Binary files /dev/null and b/docs/frames/glass-product.jpg differdiff --git a/docs/frames/halftone-dossier.jpg b/docs/frames/halftone-dossier.jpgnew file mode 100644index 0000000..819450bBinary files /dev/null and b/docs/frames/halftone-dossier.jpg differdiff --git a/docs/frames/hd-2d.jpg b/docs/frames/hd-2d.jpgnew file mode 100644index 0000000..665a88bBinary files /dev/null and b/docs/frames/hd-2d.jpg differdiff --git a/docs/frames/impasto.jpg b/docs/frames/impasto.jpgnew file mode 100644index 0000000..0ab9f0cBinary files /dev/null and b/docs/frames/impasto.jpg differdiff --git a/docs/frames/ink-wash.jpg b/docs/frames/ink-wash.jpgnew file mode 100644index 0000000..7e3c47fBinary files /dev/null and b/docs/frames/ink-wash.jpg differdiff --git a/docs/frames/iso-infographic.jpg b/docs/frames/iso-infographic.jpgnew file mode 100644index 0000000..ae71f7dBinary files /dev/null and b/docs/frames/iso-infographic.jpg differdiff --git a/docs/frames/living-screencast.jpg b/docs/frames/living-screencast.jpgnew file mode 100644index 0000000..f025cabBinary files /dev/null and b/docs/frames/living-screencast.jpg differdiff --git a/docs/frames/lowpoly-island.jpg b/docs/frames/lowpoly-island.jpgnew file mode 100644index 0000000..8b28f94Binary files /dev/null and b/docs/frames/lowpoly-island.jpg differdiff --git a/docs/frames/microgame.jpg b/docs/frames/microgame.jpgnew file mode 100644index 0000000..392752cBinary files /dev/null and b/docs/frames/microgame.jpg differdiff --git a/docs/frames/one-line.jpg b/docs/frames/one-line.jpgnew file mode 100644index 0000000..7603b60Binary files /dev/null and b/docs/frames/one-line.jpg differdiff --git a/docs/frames/paper-lantern.jpg b/docs/frames/paper-lantern.jpgnew file mode 100644index 0000000..9873af5Binary files /dev/null and b/docs/frames/paper-lantern.jpg differdiff --git a/docs/frames/paper-popup.jpg b/docs/frames/paper-popup.jpgnew file mode 100644index 0000000..21f9cebBinary files /dev/null and b/docs/frames/paper-popup.jpg differdiff --git a/docs/frames/papercut-red.jpg b/docs/frames/papercut-red.jpgnew file mode 100644index 0000000..05fcb0cBinary files /dev/null and b/docs/frames/papercut-red.jpg differdiff --git a/docs/frames/picks.json b/docs/frames/picks.jsonnew file mode 100644index 0000000..81e20f9--- /dev/null+++ b/docs/frames/picks.json@@ -0,0 +1,41 @@+{+ "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+}\ No newline at end of filediff --git a/docs/frames/pictogram-motion.jpg b/docs/frames/pictogram-motion.jpgnew file mode 100644index 0000000..c8b8817Binary files /dev/null and b/docs/frames/pictogram-motion.jpg differdiff --git a/docs/frames/pixel-rpg.jpg b/docs/frames/pixel-rpg.jpgnew file mode 100644index 0000000..3951812Binary files /dev/null and b/docs/frames/pixel-rpg.jpg differdiff --git a/docs/frames/risograph.jpg b/docs/frames/risograph.jpgnew file mode 100644index 0000000..4483eaeBinary files /dev/null and b/docs/frames/risograph.jpg differdiff --git a/docs/frames/rubber-hose.jpg b/docs/frames/rubber-hose.jpgnew file mode 100644index 0000000..8ae848bBinary files /dev/null and b/docs/frames/rubber-hose.jpg differdiff --git a/docs/frames/scifi-toon.jpg b/docs/frames/scifi-toon.jpgnew file mode 100644index 0000000..d414558Binary files /dev/null and b/docs/frames/scifi-toon.jpg differdiff --git a/docs/frames/shadow-puppet.jpg b/docs/frames/shadow-puppet.jpgnew file mode 100644index 0000000..f378871Binary files /dev/null and b/docs/frames/shadow-puppet.jpg differdiff --git a/docs/frames/silent-film.jpg b/docs/frames/silent-film.jpgnew file mode 100644index 0000000..670f77eBinary files /dev/null and b/docs/frames/silent-film.jpg differdiff --git a/docs/frames/spy-titles.jpg b/docs/frames/spy-titles.jpgnew file mode 100644index 0000000..f8379bcBinary files /dev/null and b/docs/frames/spy-titles.jpg differdiff --git a/docs/frames/stained-glass.jpg b/docs/frames/stained-glass.jpgnew file mode 100644index 0000000..41f8c10Binary files /dev/null and b/docs/frames/stained-glass.jpg differdiff --git a/docs/frames/swiss-motion.jpg b/docs/frames/swiss-motion.jpgnew file mode 100644index 0000000..c691c93Binary files /dev/null and b/docs/frames/swiss-motion.jpg differdiff --git a/docs/frames/tilt-shift.jpg b/docs/frames/tilt-shift.jpgnew file mode 100644index 0000000..ccf9a1cBinary files /dev/null and b/docs/frames/tilt-shift.jpg differdiff --git a/docs/frames/ukiyoe.jpg b/docs/frames/ukiyoe.jpgnew file mode 100644index 0000000..9b21b31Binary files /dev/null and b/docs/frames/ukiyoe.jpg differdiff --git a/docs/frames/urban-sketch.jpg b/docs/frames/urban-sketch.jpgnew file mode 100644index 0000000..f4f8d5bBinary files /dev/null and b/docs/frames/urban-sketch.jpg differdiff --git a/docs/frames/watercolor.jpg b/docs/frames/watercolor.jpgnew file mode 100644index 0000000..51bca8cBinary files /dev/null and b/docs/frames/watercolor.jpg differdiff --git a/docs/frames/whiteboard.jpg b/docs/frames/whiteboard.jpgnew file mode 100644index 0000000..72f0cedBinary files /dev/null and b/docs/frames/whiteboard.jpg differdiff --git a/docs/frames/woodcut.jpg b/docs/frames/woodcut.jpgnew file mode 100644index 0000000..c188c17Binary files /dev/null and b/docs/frames/woodcut.jpg differdiff --git a/styleboard/build.py b/styleboard/build.pyindex 61a786a..2bf3ad5 100644--- a/styleboard/build.py+++ b/styleboard/build.py@@ -62,7 +62,8 @@ for s in styles:has_poster = os.path.exists(os.path.join(ROOT, 'styles', slug, 'poster.jpg'))has_md = os.path.exists(os.path.join(ROOT, 'styles', slug, 'STYLE.md'))if site:- s['video'] = f'{FILMS_URL}/{slug}.mp4' if s['dur'] else ''+ s['video'] = f'films/{slug}.mp4' if s['dur'] else '' # 720p web cut, served by Pages as video/mp4 (Safari needs it)+ s['full'] = f'{FILMS_URL}/{slug}.mp4' if s['dur'] else '' # full quality on Releasess['poster'] = f'posters/{slug}.jpg' if has_poster else ''s['stylemd'] = f'{BLOB_URL}/styles/{slug}/STYLE.md' if has_md else ''else:@@ -96,7 +97,7 @@ def card(s):f'aria-label="Play {esc(film)}"><i></i><span>{mmss(s["dur"])}</span></button>') if vid else ''uses = ''.join(f'<li>{esc(u)}</li>' for u in s.get('uses', []))links = []- if vid: links.append(f'<a class="watch" href="{esc(s["video"])}" data-play>Watch the film</a>')+ if vid: links.append(f'<a class="watch" href="{esc(s.get("full") or s["video"])}" data-play>Watch the film</a>')if s.get('stylemd'): links.append(f'<a href="{esc(s["stylemd"])}" target="_blank" rel="noopener">STYLE.md</a>')return (f'<article class="nominee" data-slug="{esc(s["slug"])}" data-en="{esc(s["en"])}" data-cn="{esc(s["cn"])}" data-film="{esc(film)}">\n'f' <div class="screen">{main}{play}</div>\n'@@ -137,23 +138,30 @@ if site: # Pages 站点:页面 + 风格帧 + 海报if s['poster']: shutil.copy(os.path.join(ROOT, 'styles', s['slug'], 'poster.jpg'), os.path.join(site, 'posters', s['slug'] + '.jpg'))-def readme_list(zh):- """README 里 <!-- styles:start --> … <!-- styles:end --> 之间的风格清单。"""+def readme_grid():+ """README 里 <!-- styles:start --> … <!-- styles:end --> 之间:按类别的图片网格(docs/frames/<slug>.jpg),中英双语。"""out = []for cn, en in cats:- out.append(f'\n**{cn} · {en}**\n' if zh else f'\n**{en}**\n')- for s in (x for x in styles if x['cat'] == cn and x['stylemd']):- name = f'{s["cn"]} {s["en"]}' if zh and s['cn'] != s['en'] else s['en']- line = s['line_cn'] if zh else s['line']- film = f'《{s["film"]}》' if zh else f'*{s["film"]}*'- out.append(f'- [{name}](styles/{s["slug"]}/STYLE.md) · {film}: {line}')+ group = [x for x in styles if x['cat'] == cn and x['stylemd']]+ if not group: continue+ out.append(f'\n### {en} · {cn}\n\n<table>')+ for i in range(0, len(group), 3):+ out.append('<tr>')+ for s in group[i:i + 3]:+ cn_name = f' · {s["cn"]}' if s['cn'] != s['en'] else ''+ out.append(f'<td width="33%" valign="top"><a href="styles/{s["slug"]}/STYLE.md"><img src="docs/frames/{s["slug"]}.jpg" alt="{html.escape(s["en"])}"></a><br>'+ f'<b>{html.escape(s["en"])}</b>{html.escape(cn_name)}<br><i>{html.escape(s["film"])}</i><br>'+ f'<sub>{html.escape(s["line"])}<br>{html.escape(s["line_cn"])}</sub></td>')+ out.append('</tr>')+ out.append('</table>')return '\n'.join(out) + '\n'-for fn, zh in (('README.md', False), ('README.zh-CN.md', True)):++for fn in ('README.md',):p = os.path.join(ROOT, fn)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_list(zh) + m.group(2), t, flags=re.S)+ t2 = re.sub(r'(<!-- styles:start -->\n).*?(<!-- styles:end -->)', lambda m: m.group(1) + readme_grid() + m.group(2), t, flags=re.S)if t2 != t: open(p, 'w', encoding='utf-8').write(t2)print(f'{len(styles)} styles ({n_vid} with film, {minutes:.0f} min) → {os.path.relpath(os.path.join(out_dir, "index.html"), ROOT)}')diff --git a/tools/publish.sh b/tools/publish.shindex c1c098c..548ce88 100755--- a/tools/publish.sh+++ b/tools/publish.sh@@ -4,6 +4,7 @@set -ecd "$(dirname "$0")/.."python3 styleboard/build.py+sh tools/web_cuts.shpython3 tools/release.py checkpython3 tools/release.py packpython3 tools/release.py uploaddiff --git a/tools/release.py b/tools/release.pyindex 56bb2c8..7b68cca 100644--- a/tools/release.py+++ b/tools/release.py@@ -6,7 +6,7 @@Needs the GitHub CLI (`gh auth login`) for upload. Usually run through tools/publish.sh."""-import hashlib, json, os, re, subprocess, sys, tarfile, tempfile+import glob, hashlib, json, os, re, subprocess, sys, tarfile, tempfileROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))REPO = 'lemomo-ai/lemo-opuscar'@@ -104,13 +104,16 @@ def gh(*a, check=True):def upload():state_p = os.path.join(OUT, 'uploaded.json')state = json.load(open(state_p)) if os.path.exists(state_p) else {}- for tag, title in (('assets', 'Assets (fetched by tools/fetch.sh)'), ('films', 'Films (streamed by the gallery)')):+ 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 = [('assets', os.path.join(OUT, p['file']), p['sha256']) for p in json.load(open(MANIFEST))['packs'].values()]+ todo = [] # films first: the gallery streams themfor 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)diff --git a/tools/web_cuts.sh b/tools/web_cuts.shnew file mode 100755index 0000000..6a20ca6--- /dev/null+++ b/tools/web_cuts.sh@@ -0,0 +1,11 @@+#!/bin/sh+# 720p web cuts for the gallery (served by GitHub Pages as video/mp4, which Safari needs)+cd "$(dirname "$0")/.."+mkdir -p .release/web+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)"+done+du -sh .release/web