forever components

Pointillist Dot-Field Studies

Complementary Shimmer

Grid of orange-blue and green-violet dot pairs trembles out of phase, creating optical shimmer through simultaneous contrast. Motion lives in the eye.

canvaslight 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 interfaces, ambient decorative panels where optical vibrancy is desired without heavy motion.

When not to

Contexts needing legible text overlays — the flickering dot grid competes with reading. Avoid on low-end devices where steady rAF loops are a concern.

Working with an AI agent

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

Change to red-cyan pairs by replacing RGB.orange with [210,60,50] and RGB.sky with [60,190,200], then slow shimmer by setting sp range to 1.2+Math.random()*1.0. 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

  • color palette (RGB object: green, sky, orange, violet)
  • dot radius (5.5 in dot() calls)
  • grid gap spacing (gap=30)
  • shimmer amplitude (amp: 1.0+Math.random()*1.4)
  • shimmer speed (sp: 2.6+Math.random()*2.4)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard (REDUCED — disables motion, draws static frame)
  • visibilitychange pause/resume
  • DPR-aware fitCanvas()
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Grid density capped at 14 cols/rows — coarser spacing on very large viewports
  • Background color hardcoded in both CSS and canvas fillRect — must change both to retheme

pointillismcanvascomplementary-colorsambientdotsshimmer

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.
  • 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.
  • The ParasolA parasol silhouette of colored dots slowly spins; dome segments cycle through pointillist's orange, violet, green, and sky-blue palette.