forever components

Ukiyo-e Wave & Mountain

Sudden Shower on the Great Bridge

Diagonal sumi-ink rain streaks fall over a flat arched bridge silhouette; wind angle shifts slowly via sine wave, evoking ukiyo-e's woodblock print.

canvasmedium complexitymoderate motion

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
Worth keeping? Votes steer what gets built next — sign in to cast one, free to read

When to use it

Dark ambient backgrounds, art/culture themes, meditative screensaver-style displays.

When not to

Light-background UIs (sky gradient hardcoded dark slate). Contexts where constant rain motion competes with foreground content.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Increase rain density by changing `Math.floor(W*0.55)` to `Math.floor(W*0.9)`, shift rain color to blue-grey by changing `rgba(20,28,40,0.55)` to `rgba(30,60,120,0.5)`. 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

  • rain drop count (Math.floor(W*0.55), cap 220)
  • wind oscillation range (0.35 amplitude, 0.18 frequency)
  • rain color and opacity (rgba(20,28,40,0.55))
  • bridge vertical position (H*0.62)
  • sky gradient color stops
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • DPR-aware canvas sizing
  • visibilitychange pause/resume
  • prefers-reduced-motion static fallback
  • IIFE wrapper
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Background sky color hardcoded in CSS and canvas gradient — must edit both to retheme
  • Bridge figures are minimal triangles, not true woodblock detail
  • No touch or pointer interactivity

raincanvasukiyo-eambientbridgegenerative

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.
  • 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.
  • 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.