An AI skill that turns books into animated, narrated, interactive web experiences
JavaScript ai-agentsai-educationanimationclaudeclaude-codeclaude-skillsedtecheducationinteractive-textbookscormtext-to-video
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Little Red Riding Hood: how it was made</title>
<meta name="description" content="A second picture-book experiment: paper-cutout stop motion drawn entirely in code, with no image model. How it was made, and everything we built for it.">
<link rel="canonical" href="https://papermorph.diamonddoge.org/little-red-riding-hood/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Papermorph">
<meta property="og:title" content="Little Red Riding Hood: how it was made">
<meta property="og:description" content="A second picture-book experiment: paper-cutout stop motion drawn entirely in code, with no image model. How it was made, and everything we built for it.">
<meta property="og:url" content="https://papermorph.diamonddoge.org/little-red-riding-hood/">
<meta property="og:image" content="https://papermorph.diamonddoge.org/assets/bookshelf.webp">
<meta property="og:image:alt" content="A wooden bookshelf of animated books">
<meta name="twitter:card" content="summary_large_image">
<style>
:root { --ink: #2f2418; --soft: #6b5a46; --paper: #fbf5e8; --card: #fffaf0; --line: #e4d6bb; --accent: #a8322a; --ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --serif: "Iowan Old Style", Palatino, Georgia, serif; color-scheme: light; }
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
::selection { background: #a8322a33; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2 { text-wrap: balance; } p, li, dd { text-wrap: pretty; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--ui); }
a { color: var(--accent); }
header.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 48px 24px 24px; }
.hero img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px #4a33182e; }
.back { display: inline-block; margin: -10px 0 8px; padding: 10px 0; font-size: 15px; color: var(--soft); text-decoration: none; }
h1 { margin: 0 0 8px; font: 700 clamp(34px, 4.6vw, 56px)/1.05 var(--serif); }
.tag { display: block; margin: 0 0 14px; color: var(--accent); font-size: 18px; font-weight: 600; } /* a subtitle under the title */
.lede { font-size: 20px; color: #4a3b2a; }
.watch { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 14px 26px; border-radius: 99px; background: var(--ink); color: #fff6e0; font-weight: 600; text-decoration: none; }
.watch:hover { background: #4a3826; }
.watch:focus-visible { border-radius: 99px; }
.watch { flex-wrap: wrap; justify-content: center; row-gap: 2px; text-align: center; }
.watch span, .watch small { white-space: nowrap; }
.watch small { opacity: .75; font-weight: 500; }
main { max-width: 900px; margin: 0 auto; padding: 8px 24px 80px; }
h2 { margin: 64px 0 8px; font: 700 32px/1.2 var(--serif); }
h3 { margin: 32px 0 4px; font: 700 21px/1.3 var(--ui); }
figure { margin: 18px 0 26px; }
figure img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #fffdf8; }
figcaption { margin-top: 8px; font-size: 15px; color: var(--soft); }
.stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.stills img { width: 100%; height: auto; border-radius: 6px; display: block; }
.verdict { margin: 18px 0; padding: 4px 22px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 8px 8px 0; }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.numbers div { padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.numbers b { display: block; font: 700 28px/1.1 var(--serif); }
.numbers span { font-size: 14px; color: var(--soft); }
dl.made { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 18px 0; }
dl.made dt { font-weight: 700; }
dl.made dd { margin: 0; }
ol.beats { padding-left: 22px; }
code { font-size: .88em; background: #f1e6cf; padding: 1px 5px; border-radius: 4px; }
footer { max-width: 900px; margin: 0 auto; padding: 0 24px 60px; color: var(--soft); font-size: 15px; }
@media (max-width: 760px) {
header.hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
.numbers, .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
dl.made { grid-template-columns: 1fr; gap: 2px; }
dl.made dd { margin-bottom: 12px; }
}
</style>
</head>
<body>
<header class="hero">
<img src="making/cover.webp" width="1400" height="788" alt="Little Red Riding Hood meets the wolf in the woods: two paper puppets with brass pins at their joints.">
<div>
<a class="back" href="../">← Back to the bookshelf</a><br>
<h1>Little Red Riding Hood</h1>
<span class="tag">Paper-cutout stop motion</span>
<p class="lede">Our second picture book, and the opposite bet to <a href="../three-little-pigs/">The Three Little Pigs</a>. No image model at all: every character, tree and cake is paper drawn in code, pinned at the joints and shot like a stop-motion film. It cost nothing in pictures, and any new movement is just a few more lines of code.</p>
<a class="watch" href="ch01/"><span>▶ Watch the film</span> <small>4 minutes, with a listen-and-find game</small></a>
</div>
</header>
<main>
<div class="stills">
<img src="making/still-home.webp" width="800" height="450" alt="Mother sees Little Red Riding Hood off at the cottage door." loading="lazy">
<img src="making/still-eyes.webp" width="800" height="450" alt="Two eyes in a dark bush." loading="lazy">
<img src="making/still-flowers.webp" width="800" height="450" alt="The wolf and Little Red Riding Hood among the flowers." loading="lazy">
<img src="making/still-knock.webp" width="800" height="450" alt="The wolf knocks at Grandma's blue door." loading="lazy">
<img src="making/still-mouth.webp" width="800" height="450" alt="The wolf in Grandma's nightcap: what a big mouth." loading="lazy">
<img src="making/still-cake.webp" width="800" height="450" alt="Grandma, Little Red Riding Hood and the woodcutter share the cake." loading="lazy">
</div>
<h2>What we set out to do</h2>
<p>The Three Little Pigs showed that an image model can paint a lovely world, but every new action needed new drawings. So we asked the opposite question: what if the characters stay simple shapes drawn in code, and look like paper puppets on purpose?</p>
<p>The story is the Brothers Grimm version (1857), retold lightly: Grandma hides in the wardrobe, nobody gets eaten, and the wolf leaves through the window in Grandma's nightcap. In the meadow the film stops for children learning English: Little Red Riding Hood asks for one thing at a time ("Can you find a flower for Grandma? Touch it!"), everything answers a tap with its name, and each miss helps a little more.</p>
<h2>Making it look like stop motion</h2>
<ul>
<li><b>Twelve frames a second, on twos,</b> so it moves in little jumps, the way a hand-moved puppet does.</li>
<li><b>The animator's hand:</b> each frame nudges every puppet by a tiny random amount.</li>
<li><b>Paper you can feel:</b> grain, torn edges, a soft shadow, brass pins at the joints.</li>
<li><b>Replacement, not morphing:</b> mouths are swapped like stop-motion mouths.</li>
</ul>
<h2>The cast</h2>
<p>Five puppets, including a wolf in a flat cap and red bow tie, more polite than he should be. A pose is just a set of joint angles, so a new action, like ducking or diving through a window, costs a few numbers instead of new drawings.</p>
<figure><img src="making/cast.webp" width="1400" height="455" alt="The five puppets, each seen from the side and from the front." loading="lazy"><figcaption>Every puppet comes as two complete sets: side view and front view.</figcaption></figure>
<p>A paper puppet can't rotate, so a turn swaps whole views: side, front, mirrored side. Head and body always turn together; a front head on a side body looked wrong every time.</p>
<figure><img src="making/turn.webp" width="1400" height="420" alt="Little Red Riding Hood turning: side view squashing, front view, mirrored side view." loading="lazy"></figure>
<p>Nine mouth shapes are timed to the voice track, and walks use a compass step, so feet never slide.</p>
<figure><img src="making/mouths.webp" width="1400" height="245" alt="Little Red Riding Hood's nine mouth shapes." loading="lazy"><figcaption>The nine mouths, from rest to "oo".</figcaption></figure>
<figure><img src="making/walk.webp" width="1400" height="350" alt="Six frames of the wolf's walk." loading="lazy"><figcaption>Six frames of the wolf's walk.</figcaption></figure>
<h2>Sets, camera and sound</h2>
<p>Each set is layers of paper that slide past each other as the camera moves. Windows and doorways are real holes, so we can see inside a house from outside.</p>
<figure><img src="making/sets.webp" width="1400" height="395" alt="Eight sets: Mother's cottage, the garden, two woods, Grandma's cottage, her bedroom and two reverse angles." loading="lazy"><figcaption>The eight sets, two of them reverse angles of Grandma's bedroom.</figcaption></figure>
<figure><img src="making/layers.webp" width="1400" height="172" alt="Grandma's cottage taken apart into sky, far, mid, inside and house layers." loading="lazy"><figcaption>Grandma's cottage, layer by layer. "Inside" is the room seen through the door and window holes.</figcaption></figure>
<p>Shots change as in a film, each question to "Grandma" closer than the last. The six ElevenLabs voices act: the wolf squeaks like a little girl at Grandma's door and drops into his own roar on "EAT". The music is the Three Little Pigs' score, reused, and every sound effect is synthesized in code.</p>
<h2>The rescue that didn't make sense</h2>
<p>In the first cut, the woodcutter appeared from nowhere and the wolf flew out of the window as if Grandma had superpowers. Every shot looked fine; the story didn't hold together. We rewrote it so that each moment causes the next:</p>
<figure><img src="making/chop.webp" width="800" height="450" alt="Little Red Riding Hood greets the woodcutter chopping wood near Grandma's cottage." loading="lazy"><figcaption>The woodcutter now appears earlier, chopping wood near the cottage.</figcaption></figure>
<figure><img src="making/rescue.webp" width="1400" height="526" alt="Six moments of the rescue." loading="lazy"></figure>
<ol class="beats">
<li>The wolf leaps; she ducks and cries "Help!"</li>
<li>Grandma bursts out of the wardrobe and brings her umbrella down on his head.</li>
<li>He bolts for the front door, where the woodcutter, who heard the cry, steps in.</li>
<li>Only one way out: through the window.</li>
</ol>
<p>A story fix is cheap on paper, and expensive once every shot is built.</p>
<h2>Everything we made for it</h2>
<dl class="made">
<dt>Sets</dt><dd>Eight layered sets, each with a blurred copy for close-ups.</dd>
<dt>Props</dt><dd>Basket, a bouquet that grows as she picks it, umbrella, axe, doors that swing, window glass that shatters.</dd>
<dt>Sound</dt><dd>Six acted voices, four music cues, three synthesized beds and about twenty effects.</dd>
<dt>Tools</dt><dd>A puppet baker that turns all 230 paper pieces into images so the film starts at once, a sound synthesizer, and contact sheets of every shot, checked before anyone else watched.</dd>
</dl>
<h2>The numbers</h2>
<div class="numbers">
<div><b>~3½ min</b><span>11 scenes</span></div>
<div><b>5</b><span>puppets</span></div>
<div><b>8</b><span>sets</span></div>
<div><b>230</b><span>pieces of paper</span></div>
<div><b>$0</b><span>for pictures</span></div>
</div>
<h2>The second version</h2>
<p>Twelve days later, <a href="../little-horse/">The Little Horse Crosses the River</a> set a higher bar, and we brought this film up to it. The voices were redone, and a team of agents restaged every scene, with a director reviewing the whole film twice. Now we see her foot step off the path, every story point gets its shot, and the questions build until the music stops, and only then: "EAT".</p>
<h2>Where this leaves us</h2>
<div class="verdict">
<p><b>New actions are cheap.</b> The umbrella blow and the dive through the window were each a few lines.</p>
<p><b>Consistency comes free.</b> A puppet is the same paper in every shot.</p>
<p><b>It gets cheaper with practice.</b> Puppets, sets, sounds and tools carry over to the next story.</p>
</div>
<p>The limits are real too: the look is deliberately simple, and with no painter to hide behind, the story itself has to hold up. We plan to build the Papermorph Skill's picture-book method on this.</p>
<p><a class="watch" href="ch01/">▶ Watch the film</a></p>
</main>
<footer>Story: the Brothers Grimm's <i>Little Red Cap</i> (1857), retold for this film. No image model: everything you see is drawn in code. Music from Google Lyria (made for The Three Little Pigs), voices by ElevenLabs (v4), sound effects synthesized. Part of <a href="../">Papermorph</a>.</footer>
</body>
</html>