Simulates a swimming pool with waves, refraction and caustics.
/// For each grid square representing an incoming patch of light, refract the four corner coordinates onto /// the bottom surface of the pool and draw that quadrilateral with an alpha inversely proportional to area /// (representing dispertion of the energy).
Uses Fable for F# to JS conversion.
- dotnet SDK 3.0 or higher
- node.js with npm
- An F# editor like Visual Studio, Visual Studio Code with Ionide or JetBrains Rider.
- Install JS dependencies:
npm install
- Install F# dependencies:
npm start
- After the first compilation is finished, in your browser open: http://localhost:8081/
Any modification you do to the F# code will be reflected in the web page after saving.