Agent skill · vibe-motion
printed-curtain-render
Generate a browser-based p5.js curtain simulation that weaves user-supplied PNG, JPEG, or WebP artwork and optional text into individually moving strands. Use when users ask for an interactive curtain or thread simulation, artwork woven into cloth or ropes, image-bearing fabric motion, 可交互线帘/幕布, 图片织入布料, printed curtain effects, or a customizable browser-based fabric reveal.
What it needs
About 2k tokens when loaded.
What this skill does
Printed Curtain Render Workflow 1. Resolve the source image, optional text lines, palette, and output directory. 2. Resolve the installed skill directory and run scripts/createprintedcurtain.py. 3. Wait for VALIDATION=PASS and OUTPUTHTML=<absolute path>. 4. Serve the output directory over HTTP and inspect the result in a browser. Do not use file://; browser canvas security can prevent local artwork pixels from being sampled. 5. Return the absolute HTML path, the local-server command, and the chosen artwork settings. Quick Start Installed Skill Resolution Use the installed skill copy, not a source checkout of this skill collection: Preview Serve the generated directory, then open the printed URL: Move the pointer across the curtain to push individual strands aside. Press H to toggle the live controls and image picker. Press R to rebuild the cloth. Drop a PNG, JPEG, or WebP on the canvas for a temporary in-browser replacement. Customization Repeat --text to add multiple centered text lines. Use --image-fit contain cover stretch and the --image-x, --image-y, --image-width, and --image-height artboard controls to place artwork on the 1200×1600 material canvas. Use --text-y, --text-width, --text-height, --text-gap, --font-family, and --font-weight to refine type. Use --cloth-color, --ink-color, and --background-color with CSS hex colors. Use --overwrite only to update generated filenames in an existing output directory. It keeps unrelated files. Edit generated artwork.js for fine-grained image layers or per-line colors without forking the physics engine. Behavior Copy the bundled p5.js simulation and the selected image into a portable output directory; do not upload user artwork or require a network connection. Bake artwork into the cloth's material coordinates so it stretches, folds, and separates with the strands instead of floating above them. Simulate 40 Verlet strands and interpolate the visible weave for a dense curtain at modest physics cost. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills vibe-motion/printed-curtain-render