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
// Render stills: node core/render/still.mjs <demo> <t> [<t> ...] [--range a:b:step] [--q 'k=v&..'] [--prefix t_] [--out dir] [--size 1920x1080]
// <demo> = the folder that holds index.html (e.g. styles/<slug>/demo, films/<name>); the page must expose window.READY and window.render(t).
// A page error or a 404 on a required file exits immediately (non-zero); giving no time points is a usage error
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 { w, h } = takeSize(args), out = take('--out'), q = take('--q') || '', prefix = take('--prefix') || 't_', rg = take('--range');
const [dir, ...times] = args;
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 { browser, page } = await openDemo(dir, { w, h, q, warnings: true }); // one page, many stills
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(); closeServer();