Abstract Geometric Improvisations
The Orbiting Troika
Three colored spheres (blue, yellow, vermilion) orbit a black sun at harmonic speeds, leaving fading color trails that form a slowly turning rosette.
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
Dark-mode hero backgrounds, art/design portfolio sections, ambient loop displays with a fine-art aesthetic.
When not to
Light backgrounds (hardcoded dark background). Contexts needing user interaction — fully passive, no pointer response.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the three orbital speeds from [0.5, 0.8, 1.3] to [1, 2, 3] for sharper harmonic ratios, and set the sun ring stroke to PAL.red instead of PAL.yellow. 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
- orbital radii (R values: 0.30, 0.46, 0.62)
- orbital speeds (sp values: 0.5, 0.8, 1.3)
- body sizes (sz values: 14, 11, 9)
- trail fade duration (3.5 seconds)
- global rotation speed (ang += dt*0.6)
- color palette (PAL object)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- DPR-aware canvas sizing in fitCanvas()
- visibilitychange pause/resume guard
- prefers-reduced-motion guard (REDUCED flag)
- IIFE wrapper
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded in CSS (#17151a) — must edit both CSS and canvas fillStyle to change
- Trail cleanup uses splice in a reverse loop — trail array grows to 360 max but dead entries add GC pressure at high frame rates
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.
- The Rhythm ScoreA 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.
- 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.
- 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.