🫁 Breathing Lungs - 2D Respiratory Mechanics, Pressure-Volume Loop and Gas Exchange
2D companion of the 3D breathing lungs: a single-compartment lung model with compliance, airway resistance and muscle pressure, live volume, flow and pressure traces, pressure-volume and flow-volume loops, and alveolar CO2 and O2 from ventilation, checked against the RC time constant and the alveolar ventilation equation.
⚙ Under the hood
2D companion of the 3D breathing lungs: a single-compartment lung model with compliance, airway resistance and muscle pressure, live volume, flow and pressure traces, pressure-volume and flow-volume loops, and alveolar CO2 and O2 from ventilation, checked against the RC time constant and the alveolar ventilation equation.
LungsRespirationComplianceGas exchange
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install