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

904 B
Raw Blame
// Entry: ?test=swatch|model opens a test-drawing page; otherwise renders the film
import { makeComp } from './gl.js';
import { BOIL } from './crayon.js';
const Q = new URLSearchParams(location.search);
const comp = makeComp(document.getElementById('gl'));
window.DUR = 1;
const fontsToLoad = ['400 40px "Patrick Hand"', '700 40px Gaegu', '400 40px Gaegu', '400 40px "Short Stack"', '400 40px "Gochi Hand"', '400 40px "Caveat Brush"', '400 40px Sniglet'];
await Promise.all(fontsToLoad.map(f => document.fonts.load(f)));
const test = Q.get('test');
if (test) {
  const T = await import('./test.js');
  window.render = t => { BOIL.step = Math.floor(t * 12); T.test(comp, t, test, Q); };
} else {
  const M = await import('./film.js');
  window.DUR = M.DUR; window.EV = M.EV; window.SUBS = M.SUBS;
  window.render = t => { BOIL.step = Math.floor(t * 12 + 1e-6); M.frame(comp, t); };
}
window.READY = true;