forever components

Suprematist Geometric Forms

Cross & Circle

Suprematist 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.

canvasmedium complexitymoderate motionclick

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 portfolio hero, generative canvas demos, Suprematist/Bauhaus-themed UI backgrounds.

When not to

Contexts requiring legible text overlays or a light interactive palette — background color is hardcoded warm cream and shapes accumulate up to 9 on screen.

Working with an AI agent

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

Change the palette to include white and add green: set PAL to {black:'#111111', red:'#d8261c', green:'#1a7a3c', white:'#f0ece2'} and update cols array accordingly. 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

  • color palette (PAL object and cols array)
  • shape pool size cap (forms.length > 9)
  • auto-spawn interval (2.2 seconds)
  • shape size range (0.07 + random * 0.05)
  • wobble decay rate (exp factor 3)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard (REDUCED branch with static frames)
  • 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 change in two places
  • Up to 9 shapes accumulate; oldest is dropped via shift(), not a clean fade-out
  • Click target is the whole stage div, not individual shapes — no per-shape interaction

suprematismcanvasgenerativeshapeseasingclick

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.
  • Dynamic CompositionSuprematist shapes fly in from edges, hold in a white void, then depart — bars, circles, crosses in black, red, blue, yellow; never repeating.
  • 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.
  • 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.