Skip to content

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 种现成风格,也能做出你自己的

890 B
Raw Blame
import { renderFilm, setLines, subs, buildEvents, DUR } from './film.js';
import * as frames from './frames.js';
const cv = document.getElementById('c'), g = cv.getContext('2d');
await Promise.all([300, 400, 500, 600, 700].flatMap(w => [`${w} 40px Inter`, `${w} 40px InterTight`, `${w} 40px JBMono`]).map(f => document.fonts.load(f)));
const get = async (u, d) => { try { const r = await fetch(u); return r.ok ? await r.json() : d; } catch { return d; } };
const lines = await get('lines.json', []);
setLines(lines, await get('voices/dur.json', null));
window.DUR = DUR;
window.EV = buildEvents();
window.SUBS = subs();
window.ECHO_SUB = { t0: 34.5, t1: 37.0, text: 'Room to think.' };
const Q = new URLSearchParams(location.search);
const scene = Q.get('scene');
window.render = scene ? (t => frames[scene](g, t)) : (t => renderFilm(g, t, { nosub: Q.has('nosub') }));
window.READY = true;