forever components

Ukiyo-e Woodblock

Bamboo Sway

Nine 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.

canvasmedium complexitymoderate 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

Ambient background for Japanese-themed UIs, nature or wellness apps, or any dark-mode hero section needing calm organic motion.

When not to

Light-background pages (sky is hardcoded cream over dark body). Contexts requiring text legibility over the canvas.

Working with an AI agent

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

Change bamboo stalk color from indigo to deep forest green by setting FAR="#1f5c2e", MID="#174a25", NEAR="#0f3519", and increase sway amplitude by changing samp[i] base from 0.018 to 0.030. 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

  • stalk depth colors (FAR, MID, NEAR)
  • sway amplitude base (0.018 + sdepth offset)
  • moon color and position (MOON, mx, my)
  • leaf color (LEAF, LEAFD)
  • stalk count (N=9)
  • sky gradient stops (SKY_T, SKY_B, MIST)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • preallocated Float32Array scratch buffers (no per-frame allocation)
  • ORDER array for depth-sorted draw order
  • visibilitychange stop/start guard
  • reduced-motion static fallback (render once at t=0.6)
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Moon position is hardcoded at 74% width, 30% height — must edit mx/my to reposition
  • Leaf depth sorting is implicit via parent culm order, not independent z-depth

bambooukiyo-ewoodblocknaturecanvasambientjapanese

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.