forever components

Gold-Leaf Ornamental Studies

Spiral Ornament Engine

Gold spirals, all-seeing eyes, and gilded triangles fade in and out against a near-black background, slowly rotating as they drift through their lifespan.

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

Dark-themed hero sections, art nouveau / decorative splash screens, ambient loading backgrounds with a luxury feel.

When not to

Light backgrounds (hardcoded dark canvas). Content-heavy layouts where continuous ornament motion competes with legibility.

Working with an AI agent

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

Increase the max element count from 26 to 40, slow the spawn interval from 560ms to 900ms, and add a fourth motif kind 'diamond' to the kind selection pool. 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

  • max element cap (elems.length > 26)
  • spawn interval ms (560 normal / 1600 reduced)
  • motif size range (14 + Math.random()*42)
  • spin speed scalar (e.spin * 0.016)
  • jewel probability (Math.random() < .18)
  • color constants (GOLD, LAPIS, VERM)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

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

Known limitations

  • Background color hardcoded in CSS (#070502) — must edit both CSS and canvas fillRect to change
  • No pointer interactivity — purely generative; cannot react to cursor
  • Element count capped at 26 via shift(); increasing cap without tuning spawn rate raises density quickly

ornamentspiralgenerativecanvasgoldambient

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.
  • 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.
  • Falling GoldDiamond-shaped gold flakes drift and sway downward against a near-black background, each shimmering in opacity as they tumble and rotate.
  • Byzantine CounterpointTwo SVG columns of spirals, eyes, and triangles in gold and malachite cycle motifs and counter-rotate every 900ms in phase-shifted counterpoint.