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
// Subtitles as a parchment banderole (scroll ribbon) that unfurls from the centre.
import { clamp, ss, seg } from '/core/lib.js';
export function drawBanderole(O, subs, t) {
const s = subs.find(q => t >= q.t0 - .05 && t < q.t1 + .3); if (!s) return;
const open = ss(seg(t, s.t0 - .05, s.t0 + .28)), close = 1 - ss(seg(t, s.t1, s.t1 + .28)), k = Math.min(open, close);
if (k <= 0) return;
O.save(); O.font = '44px "IM Fell English"';
const tw = O.measureText(s.text).width, W = (tw + 150) * (.25 + .75 * k), H = 64, cx = 960, cy = 968;
const x0 = cx - W / 2, x1 = cx + W / 2, sag = 7;
O.globalAlpha = clamp(k * 1.4);
// curled ends (behind): darker folded parchment
const end = (x, dir) => { O.fillStyle = '#b39a6c'; O.beginPath(); O.moveTo(x, cy - H / 2 + 6); O.lineTo(x + dir * 34, cy - H / 2 + 14); O.lineTo(x + dir * 20, cy); O.lineTo(x + dir * 34, cy + H / 2 + 10); O.lineTo(x, cy + H / 2 + 2); O.closePath(); O.fill();
O.fillStyle = '#8c7348'; O.beginPath(); O.ellipse(x + dir * 2, cy + 4, 6, H / 2 - 2, 0, 0, 7); O.fill(); };
end(x0 + 4, -1); end(x1 - 4, 1);
// ribbon body with a gentle sag
O.shadowColor = 'rgba(0,0,0,.45)'; O.shadowBlur = 14; O.shadowOffsetY = 4;
O.beginPath(); O.moveTo(x0, cy - H / 2); O.quadraticCurveTo(cx, cy - H / 2 + sag, x1, cy - H / 2); O.lineTo(x1, cy + H / 2); O.quadraticCurveTo(cx, cy + H / 2 + sag, x0, cy + H / 2); O.closePath();
const gr = O.createLinearGradient(0, cy - H / 2, 0, cy + H / 2); gr.addColorStop(0, '#f3e6c6'); gr.addColorStop(.5, '#ecdcb6'); gr.addColorStop(1, '#d9c497');
O.fillStyle = gr; O.fill(); O.shadowColor = 'transparent';
O.strokeStyle = 'rgba(110,80,40,.55)'; O.lineWidth = 1.5; O.stroke();
O.strokeStyle = 'rgba(140,40,30,.5)'; O.lineWidth = 1.2; O.beginPath(); O.moveTo(x0 + 10, cy - H / 2 + 7); O.quadraticCurveTo(cx, cy - H / 2 + sag + 7, x1 - 10, cy - H / 2 + 7); O.moveTo(x0 + 10, cy + H / 2 - 6); O.quadraticCurveTo(cx, cy + H / 2 + sag - 6, x1 - 10, cy + H / 2 - 6); O.stroke();
// text (clipped while unfurling)
O.save(); O.beginPath(); O.rect(x0 + 8, cy - H, W - 16, H * 2); O.clip();
O.globalAlpha = clamp((k - .75) / .25); // text appears only once the ribbon is (almost) fully open
O.fillStyle = '#3a2412'; O.textAlign = 'center'; O.textBaseline = 'middle'; O.fillText(s.text, cx, cy + 5);
O.restore(); O.restore();
}