forever components

Pointillist Dot-Field Studies

Dot Density Gradient

Stippled dots encode luminance via density; a sine-driven light band sweeps the field, shifting hues between orange, green, and violet zones.

canvasmedium complexitysubtle 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

Art-themed hero backgrounds, gallery intros, ambient screen fills where a painterly slow-motion texture is wanted.

When not to

Contexts requiring legible text overlays — the moving light sweep and dense dot field compete with copy placed on top.

Working with an AI agent

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

Change the palette to cool blues: set RGB.green to [70,130,200], RGB.orange to [200,220,255], RGB.violet to [40,60,140], and slow the sweep by changing t*0.45 to t*0.2. 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

  • RGB color palette (RGB.green, RGB.orange, RGB.violet)
  • sweep speed (t*0.45)
  • dot grid spacing (base=9)
  • dot radius range (1.2 + (1-lum)*1.9)
  • density threshold (0.10+density*0.85)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

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

Known limitations

  • Full canvas redraw every frame — moderately CPU-bound on large viewports due to nested dot loops
  • Background color hardcoded in both CSS and canvas fillRect — must change in two places

pointillismdotsgradientcanvasgenerativeambientlight-sweep

More Pointillist Dot-Field Studies components

  • Pointillist RevealColored dots scatter then assemble into a pointillist seashore — sail and parasol silhouettes — hold, dissolve, and repeat in an 11s loop.
  • Optical MixingA hex grid of orange and sky-blue dots slowly fuse toward their averaged hue and separate again, demonstrating divisionist optical mixing on cream background.
  • Stipple PainterAn invisible brush drifts a Lissajous path, laying colored dots on a warm cream canvas in a slow pointillist build-up inspired by pointillist.
  • Afternoon LightA diagonal light band sweeps a pointillist dot grid; dots shift from violet/sky-blue to orange/green as sunlight passes, then settle back.
  • Complementary ShimmerGrid of orange-blue and green-violet dot pairs trembles out of phase, creating optical shimmer through simultaneous contrast. Motion lives in the eye.
  • The ParasolA parasol silhouette of colored dots slowly spins; dome segments cycle through pointillist's orange, violet, green, and sky-blue palette.