Ukiyo-e Woodblock
Mountain Cone
Snow-capped Fuji cone under a bokashi sky cycling night-dawn-day-dusk every 24s; sun/moon disc arcs overhead while 7 cranes drift across.
canvasmedium complexitymoderate 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-mode hero backgrounds, Japanese-aesthetic themes, ambient looping screensavers, or gallery sections showcasing generative art.
When not to
Light-background layouts (sky hardcoded dark/indigo). Contexts where constant sky shifts compete with legible text overlays.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the day cycle from 24s to 60s: replace both `time/24` occurrences in `phase()` and `draw()` with `time/60`. 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
- cycle duration (24s in phase() and draw())
- KEYS color arrays for each time of day
- crane count (NB=7)
- snow cap color (SNOW / SNOWSHADE constants)
- mountain peak height (horizon - Math.min(W,H)*0.46)
- cloud drift speed (0.012 multiplier)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- DPR-aware canvas sizing and setTransform
- visibilitychange pause/resume guards
- reduced-motion static frame fallback (draw(13))
- IIFE wrapper
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded in CSS (#0f1822) — must edit to change from dark navy
- No pointer interactivity — purely passive
- Crane positions randomized at load; layout differs each session
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.
- Koi RippleA kohaku koi undulates across a dark pond as four concentric ripple rings expand and coral petals drift, all rendered in woodblock palette.
- Bamboo SwayNine indigo bamboo stalks sway with sine-wave lean and leaf flicker against a cream bokashi sky and low coral moon, rendered in flat woodblock style.