forever components

Orphist Colour Discs

Sun & Moon Discs

Two large radial-gradient discs — a warm sun and cool moon — orbit the canvas center in opposite phase, blending with 'lighter' compositing where they overlap.

canvaslight 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

Dark-mode hero backgrounds, cosmic or celestial themes, abstract ambient screensavers inspired by Orphism or color-field art.

When not to

Light backgrounds (hardcoded dark fill). Contexts requiring legible text overlays — additive blending creates bright zones that reduce contrast.

Working with an AI agent

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

Change sun color to magenta by setting PAL.yellow to '#f72585' and PAL.orange to '#b5179e', and slow the orbit by changing t*0.6 to t*0.3. 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

  • orbit speed (t*0.6)
  • disc radius (R = min(W,H)*0.30)
  • orbit radius (orbit = min(W,H)*0.18)
  • PAL color palette (yellow, orange, blue)
  • concentric ring count (k<=3) and opacity
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • globalCompositeOperation='lighter' (core visual effect)
  • IIFE wrapper
  • prefers-reduced-motion guard
  • DPR-aware canvas sizing
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Background color hardcoded in CSS and canvas fill — must change in both places
  • No pointer interactivity — purely passive

canvasorbitingradial-gradientadditive-blendambientcolor-theory

More Orphist Colour Discs components

  • Simultaneous Disc7 concentric spectrum rings counter-rotate in alternating directions; a shimmer overlay and pulsing center dot evoke Orphist colour.
  • Circular Rhythm26 color discs pulse with sine-wave rhythm via radial gradients on a dark canvas; additive blending creates luminous overlaps in the Orphist palette.
  • Prismatic Window20 colored rectangular planes in a 5x4 grid breathe, skew, and pulse opacity in staggered sine waves over a dark background, evoking Orphist window planes.
  • Colour Wheel Pulse36-segment spectral disc spins while an energy crest sweeps its segments, causing slices to pulse outward and flare bright as the wave passes.
  • Endless RhythmA horizontal band of split half-disc circles in spectral colors marches endlessly left in a seamless CSS loop, inspired by Orphist's rhythm motifs.
  • Contrast PairsThree split circles rotate complementary halves against each other — red/green, blue/orange, violet/yellow — enacting Orphist's simultaneous contrast law.