forever components

Pointillist

Pointillist Shimmer

Up to 2600 colored dots optically mix to paint a pointillist riverbank at dusk — sky, water, and grassy bank zones shimmer via per-dot breathing sine waves.

canvasheavy 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/generative portfolios, ambient screensaver-style tiles where painterly texture is the aesthetic.

When not to

Light-background UIs (background hardcoded dark navy). Contexts needing text legibility — dense dot field competes with overlaid copy.

Working with an AI agent

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

Change the scene from riverbank to a sunset beach by shifting PAL entries: set cobalt water to [0,180,220], saffron to [255,140,0], and increase horizon to 0.52. 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 density cap (target = Math.min(2600, ...))
  • palette (PAL array, 9 RGB entries)
  • horizon line (horizon=0.46)
  • breathing speed (t*0.0013)
  • buffer cap resolution (capE=560)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • typed-array + single putImageData blit pattern (critical for perf)
  • visibilitychange pause
  • reduced-motion static-frame fallback
  • IIFE wrapper
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • CPU-bound inner pixel loop — heavy on low-end devices at high dot counts
  • Background color hardcoded in CSS (#0d0f14) — must edit two places to change ground color
  • No pointer/touch interactivity — purely passive

pointillismcanvasdotsambientgenerativescenepixel-art

More Pointillist components

  • Dot AssembleThousands of colored dots scatter from off-screen and converge to paint a pointillist sunrise scene — hill, sky, and sun disc — then dissolve and loop.
  • Pointillist SunsetA glowing sun sets over shimmering water rendered as colored dot lattices. Sky baked once offscreen; water dots animate with sinusoidal shimmer and sparkle.
  • Stipple Flow108 colored dots drift along a curling sinusoidal flow field, leaving slow translucent trails that paint a sweeping diagonal arc with divisionist…
  • Divisionist Tree2600 orange, blue, and magenta dots form a tree canopy using additive pixel-splat blending; dots vibrate with staggered sine-phase for optical color mixing.
  • Density WaveA density wave sweeps left to right revealing a Divisionist sunset — sky, sun disc, and sea rendered as jittered pigment dots that optically mix at distance.
  • Halftone BloomColored dots bloom radially from center, optically mixing amber, magenta, and teal into a glowing flower. Slow ripple breathes through the dot grid.