forever components

Organic & Nature

Diffusion-Limited Frost

Six-fold dendritic snowflake grows via diffusion-limited aggregation; arms shimmer white-blue to cyan and cycle through sublimation/refreeze.

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

Dark-mode hero backgrounds, winter/holiday themes, generative art showcases, ambient screensaver-style displays.

When not to

Low-end mobile devices — 42 walker iterations per frame is CPU-intensive. Light backgrounds (dark navy is hardcoded).

Working with an AI agent

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

Change frost colors to warm gold by replacing '#dff4ff','#a8e4ff','#5fb6e8' with '#fff3cc','#ffd966','#e8a230', and slow shimmer by changing t*0.02 to t*0.01. 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

  • walker iterations per frame (iter=42)
  • refreeze threshold (nodes.length>560)
  • shimmer speed (t*0.02)
  • inward bias strength (0.18)
  • crystal color palette (3 hex values in draw())
  • cell size divisor (gs = W/150)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • six-fold fold() symmetry function
  • DPR-aware canvas sizing
  • reduced-motion static fallback (pre-grows 3000 steps)
  • visibilitychange pause/start
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • CPU-bound: 42 DLA iterations per frame may stutter on low-end devices
  • Background hardcoded to #0a1620 — edit CSS to change
  • Refreeze cycle resets the full aggregate, causing a brief flash

snowflakediffusiongenerativecrystalcanvasparticlesproceduralnature

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.