Just Use p5.js for Hand-Drawn Cartoon Shorts
Creators who want wobbly ink lines and watercolour fills without After Effects: p5.js plus a Claude Code agent renders a complete MP4 from a one-sentence prompt, for free.
For creators who need to make a hand-drawn cartoon short without animation software
Just use p5.js.
- Price
- Free
- Runner-up
- HyperFrames
Open sourceLGPL-2.1★ 24.5k+39 this weeklast commit Nov 27, 2026View on GitHub
Visit p5.js Opens p5.js’s site. Free trial or plan where available.
You want a hand-painted cartoon short — wobbly ink lines, watercolour fills, the kind of imperfect warmth that makes people stop scrolling. Every tool that promises this without code costs $200+/month or requires years of After Effects muscle memory. p5.js, paired with the p5.brush library and a Claude Code agent, renders a complete MP4 from a one-sentence prompt, for free, using nothing but a browser engine and FFmpeg.
Just use p5.js.
- The Pick: p5.js — LGPL-2.1 licensed, free forever, the only code-driven canvas that draws with pencils and watercolour rather than vectors and keyframes
- Runner-Up: HyperFrames — faster to render, better for text-heavy or data-driven video, but output looks digital rather than hand-made
- Skip: Manim (built for math notation, not character acting), Three.js (3D scenes, wrong dimension), Remotion (React-driven, no brush primitives), Motion Canvas (last release December 2024), Revideo (no stable release)
- Cost: Free — you need Node.js, Chrome, and FFmpeg installed; the agent handles wiring the pipeline
Why p5.js
The pitch is simple: p5.js is a creative-coding canvas that an LLM can write fluently, and p5.brush extends it with 11 natural brushes — pencil, charcoal, marker, watercolour fill, chalk, hatch, and more — driven by vector-field stroke wobble. Load both from jsDelivr, describe a scene, and you have organic frames that look hand-made because they are drawn stroke by stroke on a canvas, not composited from vector paths.
The render pipeline is: Claude Code writes p5.js sketch code → headless Chrome paints every frame → FFmpeg stitches the MP4. The agent handles wiring the pipeline; you still need Node.js, Chrome, and FFmpeg on the host, and some projects may require installing an npm package or local assets.
What the agent produces well:
- Character animation with acted emotion poses (fear, joy, exhaustion — full body, not just face)
- Scene transitions that feel painted: ink bleeds, watercolour blooms, chalk wipes
- Background illustration driven by the same brush library — no visual mismatch between character and world
- Beat-synced timing when you give the agent a BPM or drop an audio file
The honest render caveat: watercolour fills are CPU-intensive — expect seconds per frame on machines without a dedicated GPU. Ink lines and hatching render significantly faster. If your machine is underpowered, tell the agent to use ink-only and hatch fills instead. The result still looks hand-drawn; it just skips the bleed effect.
The best-tested starter kit is ClaudeAnimationBase (JohnHeibel, MIT-licensed). It ships the Clawd character with 31 acted emotion poses and an ANIMATION_GUIDE.md that patches the most common LLM failure modes — bad timing, missing transitions, misnamed brush functions. Drop the folder into your project and open Claude Code with this prompt:
Read ANIMATION_GUIDE.md, then make a 15-second video of [character] [action]. Show the storyboard before you code.
The “show the storyboard” instruction matters. Without it, the agent skips scene planning and writes monolithic code that is hard to revise. With it, you get shot-by-shot breakdowns you can edit before a single frame renders. ClaudeAnimationBase currently has 3.2k stars on GitHub; its last commit was September 24, 2026.
Two Claude Code skills package the full pipeline so you never wire it up manually. The painted-animation skill wraps storyboarding, shot code, review loop, beat sync, and final encode into a single /painted-animation command. The animation-styles-skill (xsong13) extends it to seven styles: watercolour, pixel, paper cutout, crayon, chalk, neon, and risograph.
Licensing is clean. p5.js is LGPL-2.1: use it commercially, distribute your video anywhere, owe nothing. p5.brush is MIT. ClaudeAnimationBase is MIT. The current stable p5.js release is 2.3.4; p5.brush’s latest stable npm release is 2.2.3, published September 20, 2026.
Start with p5.js — free, LGPL-2.1, runs anywhere Chrome runs
Quickstart
You need three things installed before the agent can do anything: Node.js, Google Chrome, and FFmpeg. With those in place, the full workflow is:
- Clone ClaudeAnimationBase into your project folder:
git clone https://github.com/JohnHeibel/ClaudeAnimationBase - Install the animation styles skill in Claude Code:
/plugin marketplace add xsong13/animation-styles-skillthen/plugin install painted-animation@animation-styles-skill - Open Claude Code in the project folder and run this prompt (edit the bracketed parts):
Read ANIMATION_GUIDE.md, then make a 15-second video of Clawd tiptoeing across a rainy rooftop. Show the 4-shot storyboard before writing any code. Use watercolour style, 24fps, output MP4.
The agent will storyboard first, write shot code, run the headless Chrome renderer to paint frames, and hand off to FFmpeg for the final encode. The skills were built against Claude Opus 5.5. The two library versions to confirm in your project: p5.js 2.3.4 and p5.brush 2.2.3 (both load from jsDelivr — no local install needed).
Agent Gotchas
A few failures come up repeatedly, and each has a one-line fix.
Agent skips the storyboard and jumps straight to code. Prepend “Show the storyboard before you write any code” to every new scene prompt. The agent treats this as a checkpoint and breaks the work into reviewable shots.
Brush function names are wrong and the render errors out. Instruct the agent: “Read ANIMATION_GUIDE.md and list every brush function name you will call before you write the first line of code.” ANIMATION_GUIDE.md documents the exact p5.brush 2.2.3 API; this forces the agent to use it.
Render is painfully slow. Ask the agent for “ink-only strokes, hatch fills, and fewer particles” and to reduce resolution or fps to 24 if it was targeting 60. Watercolour fill is the expensive step — cutting it drops render time substantially on CPU-only machines.
Single shot runs fine but the full video has timing gaps between shots. Tell the agent: “Review the transition code between every shot and confirm the frame counter resets correctly.” This catches the off-by-one errors that cause blank frames at cuts.
Why Not HyperFrames
HyperFrames (HeyGen, Apache-2.0) is a legitimate alternative and the right pick for a different brief. It renders HTML to MP4 deterministically — fast, pixel-perfect, great for kinetic typography, lyric videos, and data-driven sequences where every frame must match a spreadsheet row. Rendering on your own hardware is free and requires no account.
The gap is tactile. HyperFrames output looks like polished digital motion design. p5.js output looks like a person painted it. If your brief says “cartoon” or “hand-drawn,” HyperFrames gets you there visually only if you explicitly instruct it to simulate brush strokes in CSS — an awkward workaround compared to p5.brush’s native engine.
Pick HyperFrames when: the video is text-sync, data-driven, or needs to render quickly on commodity hardware. Pick p5.js when: the brief is organic, character-driven, or the aesthetic is the point.
Try HyperFrames for text-sync and data-driven video
Why Not the Rest
Manim is built for mathematical notation — LaTeX equations, number lines, geometric proofs. Its primitives are shapes and formulas, not brushes or character poses. If your video has an equation in it, Manim wins. If it has a character in it, Manim is the wrong tool.
Three.js renders 3D scenes via WebGL and WebGPU. It is not the wrong quality — it is the wrong dimension. A 2D hand-drawn cartoon has no use for a scene graph, cameras, or lighting rigs. Pointing an agent at Three.js for a cartoon short produces technically correct output that looks nothing like what you asked for.
Remotion is React-driven and excellent at what it does: UI demo videos, personalized at-scale renders, sequences driven by data. It has no brush or paint primitives. The Remotion license requires a company license for teams of four or more; individuals and teams under four can use it free. That pricing is fair for its use case — it is just the wrong use case here.
Motion Canvas last shipped a stable release in December 2024. Its last commit to the public repository was July 2026. For a tool you are depending on for a production workflow, that gap between commit and release is a support risk — if something breaks, there is no patch coming.
Revideo is a Motion Canvas fork and has shipped no stable release at all. It is an experiment, not a production dependency.
When to Revisit
p5.js is the right engine until your cartoon briefs get complicated in a specific way: multi-character dialogue with lip sync, or scenes that need 3D depth (parallax backgrounds, camera moves through space). At that point, Blender’s Python API can be driven headless by an agent and handles both — but setup time is hours, not minutes, and the hand-drawn aesthetic requires extra work. For everything that fits the brief “hand-painted cartoon short,” p5.js with p5.brush handles it without that overhead.
If your brief is a lyric video or a text-sync animation rather than a character cartoon, the HyperFrames pick covers that case — it renders faster and gives you cleaner type control.
JustUse earns a commission if you sign up through some of our links. It never decides the pick: we recommend tools without affiliate programs whenever they’re the better choice.
More in AI video production All ai video production picks
Pick
Just Use FFmpeg: Encode Agent-Built Videos for Any Platform
Just use FFmpeg
Pick
Just Use Three.js for 3D Animated Scenes
Just use Three.js
Pick
Just Use HyperFrames for Kinetic Typography
Just use HyperFrames
Pick
Just Use Higgsfield: AI Footage Inside Your Claude Video
Just use Higgsfield