forever components

Ukiyo-e Wave & Mountain

The Great Wave off Kanagawa

Procedural Great Wave: layered Prussian-blue swells crest and sway with recursive white foam fingers; a snow-capped Fuji silhouette sits in the background.

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

Art-themed hero backgrounds, ambient displays, Japanese aesthetic or ukiyo-e inspired UI sections.

When not to

Light backgrounds (sky hardcoded dark navy). Contexts needing legible text overlays — wave motion competes with reading.

Working with an AI agent

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

Change the foam finger count by adjusting the k%3===0 modulo to k%2===0 for denser fingers, increase amp multiplier in crest waveProfile from H*0.62 to H*0.75 for a taller wave. 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

  • wave amplitude (H*0.62 in crest profile)
  • animation speed (t += 0.016)
  • foam finger depth (depth=4)
  • Fuji position (fjx=W*0.46, fjy=H*0.52)
  • wave colors (#2e5c9a, #1b3a6b, #234e85)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

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

Known limitations

  • Background color hardcoded in CSS — must edit to use on non-dark backgrounds
  • Recursive foamFingers can stack many draw calls at high depth values; keep depth <= 5

wavecanvasgenerativeartambientprussian-blue

More Ukiyo-e Wave & Mountain components

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