forever components

Pointillist Dot-Field Studies

Afternoon Light

A diagonal light band sweeps a pointillist dot grid; dots shift from violet/sky-blue to orange/green as sunlight passes, then settle back.

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

Dark-mode hero backgrounds, art-themed or museum contexts, ambient loops needing a calm color-shift effect.

When not to

Light-background layouts (background hardcoded dark navy). Contexts where subtle motion is insufficient.

Working with an AI agent

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

Change warm colors to gold and coral by setting RGB.orange=[230,160,60] and RGB.green=[210,100,80], then widen the light band with bw=W*0.45. 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

  • dot grid spacing (gap=14)
  • band width (bw=W*0.30)
  • sweep speed (t*0.10)
  • color palette (RGB object)
  • dot size range (1.6 + Math.random()*1.4)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

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

Known limitations

  • Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default
  • Sweep direction is fixed diagonal; not configurable without code changes

pointillismcanvaslight-sweepdotsambientcolor-blend

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.
  • Dot Density GradientStippled dots encode luminance via density; a sine-driven light band sweeps the field, shifting hues between orange, green, and violet zones.
  • 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.