Web gravity simulation using Lustre, Gleam's frontend library tedius.tngl.sh/sky
physics gleam
README.md

sky #

Gleam

sky is a n-body simulation to play with. Build using lustre, gleam frontend framework.

About #

sky is a physics sandbox that lets you experiment with gravitational interactions between multiple bodies. Click and drag on the canvas to launch spheres, then watch as they attract each other according to Newton's law of universal gravitation. Built with Lustre, a frontend framework for Gleam, a type-safe language that compiles to Erlang and JavaScript.

TODO #

Development #

Nix #

The proyect includes a flake.nix with a devshell with the dependencies. Run:

# Clone the repo
git clone https://tangled.org/tedius.tngl.sh/sky

# Enter the devshell
nix develop

# Build and run
gleam run -m lustre/dev start

Thanks to #