Primary Grid Compositions
Broadway Boogie Woogie
Colored squares pulse along yellow grid avenues like NYC traffic; intersection dots blink in red, blue, and yellow referencing neoplastic's 1943 painting.
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
Art-themed hero backgrounds, neoplastic/De Stijl style pages, ambient generative art displays.
When not to
Contexts needing legible text overlays — the animated grid creates visual noise. Background color is hardcoded off-white.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change grid spacing from gap=30 to gap=40, increase band width from band=11 to band=16, and swap yellow road color to white for a classic black-grid look. 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
- grid spacing (gap=30)
- band width (band=11)
- runner speed range (rand(.04,.11))
- blink density threshold (Math.random()<.18)
- color palette (PAL array)
- blink square size (sz=13)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard (REDUCED)
- visibilitychange pause/start
- DPR-aware fitCanvas()
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded in CSS (#f7f4ec) — must edit both CSS and C.white constant to change
- Runner/blink layout re-randomizes on each resize
More Primary Grid Compositions components
- The Rebalancing Gridneoplastic grid of black lines slides to new layouts while red, blue, and yellow cells fade in, resolving into a balanced composition every few seconds.
- Self-Assembling Compositionneoplastic grid builds itself every 4 s: cells scale in staggered, black lines draw outward, primary colors fill random regions, then recomposes anew.
- Trading WeightRed and blue blocks trade mass across a fixed axis; a yellow counterweight keeps the neoplastic grid balanced. Slow eased transitions reseed randomly.
- Self-Painting CellsA fixed asymmetric neoplastic grid whose cells autonomously cycle through red, blue, and yellow with smooth CSS transitions, like an unattended painter at…
- Victory Boogie MarqueeA 9x9 neoplastic grid rotated 45° as a diamond; red, blue, and yellow squares ripple diagonally in a boogie-woogie march via time-stepped index.
- Equilibrium Engineneoplastic grid with spring-driven lines; primary color blocks recolor every 2s; a center-of-mass dot tracks the weighted area of colored cells.