Pointillist
Pointillist Rain
104 stippled dots fall as rain, splashing into elliptical ripple rings on an amber puddle against a divisionist dark sky.
canvasmedium 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
Ambient dark-mode backgrounds, seasonal/weather-themed hero sections, generative art displays.
When not to
Light backgrounds (sky hardcoded dark navy). Low-end devices where many canvas draws per frame may stutter.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change DROP palette to cool blues only, increase rain count N from 104 to 160, and slow fall speed by changing rv upper bound from H*0.026 to H*0.016. 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
- rain count (N=104)
- fall speed range (H*0.012..H*0.026)
- drop color palette (DROP array)
- puddle color palette (PUD array)
- horizon split (horizon=H*0.62)
- ripple ring count (RN=10)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- offscreen bg canvas (buildBg) — critical for perf
- IIFE wrapper
- reduced-motion static fallback (drawStatic)
- visibilitychange pause/resume
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color and sky palette hardcoded — changing theme requires editing multiple arrays
- Ripple ring buffer fixed at 10 slots; heavy rain may recycle rings too fast
- No pointer 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.
- 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.