Cosmic & Space
Exoplanet Transit Dip
A planet transits a limb-darkened star; a live light-curve panel plots the real-time flux dip. Click resets transit; pointermove nudges speed.
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
Science or education dashboards, space-themed hero backgrounds, ambient data visualization displays.
When not to
Contexts requiring fast interaction — slow ambient simulation. Avoid on low-end mobile where continuous canvas redraws may drain battery.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the planet-to-star ratio to 0.30 by setting k=0.30 in planetRatio(), and shift the impact parameter b from 0.32 to 0.0 for a dead-center transit.
Safe to edit
- planet-to-star ratio (planetRatio returns 0.22)
- impact parameter b (0.32)
- transit speed (phase step 0.012)
- accent color ACC ('#ffe08a')
- star limb-darkening gradient stops
- sample history length NS (240)
Keep intact
- analytic depth() lens-area formula
- IIFE wrapper
- prefers-reduced-motion guard with static pre-filled frame
- visibilitychange stop/start
Known limitations
- Light curve y-axis scales to current planet ratio — changing k without checking yFor() scale may compress the dip visually
- No aria labels or role on canvas
More Cosmic & Space components
- Orbiting Planet SystemFour glowing planets orbit a radiant sun on tilted elliptical rings with depth-sorted rendering; the system drifts subtly toward the pointer.
- 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.