Canvas Generative Art
Practical rules and code patterns for building performant generative art with the Canvas 2D API.
Design & UIIntermediate★ 216⑂ 17AI score 8/10Last updated: Jul 31, 2026
What it does
- Gives you DPR-aware canvas setup, a ResizeObserver resize handler, and a delta-capped requestAnimationFrame loop.
- Ships proven patterns: particle pooling (zero runtime allocation), noise-driven flow fields, fBm octaves, L-system turtle graphics, and double buffering for trail effects.
- Compares Perlin / Simplex / Worley noise so you pick the right one for terrain, motion, or cellular looks.
- A "Do Not" section blocks classic performance traps: clearRect killing trails, getImageData inside the loop, allocating objects in hot loops.
Who it's for
- Frontend developers building interactive backgrounds and hero animations.
- Creative coders who can produce visuals but struggle to hold 60fps.
- Anyone working in raw Canvas 2D instead of p5.js or similar wrappers.
Example uses
- "Build a 5,000-particle flow field background driven by simplex noise" → grid of angles, pooled particles, fading trails.
- "Draw a fractal tree for our landing page" → axiom, production rules, turn angle, and turtle renderer.
- "My canvas looks blurry on Retina" → applies devicePixelRatio scaling plus a resize handler.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/AThevon/genjutsu/HEAD/skills/_jutsu/canvas-generative/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/_jutsu/canvas-generative folder from the GitHub repo AThevon/genjutsu into my ~/.claude/skills/canvas-generative/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/AThevon/genjutsu.git /tmp/genjutsu && mkdir -p ~/.claude/skills && cp -r /tmp/genjutsu/skills/_jutsu/canvas-generative ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open your terminal.
- Clone the repository:
git clone https://github.com/AThevon/genjutsu.git - Create the skills folder if needed:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r genjutsu/skills/_jutsu/canvas-generative ~/.claude/skills/ - Verify supporting files came along:
ls ~/.claude/skills/canvas-generative(look forreferences/). - Restart Claude Code and try a prompt like "make a canvas flow field animation" to confirm the skill loads.
View source on GitHub ↗License: MIT