forever components

Fractals & Automata

Mandelbrot Zoom

Escape-time Mandelbrot set zooms slowly into a filigree boundary seam, rendered in smooth red-to-gold color bands on a near-black background.

canvasheavy 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-mode hero backgrounds, math/science themed pages, ambient screensaver-style displays needing visual depth.

When not to

Light backgrounds (hardcoded dark palette). Low-end CPUs — pixel-loop is throttled but still heavy. Contexts requiring legible text overlays.

Working with an AI agent

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

Change the zoom target to a different boundary point by setting TX=-0.7269 and TY=0.1889, and shift palette stops toward deeper crimson and warm ochre tones. 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

  • zoom target coordinates (TX, TY)
  • palette color stops (stops array)
  • iteration cap (MAXIT=220)
  • pixel budget (MAXPIX=96000)
  • zoom speed multiplier (span*=0.9885)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • low-res offscreen buffer pattern (MAXPIX pixel budget)
  • visibilitychange pause/resume
  • reduced-motion static frame fallback
  • IIFE wrapper
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • CPU-bound pixel loop — can stutter on very low-end devices despite throttling
  • Palette and background color are hardcoded; requires code edits to retheme
  • No click or pointer interactivity — purely passive

mandelbrotfractalcanvaszoomgenerativeambientmath

More Fractals & Automata components

  • Julia MorphJulia set fractal whose complex constant traces a slow Lissajous loop, morphing green filaments between connected and dendritic forms over ~70 seconds.
  • Game of LifeConway's Game of Life with glowing magenta cells aging through three color tiers; field reseeds automatically when population collapses.
  • LeniaLenia smooth-life automaton: glowing teal-to-cyan blobs drift and pulse on a dark field via a typed-array convolution sim scaled up with CSS.
  • L-System FernA fractal fern draws itself branch by branch via an L-system grammar, coloring segments brown-to-gold by depth; it holds then restarts.
  • Domain WarpSlowly flowing domain-warped fractal noise rendered in green, sage, and ink tones; layered fbm warp passes produce marbled smoke patterns.
  • SierpinskiSierpinski triangle accretes from 26,000 chaos-game points, glowing red on near-black; recent points flash white-hot before cooling.