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

961 B
Raw Blame
const Q = new URLSearchParams(location.search);
const cv = document.getElementById('c'), g = cv.getContext('2d');
await Promise.all(['80px Limelight', '80px Poiret', '600 40px Josefin', '400 40px Josefin', '700 40px Josefin', '80px Italiana'].map(f => document.fonts.load(f)));
const mods = {};
let film = null;
if (!Q.has('scene')) {
  film = await import('./film.js');
  if (film.init) await film.init();
  window.EV = film.events ? film.events() : [];
  window.DUR = film.DUR;
}
window.render = async t => {
  g.setTransform(1, 0, 0, 1, 0, 0); g.globalAlpha = 1; g.globalCompositeOperation = 'source-over';
  if (Q.has('scene')) {
    const [file, fn] = Q.get('scene').split('.');
    const m = mods[file] || (mods[file] = await import('./' + file + '.js'));
    g.fillStyle = '#000'; g.fillRect(0, 0, 1920, 1080);
    await m[fn](g, t, Object.fromEntries(Q)); return;
  }
  film.renderFilm(g, t, Q);
};
if (!window.DUR) window.DUR = 1;
window.READY = true;