Orphist Colour Discs
Contrast Pairs
Three split circles rotate complementary halves against each other — red/green, blue/orange, violet/yellow — enacting Orphist's simultaneous contrast law.
canvaslight 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
Art/design portfolio heroes, color-theory explainers, ambient dark-mode backgrounds where rhythmic geometric motion is desired.
When not to
Light-background layouts (background hardcoded #0c0d11). Contexts where slow looping geometry feels too abstract.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Add a fourth pair by appending [PAL.blue, PAL.yellow] to the PAIRS array; the cellW math auto-adjusts since it divides W by cols. 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 pairs (PAIRS array)
- rotation speed multiplier (0.5+i*0.25)
- circle radius ratio (0.40)
- divider line opacity pulse (0.4+0.4*Math.abs(...))
- background color (#0c0d11)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- REDUCED prefers-reduced-motion guard (static frame fallback)
- visibilitychange pause/resume
- DPR-aware fitCanvas with setTransform
- IIFE wrapper
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded in both CSS and canvas fill — must change both to retheme
- No touch/pointer interactivity — purely passive
- Pair count drives column width automatically but PAL only defines 7 named colors
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.
- Sun & Moon DiscsTwo large radial-gradient discs — a warm sun and cool moon — orbit the canvas center in opposite phase, blending with 'lighter' compositing where they…