forever components

Gold-Leaf Ornamental Studies

Falling Gold

Diamond-shaped gold flakes drift and sway downward against a near-black background, each shimmering in opacity as they tumble and rotate.

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

Luxury or art-themed hero backgrounds, gold-leaf-inspired design systems, ambient dark-mode decorative panels.

When not to

Light backgrounds (hardcoded dark canvas), contexts where falling motion competes with readable content, or low-end devices needing minimal repaints.

Working with an AI agent

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

Increase flake count by changing the divisor in `Math.round(S.w*S.h/5200)` to 3000, slow fall speed by reducing `vy` max from 34 to 18, and shift color to rose gold by setting GOLD to '#c47c5a' and GOLD_HI to '#e8a87c'. 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

  • flake count (density divisor 5200)
  • fall speed range (14+Math.random()*34)
  • gold colors (GOLD, GOLD_HI constants)
  • flake size range (2+Math.random()*5)
  • sway amplitude (8*dt multiplier)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • DPR-aware fitCanvas with setTransform
  • visibilitychange pause/resume guards
  • IIFE wrapper
  • prefers-reduced-motion static fallback
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Background color hardcoded in both CSS (#070502) and canvas fill — must change both
  • No pointer interactivity; entirely passive
  • Flake count capped at 110 regardless of screen size

goldparticlesfallingambientcanvasgenerative

More Gold-Leaf Ornamental Studies components

  • The Golden TreeRecursive gold fractal tree grows and breathes via a pulsing sine wave, with spiral coil tips and drifting gold flecks against a near-black background.
  • Mosaic ShimmerA 14x10 grid of gold tesserae pulses in diagonal sine-wave shimmer; sparse jewel-toned accents pop against the gold, evoking Byzantine mosaic.
  • Spiral Ornament EngineGold spirals, all-seeing eyes, and gilded triangles fade in and out against a near-black background, slowly rotating as they drift through their lifespan.
  • Gilded HaloConcentric gold rings bloom and fade from click/pointer points while gold-leaf flecks scatter with gravity; auto-strikes keep it alive passively.
  • The Pattern LoomThree gold friezes of gold-leaf symbols (circles, spirals, triangles, eyes) scroll in alternating directions at staggered speeds, endlessly re-weaving.
  • Byzantine CounterpointTwo SVG columns of spirals, eyes, and triangles in gold and malachite cycle motifs and counter-rotate every 900ms in phase-shifted counterpoint.