Gold-Leaf Ornamental Studies
The Golden Tree
Recursive gold fractal tree grows and breathes via a pulsing sine wave, with spiral coil tips and drifting gold flecks against a near-black background.
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
Luxury or art-themed hero backgrounds, gallery/museum digital installations, ambient dark-mode displays.
When not to
Light backgrounds (hardcoded dark canvas fill). Contexts where constant tree-growth motion competes with foreground content.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the branch color from gold (#c8a951) to copper (#b87333), slow the breathing cycle by setting the sin multiplier from 0.45 to 0.2, and increase fleck count from 7 to 14. 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
- branch color (GOLD='#c8a951')
- highlight color (GOLD_HI='#e6cf86')
- growth breath speed (t*0.45)
- max tree depth (depth=6)
- fleck particle count (i<7)
- trunk length scale (0.46)
- 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 both CSS and canvas fill — must change in two places
- Recursive branch() has no explicit depth guard beyond the depth<=0 check; very large canvases may increase call depth slightly
More Gold-Leaf Ornamental Studies components
- 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.
- 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.