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
// Check page (?lab=hz): every character's chalk strokes over LXGW WenKai (red, behind) on the same 100-unit box,
// to see proportions while authoring hz.js. ?lab=latin shows the single-line fonts. Not part of the film.
import { bake, drawStroke } from './chalk.js';
import { HZ } from './hz.js';
import { writeChar, writeLatin, loadSvgFont } from './hand.js';
export async function run(cv, W, H, Q) {
const o = new OffscreenCanvas(W, H), x = o.getContext('2d');
x.fillStyle = '#132219'; x.fillRect(0, 0, W, H);
if (Q.get('lab') === 'latin') {
let y = 120;
for (const f of ['EMSDelight', 'EMSCasualHand']) {
await loadSvgFont('fonts/' + f + '.svg');
const s = writeLatin(f + ': An inch tall? Let an arrow fly. body <- bow 10 28', 40, y, 54, -5);
s.forEach(st => { bake(st, 1.5); drawStroke(x, st, 1e9); }); y += 160;
}
} else {
await document.fonts.load('100px WenKaiRef');
const chars = [...(Q.get('chars') || Object.keys(HZ).join(''))], S = +(Q.get('size') || 200), cols = Math.floor(W / (S + 20));
chars.forEach((ch, i) => {
const ox = 10 + (i % cols) * (S + 20), oy = 10 + Math.floor(i / cols) * (S + 20);
x.strokeStyle = 'rgba(200,180,110,.25)'; x.strokeRect(ox, oy, S, S);
x.font = `${S}px WenKaiRef`; x.fillStyle = 'rgba(220,60,60,.45)'; x.textBaseline = 'alphabetic'; x.fillText(ch, ox, oy + S * .88);
const st = writeChar(ch, ox + S / 2, oy + S / 2, S, -10, { hand: Q.get('hand') || 'teacher', seed: 3 });
st.forEach(s => { bake(s, 1); drawStroke(x, s, 1e9); });
});
}
const c = cv.getContext('2d'); c.drawImage(o, 0, 0);
window.render = () => {};
}