Pointillist
Pointillist Sunset
A glowing sun sets over shimmering water rendered as colored dot lattices. Sky baked once offscreen; water dots animate with sinusoidal shimmer and sparkle.
canvasheavy complexitysubtle 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
Dark-mode hero backgrounds, art or gallery themes, ambient screensavers where a painterly aesthetic fits.
When not to
Light-background layouts (background hardcoded dark). Contexts needing full reduced-motion stop — only one static frame renders.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the sun palette to cooler pink tones by setting SUN to [255,200,200] and SUN_R to [200,80,120], then shift WATER_W to [180,120,200] to tint reflections lavender. 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
- sun/sky color palette (SKY_HI, SKY_LO, SUN, SUN_R)
- water colors (WATER_W, WATER_C, WATER_T)
- dot step size (Math.min(W,H)/46)
- shimmer wave speed (phase*1.6 coefficient)
- horizon split (H*0.46)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- offscreen sky canvas baked once and blitted (critical for perf)
- typed-array pixel buffer via stampDot (critical for perf)
- visibilitychange pause
- reduced-motion static fallback
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded to dark navy (#0d0f14) in CSS
- stampDot pixel loop is CPU-heavy at large viewport sizes on low-end devices
- No pointer or touch interactivity — purely passive
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 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.
- 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.