Canvas Generative Art
Performance-minded rules and code patterns for algorithmic art on Canvas 2D — particles, flow fields, noise, fractals and L-systems.
Dev & CodingIntermediate★ 382⑂ 28AI score 8/10Last updated: Sep 25, 2026
What it does
- Solid Canvas 2D setup: DPR-aware sizing for crisp Retina output,
ResizeObserverresize handling, and arequestAnimationFrameloop with a capped delta time. - Noise selection: a comparison table of Perlin / Simplex / Worley plus practical rules (scale input coords, stack octaves via fBm, seed for reproducibility).
- Particle systems: a pre-allocated pool with swap-remove so you never allocate or splice at runtime.
- Flow fields & L-systems: build a noise-driven angle grid to steer particles; string rewriting plus turtle graphics for fractal drawing.
- Explicit "Do Not" list: no
clearRectwhen you want trails, nogetImageDatainside the loop, never ignore DPR, never allocate in the hot loop — each with BAD/GOOD snippets.
Who it's for
- Frontend developers doing creative coding or interactive backgrounds.
- Design-minded devs adding animated artwork to hero/landing sections.
- Anyone debugging frame drops with thousands of particles.
Example uses
- "Add a landing-page background with 5,000 particles following a flow field" → pool pattern + noise angle grid + trail fade.
- "My canvas looks blurry on Retina" → apply the DPR-aware
setupCanvasand separate CSS sizing. - "Draw an L-system tree with an iteration slider" → axiom/rules/angle structure plus a turtle-graphics renderer.
· · · 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 a terminal and clone the repo:
git clone https://github.com/AThevon/genjutsu.git - Make sure the skills folder exists:
mkdir -p ~/.claude/skills - Copy the whole skill folder (so
references/comes along):cp -r genjutsu/skills/_jutsu/canvas-generative ~/.claude/skills/ - To also get the linked files (
_jutsu/VERSIONS.md,motion-principles,threejs-r3f), copy the parent folder:cp -r genjutsu/skills/_jutsu ~/.claude/skills/ - Restart Claude Code and confirm
canvas-generativeappears in your skill list. - Try a prompt like "Build a Canvas particle flow-field background" to trigger it.
View source on GitHub ↗License: NOASSERTION