Create a solar flare animation with plasma eruptions, magnetic field lines, coronal…
- User
Create a solar flare animation with plasma eruptions, magnetic field lines, coronal loops, sunspot activity, and dramatic stellar surface. Auto-starts.
Assistant
I'll create a stunning solar flare animation with all the requested features. Let me start by exploring the project structure.
I'll build this as a canvas-based animation. Let me create the components: the title update, the main solar simulation canvas, and the App wrapper.
Now the core simulation. I'll build a canvas engine handling the stellar surface, plasma eruptions, magnetic field lines, coronal loops, and sunspots.
Now the main simulation engine that renders everything to canvas:
Now the React component wrapping the canvas with an auto-starting overlay UI:
Now let me build to confirm everything compiles:
Build succeeded. I've created a fully autonomous solar flare animation.
What I built
A canvas-based real-time stellar simulation (
src/solar/SolarSim.ts) powered by a custom Perlin-style noise generator (src/solar/noise.ts), wrapped in a React component with a HUD overlay.Features included:
- Dramatic stellar surface — An animated, incandescent photosphere rendered from live fractal-noise (fBm) granulation cells, with a color ramp from deep red → orange → yellow → white, 3D limb shading/darkening, and a bright rim to give a spherical, roiling look.
- Sunspot activity — Dark umbra/penumbra spots that slowly drift across the disk with radial foreshortening near the limb; they act as magnetic anchor points.
- Plasma eruptions — Particle jets of thousands of glowing plasma blobs, colored by heat (white-hot core cooling to red), launched from active regions. They arc under simulated stellar gravity and turbulence, some falling back to the surface.
- Coronal loops — Bright arcing plasma bridges that spawn during flares, with glowing halos and beads of plasma flowing along the magnetic arc paths, fading over their lifetime.
- Magnetic field lines — Faint blue quadratic-curve arcs that pulse and bulge around the star's circumference.
- Auto-start — The simulation begins immediately on mount. Flares trigger autonomously every few seconds (biased toward sunspots), producing a full-screen flash, corona glow surge, plasma jet, and fresh coronal loops.
The overlay adds a monospace "mission control" HUD with a live status indicator, feature legend, and description — all fully responsive.
Files built:
index.html,src/solar/noise.ts,src/solar/SolarSim.ts,src/App.tsx