Pointillist
Dot Assemble
Thousands of colored dots scatter from off-screen and converge to paint a pointillist sunrise scene — hill, sky, and sun disc — then dissolve and loop.
canvasheavy complexitymoderate motion
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
When to use it
Hero backgrounds, art/creative portfolio sections, ambient loading screens with a generative art aesthetic.
When not to
Contexts requiring legible text overlays or low-end mobile — the pixel-loop dot rasterizer is CPU-intensive at high DPR.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the sun color to deep red by swapping PAL indices 0–2 to [200,60,40], move the sun position to the center by setting sunX=W2*0.5 and sunY=H2*0.35, and slow assembly to 5 seconds by changing the 3.4 divisor to 5. 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 (one dot per ~140 css px²: W2*H2/140, cap 9000)
- sun position (sunX=W2*0.62, sunY=H2*0.40)
- sun radius (sunR=Math.min(W2,H2)*0.17)
- palette colors (PAL array)
- cycle timing (cyc=6.4, assemble 3.4s, hold 4.9s)
- mount offset (t0=ts-1700: starts half-assembled)
- scatter ring radius (0.55+Math.random()*0.6 multiplier)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- low-res ImageData pixel loop (core perf pattern)
- IIFE wrapper
- visibilitychange stop/start guard
- reduced-motion static fallback (t=1; draw())
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- CPU-bound inner pixel loop — heavy on low-end devices at 2x DPR
- Background color hardcoded in both CSS and BG array — must update both to change
- No pointer interactivity — purely passive
More Pointillist components
- Pointillist ShimmerUp 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.
- 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.