Canvas Generative
Practical rules and ready-made code patterns for algorithmic art on Canvas 2D — particles, flow fields, noise, fractals, L-systems.
Design & UIIntermediate★ 867⑂ 65AI score 8/10Last updated: Nov 16, 2026
What it does
Gives Claude concrete, performance-minded patterns whenever you build algorithmic or generative art with the HTML Canvas 2D API.
- Crisp canvas setup:
devicePixelRatio-aware buffer sizing,ResizeObserverresize handling, an RAF loop with a capped delta time - Noise selection: comparison table for Perlin / Simplex / Worley plus an fBm (octave) helper
- Particle pooling: fixed pre-allocated array with swap-remove so no
new/splicehappens at runtime - Flow fields: build a noise angle grid → look up the cell → add velocity with damping
- Fractals & L-systems: axiom, production rules, turn angle, iterations, and a turtle-graphics renderer
- Double buffering & trails: offscreen render + blit, with semi-transparent fill for fading trails
- Four hard "do nots":
clearRectwhen you want trails,getImageDatainside the loop, ignoring DPR, allocating in the hot loop
Who it's for
- Frontend developers adding interactive visuals to landing pages or portfolios
- Designers/devs learning creative coding and generative art
- Anyone fighting frame drops while animating thousands of particles
Examples
- "Build a background of 5,000 particles following a Simplex-noise flow field" → you get pooled particles, grid lookup, and trail fading.
- "My canvas animation looks blurry on Retina — fix it" → DPR scaling plus ResizeObserver re-render.
- "Draw a branching tree fractal with an L-system" → axiom/rules/angle/iteration setup with the turtle 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 AI 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 && mkdir -p ~/.claude/skills && cp -r genjutsu/skills/_jutsu/canvas-generative ~/.claude/skills/canvas-generative⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/AThevon/genjutsu.git - Make sure the skills folder exists:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r genjutsu/skills/_jutsu/canvas-generative ~/.claude/skills/canvas-generative - Because it links to
references/algorithms.mdand sibling skills (motion-principles,threejs-r3f), copying the whole folder is safer:cp -r genjutsu/skills/_jutsu ~/.claude/skills/_jutsu - Restart Claude Code and try a prompt like "make a canvas flow-field particle animation" to confirm the skill loads.
View source on GitHub ↗License: NOASSERTION