Ukiyo-e Weather & Road
Falling Snow
Snow 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.
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
Seasonal or cultural hero backgrounds, winter themes, Japanese art-inspired decorative panels.
When not to
Light-mode UIs (background hardcoded dark navy). Layouts requiring legible text over the canvas.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Increase snowflake count by changing N cap from 120 to 200 and the density multiplier from 0.22 to 0.35, then shift the sky palette to a deeper midnight blue by setting PAL.indigo to '#0d2240'. 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
- snowflake count (N cap=120, density 0.22)
- flake speed range (14..44 px/s)
- flake size range (1..3.6 r)
- palette colors (PAL object)
- scene layout ratios (W/H multipliers for roofs and pine)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- DPR-aware canvas sizing in fitCanvas()
- IIFE wrapper
- prefers-reduced-motion guard (REDUCED)
- visibilitychange pause/resume
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Scene redraws every frame — no dirty-rect optimisation; heavy on very low-end devices at large viewport
- Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default
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.
- Distant MountainFour ukiyo-e hill silhouettes drift at different parallax rates past a snow-capped peak and glowing sun on a gradient indigo sky.
- 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.