forever components

Fractals & Automata

Game of Life

Conway's Game of Life with glowing magenta cells aging through three color tiers; field reseeds automatically when population collapses.

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

Ambient backgrounds for tech/generative-art themes, screensavers, or loading screens needing emergent organic motion.

When not to

Contexts requiring legible text overlays or light-background UIs — background is hardcoded dark navy and cell flicker competes with content.

Working with an AI agent

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

Change palette to green-on-black: set BG=[5,10,5], TIERS=[[80,200,80],[120,255,120],[200,255,200]], and slow step rate to STEP_MS=180. 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

  • cell color tiers (TIERS array)
  • step rate (STEP_MS=110)
  • initial seed density (0.30 in seed())
  • reseed threshold (0.018 * grid size)
  • reseed injection rate (0.16 per cell)
  • grid size cap (COLS/ROWS max 180)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • reduced-motion static-frame fallback
  • visibilitychange pause/resume
  • low-res ImageData stretch pattern (critical for perf)
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Age tracking resets on cell death — settled patterns rarely reach tier-2 color
  • Background color hardcoded in both CSS and BG array — must update both to retheme
  • No pointer interactivity; fully passive

cellular-automatagame-of-lifecanvaspixelgenerativeloopgrid

More Fractals & Automata components

  • Mandelbrot ZoomEscape-time Mandelbrot set zooms slowly into a filigree boundary seam, rendered in smooth red-to-gold color bands on a near-black background.
  • Julia MorphJulia set fractal whose complex constant traces a slow Lissajous loop, morphing green filaments between connected and dendritic forms over ~70 seconds.
  • 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.