Abstract Geometric Improvisations
The Rhythm Score
A red playhead sweeps 16-step staves of blue circles, yellow triangles, and red squares; each note flares in size and opacity as the head crosses it.
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 art displays, music-visualization heroes, or creative portfolio backgrounds with a Bauhaus or generative-art theme.
When not to
Contexts requiring low motion or silent branding — the constant sweeping playhead draws continuous attention.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the playhead speed by editing `phase += dt*2.2` to `phase += dt*1.0` for half-tempo, and swap the yellow row color from `'#f7c80b'` to `'#ff9900'`. 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
- playhead speed (dt*2.2)
- row patterns (pat arrays)
- row colors (PAL.blue/yellow/red)
- note size factor (r*0.8 and k=1+energy*0.6)
- grid step count (STEPS=16)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard with static fallback
- visibilitychange stop/start
- DPR-aware fitCanvas()
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- No reduced-motion animation — static snapshot only, playhead frozen at frame 0
- Background color hardcoded in both CSS and PAL.paper — must update both to change it
More Abstract Geometric Improvisations components
- Several Circles13 coloured discs drift and pulse on a charcoal ground with blend-mode overlaps and halos; a pale diagonal line sways below. An abstract composition.
- Singing CompositionTriangles, arcs, circles and lines in Bauhaus primaries spawn, breathe and dissolve on warm paper in an endless generative composition inspired by abstract.
- Concentric ResonanceColored rings burst outward from random points on a dark field, fading as they expand — abstract's concentric forms in perpetual motion.
- Yellow-Red-Blue Counterpoint24 bars in yellow, red, and cobalt rise and fall in sine-wave counterpoint on warm paper, echoing abstract's three-voice color theory.
- The Orbiting TroikaThree colored spheres (blue, yellow, vermilion) orbit a black sun at harmonic speeds, leaving fading color trails that form a slowly turning rosette.
- Checkerboard FugueA diagonal wave sweeps a 10x8 CSS grid, lighting each cell in Bauhaus green, yellow, red, and black before returning it to a warm paper tone.