--- name: handdrawn-promo-video description: Use when coding a hand-drawn promo video. Canvas2D + ffmpeg. version: 1.0.0 author: HamaratLabs license: MIT --- # Hand-drawn promo video (code-only) Produce a short promo/explainer video entirely from code — no LLM image models, no stock assets, no licensed audio. Canvas2D "watercolor" look, rendered frame-by-frame in headless Chrome via CDP, encoded with ffmpeg. ## Reference implementations - Reference layout (from one of our own projects; that project is NOT shipped with this skill, the description below is a guide for building your own): `/` — 9:16 notebook/marker style: `src/main.js` (rough() wobble lines, strokeP partial-stroke reveal, single-stroke handwritten digits DIG, sticky-note slap, torn calendar pages, marker-pen sprite following the ink tip, world-space stations + zoom-out camera pans), `tools/render.mjs` (puppeteer-core → PNG pipe → ffmpeg, no frames on disk, `--cues` dumps window.CUES), `tools/build_audio.py` (numpy paper/pen SFX + Karplus-Strong guitar driven by the same cue list). ~140 ms/frame. - Handwriting fonts with Turkish glyphs: Caveat (variable 400–700) + Patrick Hand from google/fonts raw GitHub (OFL). ## Scaffold a new project ```bash cd mkdir -p NEW/src/ch NEW/out cp /{render.mjs,studio.html,package.json} NEW/ cp /src/{core.js,main.js,props.js} NEW/src/ cd NEW && npm install # only dep is `ws` ``` Then: rewrite `TT.PAL` in `core.js` (brand colors), write `src/timeline.json`, write scenes in `src/ch/`, list them as `