DEV Community

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

Posted on • Edited on

2 1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay