Cosmic & Space
Orbiting Planet System
Four glowing planets orbit a radiant sun on tilted elliptical rings with depth-sorted rendering; the system drifts subtly toward the pointer.
canvasmedium complexitymoderate motionpointer
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 sections, space/sci-fi themed backgrounds, ambient screensaver panels needing gentle planetary motion.
When not to
Light-background layouts (background hardcoded dark navy). Contexts requiring legible text overlays — glow effects compete with copy.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Add a fifth planet at r:230, s:0.18, sz:5, c:'#80ffb0' and slow the base speed from t+=0.012 to t+=0.007.
Safe to edit
- planet orbital radii (r values)
- orbit speeds (s values per planet)
- planet colors (c values)
- sun size (26*scale / 8*scale)
- pointer drift amount (ox/oy = mx*14 / my*14)
Keep intact
- depth-sort by z (sin(a))
- DPR-aware canvas sizing
- visibilitychange pause/start
- IIFE wrapper
Known limitations
- Background color hardcoded in CSS — must edit to change from dark navy
- Reduced-motion draws a single static frame then stops — planets appear frozen rather than removed
More Cosmic & Space components
- Black-hole Accretion Swirl110 heat-colored particles spiral inward across a tilted accretion disk toward a glowing event horizon; pointer movement boosts swirl speed.
- Twinkling Starfield115 multicolor stars twinkle via sine waves; sparkle crosses appear on larger stars; stars brighten near cursor. Static fallback for reduced-motion.
- Spiral Galaxy Rotate115 stars form a two-armed spiral galaxy rotating around a violet radial-gradient core; pointer move briefly doubles spin speed.
- Comet Streak LoopCyan and violet comets with glowing heads and gradient tails streak diagonally across a twinkling dark starfield; click spawns an extra comet (up to 5).
- Ringed Planet RotateAmber gas giant with tilted Saturn-like rings slowly rotates over a twinkling starfield; pointermove adjusts ring tilt and light angle dynamically.
- Constellation Connect46 drifting star nodes auto-connect with faint magenta lines when close; cursor draws lines to nearby stars and brightens them on hover.