# printed-curtain-render

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 386 installs · ★ 1732 repo stars
- Author: vibe-motion
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/vibe-motion/skills/tree/HEAD/printed-curtain-render/SKILL.md
- Updated: 2026-10-05
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/printed-curtain-render

## What it 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`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add vibe-motion/skills --skill printed-curtain-render -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/printed-curtain-render/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/printed-curtain-render/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add vibe-motion/skills --skill printed-curtain-render -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/printed-curtain-render/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add vibe-motion/skills --skill printed-curtain-render -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/printed-curtain-render/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install vibe-motion/skills printed-curtain-render
```

2. **Manually: put the files in place**
- File: `.github/skills/printed-curtain-render/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add vibe-motion/skills --skill printed-curtain-render -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/vibe-motion/skills --path printed-curtain-render
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/printed-curtain-render/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add vibe-motion/skills --skill printed-curtain-render -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/vibe-motion/skills/tree/HEAD/printed-curtain-render/SKILL.md

## When to use it
- 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
- Generate a curtain from `poster.png` with the text `VIBE MOTION`, output to `out/printed-curtain`.
- Add a second line `SPRING DROP` and raise it with `--text-y`.
- Rebuild with `--image-fit cover` and cloth color `#101820`.

## Similar
- [procedural-canvas-animation](https://affpapa.org/en/nevibecode/skills/procedural-canvas-animation.md) — skill · 160 installs
- [p5js](https://affpapa.org/en/nevibecode/skills/p5js.md) — skill · 591 installs
- [Algorithmic Art Generation](https://affpapa.org/en/nevibecode/skills/algorithmic-art-generation.md) — skill · 1 install
- [canvas-generative](https://affpapa.org/en/nevibecode/skills/canvas-generative.md) — skill · 1000 installs
- [p5js-hermes](https://affpapa.org/en/nevibecode/skills/p5js-hermes.md) — skill · 214 installs
- [sumi-vector](https://affpapa.org/en/nevibecode/skills/sumi-vector.md) — skill · ★ 110 repo stars

From the same set: [vibe-motion/skills](https://affpapa.org/en/nevibecode/by/vibe-motion/skills.md) — 12 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
