Ukiyo-e Wave & Mountain
Wind among the Leaves
Ochre leaves and pale paper scraps drift across a sky-to-washi gradient, steered by a sine-based wind field with gentle undulating stream lines.
canvasmedium complexitymoderate motion
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
When to use it
Decorative hero backgrounds or seasonal ambient loops with a Japanese woodblock aesthetic.
When not to
Contexts requiring legible text overlays or low-end devices sensitive to continuous canvas redraws.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change palette to autumn reds by replacing palette with ["#b03a2e","#c0392b","#922b21","#d35400","#2e4057"] and increase particle count by editing the seed function's cap from 110 to 160. Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.
Safe to edit
- palette array (5 colors)
- particle count cap (Math.min(110, ...))
- wind field strength (sin multipliers in field())
- particle speed range (0.6 + Math.random()*0.8)
- paper vs leaf ratio (0.35 threshold)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- DPR-aware canvas sizing and setTransform
- visibilitychange pause/resume
- prefers-reduced-motion guard (single static frame)
- IIFE wrapper
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Particle count is capped at 110 but scales with viewport width (W*0.10), so very wide screens get fewer particles than intended
- No touch/pointer interaction — purely passive
More Ukiyo-e Wave & Mountain components
- The Great Wave off KanagawaProcedural Great Wave: layered Prussian-blue swells crest and sway with recursive white foam fingers; a snow-capped Fuji silhouette sits in the background.
- Fuji at DawnFlat woodblock-style Red Fuji scene: indigo cone with snow cap, sky cycling from night to beni-pink dawn, a sun rising, and three cloud bands drifting across.
- Seigaiha — Blue Sea WavesNavy-to-sky arcs tile the canvas in the seigaiha pattern; nested rings breathe with a slow staggered rise like a tide held in cloth.
- Sudden Shower on the Great BridgeDiagonal sumi-ink rain streaks fall over a flat arched bridge silhouette; wind angle shifts slowly via sine wave, evoking ukiyo-e's woodblock print.
- Cranes Crossing the MoonThree brush-contour cranes beat their wings along an S-curve past a pale moon on parchment. Staggered formation, wings driven by sine wave.
- The One Living LineSumi brush traces a Lissajous path on washi canvas; stroke swells when slow and thins at speed, with ink fade and dry-brush scatter.