forever components

Suprematist Geometric Forms

Dynamic Composition

Suprematist shapes fly in from edges, hold in a white void, then depart — bars, circles, crosses in black, red, blue, yellow; never repeating.

canvasmedium complexitymoderate motion

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
Worth keeping? Votes steer what gets built next — sign in to cast one, free to read

When to use it

Art/design hero backgrounds, gallery intros, ambient looping displays with a Bauhaus or modernist aesthetic.

When not to

Contexts needing user focus or legible text overlays — constant shape movement competes with reading.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Change PAL.red to '#e05a00' and PAL.blue to '#0077cc', reduce max element count from 14 to 8, and slow spawn interval from 1100ms to 1800ms. 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

  • palette colors (PAL object)
  • spawn interval (ms=1100)
  • max element cap (elems.length>14)
  • shape size range (sz)
  • element lifetime (life: 5200+random*4200)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard and static fallback
  • visibilitychange pause/resume
  • DPR-aware fitCanvas()
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Background color hardcoded in both CSS and canvas fillStyle — must update both to change
  • No touch/pointer interactivity by design; purely generative

suprematismgenerativecanvasgeometricambientloop

More Suprematist Geometric Forms components

  • The Black Square, BreathingA near-black square barely scales and rotates on a warm white ground; a faint red ghost square offsets behind it. Suprematist stillness in motion.
  • Suprematist Drift9 colored bars in black, red, blue, yellow rotate at random angles and drift slowly across a cream field via alternating CSS keyframes.
  • The Aviator's FieldSuprematist bars in black, red, blue, and yellow launch diagonally across an off-white field at steady tempo; reduced-motion shows a static arrangement.
  • Cross & CircleSuprematist shapes — cross, circle, bar, square — fling in from the nearest edge with cubic ease and a settling wobble, auto-composing on a warm white field.
  • Weightless7 Suprematist shapes — squares, circles, bars, crosses in red/blue/yellow/white — orbit and self-spin around an invisible centre on a dark field.
  • Red WedgeA bold red CSS triangle slowly sweeps across a cream field past faint black and grey rectangles, evoking Suprematist's Suprematist diagonal.