Ukiyo-e Weather & Road
Distant Mountain
Four ukiyo-e hill silhouettes drift at different parallax rates past a snow-capped peak and glowing sun on a gradient indigo sky.
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
Dark ambient backgrounds, art/culture sites, screensaver-style displays needing calm layered landscape motion.
When not to
Light-background layouts (sky color hardcoded in CSS). Contexts needing foreground text legibility over the canvas.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the sun position to center stage by setting sx to W*0.5, shift the peak layer color to a warmer rose-indigo, and slow drift speed from 0.18 to 0.08. 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
- drift speed (dt*0.18)
- layer top positions (top: 0.30..0.80)
- layer parallax factors (f: 0.06..0.42)
- PAL color palette object
- sun position (sx=W*0.72, sy=H*0.30)
- snow cap size (cx+W*0.075)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- DPR-aware fitCanvas with setTransform
- IIFE wrapper
- prefers-reduced-motion static-frame guard
- visibilitychange stop/start
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background CSS color (#3f6f9f) must be updated manually to match sky gradient changes
- Parallax offsets use sin(drift) so motion is oscillating, not continuous scroll
More Ukiyo-e Weather & Road components
- Sudden RainUp to 140 slanted rain streaks fall in two depth layers over a painted ukiyo-e scene: gradient sky, green hill, indigo river, and arched bridge silhouette.
- Bokashi SkyCanvas sky cycles dawn→day→dusk→night with bokashi gradients; sun/moon arcs overhead, stars appear at night, a bird drifts across, hills anchor the base.
- Falling SnowSnow flakes drift and sway over a ukiyo-e night scene: indigo sky, snow-capped rooftops, and a lone layered pine. Static fallback for reduced-motion.
- Plum BranchA ukiyo-e-style ume plum branch with 11 blossoms that bloom open petal-by-petal, sway gently, and re-bloom every 12 seconds against layered ink hills.
- Boat on the SwellA small ferry rocks on sine-wave swells at dusk beneath a sienna sun and three circling gulls, rendered in ukiyo-e woodblock palette.
- Lantern Path7 paper lanterns line a receding road in ukiyo-e woodblock style; sky and lanterns cycle through dusk and dawn as darkness falls and lifts.