forever components

Ukiyo-e Woodblock

Pine Mist

Four pine-clad ridges recede into drifting mist under an indigo-to-cream bokashi sky with a coral sun and flapping cranes in woodblock style.

canvasmedium complexitysubtle 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-mode hero backgrounds, Japanese or nature-themed UIs, ambient screensavers, or anywhere a calming painterly landscape is needed.

When not to

Light-background layouts (background is hardcoded dark navy). Contexts requiring overlaid readable text — the mist animation competes with copy.

Working with an AI agent

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

Change the sun position to the left (set sunX=W*0.25), shift SKY_TOP to [80,40,60] for a rose-gold sky, and increase crane count NB to 9. 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

  • crane count (NB=5)
  • ridge tints (RIDGES array col values)
  • sun position (sunX=W*0.70, sunY=H*0.34)
  • sky palette (SKY_TOP, SKY_BOT)
  • fog opacity per ridge (R.fog values)
  • pine count per ridge (R.pines)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

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

Known limitations

  • Background color hardcoded to dark navy in CSS — must change both CSS and SKY_TOP to retheme
  • Fog lozenges can overlap awkwardly at very small viewport heights
  • No pointer interactivity — purely ambient

ukiyo-elandscapepinemistcanvasambientjapanesegenerative

More Ukiyo-e Woodblock components

  • Wave CrestA stylized ukiyo-e-inspired cresting wave with curling foam claws, an indigo sea gradient, Fuji-like cone, and coral sun — all drawn procedurally on canvas.
  • Rain Lines96 diagonal rain streaks fall over layered indigo/coral hill bands and a village silhouette beneath a bokashi cream sky with a pale moon disc.
  • Crane Glide7 cranes with flapping wings glide across flat indigo/teal bands past a coral sun and Mt. Fuji silhouette, with scrolling wave crests.
  • Blossom Fall110 sakura petals drift and flutter down over an indigo-to-coral bokashi sky with a stylised woodblock mountain and bare branch silhouette.
  • Mountain ConeSnow-capped Fuji cone under a bokashi sky cycling night-dawn-day-dusk every 24s; sun/moon disc arcs overhead while 7 cranes drift across.
  • Koi RippleA kohaku koi undulates across a dark pond as four concentric ripple rings expand and coral petals drift, all rendered in woodblock palette.