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

878 B
Raw Blame
import { renderFilm, setScore, setWords, setLines, subs, buildEvents, measureNumeral, DUR } from './film.js';
const cv = document.getElementById('c'), g = cv.getContext('2d');
await Promise.all(['300', '400', '500', '600', '700', '800', '900'].map(w => document.fonts.load(`${w} 40px Archivo`)).concat([document.fonts.load('40px Fraktur'), document.fonts.load('40px DMSerif')]));
setScore(await (await fetch('score.json')).json());
const lines = await (await fetch('lines.json')).json();
const dur = await (await fetch('voices/dur.json')).json();
setLines(lines, dur);
setWords(await (await fetch('voices/words_rel.json')).json());
measureNumeral(g);
window.DUR = DUR;
window.EV = buildEvents();
window.SUBS = subs();
const Q = new URLSearchParams(location.search);
window.render = t => renderFilm(g, t, { nosub: Q.has('nosub'), poster: Q.has('poster') });
window.READY = true;