/procedural-art:procedural-canvasfrom Procedural Art
Generates a self-contained HTML file that renders a procedural landscape scene using Canvas 2D and vanilla JavaScript. Useful for creating offline, photorealistic or painterly landscapes (mountains, lakes, forests, skies) with no external dependencies.
Ships in Procedural Art. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
One HTML file, one picture. The file holds no image and loads nothing: it is a small renderer written for this one scene, and the browser computes every pixel when the page opens. You write that renderer.
SK below is this skill's folder.
| File | What it is |
|---|---|
assets/fuji-at-first-light.html | A finished piece to read before writing your own: a real mountain from baked elevation data, a lake, a foreground. Open it, read its stage list, borrow its scaffolding |
scripts/render_headless.js | Renders a piece in headless Chromium, times it, reports page errors, saves the canvas and a 1:1 crop, and checks that a second render is identical |
scripts/bake_dem.py | Turns real elevation into the block a piece embeds, so the mountain in the picture is the real one |
references/architecture.md | How the file is organised: stages, seed, the done flag, world space, the conventions tools rely on |
references/techniques.md | How each part is made: terrain, water, reflections, trees, clouds, light shafts, the grade; and the traps |
More finished pieces, with the prompts that produced them, are at https://dogum.github.io/procedural-art/canvas/ (source in docs/canvas/ of the repository).
Keep these every time; tools and people rely on them.
<img>, no fonts, no fetch, no library. It must work from file:// with the network off.?seed= in the address (any string), with a default written in the file. Never Math.random, never the clock. Give each subsystem its own named random stream (stream('oak'), stream('flora')), so changing one does not reshuffle the others.await new Promise(requestAnimationFrame)), so the picture builds up and the page never freezes.document.documentElement.dataset.ready = 'true'.bake_dem.py and say in the file what is real.node $SK/scripts/render_headless.js piece.html out.png --repeat
node $SK/scripts/render_headless.js piece.html out.png --crop 360,140,1200,520 mountains.png
node $SK/scripts/render_headless.js piece.html seed2.png --query "?seed=harbour-7"
The harness needs Node with the playwright package and a Chromium (set CHROME to a browser binary if Playwright has none). If neither is available, say so and ask the user to open the file; do not claim the piece was checked.
Read references/architecture.md before writing the first line and references/techniques.md when you reach each part.
python $SK/scripts/bake_dem.py --npz work/fuji/dem.npz --camera 35.5222,138.7650 --look 35.3606,138.7274 \
--lake 829 --date 2026-11-10 --time 07:05 --tz 9 --name "Mount Fuji from the north shore of Lake Kawaguchi" \
--out block.js --into piece.html
It takes an elevation cache (the dem.npz that procedural-realism and procedural-terrain-art write, or any file with elev, lats, lons), a camera position and a point to look at. It bakes the ground as that camera sees it, a fan of depth profiles with Earth curvature already removed, computes where the Sun is at the given time, and writes the block between the DEM-BEGIN and DEM-END markers of the piece (and to --out, block.js by default). The command above reproduces the block in assets/fuji-at-first-light.html exactly. The format is documented at the top of the script and of assets/fuji-at-first-light.html, which shows how to read it and scan it into a picture. Getting the elevation needs one of the terrain skills (dem.py); this skill does not fetch it. Write in a comment, and in a small caption on the page, what is real (terrain, viewpoint, sun) and what is invented (foreground, trees, weather).
Give the file, the seed, the render time you measured, and whether the repeat render was identical. Say what is real and what is invented. Name the weak spots you saw in the crops; every piece has some.
Say so when a request lands here.
ctx.filter is ignored by some Safari versions: blur by hand.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/procedural-paintingPaint an original picture from imagination with code, no generative image model. You compose the subject yourself as a short Python script (shapes, light, colour, brush direction per mass) and a paint simulator lays it as real brush strokes with pigment mixing (Kubelka-Munk, so blue into wet yellow goes green), bristles that run dry, wet-into-wet pickup, and impasto relief under a raking light. It can also record a film of the canvas being painted. Use whenever someone asks for a painting, an oil painting or a painterly picture of any subject (a street in the rain, a still life, a landscape, a seascape, figures) made from code or "without an image model", wants to watch a picture being painted stroke by stroke, or wants an existing image repainted with physical paint. Not for prompts for image models, photo filters, advice on real paints, or vector illustration. For real mountains from elevation data use procedural-terrain-art or procedural-realism./procedural-realismMake photographic-style images with pure code and physics, no generative image model. Ray-marched terrain of any real mountain with physical sky, haze, shadows, snow, mist and clouds; mirror lakes; forests and villages; blue hour with a lit city or a moonlit starry night; sunset timelapse videos along the real sun path. A from-scratch path tracer renders JSON still lifes (glass, prisms with rainbow caustics, copper, fruit). A painterly finisher turns any image, including an uploaded photo, into oil, impasto, gouache, watercolour or ink. Use whenever someone wants a realistic or "CGI" render made from code, a photoreal landscape of a real place, a 3D still life without Blender, a painting of a render or photo, or an image path traced or ray traced from scratch with "no AI image". Not for help with other renderers (Blender, Cycles, Unreal), explaining rendering in words, photo filters or real-paint advice. For line-art, contour, riso or woodcut styles, use procedural-terrain-art.npx claudepluginhub dogum/procedural-art --plugin procedural-artOther plugins' skills for the same job