Ukiyo-e Wave & Mountain
The One Living Line
Sumi brush traces a Lissajous path on washi canvas; stroke swells when slow and thins at speed, with ink fade and dry-brush scatter.
canvasmedium complexitysubtle 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
Ambient hero backgrounds, Japanese-aesthetic UIs, generative art displays, screensaver-style loops needing calm organic motion.
When not to
Contexts requiring text legibility over the canvas, or light/white brand backgrounds — background color is hardcoded to washi cream.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change ink palette to earth tones by setting inks=["#4a2c0a","#2d1a0e","#8b4513"], slow the brush by changing phase+=0.05 to phase+=0.03, and widen strokes by increasing the base from 16 to 22. 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
- ink palette (inks array)
- brush speed (phase += 0.05)
- stroke width formula (16 - lastSpeed*9)
- Lissajous frequency ratios (0.9 / 1.3)
- stroke reset interval (restTimer > 520)
- fade rate (rgba alpha 0.012)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard (static render fallback)
- visibilitychange pause/resume
- DPR-aware canvas sizing
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded in both CSS and canvas fillRect — must change both to retheme
- No pointer interactivity — brush path is fully autonomous
- Stroke reset is frame-count-based so animation speed changes affect cycle length
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.
- Wind among the LeavesOchre leaves and pale paper scraps drift across a sky-to-washi gradient, steered by a sine-based wind field with gentle undulating stream lines.