forever components

Infinitude

The Endless Net

A grid of scalloped double-arc loops drawn on deep red canvas, each cell pulsing in brightness on its own sine-wave phase, evoking woven netting.

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

Dark-themed hero backgrounds, textile or pattern aesthetics, ambient looping decoration for brand with bold color.

When not to

Light-background layouts (background hardcoded #9c0d20 red). Contexts where high cell count causes perf issues on very large screens.

Working with an AI agent

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

Change background to deep navy (#0d1a9c), loop color to rgba(180,220,255,...), and slow the pulse cycle by changing t*1.3 to t*0.7. 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

  • grid spacing (gap=26)
  • pulse speed (t*1.3)
  • arc angles (Math.PI*0.15 / 1.05 / 1.15 / 2.05)
  • jitter range (Math.random()-0.5)*4)
  • background color (#9c0d20)
  • stroke opacity range (0.55+b*0.4)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

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

Known limitations

  • Background color hardcoded in both CSS and canvas fillStyle — must update both
  • Cell count scales with viewport; very large screens may render many arcs per frame
  • No pointer interactivity — purely passive

canvasgridscalloparcpulseambientdark-background

More Infinitude components

  • Pulsing Dot FieldA lattice of red dots pulses in radius and alpha via staggered sine waves; bright dots flash yellow at peak. No user input required.
  • Mirror Tunnel26 rings of colored dots recede toward a vanishing point, growing in size and radius as they rush toward the viewer — a looping mirrored tunnel illusion.
  • The Dotted GourdAn orange ribbed gourd rendered on canvas with 110 dark dots scaled by curvature and depth; the whole form sways gently as if in a breeze.
  • Dissolve115 colored dots orbit an empty center in a slow ellipse, periodically dissolving outward in a breathing scatter pattern with depth-based opacity.
  • Mirrored Light Box12 nested glowing squares dive inward in a perpetual zoom loop while rotating; colored corner dots hue-rotate continuously over a deep dark stage.
  • Cadmium Gourd StripesWavy cadmium-yellow and black bands undulate horizontally while 70 white and red dots drift upward through the field in a looping scroll.