DEV Community

Cover image for Trajectory lab - fun project in p5.js
Jithin KS
Jithin KS

Posted on • Updated on

Trajectory lab - fun project in p5.js

I created an interactive visualization in p5.js. It visualizes the trajectory followed by a particle in gravitational field.

See the visualization

You can add new gravitational source by clicking the Add source button in the bottom. A source can be deleted by selecting it and pressing the delete button.

Here is the source code for the
project.

If you like it, please leave a star in github :)

Top comments (0)