printed-curtain-render — Claude Code skill
printed-curtain-render turns a PNG, JPEG or WebP plus optional text into a p5.js curtain whose strands you can push around in the browser.
no license 386 installs ★ 1,732 updated 2026-10-05
npx skills add vibe-motion/skills --skill printed-curtain-render -a claude-codeWhat printed-curtain-render does
A Python script, scripts/create_printed_curtain.py, builds a portable output folder holding a p5.js scene and a copy of your image. The cloth uses 40 Verlet strands, and the artwork is mapped into the material coordinates so it folds and splits along with the threads. A finished run prints VALIDATION=PASS and OUTPUT_HTML=<absolute path>.
Open the result over HTTP, not file:// — canvas security stops the browser from sampling pixels of a local file, so the curtain comes up blank. Serve it with python3 -m http.server 8000 --directory "$(pwd)/out/printed-curtain". Pointer movement pushes strands aside, H shows the controls and image picker, R rebuilds the cloth, and dropping a new image on the canvas swaps it for the session.
You need Python 3.9+ and a browser with Canvas. The script leaves a non-empty output directory alone unless you pass --overwrite. The engine derives from Jason Labbe's Dynamic ropes 2 and stays under CC BY-SA 4.0, so keep the attribution and license your changes the same way. Run it with neither --image nor --text and you get the default text curtain reading VIBE MOTION.
What it helps with
- build an interactive curtain from a finished poster
- print a logo into the cloth so it bends with the strands
- show a client a live browser preview of the artwork
- place the image on the 1200×1600 material canvas
- swap the artwork without rebuilding the scene
Example prompts for the agent
- Generate a curtain from
poster.pngwith the textVIBE MOTION, output toout/printed-curtain. - Add a second line
SPRING DROPand raise it with--text-y. - Rebuild with
--image-fit coverand cloth color#101820.
How to install printed-curtain-render
1Skills CLI (Vercel)
npx skills add vibe-motion/skills --skill printed-curtain-render -a claude-code2Manually: put the files in place
~/.claude/skills/printed-curtain-render/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/printed-curtain-render/
1Skills CLI (Vercel)
npx skills add vibe-motion/skills --skill printed-curtain-render -a codex2Manually: put the files in place
.agents/skills/printed-curtain-render/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add vibe-motion/skills --skill printed-curtain-render -a cursor2Manually: put the files in place
.cursor/skills/printed-curtain-render/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install vibe-motion/skills printed-curtain-render2Manually: put the files in place
.github/skills/printed-curtain-render/SKILL.md1Skills CLI (Vercel)
npx skills add vibe-motion/skills --skill printed-curtain-render -a gemini-cli2Platform CLI
gemini skills install https://github.com/vibe-motion/skills --path printed-curtain-renderManually: put the files in place
.devin/skills/printed-curtain-render/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add vibe-motion/skills --skill printed-curtain-render -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about printed-curtain-render
How do I install printed-curtain-render in Claude Code?
Run npx skills add vibe-motion/skills --skill printed-curtain-render -a claude-code. The skill lands at ~/.claude/skills/printed-curtain-render/SKILL.md.
What does printed-curtain-render do?
It generates a p5.js curtain with your artwork and text baked into the strands, each one moving on its own and parting under the pointer.
Can I preview the curtain without a local server?
No. Over file:// the canvas cannot read the artwork pixels. Serve the folder with python3 -m http.server 8000 --directory ... and open the printed URL.