Skip to content

Art and animation, written as code. Illustrations, loops, interactive web art, launch-videos and scored films in dozens of styles, identical on every render.

docs: launch-video workflow with every lesson from the launch film, and the launch kit guide

Alex Greenshpun56ff2a221024
diff --git a/skills/anidoodle/references/workflows/launch-video-kit.md b/skills/anidoodle/references/workflows/launch-video-kit.md
new file mode 100644
index 0000000..72de557
--- /dev/null
+++ b/skills/anidoodle/references/workflows/launch-video-kit.md
@@ -0,0 +1,106 @@
+# The launch kit: build your product's launch film
+
+The pieces anidoodle's own launch film is made of, in `engine/src/canvas-core/`, usable for any
+product. The rules they serve are in `launch-video.md`.
+
+## Start from the template (16 s, one file)
+
+`launchTemplate.ts` turns data into a film: two or three prompts answered by plates drawing
+themselves in a chat thread, a type frame between them, and an end card with your install lines.
+`launchExample.ts` is a complete one for a made-up product. Copy it:
+
+```ts
+import { C } from "./launchKit";
+import { makeLaunchFilm } from "./launchTemplate";
+import { lighthouseDraw } from "./lighthouseDraw";
+import { foxDraw } from "./foxDraw";
+import { launchLofi3 } from "./music/pieces/launch";
+
+export const myLaunch = makeLaunchFilm({
+ title: "Your Product", subtitle: "the one line it lives by",
+ asks: [
+ { prompt: "a lighthouse at sunset, as a print", plate: lighthouseDraw, label: "print · drawn in code" },
+ { prompt: "now a fox at dusk", plate: foxDraw, label: "a second answer, same thread" },
+ ],
+ words: [[{ text: "IDEA IN.", style: "ink", color: C.ink }, { text: "ART OUT.", style: "ink", color: C.accent }]],
+ tagline: "One sentence that says what it is",
+ install: ["npm install your-product", "your-product init"],
+ bpm: 90, askBeats: 6, typeBeats: 4, endBeats: 8, claimBar: 4,
+ score: launchLofi3,
+});
+```
+
+Add `src/hosts/page-myLaunch.ts` (three lines, copy `page-launchExample.ts`), then:
+
+```bash
+node tools/still.mjs myLaunch --frame 0 --out out/poster.png # the first frame is the thumbnail
+node tools/render.mjs myLaunch
+node tools/gate.mjs myLaunch
+node tools/verify-export.mjs myLaunch --file out/myLaunch.mp4
+```
+
+What you get: the first prompt already being typed at frame 0 in a close-up (a hook that reads
+muted), the camera easing out for the press, an ink drop arcing from Generate into the thread
+and blooming open into a card where the plate draws itself live, the thread keeping earlier
+answers and scrolling, a gentle lean onto each new card, full-frame word pages between asks,
+and the end card blooming open and holding. The corner mark (your name, hand-lettered) steps
+aside before any lean. Real holds are declared, so the gate passes; the score is set to -14
+LUFS with the true peak at or under -1 dBTP (`musicBed`; a very dynamic piece stops at the
+peak ceiling first). Plates can be any film of this engine: a style plate, a `*Draw` drawing
+film, or a scene you built.
+
+| Spec field | Meaning |
+|---|---|
+| `title`, `subtitle`, `placeholder`, `genLabel`, `accent` | the chat's name, subline, empty text, button word, button colour |
+| `asks[]` | 1-3 of `{ prompt, plate, label, from?, to?, crop? }` |
+| `words[i]` | the type frame after `asks[i]` (not after the last ask; it flows into the end card) |
+| `tagline`, `install[]`, `footer` | the end card; install lines are shown exactly as given |
+| `bpm`, `fps`, `askBeats`, `typeBeats`, `endBeats` | the beat grid and each part's length in beats |
+| `claimBar` | land the end card on this bar's downbeat; throws if it cannot |
+| `score` or `audio` | a composed piece as a bed, or your own mix |
+
+The template refuses a feature list (more than 3 asks) and an end card too short to read.
+
+## The parts, for a film of your own shape
+
+**`launchKit.ts`**: timing and UI.
+- Easing: `ramp`, `inOut`, `out3`, `in3`, `expo`, a closed-form `spring`, `press` (a button
+ press that dips and springs back). Camera: `Cam`, `camLerp` (zoom travels in log space),
+ `useCam`, `toScreen`. For longer camera work use `references/camera.md`.
+- `plateLayer(env, key, film, frame, px)`: draw ANY film of this engine into an offscreen layer
+ at any frame. This is composition without recordings: every plate in a launch film is the real
+ plate drawn live by its own code. `selfLayer` is a scratch surface for a scene inside a scene.
+- The chat: `drawChatFrame(ctx, state)` (window, composer, Generate; `title`, `subtitle`,
+ `genLabel`, `accent` are yours), `charTimes`/`typedAt` (human typing), `caretAt`, `pointer`,
+ `inkDrop` (the drop from the button to the card), `inkCard` (the answer card that blooms
+ open), `artCard`, `softShadow`, `rr`.
+- The ink: `blot(c, R, seed)` and `pathOf`, a seeded wobbling rim for blooms and drops.
+
+**`kinetic.ts`**: lettering that is written, never set.
+- `writeOn(ctx, env, text, x, y, size, p, style, opts)`: a line written stroke by stroke by a
+ visible tool, in `ink`, `crayon`, `thread`, `chalk`, `brick` or `marker`. `measure` sizes it.
+- `sentence` (one medium per word, one word per beat), `caption` (a small callout with an
+ underline or arrow), `logo`/`logoCentred` and `logoBug` (anidoodle's own wordmark and corner
+ mark; for your product, write your name with `writeOn` as the template does).
+
+**`launchCut.ts`**: the cut as data.
+- `pic(from, to, len)` plays a span of your content timeline over `len` frames; `type(lines,
+ len, before, after)` is a word page. `makeCut(segs)` gives `N`, `at(F)`, `contentOf`, `cutOf`
+ (map content-frame sound events onto the cut).
+- `beatGrid(bpm, fps)`: `beat`, `bar`, `frameOf(bar, beat)`, and `solve(bar, fixed)`, the frames
+ left for one flexible segment so the claim lands on a bar (launch3 lands on bar 26).
+- `bloomFrame` (a page inside an ink bloom; `close: false` keeps it open for an end card),
+ `typeFrame` (one to three lines written on it; `lead`, `stagger`), `bloomRadius` (for holds).
+
+**`launchGallery.ts`**: `drawWall` and `wallCam`, a rolling wall of style cards where the
+focus card GROWS toward the viewer instead of the camera zooming. The proof-of-range beat.
+
+**`webTour.ts`**: a website drawn in code and toured: the whole page first, then the camera
+zooms to each click, with the pointer and input log driving the page's own state.
+
+## Worked example
+
+`launch2.ts` is anidoodle's content timeline (chat, koi with its code streaming, the wall, the
+brick balloon, the almond hand, the embroidery loop, the web tour, the butterfly film, the end
+card); `launch3.ts` is the cut: data segments spliced with type frames, 77 s on the score's 29
+bars. Study them for pacing; build yours on the template.
diff --git a/skills/anidoodle/references/workflows/launch-video.md b/skills/anidoodle/references/workflows/launch-video.md
index 10b8335..f1add0c 100644
--- a/skills/anidoodle/references/workflows/launch-video.md
+++ b/skills/anidoodle/references/workflows/launch-video.md
@@ -1,59 +1,118 @@
# Launch and product videos
A launch video makes one promise about a product and shows it being kept. It is a short film
-with a job: the viewer should know what the thing is, why it matters to them, and where to get
-it, in that order.
+with a job: in the first seconds the viewer knows what the thing is, by the end they know where
+to get it. Every rule below was paid for on anidoodle's own 77 s launch film (four cuts) and
+checked against published launch-video craft. The reusable pieces are in `launch-video-kit.md`;
+a template film renders a 16 s launch for any product from data.
## Inputs the person brings
-Product screenshots, a logo, UI captures, a repo link, a feature list. Images they bring may be
-embedded (pinned by sha256, provenance recorded in the film's manifest); everything around them
-is drawn in code. Never generate or fetch images.
+Product screenshots, a logo, UI captures, a repo link, a feature list, the exact install or
+sign-up line. Images they bring may be embedded (pinned by sha256, provenance in the manifest);
+everything around them is drawn in code. Never generate or fetch images.
## Ground it in the real product first
Before any storyboarding, write a short sourced brief and get ONE approval on it. A launch film
-that invents its subject draws a mascot of a product, not the product. Keep it light: one brief,
-one look approval, then build.
-
-1. **Read the real thing.** Open what exists: the screenshots and captures they brought, the
- repo's README and UI components, the live page. Note the two or three REAL features a viewer
- should recognise on screen, the exact product name and mark, and the brand colours as hex.
-2. **Collect approved claims.** The one-line promise and any numbers come from the person's own
- materials (site copy, release notes, the README), each with its source written next to it.
- Anything you cannot source becomes a question, not a line in the film. Write the claims the
- film must NOT make while you are at it.
-3. **Ask the grounding questions**, one message: which real features to show (pick from the
- list you found, recommend your three), which shapes to ship (`9x16`, `16x9`, `1x1`), text
- treatment (drawn kinetic type, their UI captures, or both), and where it will run.
-4. **Write the brief** where the film's files will live: product and promise, the chosen
- features with their sources, brand colours mapped onto the style's palette roles, the
- approved claims and the banned ones, the shapes. The storyboard and every caption then quote
- the brief, never memory.
-
-The film still opens with a drawn hook, not a feature list: the brief decides WHAT the film may
-claim and show, never how it moves.
-
-## Shape of the film
-
-1. **Hook in the first two seconds**: the problem, drawn being made (a tangle, a pile, a clock),
- never a fade from black.
-2. **The turn**: the product arrives. A screenshot slides in on a drawn device frame, or the
- UI is redrawn in the chosen hand.
-3. **Three proofs at most**: each feature shown doing something, one per beat group, with a short
- drawn caption.
-4. **The payoff and the call**: the product name drawn on, the one-line promise, where to get it.
- Hold it long enough to read twice.
-
-Length follows the content: 15 s for a social teaser, 30-60 s for a launch post, longer for a
-walkthrough (then use chapters, `long-film.md`). Ship the shapes where it will run: `9x16` for
-Reels/Shorts, `16x9` for YouTube and the site, `1x1` for feeds.
-
-## Craft notes
-
-- **Kinetic type is lettering**, stroke-drawn in the chosen hand, timed to the beat grid.
-- **Screenshots are content, not decoration**: large enough to read on a phone, framed, with the
- part that matters called out by a drawn circle or arrow in the style's hand.
-- **Music**: a style that matches the brand (drive/electronic for energy, minimalist mallets for
- calm confidence, lo-fi for friendly), with the product reveal on a true sync point.
-- **Brand colours** map onto the style's palette roles; the style's hand stays intact.
+that invents its subject draws a mascot of a product, not the product.
+
+1. **Read the real thing.** The screenshots and captures they brought, the repo's README and UI
+ components, the live page. Note the two or three REAL features a viewer should recognise on
+ screen, the exact product name and mark, the brand colours as hex.
+2. **Collect approved claims.** The one-line promise and any numbers come from their own
+ materials (site copy, release notes, README), each with its source next to it. Anything you
+ cannot source becomes a question, not a line in the film. List the claims the film must NOT make.
+3. **Ask the grounding questions**, one message: which features to show (recommend your three),
+ which shapes to ship, where it will run, the exact CTA lines.
+4. **Write the brief** where the film's files live: product and promise, features with sources,
+ brand colours mapped onto palette roles, approved and banned claims, shapes, platforms. The
+ storyboard and every word on screen quote the brief, never memory.
+
+## The story
+
+- **One sentence the film proves**, written before anything else. anidoodle's: "you can create
+ images, illustrations, loops, animations and films in pure code." Every beat serves it. A row
+ of features is a spec sheet, not a story.
+- **Told from the user's point of view**: they type, press the button, the result appears. The
+ viewer should picture themselves doing it.
+- **Say what it is in the first five seconds** (anidoodle: "no image model, just code" by 10 s at
+ the latest). The hook lands inside 2-3 s and reads with the sound OFF: feeds autoplay muted.
+- **Arc**: hook, one core interaction, a fast proof of range (a wall, never a slow tour), the
+ brand moment, the call. A visual payoff every 3-5 s; no dead waits.
+- **No footnotes, no eyebrow text, no terminal jargon on screen** unless the product is one.
+
+## Type
+
+- **Words NEVER sit over the art or the UI.** A word gets its own full frame: an ink bloom
+ opens, a brush writes the word, the bloom closes on the next scene (`typeFrame`). Corner marks
+ step aside when the camera brings UI under them.
+- **3-7 words a frame, few frames.** Collapse word cards into one claim then proof ("JUST CODE."
+ then "31 STYLES"); fewer cards leave more time for the proof.
+- **Hold each settled word 0.5 s or more**, longer for the claim.
+- **Judge DESIGN in review stills, not only collisions**: hierarchy, spacing, whether the frame
+ would pass as a poster. A frame with nothing overlapping can still be ugly.
+
+## Motion
+
+- **Every transition is a gentle move**: bloom, card flip, push, the card GROWS into the frame.
+ Never a hard cut, never a sharp swoosh. Ease in and out; the camera is `references/camera.md`.
+- **Drawings play 3-6x faster than real time**; a loop is held long enough to see it loop.
+- **Alive means real motion**: the koi swims through a scrolling world, not an in-place GIF
+ (`start-here.md`, "Alive means real motion").
+- **Chat is a real thread**: the request appears BEFORE its result, earlier answers stay, the
+ thread scrolls, a follow-up animates in the existing card instead of popping a new one.
+- **Web**: show the whole site first, then zoom to each click; the site's copy describes what
+ the viewer is seeing.
+- Banned defaults: a centred title on a gradient, everything fading in, bouncy easing, particle
+ bursts, glow on UI chrome, dead time, text scaled into blur.
+
+## Brand and the end card
+
+- **The logo recurs**: a small corner mark on every frame (`logoBug`), not once at the start.
+- **The end card is composed for the frame**: the name, one line, the exact install lines in a
+ panel, held **3 s or more** so a viewer can screenshot them. anidoodle's are both lines:
+ `/plugin marketplace add alexgreensh/anidoodle` and
+ `/plugin install anidoodle@alexgreensh-anidoodle`. One primary call; the link smaller below.
+
+## Sound
+
+- **Music first, heard as an mp3 by a human** before it scores anything (you cannot hear it).
+ anidoodle's launch runs chill lo-fi electronic, upbeat and clean, no synth ePiano:
+ `references/music/styles/lofi-electronic.md`.
+- **Balance by stem RMS, not only LUFS**: an integrated -14 LUFS hid a sub 7-10 dB too hot.
+- **Cut on downbeats, not every beat.** Land the claim on a chord (launch3's lands on bar 26,
+ the home chord); `beatGrid().solve()` fits a flexible segment so it does.
+- **Sound effects only on real direction changes**: one riser into the big reveal, one impact,
+ never a whoosh on every cut (`references/music/sound-design.md`).
+- **Master to -14 LUFS integrated, true peak -1 dBTP or lower**, then listen on a phone speaker.
+
+## Delivery
+
+- **Length**: about 60 s for a launch post (LinkedIn, YouTube, the README); 15-45 s for X; cut
+ a platform version rather than pushing one master everywhere. Cut whole beats; never speed
+ the whole film up (it breaks the beat grid and reads rushed).
+- **Shapes**: `16x9` for YouTube and the site, `1x1` or `4x5` for feeds, `9x16` for Reels and
+ Shorts. Reframe per shape from one timeline; never crop a wide render.
+- **The first frame is the thumbnail.** Platforms and players show frame 1 before play. Make
+ it legible and on brand (anidoodle's is the wall of styles; the template's is the prompt, big,
+ mid-sentence); never a blank, a fade from black, or a whole chat window too small to read.
+
+## The process
+
+1. **Story sentence** and the sourced brief. ✋ One approval.
+2. **Storyboard**: one line per beat with its length in beats, the words, the transition.
+3. **Options sheet**: transitions and type styles side by side as one cheap still sheet (e.g.
+ three blooms, three lettering media). The person picks; nothing is rendered in full yet.
+4. **One still per scene**, at 0.3-0.5 scale on a contact sheet, reviewed for design.
+5. **Music as an mp3 on a page**, heard by a human. ✋ Approval.
+6. **Cut as data**: content scenes on one timeline, the cut as `pic`/`type` segments on the
+ beat grid (`launchCut.ts`). Re-timing edits the list, never scene code.
+7. **Review from the render**: contact sheets per beat, cuts as before/after pairs, DESIGN
+ first (type over art, spacing, hierarchy), then timing. Render only the changed range
+ (`render.mjs --from F --to F`). Give notes in camera words ("slow this zoom to 0.7x",
+ "hold the word 10 frames longer"), never "make it better".
+8. **QA**: `gate.mjs <film>` (determinism, contract, dead air; declare real holds in
+ `meta.holds`) and `verify-export.mjs <film> --file <mp4> --first-frame #rrggbb` for EVERY
+ shape shipped; meter the mix. Keep the review page updated as work lands.
+9. ✋ **Final approval** on the finished file.