Potassium Homeostasis Lab (2D)
A Canvas2D lab of the same two-timescale feedback model as the 3D version: a central serum-potassium gauge, a fast insulin-driven cell-uptake node and a slow aldosterone-driven kidney node show how the body keeps blood potassium inside its narrow normal range.
This 2D companion runs the exact same two-timescale feedback equations as the 3D version — a fast, insulin-driven cellular shift and a slow, aldosterone-driven renal excretion, both pulling against a constant dietary intake — through a flat gauge-and-node view built for reading the homeostatic loop rather than orbiting a scene.
Exponential-relaxation model: insulin and aldosterone each relax toward a target set by how far serum potassium sits from its 4.2 mEq/L setpoint, on a 0.7s and 6s time constant respectively; net dK/dt = diet intake − insulin cell-shift flux − aldosterone renal-excretion flux, clamped to the 2.0-7.5 mEq/L physiological range.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install