AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

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, ResizeObserver resize 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/splice happens 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": clearRect when you want trails, getImageData inside 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

  1. "Build a background of 5,000 particles following a Simplex-noise flow field" → you get pooled particles, grid lookup, and trail fading.
  2. "My canvas animation looks blurry on Retina — fix it" → DPR scaling plus ResizeObserver re-render.
  3. "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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Open a terminal.
  2. Clone the repository: git clone https://github.com/AThevon/genjutsu.git
  3. Make sure the skills folder exists: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r genjutsu/skills/_jutsu/canvas-generative ~/.claude/skills/canvas-generative
  5. Because it links to references/algorithms.md and sibling skills (motion-principles, threejs-r3f), copying the whole folder is safer: cp -r genjutsu/skills/_jutsu ~/.claude/skills/_jutsu
  6. 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