archimedes-principle P5.js simulation showing the forces acting on an object submerged in a liquid. Usage Because this project uses ECMAScript modules, you need to open the index.html file using a local server. Demo A working demo can be found here.