Mars Colony Power & Life-Support Balance (2D)
2D Mars colony energy lab: sol-cycle solar elevation, Beer-Lambert dust attenuation on a real optical-depth scale, and a battery state-of-charge ODE driven against crew life-support load — watch the colony survive or brown out through a dust storm.
The 3D original renders a cinematic Mars base — glass domes, a rover circling on a fixed loop, a beacon tower — where the day/dust controls only retint the sky and toggle habitat glow; nothing about generation, storage or consumption is actually computed. This 2D companion builds the real mechanic the title implies: sun elevation follows a half-sine sol-day arc, surface irradiance applies the Mars solar constant through Beer–Lambert dust extinction with an airmass correction, installed solar-array capacity converts that irradiance into generated kilowatts, and a battery state-of-charge ODE integrates generation against a crew-scaled life-support load every tick — including a night-time heater surcharge. Push a dust storm to peak optical depth around local noon with a small array and an oversized crew, and the battery genuinely drains toward brown-out; the live readout panel and the state-of-charge strip chart both show it happening, not just imply it.
2D Mars colony energy lab: sol-cycle solar elevation, Beer-Lambert dust attenuation on a real optical-depth scale, and a battery state-of-charge ODE driven against crew life-support load.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install