forever components

Ukiyo-e Wave & Mountain

Carp in the Still Pond

5 koi fish swim lazy circles in deep indigo water; periodic ripple rings bloom outward and cause nearby fish to dart away. Ukiyo-e palette.

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

Ambient backgrounds for art, nature, or Japanese-themed UIs. Loading screens or screensaver-style displays.

When not to

Light backgrounds (canvas hardcoded to dark navy). Contexts where constant motion competes with text legibility.

Working with an AI agent

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

Change fish count to 8 by adding 3 more entries in seedKoi, increase max ripple radius to 120, and shift fish palette to cooler blues (#6a9fd9, #aecbe4). 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

  • fish count (loop limit i<5 in seedKoi)
  • fish color palette (cols array)
  • ripple max radius (60+Math.random()*60)
  • ripple spawn interval (nextRipple=70+Math.random()*90)
  • fish speed after dart (k.sp=2.2)
  • fish body size (len: 18+Math.random()*14)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • DPR-aware canvas sizing (cv.width=Math.round(W*DPR))
  • visibilitychange pause/resume
  • reduced-motion static fallback (40-frame pre-render)
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Background color hardcoded in both CSS and canvas fillStyle — must update both to change from dark navy
  • No click/pointer interactivity — ripples are autonomous only
  • Fish wrap at canvas edges which can look abrupt on wide viewports

koifishripplescanvasambientwatergenerative

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.