Ukiyo-e Weather & Road
Boat on the Swell
A small ferry rocks on sine-wave swells at dusk beneath a sienna sun and three circling gulls, rendered in ukiyo-e woodblock palette.
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
Ambient hero backgrounds, cultural or travel themes, dark-mode landing pages needing calm painterly motion.
When not to
Light-background layouts (background is hardcoded dark navy). Contexts where subtle motion competes with text legibility.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Move the sun to the right side by changing sx to W*0.70, shift sunset palette by replacing PAL.sienna with '#7a3b6a' for a violet dusk. 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
- sun position (sx = W*0.30)
- palette colors (PAL object)
- swell amplitude and count (amp, b loop 0..3)
- boat tilt sensitivity (Math.sin(t*0.9)*0.02)
- gull count and spacing (i loop 0..2)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard (REDUCED)
- visibilitychange pause/resume
- DPR-aware fitCanvas()
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded in CSS (#243044) — must edit both CSS and canvas gradient to change sky
- Boat tilt derived from two swell sample points; at very wide viewports the angle change may be imperceptible
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.
- 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.
- 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.