forever components

Organic & Nature

L-System Fern

A procedural fern frond grows depth-by-depth from a fiddlehead spiral, uncurling and breathing back in a looping cycle; tips glow bright green as they emerge.

canvasheavy complexitymoderate motionpointer

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

Nature or botanical themes, ambient generative backgrounds, creative portfolio heroes, or anywhere a slow organic growth loop adds life.

When not to

Contexts requiring a static or motionless background; low-end devices where many canvas draw calls per frame may stutter.

Working with an AI agent

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

Change the base angle unit from AX=0.018 to AX=0.028 for tighter spiral coils, and shift the tip accent color in the tone() function to a warm gold (r=207,g=180,b=60) instead of green. 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

  • base angle unit (AX=0.018)
  • max recursion depth (MAXD=46)
  • animation speed (sp=0.0042)
  • stem color in tone() function
  • growth scale (scale=Math.min(W,H)/520)
  • pointer/click boost strength (pointerBoost=1 / 1.6)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

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

Known limitations

  • Segment count grows large at MAXD=46 — reducing depth significantly cuts draw cost
  • Background color hardcoded in CSS (#071510) — must edit HTML to change
  • Glow effect uses composite 'lighter' blending — may look different on non-standard displays

l-systemfernfractalgenerativecanvasorganicnature

More Organic & Nature components

  • Growing VineA sinuous green vine grows upward sprouting 14 alternating leaves and a pale bud tip, then retracts in a seamless loop on a dark forest background.
  • Flickering FireAdditive-blended ember particles rise from a glowing orange base, flickering like a real flame; cursor pans left/right to fan the fire sideways.
  • Water RippleConcentric ripple rings expand across a deep teal water surface with shimmering caustic bands; tap anywhere to drop a new ripple. Auto-drops periodically.
  • Lightning BoltJagged lightning bolts with branching forks strike randomly down a dark storm-sky canvas; screen flashes rust-white on each strike. Tap to trigger instantly.
  • Falling SnowUp to 110 depth-layered snowflakes drift and sway down a dark blue gradient; pointer movement shifts a wind force that nudges the entire flurry sideways.
  • Drifting CloudsPuffy white clouds with radial-gradient puffs and soft blue undersides drift across a layered sky gradient; pointer nudges them forward.