Ice (above water) Ocean Equilibrium waterline

Iceberg Floating Physics (2D)

This 2D companion turns the 3D iceberg scene's fixed bobbing animation into an actual Archimedes'-principle lab: adjustable ice and water density sliders drive a binary search over the jagged cross-section's submerged area, so the waterline you see is computed from the density ratio on every change, not hard-coded — with a live readout of submerged fraction, mass, buoyant force and displaced volume alongside it.