Overview: SailSim is a 2-dimensional interactive sailing environment built with p5.js. SailSim emulates the core physics of sailing by generalizing complex interactions between the boat, its mainsail, and wind.
http://rahilpatel.io/SailSim/index.html
Documentation in Process